struct

Egui::HotkeyAction

Inherits Struct < Value < Object

The semantic event a hotkey (or a menu click) fires. Apps define their actions as constants and poll them with Context#consume_action — one place handles the action no matter whether it came from a key press or a menu.

Constructors

new(name : String)
Source

Instance methods

==(other : HotkeyAction) : Bool
Source
hash(hasher)

See Object#hash(hasher)

Source
name
Source
to_s

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.

Source