Trait ux::prelude::MenuModelExt [−]
pub trait MenuModelExt: 'static {
pub fn get_item_attribute_value(
&self,
item_index: i32,
attribute: &str,
expected_type: Option<&VariantTy>
) -> Option<Variant>;
pub fn get_item_link(
&self,
item_index: i32,
link: &str
) -> Option<MenuModel>;
pub fn get_n_items(&self) -> i32;
pub fn is_mutable(&self) -> bool;
pub fn items_changed(&self, position: i32, removed: i32, added: i32);
pub fn iterate_item_attributes(
&self,
item_index: i32
) -> Option<MenuAttributeIter>;
pub fn iterate_item_links(&self, item_index: i32) -> Option<MenuLinkIter>;
pub fn connect_items_changed<F>(&self, f: F) -> SignalHandlerId
where
F: 'static + Fn(&Self, i32, i32, i32);
}Required methods
pub fn get_item_attribute_value(
&self,
item_index: i32,
attribute: &str,
expected_type: Option<&VariantTy>
) -> Option<Variant>
&self,
item_index: i32,
attribute: &str,
expected_type: Option<&VariantTy>
) -> Option<Variant>
pub fn get_item_link(&self, item_index: i32, link: &str) -> Option<MenuModel>
pub fn get_n_items(&self) -> i32
pub fn is_mutable(&self) -> bool
pub fn items_changed(&self, position: i32, removed: i32, added: i32)
pub fn iterate_item_attributes(
&self,
item_index: i32
) -> Option<MenuAttributeIter>
&self,
item_index: i32
) -> Option<MenuAttributeIter>
pub fn iterate_item_links(&self, item_index: i32) -> Option<MenuLinkIter>
pub fn connect_items_changed<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&Self, i32, i32, i32),
F: 'static + Fn(&Self, i32, i32, i32),
Implementors
impl<O> MenuModelExt for O where
O: IsA<MenuModel>,
O: IsA<MenuModel>,
pub fn get_item_attribute_value(
&self,
item_index: i32,
attribute: &str,
expected_type: Option<&VariantTy>
) -> Option<Variant>
&self,
item_index: i32,
attribute: &str,
expected_type: Option<&VariantTy>
) -> Option<Variant>
pub fn get_item_link(&self, item_index: i32, link: &str) -> Option<MenuModel>
pub fn get_n_items(&self) -> i32
pub fn is_mutable(&self) -> bool
pub fn items_changed(&self, position: i32, removed: i32, added: i32)
pub fn iterate_item_attributes(
&self,
item_index: i32
) -> Option<MenuAttributeIter>
&self,
item_index: i32
) -> Option<MenuAttributeIter>
pub fn iterate_item_links(&self, item_index: i32) -> Option<MenuLinkIter>
pub fn connect_items_changed<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, i32, i32, i32),
F: 'static + Fn(&O, i32, i32, i32),