Trait ux::MenuExt [−][src]
pub trait MenuExt: 'static { pub fn add_action<P>(&self, action: &P)
where
P: Is<PushAction>; pub fn remove_action<P>(&self, action: &P)
where
P: Is<PushAction>; pub fn remove_all(&self); pub fn show_with_position(&self, x: f32, y: f32); pub fn connect_action_activated<F>(&self, f: F) -> SignalHandlerId
where
F: 'static + Fn(&Self, &PushAction); }
Required methods
pub fn add_action<P>(&self, action: &P) where
P: Is<PushAction>,
[src]
P: Is<PushAction>,
add_action: @menu: A #Menu @action: A #PushAction
Append @action to @menu.
pub fn remove_action<P>(&self, action: &P) where
P: Is<PushAction>,
[src]
P: Is<PushAction>,
remove_action: @menu: A #Menu @action: A #PushAction
Remove @action from @menu.
pub fn remove_all(&self)
[src]
remove_all: @menu: A #Menu
Remove all the actions from @menu.
pub fn show_with_position(&self, x: f32, y: f32)
[src]
show_with_position: @menu: A #Menu @x: X position @y: Y position
Moves the menu to the specified position and shows it.
pub fn connect_action_activated<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&Self, &PushAction),
[src]
F: 'static + Fn(&Self, &PushAction),
Implementors
impl<O> MenuExt for O where
O: Is<Menu>,
[src]
impl<O> MenuExt for O where
O: Is<Menu>,
[src]pub fn add_action<P>(&self, action: &P) where
P: Is<PushAction>,
[src]
P: Is<PushAction>,
add_action: @menu: A #Menu @action: A #PushAction
Append @action to @menu.
pub fn remove_action<P>(&self, action: &P) where
P: Is<PushAction>,
[src]
P: Is<PushAction>,
remove_action: @menu: A #Menu @action: A #PushAction
Remove @action from @menu.
pub fn remove_all(&self)
[src]
remove_all: @menu: A #Menu
Remove all the actions from @menu.
pub fn show_with_position(&self, x: f32, y: f32)
[src]
show_with_position: @menu: A #Menu @x: X position @y: Y position
Moves the menu to the specified position and shows it.
pub fn connect_action_activated<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &PushAction),
[src]
F: 'static + Fn(&O, &PushAction),