Class: Reflex::DrawEvent

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

Instance Method Summary collapse

Instance Method Details

#inspectObject



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

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

#paint(&block) ⇒ Object



10
11
12
# File 'lib/reflex/draw_event.rb', line 10

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