Trait gio::prelude::MenuItemExt
[−]
[src]
pub trait MenuItemExt {
fn get_attribute_value<'a, P: Into<Option<&'a VariantTy>>>(
&self,
attribute: &str,
expected_type: P
) -> Option<Variant>;
fn get_link(&self, link: &str) -> Option<MenuModel>;
fn set_action_and_target_value<'a, 'b, P: Into<Option<&'a str>>, Q: Into<Option<&'b Variant>>>(
&self,
action: P,
target_value: Q
);
fn set_attribute_value<'a, P: Into<Option<&'a Variant>>>(
&self,
attribute: &str,
value: P
);
fn set_detailed_action(&self, detailed_action: &str);
fn set_icon<P: IsA<Icon>>(&self, icon: &P);
fn set_label<'a, P: Into<Option<&'a str>>>(&self, label: P);
fn set_link<'a, P: IsA<MenuModel> + 'a, Q: Into<Option<&'a P>>>(
&self,
link: &str,
model: Q
);
fn set_section<'a, P: IsA<MenuModel> + 'a, Q: Into<Option<&'a P>>>(
&self,
section: Q
);
fn set_submenu<'a, P: IsA<MenuModel> + 'a, Q: Into<Option<&'a P>>>(
&self,
submenu: Q
);
}
Required Methods
fn get_attribute_value<'a, P: Into<Option<&'a VariantTy>>>(
&self,
attribute: &str,
expected_type: P
) -> Option<Variant>
&self,
attribute: &str,
expected_type: P
) -> Option<Variant>
fn get_link(&self, link: &str) -> Option<MenuModel>
fn set_action_and_target_value<'a, 'b, P: Into<Option<&'a str>>, Q: Into<Option<&'b Variant>>>(
&self,
action: P,
target_value: Q
)
&self,
action: P,
target_value: Q
)
fn set_attribute_value<'a, P: Into<Option<&'a Variant>>>(
&self,
attribute: &str,
value: P
)
&self,
attribute: &str,
value: P
)
fn set_detailed_action(&self, detailed_action: &str)
fn set_icon<P: IsA<Icon>>(&self, icon: &P)
fn set_label<'a, P: Into<Option<&'a str>>>(&self, label: P)
fn set_link<'a, P: IsA<MenuModel> + 'a, Q: Into<Option<&'a P>>>(
&self,
link: &str,
model: Q
)
&self,
link: &str,
model: Q
)
fn set_section<'a, P: IsA<MenuModel> + 'a, Q: Into<Option<&'a P>>>(
&self,
section: Q
)
&self,
section: Q
)