Trait ux::FocusManagerExt [−][src]
pub trait FocusManagerExt: 'static { pub fn get_focused(&self) -> Option<Focusable>; pub fn get_stage(&self) -> Option<Stage>; pub fn move_focus(&self, direction: FocusDirection); pub fn push_focus(&self, focusable: &Focusable); pub fn push_focus_with_hint(&self, focusable: &Focusable, hint: FocusHint); pub fn connect_property_focused_notify<F>(&self, f: F) -> SignalHandlerId
where
F: 'static + Fn(&Self); pub fn connect_property_stage_notify<F>(&self, f: F) -> SignalHandlerId
where
F: 'static + Fn(&Self); }
Required methods
pub fn get_focused(&self) -> Option<Focusable>
[src]
focus_manager_get_focused: @manager: A #FocusManager
Get the currently focused #Focusable
Returns: (transfer none): Focusable
pub fn get_stage(&self) -> Option<Stage>
[src]
focus_manager_get_stage: @manager: A #FocusManager
Get the stage the FocusManager is associated with
Returns: (transfer none): A #Stage
pub fn move_focus(&self, direction: FocusDirection)
[src]
focus_manager_move_focus: @manager: the focus manager @direction: The direction to move focus in
Moves the current focus in the given direction.
pub fn push_focus(&self, focusable: &Focusable)
[src]
focus_manager_push_focus: @manager: the focus manager @focusable: the object to set focus on
Sets the currently focused actor, with an #FocusHint of %FOCUS_HINT_PRIOR.
Note: the final focused object may not be the same as @focusable if @focusable does not accept focus directly.
pub fn push_focus_with_hint(&self, focusable: &Focusable, hint: FocusHint)
[src]
focus_manager_push_focus_with_hint: @manager: the focus manager @focusable: the object to set focus on @hint: an #FocusHint
Similar to #focus_manager_push_focus, but allows the hint to be specified.
Note: the final focused object may not be the same as @focusable if @focusable does not accept focus directly.
pub fn connect_property_focused_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&Self),
[src]
F: 'static + Fn(&Self),
pub fn connect_property_stage_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&Self),
[src]
F: 'static + Fn(&Self),
Implementors
impl<O> FocusManagerExt for O where
O: Is<FocusManager>,
[src]
impl<O> FocusManagerExt for O where
O: Is<FocusManager>,
[src]pub fn get_focused(&self) -> Option<Focusable>
[src]
focus_manager_get_focused: @manager: A #FocusManager
Get the currently focused #Focusable
Returns: (transfer none): Focusable
pub fn get_stage(&self) -> Option<Stage>
[src]
focus_manager_get_stage: @manager: A #FocusManager
Get the stage the FocusManager is associated with
Returns: (transfer none): A #Stage
pub fn move_focus(&self, direction: FocusDirection)
[src]
focus_manager_move_focus: @manager: the focus manager @direction: The direction to move focus in
Moves the current focus in the given direction.
pub fn push_focus(&self, focusable: &Focusable)
[src]
focus_manager_push_focus: @manager: the focus manager @focusable: the object to set focus on
Sets the currently focused actor, with an #FocusHint of %FOCUS_HINT_PRIOR.
Note: the final focused object may not be the same as @focusable if @focusable does not accept focus directly.
pub fn push_focus_with_hint(&self, focusable: &Focusable, hint: FocusHint)
[src]
focus_manager_push_focus_with_hint: @manager: the focus manager @focusable: the object to set focus on @hint: an #FocusHint
Similar to #focus_manager_push_focus, but allows the hint to be specified.
Note: the final focused object may not be the same as @focusable if @focusable does not accept focus directly.
pub fn connect_property_focused_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_stage_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),