Item

Description The GtkItem widget is an abstract base class for GtkMenuItem, GtkListItem and GtkTreeItem. GtkItem is deprecated and will be removed in GTK+ 3.

Constructors

this
this(GtkItem* gtkItem)

Sets our main struct and passes it to the parent class

Members

Functions

addOnDeselect
void addOnDeselect(void delegate(Item) dlg, ConnectFlags connectFlags)

Emitted when the item is deselected.

addOnSelect
void addOnSelect(void delegate(Item) dlg, ConnectFlags connectFlags)

Emitted when the item is selected.

addOnToggle
void addOnToggle(void delegate(Item) dlg, ConnectFlags connectFlags)

Emitted when the item is toggled.

deselect
void deselect()

Warning gtk_item_deselect has been deprecated since version 2.22 and should not be used in newly-written code. Use gtk_menu_item_deselect() instead Emits the "deselect" signal on the given item.

getItemStruct
GtkItem* getItemStruct()
Undocumented in source. Be warned that the author may not have intended to support it.
getStruct
void* getStruct()

the main Gtk struct as a void*

select
void select()

Warning gtk_item_select has been deprecated since version 2.22 and should not be used in newly-written code. Use gtk_menu_item_select() instead Emits the "select" signal on the given item.

setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.
toggle
void toggle()

Warning gtk_item_toggle has been deprecated since version 2.22 and should not be used in newly-written code. This function will be removed in GTK+ 3 Emits the "toggle" signal on the given item.

Static functions

callBackDeselect
void callBackDeselect(GtkItem* itemStruct, Item _item)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackSelect
void callBackSelect(GtkItem* itemStruct, Item _item)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackToggle
void callBackToggle(GtkItem* itemStruct, Item _item)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

connectedSignals
int[string] connectedSignals;
gtkItem
GtkItem* gtkItem;

the main Gtk struct

onDeselectListeners
void delegate(Item)[] onDeselectListeners;
Undocumented in source.
onSelectListeners
void delegate(Item)[] onSelectListeners;
Undocumented in source.
onToggleListeners
void delegate(Item)[] onToggleListeners;
Undocumented in source.

Inherited Members

From Bin

gtkBin
GtkBin* gtkBin;

the main Gtk struct

getBinStruct
GtkBin* getBinStruct()
Undocumented in source. Be warned that the author may not have intended to support it.
getStruct
void* getStruct()

the main Gtk struct as a void*

setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.
getChild
Widget getChild()

Gets the child of the GtkBin, or NULL if the bin contains no child widget. The returned widget does not have a reference added, so you do not need to unref it.

Meta