Project:DUI

Class List Class Hierarchy
Summary: Ctors Methods Mixins

Module dui.Entry

Class Entry

dui.ObjectG.ObjectG
        dui.DUIObject.DUIObject
                dui.Widget.Widget
                        dui.Entry.Entry

Implemented interfaces:


public class

Entry



A single line text entry widget

Constructor Summary
public (GtkWidget* gtkWidget)
          
()
          Creates a new entry
(char text)
          Creates a new entry and set it's text
(String text)
          
(void delegate())
          Creates a new entry and set it's text to empty and add a listener delegate
(char text, void delegate())
          Creates a new Entry with a initial text and and OnActivate listener.
(String text, void delegate())
          

Methods Summary
protected alias EventHandler0!(Entry )
          
alias EventHandler0!(Entry )
          
alias EventHandler0!(Entry )
          
alias EventHandler0!(Entry )
          
public void addOnActivate(void delegate())
          
void addOnChanged(void delegate())
          
void addOnDeleteText(void delegate())
          
void addOnInsertText(void delegate())
          
void setData(String key, gpointer data)
          
void setText(char text)
          Setst the text
void setText(String text)
          
String getText()
          Gets the text from the entry widget
void setVisibility(bit visible)
          Sets the visibility mode
bit getVisibility()
          Gets the visiblility mode
void setInvisibleChar(gunichar ch)
          Sets the char to display when in invisible mode - password like mode
gunichar getInvisibleChar()
          Gets the char displayed when in invisible mode - password like mode
void setHasFrame(bit setting)
          Sets has frame
bit getHasFrame()
          Gets has frame
void setMaxLength(gint max)
          Sets the maximum length text is truncated if needed
gint getMaxLength()
          Gets the maximum length
void setActivitiesDefault(gboolean setting)
          Sets the activities default
bit getActivities()
          Gets the activities default
void setWidthChars(gint n_chars)
          Sets the chars widget
gint getWidthChars()
          Gets the chars widget
PangoLayout* getLayout()
          gets the pango layout
void getLayoutOffstes(gint* x, gint* y)
          Gets the layout offsets
public void selectRegion(gint start, gint end)
          
void insertText(char text, gint length, gint* position)
          Insert text
void insertText(String text, gint length, gint* position)
          
void deleteText(gint startPos, gint endPos)
          Deletes text
String getChars(gint startPos, gint endPos)
          Gets a substring
void cutClipboard()
          Copies the text content to the clipboard and remove it from the widget (selected only???)
void copyClipboard()
          Copies the text content into the clip board (selected only???)
void pasteClipboard()
          Pastes the clipborad contents into the widget
void deleteSelection()
          Deletes the selected text
void setPosition(int position)
          sets the cursor position ???
gint getPosition()
          get position
void setEditable(bit isEditable)
          Sets the editable state
bit getEditable()
          gets the editable state


EventHandler0!

protected alias EventHandler0!(Entry )

EventHandler0!

alias EventHandler0!(Entry )

EventHandler0!

alias EventHandler0!(Entry )

EventHandler0!

alias EventHandler0!(Entry )



public ctor(Entry)(GtkWidget* gtkWidget)

addOnActivate

public void addOnActivate(void delegate())

addOnChanged

void addOnChanged(void delegate())

addOnDeleteText

void addOnDeleteText(void delegate())

addOnInsertText

void addOnInsertText(void delegate())



ctor(Entry)()
Creates a new entry



ctor(Entry)(char text)
Creates a new entry and set it's text

Parameters:
text - the initial text



ctor(Entry)(String text)



ctor(Entry)(void delegate())
Creates a new entry and set it's text to empty and add a listener delegate

Parameters:
dlg - the listener delegate



ctor(Entry)(char text, void delegate())
Creates a new Entry with a initial text and and OnActivate listener.

Parameters:
text - the initial text
dlg - the listener delegate



ctor(Entry)(String text, void delegate())

setData

void setData(String key, gpointer data)

setText

void setText(char text)
Setst the text

Parameters:
text - the text

setText

void setText(String text)

getText

String getText()
Gets the text from the entry widget

Returns:
the text

setVisibility

void setVisibility(bit visible)
Sets the visibility mode

Parameters:
visible - the new visibility mode

getVisibility

bit getVisibility()
Gets the visiblility mode

Returns:
true if in password like mode

setInvisibleChar

void setInvisibleChar(gunichar ch)
Sets the char to display when in invisible mode - password like mode

Parameters:
ch - the char to display when in invisible mode

getInvisibleChar

gunichar getInvisibleChar()
Gets the char displayed when in invisible mode - password like mode

Returns:
the char to displayed when in invisible mode

setHasFrame

void setHasFrame(bit setting)
Sets has frame

Parameters:
setting - the new has frame setting

getHasFrame

bit getHasFrame()
Gets has frame

Returns:
true if the widget has a frame ???

setMaxLength

void setMaxLength(gint max)
Sets the maximum length text is truncated if needed

Parameters:
max - the maximum length

getMaxLength

gint getMaxLength()
Gets the maximum length

Returns:
the maximum length

setActivitiesDefault

void setActivitiesDefault(gboolean setting)
Sets the activities default

Parameters:
setting - the new activities defaul

getActivities

bit getActivities()
Gets the activities default

Returns:
the activities default

setWidthChars

void setWidthChars(gint n_chars)
Sets the chars widget

Parameters:
n_chars - the number of chars

getWidthChars

gint getWidthChars()
Gets the chars widget

Returns:
the chars widget

getLayout

PangoLayout* getLayout()
gets the pango layout

Returns:
the pango layout

getLayoutOffstes

void getLayoutOffstes(gint* x, gint* y)
Gets the layout offsets

Parameters:
x -
y -

selectRegion

public void selectRegion(gint start, gint end)

insertText

void insertText(char text, gint length, gint* position)
Insert text

Parameters:
text - the text to insert
length - the number of chars to insert
position - the position on the existing to where to insert the new text

insertText

void insertText(String text, gint length, gint* position)

deleteText

void deleteText(gint startPos, gint endPos)
Deletes text

Parameters:
startPos -
endPos -

getChars

String getChars(gint startPos, gint endPos)
Gets a substring

Parameters:
startPos -
endPos -

cutClipboard

void cutClipboard()
Copies the text content to the clipboard and remove it from the widget (selected only???)

copyClipboard

void copyClipboard()
Copies the text content into the clip board (selected only???)

pasteClipboard

void pasteClipboard()
Pastes the clipborad contents into the widget

deleteSelection

void deleteSelection()
Deletes the selected text

setPosition

void setPosition(int position)
sets the cursor position ???

Parameters:
position - the cursor position

getPosition

gint getPosition()
get position

Returns:
the position of the cursor ???

setEditable

void setEditable(bit isEditable)
Sets the editable state

Parameters:
isEditable - the new editable state - use false to prevent the user to change the text content

getEditable

bit getEditable()
gets the editable state

Returns:
true if entry is editable