On this page:
Mouse  Event
Mouse  Event.kind
Mouse  Event.down
Mouse  Event.x
Mouse  Event.y
Mouse  Event.timestamp
Mouse  Event.is_  down
Mouse  Event.is_  button_  changed
Mouse  Event.is_  button_  press
Mouse  Event.is_  button_  release
Mouse  Event.is_  dragging
Key  Event
Key  Event.code
Key  Event.release_  code
Key  Event.other_  caps_  code
Key  Event.other_  shift_  code
Key  Event.other_  altgr_  code
Key  Event.other_  shift_  altgr_  code
Key  Event.down
Key  Event.x
Key  Event.y
Key  Event.timestamp
Key  Event.is_  down
Mouse  Event.Kind
Mouse  Event.Down  Symbol
Mouse  Event.Button
Key  Event.Down  Symbol
Key  Event.Key
8.12

8 Events🔗ℹ

class

class MouseEvent():

  constructor (

    ~kind: kind :: MouseEvent.Kind = #'motion,

    ~down: down :: Set.of(MouseEvent.DownSymbol) = Set{},

    ~x: x :: Int = 0,

    ~y: y :: Int = 0,

    ~timestamp: timestamp :: Int = 0,

  )

 

property

property (ev :: MouseEvent).kind

  :: MouseEvent.Kind

 

property

property (ev :: MouseEvent).down

  :: Set.of(MouseEvent.DownSymbol)

 

property

property (ev :: MouseEvent).x :: Int

 

property

property (ev :: MouseEvent).y :: Int

 

property

property (ev :: MouseEvent).timestamp :: Int

Represents a mouse event.

Checks whether MouseEvent.down(ev) would include sym, potentially avoiding the construction of a set internally.

Reports a derived property of the mouse event.

class

class 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,

    ~down: down :: Set.of(KeyEvent.DownSymbol) = Set{},

    ~x: x :: Int = 0,

    ~y: y :: Int = 0,

    ~timestamp: timestamp :: Int = 0,

    ~use_altgr: use_altgr :: Any = #true,

  )

 

property

property (ev :: KeyEvent).code

  :: (Char || KeyEvent.Key)

 

property

property (ev :: KeyEvent).release_code

  :: (Char || KeyEvent.Key)

 

property

property (ev :: KeyEvent).other_caps_code

  :: maybe(Char || KeyEvent.Key)

 

property

property (ev :: KeyEvent).other_shift_code

  :: maybe(Char || KeyEvent.Key)

 

property

property (ev :: KeyEvent).other_altgr_code

  :: maybe(Char || KeyEvent.Key)

 

property

property (ev :: KeyEvent).other_shift_altgr_code

  :: maybe(Char || KeyEvent.Key)

 

property

property (ev :: KeyEvent).down

  :: Set.of(KeyEvent.DownSymbol)

 

property

property (ev :: KeyEvent).x :: Int

 

property

property (ev :: KeyEvent).y :: Int

 

property

property (ev :: KeyEvent).timestamp :: Int

Represents a keyboard event.

Checks whether KeyEvent.down(ev) would include sym, potentially avoiding the construction of a set internally.

annotation

MouseEvent.Kind

Satisfied by the following symbols:

Satisfied by the following symbols:

Satisfied by the following symbols:

Satisfied by the following symbols:

annotation

KeyEvent.Key

Satisfied by the following symbols: