Enum tuix::WindowEvent[]

pub enum WindowEvent {
Show 25 variants WindowClose, WindowResize(f32f32), MouseDoubleClick(MouseButton), MouseDown(MouseButton), MouseUp(MouseButton), MouseMove(f32f32), MouseScroll(f32f32), MouseOver, MouseOut, MouseEnter, MouseLeave, FocusIn, FocusOut, CharInput(char), KeyDown(CodeOption<Key>), KeyUp(CodeOption<Key>), SetCursor(CursorIcon), MouseCaptureEvent, MouseCaptureOutEvent, GeometryChanged(GeometryChanged), Redraw, Restyle, Relayout, Debug(String), ChildAdded(Entity),
}

Variants

WindowClose

Emitted when a window is closed

WindowResize(f32f32)

Emitted when a window is opened

Tuple Fields of WindowResize

0: f321: f32
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
MouseMove(f32f32)

Emitted when the mouse cursor is moved

Tuple Fields of MouseMove

0: f321: f32
MouseScroll(f32f32)

Emitted when the mouse scroll wheel is scrolled

Tuple Fields of MouseScroll

0: f321: f32
MouseOver

Emitted when the mouse cursor enters the bounding box of an entity

MouseOut

Emitted when the mouse cursor leaves the bounding box of an entity

MouseEnter

Emitted when the mouse cursor enters an entity or one of its decendants

MouseLeave

Emitted when the mouse cursor leaves an entity or one of its decendants

FocusIn
FocusOut
CharInput(char)

Emitted when a character is typed

Tuple Fields of CharInput

0: char
KeyDown(CodeOption<Key>)

Emitted when a keyboard key is pressed

Tuple Fields of KeyDown

0: Code1: Option<Key>
KeyUp(CodeOption<Key>)

Emitted when a keyboard key is released

Tuple Fields of KeyUp

0: Code1: Option<Key>
SetCursor(CursorIcon)

Sets the mouse cursor

Tuple Fields of SetCursor

0: CursorIcon
MouseCaptureEvent

Emitted when mouse events have been captured

MouseCaptureOutEvent

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

0: GeometryChanged
Redraw

Requests a redraw of the window contents

Restyle

Request a restyle

Relayout

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.