Struct gtk::Menu
[−]
pub struct Menu(_, _);
Methods
impl Menu
[src]
fn new() -> Menu
fn new_from_model<T: IsA<MenuModel>>(model: &T) -> Menu
fn attach<T: IsA<Widget>>(&self,
child: &T,
left_attach: u32,
right_attach: u32,
top_attach: u32,
bottom_attach: u32)
child: &T,
left_attach: u32,
right_attach: u32,
top_attach: u32,
bottom_attach: u32)
fn detach(&self)
fn get_accel_group(&self) -> Option<AccelGroup>
fn get_accel_path(&self) -> Option<String>
fn get_active(&self) -> Option<Widget>
fn get_attach_widget(&self) -> Option<Widget>
fn get_monitor(&self) -> i32
fn get_reserve_toggle_size(&self) -> bool
fn get_tearoff_state(&self) -> bool
fn get_title(&self) -> Option<String>
fn popdown(&self)
fn reorder_child<T: IsA<Widget>>(&self, child: &T, position: i32)
fn reposition(&self)
fn set_accel_group(&self, accel_group: Option<&AccelGroup>)
fn set_accel_path<'a, T: Into<Option<&'a str>>>(&self, accel_path: T)
fn set_active(&self, index: u32)
fn set_monitor(&self, monitor_num: i32)
fn set_reserve_toggle_size(&self, reserve_toggle_size: bool)
fn set_screen(&self, screen: Option<&Screen>)
fn set_tearoff_state(&self, torn_off: bool)
fn set_title(&self, title: &str)
fn set_property_attach_widget(&self, attach_widget: Option<&Widget>)
fn get_property_tearoff_title(&self) -> Option<String>
fn set_property_tearoff_title(&self, tearoff_title: Option<&str>)
fn get_item_bottom_attach<T: IsA<MenuItem> + IsA<Widget>>(&self,
item: &T)
-> i32
item: &T)
-> i32
fn set_item_bottom_attach<T: IsA<MenuItem> + IsA<Widget>>(&self,
item: &T,
bottom_attach: i32)
item: &T,
bottom_attach: i32)
fn get_item_left_attach<T: IsA<MenuItem> + IsA<Widget>>(&self, item: &T) -> i32
fn set_item_left_attach<T: IsA<MenuItem> + IsA<Widget>>(&self,
item: &T,
left_attach: i32)
item: &T,
left_attach: i32)
fn get_item_right_attach<T: IsA<MenuItem> + IsA<Widget>>(&self, item: &T) -> i32
fn set_item_right_attach<T: IsA<MenuItem> + IsA<Widget>>(&self,
item: &T,
right_attach: i32)
item: &T,
right_attach: i32)
fn get_item_top_attach<T: IsA<MenuItem> + IsA<Widget>>(&self, item: &T) -> i32
fn set_item_top_attach<T: IsA<MenuItem> + IsA<Widget>>(&self,
item: &T,
top_attach: i32)
item: &T,
top_attach: i32)
fn get_for_attach_widget<T: IsA<Widget>>(widget: &T) -> Vec<Widget>
fn connect_move_scroll<F: Fn(&Menu, ScrollType) + 'static>(&self, f: F) -> u64
impl Menu
[src]
fn popup<T: IsA<Widget>, U: IsA<Widget>, F: Fn(&Menu, &mut i32, &mut i32) -> bool + 'static>(&self,
parent_menu_shell: Option<&T>,
parent_menu_item: Option<&U>,
f: F,
button: u32,
activate_time: u32)
parent_menu_shell: Option<&T>,
parent_menu_item: Option<&U>,
f: F,
button: u32,
activate_time: u32)
fn popup_easy(&self, button: u32, activate_time: u32)
Trait Implementations
impl Clone for Menu
fn clone(&self) -> Menu
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Menu
impl Hash for Menu
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl StaticType for Menu
fn static_type() -> Type
Returns the type identifier of Self
.
impl<T: IsA<Object>> PartialEq<T> for Menu
fn eq(&self, other: &T) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.