Enum tuix_internal::state::WindowEvent [−][src]
pub enum WindowEvent {
Show 25 variants
WindowClose,
WindowResize(f32, f32),
MouseDoubleClick(MouseButton),
MouseDown(MouseButton),
MouseUp(MouseButton),
MouseMove(f32, f32),
MouseScroll(f32, f32),
MouseOver,
MouseOut,
MouseEnter,
MouseLeave,
FocusIn,
FocusOut,
CharInput(char),
KeyDown(Code, Option<Key>),
KeyUp(Code, Option<Key>),
SetCursor(CursorIcon),
MouseCaptureEvent,
MouseCaptureOutEvent,
GeometryChanged(GeometryChanged),
Redraw,
Restyle,
Relayout,
Debug(String),
ChildAdded(Entity),
}
Variants
Emitted when a window is closed
Emitted when a window is opened
MouseDoubleClick(MouseButton)
Emitted when a mouse button is double clicked
Tuple Fields of MouseDoubleClick
0: MouseButton
MouseDown(MouseButton)
Emitted when a mouse button is pressed
Tuple Fields of MouseDown
0: MouseButton
MouseUp(MouseButton)
Emitted when a mouse button is released
Tuple Fields of MouseUp
0: MouseButton
Emitted when the mouse cursor is moved
Emitted when the mouse scroll wheel is scrolled
Emitted when the mouse cursor enters the bounding box of an entity
Emitted when the mouse cursor leaves the bounding box of an entity
Emitted when the mouse cursor enters an entity or one of its decendants
Emitted when the mouse cursor leaves an entity or one of its decendants
CharInput(char)
Emitted when a character is typed
Tuple Fields of CharInput
0: char
Emitted when a keyboard key is pressed
Emitted when a keyboard key is released
SetCursor(CursorIcon)
Sets the mouse cursor
Tuple Fields of SetCursor
0: CursorIcon
Emitted when mouse events have been captured
Emitted when mouse events have been released
GeometryChanged(GeometryChanged)
Emitted when an entity changes position or size (TODO: check if this includes margins + borders)
Tuple Fields of GeometryChanged
Requests a redraw of the window contents
Request a restyle
Requests a relayout
Debug(String)
Prints the debug message to the console
Tuple Fields of Debug
0: String
ChildAdded(Entity)
Tuple Fields of ChildAdded
0: Entity
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for WindowEvent
impl Send for WindowEvent
impl Sync for WindowEvent
impl Unpin for WindowEvent
impl UnwindSafe for WindowEvent
Blanket Implementations
Mutably borrows from an owned value. Read more