Class: Caca::Event::Key
- Inherits:
-
Caca::Event
- Object
- Caca::Event
- Caca::Event::Key
- Defined in:
- lib/caca.rb,
ext/caca/caca-event.c
Defined Under Namespace
Constant Summary collapse
- TYPE =
INT2FIX(CACA_EVENT_KEY_PRESS| CACA_EVENT_KEY_RELEASE)
Instance Attribute Summary collapse
-
#ch ⇒ Object
readonly
Returns the value of attribute ch.
-
#utf32 ⇒ Object
readonly
Returns the value of attribute utf32.
-
#utf8 ⇒ Object
readonly
Returns the value of attribute utf8.
Instance Method Summary collapse
-
#initialize(ch, utf32, utf8) ⇒ Key
constructor
A new instance of Key.
Methods inherited from Caca::Event
Constructor Details
#initialize(ch, utf32, utf8) ⇒ Key
Returns a new instance of Key.
21 22 23 |
# File 'lib/caca.rb', line 21 def initialize(ch, utf32, utf8) @ch, @utf32, @utf8 = ch, utf32, utf8 end |
Instance Attribute Details
#ch ⇒ Object (readonly)
Returns the value of attribute ch.
20 21 22 |
# File 'lib/caca.rb', line 20 def ch @ch end |
#utf32 ⇒ Object (readonly)
Returns the value of attribute utf32.
20 21 22 |
# File 'lib/caca.rb', line 20 def utf32 @utf32 end |
#utf8 ⇒ Object (readonly)
Returns the value of attribute utf8.
20 21 22 |
# File 'lib/caca.rb', line 20 def utf8 @utf8 end |