- gMenuModel
GMenuModel* gMenuModel;
- getMenuModelStruct
GMenuModel* getMenuModelStruct()
- 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.
- getType
GType getType()
- getItemAttributeValue
Variant getItemAttributeValue(int itemIndex, string attribute, VariantType expectedType)
Queries the item at position @item_index in @model for the attribute
specified by @attribute.
- getItemLink
MenuModel getItemLink(int itemIndex, string link)
Queries the item at position @item_index in @model for the link
specified by @link.
- getNItems
int getNItems()
Query the number of items in @model.
- isMutable
bool isMutable()
Queries if @model is mutable.
- itemsChanged
void itemsChanged(int position, int removed, int added)
Requests emission of the #GMenuModel::items-changed signal on @model.
- iterateItemAttributes
MenuAttributeIter iterateItemAttributes(int itemIndex)
Creates a #GMenuAttributeIter to iterate over the attributes of
the item at position @item_index in @model.
- iterateItemLinks
MenuLinkIter iterateItemLinks(int itemIndex)
Creates a #GMenuLinkIter to iterate over the links of the item at
position @item_index in @model.
- connectedSignals
int[string] connectedSignals;
Undocumented in source.
- onItemsChangedListeners
void delegate(int, int, int, MenuModel)[] onItemsChangedListeners;
Undocumented in source.
- addOnItemsChanged
void addOnItemsChanged(void delegate(int, int, int, MenuModel) dlg, ConnectFlags connectFlags)
Emitted when a change has occured to the menu.
- callBackItemsChanged
void callBackItemsChanged(GMenuModel* menumodelStruct, int position, int removed, int added, MenuModel _menumodel)
Undocumented in source. Be warned that the author may not have intended to support it.
#GDBusMenuModel is an implementation of #GMenuModel that can be used as a proxy for a menu model that is exported over D-Bus with g_dbus_connection_export_menu_model().