class Keybindings

Defined in:

crab/common/frontend/widgets/keybindings.cr

Constant Summary

BUTTON_SIZE = ImGui::ImVec2.new(32, 0)

Constructors

Instance Method Summary

Instance methods inherited from class Resolvable

apply : Nil apply, render : Nil render, reset : Nil reset, visible : Bool visible, visible=(visible : Bool) visible=

Constructor Detail

def self.new(config : Config) #

[View source]

Instance Method Detail

def []?(*args, **options) #

[View source]
def []?(*args, **options, &) #

[View source]
def apply : Nil #
Description copied from class Resolvable

Called to indicate the selection should be written back to the config.


[View source]
def key_released(keycode : LibSDL::Keycode) : Nil #

[View source]
def render : Nil #
Description copied from class Resolvable

Called once per frame for rendering the widget.


[View source]
def reset : Nil #
Description copied from class Resolvable

Called to indicate the widget should be reset.


[View source]
def wants_input? : Bool #

[View source]