pub enum Event {
FocusStep {
forward: bool,
},
FocusChanged(Option<ViewId>),
AppearanceChanged,
Action(ViewId),
Redraw,
}Expand description
A callback from AppKit for the host framework (see set_event_sink).
Variants§
FocusStep
Tab (forward) or Shift-Tab was pressed and belongs to the host’s
focus order (which spans host widgets and native views).
FocusChanged(Option<ViewId>)
Keyboard focus moved into a mounted native view (Some) or out of all
of them (None), e.g. after a click.
AppearanceChanged
The system appearance or accent colour changed.
Action(ViewId)
A native control registered with crate::set_action fired.
Redraw
The host should draw another frame (see crate::request_redraw).
Trait Implementations§
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Forget for Event
impl Freeze for Event
impl Move for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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