Class: Reflex::DrawEvent

Inherits:
Event
  • Object
show all
Defined in:
lib/reflex/draw_event.rb

Instance Method Summary collapse

Instance Method Details

#inspectObject



17
18
19
# File 'lib/reflex/draw_event.rb', line 17

def inspect ()
  "#<Reflex::DrawEvent painter:#{painter} bounds:#{bounds} dt:#{dt} fps:#{fps}>"
end

#paint(&block) ⇒ Object



13
14
15
# File 'lib/reflex/draw_event.rb', line 13

def paint (&block)
  Xot::BlockUtil.instance_eval_or_block_call painter, &block if block
end