struct

Egui::Event

Inherits Struct < Value < Object

Constructors

dropped_files(paths : Array(String)) : Event
Source
key_pressed(key : KeyCode, modifiers : Modifiers = Modifiers.new) : Event
Source
key_released(key : KeyCode, modifiers : Modifiers = Modifiers.new) : Event
Source
new(type : Type, pos : Pos2 | Nil = nil, button : PointerButton = :primary, scroll : Vec2 = Vec2.zero, key : KeyCode = :escape, text : String = "", modifiers : Modifiers = Modifiers.new, paths : Array(String) = [] of String)
Source
pointer_moved(pos : Pos2) : Event
Source
pointer_pressed(pos : Pos2, button : PointerButton = :primary) : Event
Source
pointer_released(pos : Pos2, button : PointerButton = :primary) : Event
Source
scroll(delta : Vec2) : Event
Source
text_input(text : String) : Event
Source

Instance methods

button
Source
modifiers
Source
paths

Absolute paths of the files dropped onto the window this frame (Type::DroppedFiles only).

Source
scroll
Source
text
Source
type
Source

Nested types