pub struct FocusManager { /* private fields */ }
Expand description
Application extension that manages keyboard focus.
§Events
Events this extension provides.
§Services
Services this extension provides.
§Dependencies
This extension requires the WINDOWS
service.
This extension listens to the MOUSE_INPUT_EVENT
, TOUCH_INPUT_EVENT
, SHORTCUT_EVENT
,
WINDOW_FOCUS_CHANGED_EVENT
and WIDGET_INFO_CHANGED_EVENT
.
To work properly it should be added to the app after the windows manager extension.
§About Focus
See the module level documentation for an overview of the keyboard focus concepts implemented by this app extension.
Trait Implementations§
source§impl AppExtension for FocusManager
impl AppExtension for FocusManager
source§fn event_preview(&mut self, update: &mut EventUpdate)
fn event_preview(&mut self, update: &mut EventUpdate)
source§fn render(&mut self, _: &mut RenderUpdates, _: &mut RenderUpdates)
fn render(&mut self, _: &mut RenderUpdates, _: &mut RenderUpdates)
Called when render is requested for windows and widgets. Read more
source§fn info(&mut self, _: &mut InfoUpdates)
fn info(&mut self, _: &mut InfoUpdates)
Called when info rebuild is requested for windows and widgets. Read more
source§fn register(&self, info: &mut AppExtensionsInfo)where
Self: Sized,
fn register(&self, info: &mut AppExtensionsInfo)where
Self: Sized,
Register info abound this extension on the info list.
source§fn enable_device_events(&self) -> bool
fn enable_device_events(&self) -> bool
If the application should notify raw device events. Read more
source§fn update_preview(&mut self)
fn update_preview(&mut self)
source§fn update_ui(&mut self, update_widgets: &mut WidgetUpdates)
fn update_ui(&mut self, update_widgets: &mut WidgetUpdates)
source§fn layout(&mut self, layout_widgets: &mut LayoutUpdates)
fn layout(&mut self, layout_widgets: &mut LayoutUpdates)
Called when layout is requested for windows and widgets. Read more
source§impl Default for FocusManager
impl Default for FocusManager
source§fn default() -> FocusManager
fn default() -> FocusManager
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for FocusManager
impl !RefUnwindSafe for FocusManager
impl Send for FocusManager
impl Sync for FocusManager
impl Unpin for FocusManager
impl !UnwindSafe for FocusManager
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more