DBusMenuModel

gio.dbus_menu_model.DBusMenuModel is an implementation of gio.menu_model.MenuModel that can be used as a proxy for a menu model that is exported over D-Bus with gio.dbus_connection.DBusConnection.exportMenuModel.

Constructors

this
this(void* ptr, Flag!"Take" take)

Members

Functions

self
DBusMenuModel self()

Returns this, for use in with statements.

Properties

gType
GType gType [@property getter]

Static functions

get
gio.dbus_menu_model.DBusMenuModel get(gio.dbus_connection.DBusConnection connection, string busName, string objectPath)

Obtains a #GDBusMenuModel for the menu model which is exported at the given bus_name and object_path.

getGType
GType getGType()

Inherited Members

From MenuModel

getGType
GType getGType()
gType
GType gType [@property getter]
self
MenuModel self()

Returns this, for use in with statements.

getItemAttributeValue
glib.variant.VariantG getItemAttributeValue(int itemIndex, string attribute, glib.variant_type.VariantType expectedType)

Queries the item at position item_index in model for the attribute specified by attribute.

getItemLink
gio.menu_model.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
gio.menu_attribute_iter.MenuAttributeIter iterateItemAttributes(int itemIndex)

Creates a #GMenuAttributeIter to iterate over the attributes of the item at position item_index in model.

iterateItemLinks
gio.menu_link_iter.MenuLinkIter iterateItemLinks(int itemIndex)

Creates a #GMenuLinkIter to iterate over the links of the item at position item_index in model.

connectItemsChanged
ulong connectItemsChanged(T callback, Flag!"After" after)

Connect to ItemsChanged signal.