0.45+9.0.900
Rhombus
Keyboard and mouse events are reported to a Canvas
through its ~key and ~mouse callbacks, or to a
WindowChildView in general through a
~sub_key or ~sub_mouse callback in a
WindowCallbacks (that is provided to the view’s constructor as
a ~window_callbacks argument).
Represents a mouse event.
Checks whether
MouseEvent.downs(ev) would include
sym,
potentially avoiding the construction of a set internally.
Reports a derived property of the mouse event.
|
class gui.KeyEvent(): | constructor ( | code :: (Char || KeyEvent.Key), | ~release_code: r_code :: (Char || KeyEvent.Key) = #'press, | ~other_caps_code: oc_code :: maybe(Char || KeyEvent.Key) = #false, | ~other_shift_code: os_code :: maybe(Char || KeyEvent.Key) = #false, | ~other_altgr_code: oa_code :: maybe(Char || KeyEvent.Key) = #false, | ~other_shift_altgr_code: osa_code :: maybe(Char || KeyEvent.Key) = #false, | ~downs: downs :: Set.of(KeyEvent.Down) = Set{}, | ~x: x :: Int = 0, | ~y: y :: Int = 0, | ~timestamp: timestamp :: Int = 0, | ~use_altgr: use_altgr :: Any = #true, | ) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Represents a keyboard event.
Checks whether
KeyEvent.downs(ev) would include
sym,
potentially avoiding the construction of a set internally.
General category for a mouse event.
Modifier keys that can be down during a mouse event.
Mouse buttons that can be down during a mouse event.
Modifier keys that can be down during a key event.
Keys that can be pressed or released for a key event.