Struct kas::event::ManagerState [−][src]
pub struct ManagerState { /* fields omitted */ }
Expand description
Event manager state
This struct encapsulates window-specific event-handling state and handling.
Most operations are only available via a Manager
handle, though some
are available on this struct.
Besides event handling, this struct also configures widgets.
Some methods are intended only for usage by KAS shells and are hidden from
documentation unless the internal_doc
feature is enabled. Only winit
events are currently supported; changes will be required to generalise this.
Implementations
Public API (around event manager state)
True when accelerator key labels should be shown
(True when Alt is held and no widget has character focus.)
This is a fast check.
Get whether this widget has (char_focus, sel_focus)
char_focus
: implies this widget receives keyboard inputsel_focus
: implies this widget is allowed to select things
Note that char_focus
implies sel_focus
.
Get whether this widget has keyboard navigation focus
Get whether the widget is under the mouse cursor
Check whether the given widget is visually depressed
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ManagerState
impl !Send for ManagerState
impl !Sync for ManagerState
impl Unpin for ManagerState
impl !UnwindSafe for ManagerState
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn cast_trunc(self) -> T
pub fn cast_trunc(self) -> T
Cast to integer, truncating Read more
pub fn cast_nearest(self) -> T
pub fn cast_nearest(self) -> T
Cast to the nearest integer Read more
pub fn cast_floor(self) -> T
pub fn cast_floor(self) -> T
Cast the floor to an integer Read more
pub fn try_cast_trunc(self) -> Result<T, Error>
pub fn try_cast_trunc(self) -> Result<T, Error>
Try converting to integer with truncation Read more
pub fn try_cast_nearest(self) -> Result<T, Error>
pub fn try_cast_nearest(self) -> Result<T, Error>
Try converting to the nearest integer Read more
pub fn try_cast_floor(self) -> Result<T, Error>
pub fn try_cast_floor(self) -> Result<T, Error>
Try converting the floor to an integer Read more
pub fn try_cast_ceil(self) -> Result<T, Error>
pub fn try_cast_ceil(self) -> Result<T, Error>
Try convert the ceiling to an integer Read more