Class: Caca::Event::Resize

Inherits:
Caca::Event show all
Defined in:
lib/caca.rb,
ext/caca/caca-event.c

Constant Summary collapse

TYPE =
INT2FIX(CACA_EVENT_RESIZE)

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Caca::Event

#quit?, to_i, |

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

#hObject (readonly)

Returns the value of attribute h.



32
33
34
# File 'lib/caca.rb', line 32

def h
  @h
end

#wObject (readonly)

Returns the value of attribute w.



32
33
34
# File 'lib/caca.rb', line 32

def w
  @w
end