gtk.ComboBoxEntry.ComboBoxEntry Class Reference

Inheritance diagram for gtk.ComboBoxEntry.ComboBoxEntry:

gtk.ComboBox.ComboBox gtk.CellLayoutIF.CellLayoutIF gtk.Bin.Bin gtk.CellLayoutIF.CellLayoutIF gtk.Container.Container gtk.Widget.Widget gtk.ObjectGtk.ObjectGtk gobject.ObjectG.ObjectG List of all members.

Public Member Functions

GtkComboBoxEntrygetComboBoxEntryStruct ()
 this (GtkComboBoxEntry *gtkComboBoxEntry)
 Sets our main struct and passes it to the parent class.
mixin CellLayoutT (GtkComboBoxEntry)
 this (bit text=true)
 Creates a new GtkComboBoxEntry which has a GtkEntry as child.
 this (TreeModel model, int textColumn)
 Creates a new GtkComboBoxEntry which has a GtkEntry as child and a list of strings as popup.
void setTextColumn (int textColumn)
 Sets the model column which entry_box should use to get strings from to be text_column.
int getTextColumn ()
 Returns the column which entry_box is using to get the strings from.

Protected Member Functions

void * getStruct ()
 the main Gtk struct as a void*

Protected Attributes

GtkComboBoxEntrygtkComboBoxEntry
 the main Gtk struct

Constructor & Destructor Documentation

gtk.ComboBoxEntry.ComboBoxEntry.this ( GtkComboBoxEntry gtkComboBoxEntry  ) 

Sets our main struct and passes it to the parent class.

gtk.ComboBoxEntry.ComboBoxEntry.this ( bit  text = true  ) 

Creates a new GtkComboBoxEntry which has a GtkEntry as child.

After construction, you should set a model using gtk_combo_box_set_model() and a text_column * using gtk_combo_box_entry_set_text_column(). Returns: A new GtkComboBoxEntry. Since 2.4

Reimplemented from gtk.ComboBox.ComboBox.

gtk.ComboBoxEntry.ComboBoxEntry.this ( TreeModel  model,
int  textColumn 
)

Creates a new GtkComboBoxEntry which has a GtkEntry as child and a list of strings as popup.

You can get the GtkEntry from a GtkComboBoxEntry using GTK_ENTRY (GTK_BIN (combo_box_entry)->child). To add and remove strings from the list, just modify model using its data manipulation API. model: A GtkTreeModel. text_column: A column in model to get the strings from. Returns: A new GtkComboBoxEntry. Since 2.4


Member Function Documentation

mixin gtk.ComboBoxEntry.ComboBoxEntry.CellLayoutT ( GtkComboBoxEntry   ) 

GtkComboBoxEntry* gtk.ComboBoxEntry.ComboBoxEntry.getComboBoxEntryStruct (  ) 

void* gtk.ComboBoxEntry.ComboBoxEntry.getStruct (  )  [protected]

the main Gtk struct as a void*

Implements gtk.CellLayoutIF.CellLayoutIF.

int gtk.ComboBoxEntry.ComboBoxEntry.getTextColumn (  ) 

Returns the column which entry_box is using to get the strings from.

entry_box: A GtkComboBoxEntry. Returns: A column in the data source model of entry_box. Since 2.4 Property Details The "text-column" property "text-column" gint : Read / Write A column in the data source model to get the strings from. Allowed values: >= -1 Default value: -1 See Also GtkComboBox

void gtk.ComboBoxEntry.ComboBoxEntry.setTextColumn ( int  textColumn  ) 

Sets the model column which entry_box should use to get strings from to be text_column.

entry_box: A GtkComboBoxEntry. text_column: A column in model to get the strings from. Since 2.4


Member Data Documentation

GtkComboBoxEntry* gtk.ComboBoxEntry.ComboBoxEntry.gtkComboBoxEntry [protected]

the main Gtk struct


SourceForge.net Logo DSource.org Logo digitalmars.com Logo