Class: Caca::Event::Resize
- Inherits:
-
Caca::Event
- Object
- Caca::Event
- Caca::Event::Resize
- Defined in:
- lib/caca.rb,
ext/caca/caca-event.c
Constant Summary collapse
- TYPE =
INT2FIX(CACA_EVENT_RESIZE)
Instance Attribute Summary collapse
-
#h ⇒ Object
readonly
Returns the value of attribute h.
-
#w ⇒ Object
readonly
Returns the value of attribute w.
Instance Method Summary collapse
-
#initialize(w, h) ⇒ Resize
constructor
A new instance of Resize.
Methods inherited from Caca::Event
Constructor Details
#initialize(w, h) ⇒ Resize
Returns a new instance of Resize.
33 34 35 |
# File 'lib/caca.rb', line 33 def initialize(w, h) @w, @h = w, h end |
Instance Attribute Details
#h ⇒ Object (readonly)
Returns the value of attribute h.
32 33 34 |
# File 'lib/caca.rb', line 32 def h @h end |
#w ⇒ Object (readonly)
Returns the value of attribute w.
32 33 34 |
# File 'lib/caca.rb', line 32 def w @w end |