Trait components::FocusManagerExt[][src]

pub trait FocusManagerExt: 'static {
    fn get_focused(&self) -> Option<Focusable>;
fn get_stage(&self) -> Option<Stage>;
fn move_focus(&self, direction: FocusDirection);
fn push_focus(&self, focusable: &Focusable);
fn push_focus_with_hint(&self, focusable: &Focusable, hint: FocusHint);
fn connect_property_focused_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_stage_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Required methods

fn get_focused(&self) -> Option<Focusable>[src]

focus_manager_get_focused: @manager: A #FocusManager

Get the currently focused #Focusable

Returns: (transfer none): Focusable

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

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.

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.

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.

fn connect_property_focused_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

fn connect_property_stage_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

Loading content...

Implementors

impl<O: Is<FocusManager>> FocusManagerExt for O[src]

fn get_focused(&self) -> Option<Focusable>[src]

focus_manager_get_focused: @manager: A #FocusManager

Get the currently focused #Focusable

Returns: (transfer none): Focusable

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

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.

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.

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.

Loading content...