Struct ux::FocusManager[][src]

pub struct FocusManager { /* fields omitted */ }

Trait Implementations

impl AsRef<FocusManager> for FocusManager[src]

impl Clone for FocusManager[src]

impl Debug for FocusManager[src]

impl Display for FocusManager[src]

impl Is<FocusManager> for FocusManager[src]

impl Object for FocusManager[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[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.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<Fr, To> IntoColor<To> for Fr where
    To: FromColor<Fr>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,