#[repr(C)]pub struct _GMenuModelClass {
pub parent_class: GObjectClass,
pub is_mutable: Option<unsafe extern "C" fn(model: *mut GMenuModel) -> gboolean>,
pub get_n_items: Option<unsafe extern "C" fn(model: *mut GMenuModel) -> gint>,
pub get_item_attributes: Option<unsafe extern "C" fn(model: *mut GMenuModel, item_index: gint, attributes: *mut *mut GHashTable)>,
pub iterate_item_attributes: Option<unsafe extern "C" fn(model: *mut GMenuModel, item_index: gint) -> *mut GMenuAttributeIter>,
pub get_item_attribute_value: Option<unsafe extern "C" fn(model: *mut GMenuModel, item_index: gint, attribute: *const gchar, expected_type: *const GVariantType) -> *mut GVariant>,
pub get_item_links: Option<unsafe extern "C" fn(model: *mut GMenuModel, item_index: gint, links: *mut *mut GHashTable)>,
pub iterate_item_links: Option<unsafe extern "C" fn(model: *mut GMenuModel, item_index: gint) -> *mut GMenuLinkIter>,
pub get_item_link: Option<unsafe extern "C" fn(model: *mut GMenuModel, item_index: gint, link: *const gchar) -> *mut GMenuModel>,
}
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.
Fields§
§parent_class: GObjectClass
§is_mutable: Option<unsafe extern "C" fn(model: *mut GMenuModel) -> gboolean>
§get_n_items: Option<unsafe extern "C" fn(model: *mut GMenuModel) -> gint>
§get_item_attributes: Option<unsafe extern "C" fn(model: *mut GMenuModel, item_index: gint, attributes: *mut *mut GHashTable)>
§iterate_item_attributes: Option<unsafe extern "C" fn(model: *mut GMenuModel, item_index: gint) -> *mut GMenuAttributeIter>
§get_item_attribute_value: Option<unsafe extern "C" fn(model: *mut GMenuModel, item_index: gint, attribute: *const gchar, expected_type: *const GVariantType) -> *mut GVariant>
§get_item_links: Option<unsafe extern "C" fn(model: *mut GMenuModel, item_index: gint, links: *mut *mut GHashTable)>
§iterate_item_links: Option<unsafe extern "C" fn(model: *mut GMenuModel, item_index: gint) -> *mut GMenuLinkIter>
§get_item_link: Option<unsafe extern "C" fn(model: *mut GMenuModel, item_index: gint, link: *const gchar) -> *mut GMenuModel>
Trait Implementations§
Source§impl Clone for _GMenuModelClass
impl Clone for _GMenuModelClass
Source§fn clone(&self) -> _GMenuModelClass
fn clone(&self) -> _GMenuModelClass
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for _GMenuModelClass
impl Debug for _GMenuModelClass
Source§impl PartialEq for _GMenuModelClass
impl PartialEq for _GMenuModelClass
impl Copy for _GMenuModelClass
impl Eq for _GMenuModelClass
impl StructuralPartialEq for _GMenuModelClass
Auto Trait Implementations§
impl Freeze for _GMenuModelClass
impl RefUnwindSafe for _GMenuModelClass
impl !Send for _GMenuModelClass
impl !Sync for _GMenuModelClass
impl Unpin for _GMenuModelClass
impl UnwindSafe for _GMenuModelClass
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more