pub type GMenuModelClass = _GMenuModelClass;
Expand description
GMenuModelClass::get_item_attributes: @model: the #GMenuModel to query @item_index: The #GMenuItem to query @attributes: (out) (element-type utf8 GLib.Variant): Attributes on the item
Gets all the attributes associated with the item in the menu model. / /** GMenuModelClass::get_item_links: @model: the #GMenuModel to query @item_index: The #GMenuItem to query @links: (out) (element-type utf8 Gio.MenuModel): Links from the item
Gets all the links associated with the item in the menu model.
Aliased Type§
struct GMenuModelClass {
pub parent_class: _GObjectClass,
pub is_mutable: Option<unsafe extern "C" fn(*mut _GMenuModel) -> i32>,
pub get_n_items: Option<unsafe extern "C" fn(*mut _GMenuModel) -> i32>,
pub get_item_attributes: Option<unsafe extern "C" fn(*mut _GMenuModel, i32, *mut *mut _GHashTable)>,
pub iterate_item_attributes: Option<unsafe extern "C" fn(*mut _GMenuModel, i32) -> *mut _GMenuAttributeIter>,
pub get_item_attribute_value: Option<unsafe extern "C" fn(*mut _GMenuModel, i32, *const i8, *const _GVariantType) -> *mut _GVariant>,
pub get_item_links: Option<unsafe extern "C" fn(*mut _GMenuModel, i32, *mut *mut _GHashTable)>,
pub iterate_item_links: Option<unsafe extern "C" fn(*mut _GMenuModel, i32) -> *mut _GMenuLinkIter>,
pub get_item_link: Option<unsafe extern "C" fn(*mut _GMenuModel, i32, *const i8) -> *mut _GMenuModel>,
}
Fields§
§parent_class: _GObjectClass
§is_mutable: Option<unsafe extern "C" fn(*mut _GMenuModel) -> i32>
§get_n_items: Option<unsafe extern "C" fn(*mut _GMenuModel) -> i32>
§get_item_attributes: Option<unsafe extern "C" fn(*mut _GMenuModel, i32, *mut *mut _GHashTable)>
§iterate_item_attributes: Option<unsafe extern "C" fn(*mut _GMenuModel, i32) -> *mut _GMenuAttributeIter>
§get_item_attribute_value: Option<unsafe extern "C" fn(*mut _GMenuModel, i32, *const i8, *const _GVariantType) -> *mut _GVariant>
§get_item_links: Option<unsafe extern "C" fn(*mut _GMenuModel, i32, *mut *mut _GHashTable)>
§iterate_item_links: Option<unsafe extern "C" fn(*mut _GMenuModel, i32) -> *mut _GMenuLinkIter>
§get_item_link: Option<unsafe extern "C" fn(*mut _GMenuModel, i32, *const i8) -> *mut _GMenuModel>