Class: Shoes::ShapeBase

Inherits:
Basic show all
Defined in:
lib/shoes/basic.rb,
lib/shoes/style.rb

Direct Known Subclasses

Line, Oval, Rect, Shape, Star

Instance Attribute Summary

Attributes inherited from Basic

#args, #cleared, #hided, #initials, #parent, #shows

Attributes included from Mod

#click_proc, #hover_proc, #hovered, #leave_proc, #margin_bottom, #margin_left, #margin_right, #margin_top, #release_proc

Instance Method Summary collapse

Methods inherited from Basic

#clear, #fix_size, #hide, #initialize, #move, #move2, #move3, #positioning, #remove, #show, #toggle

Methods included from Mod

#click, #hover, #leave, #release, #set_margin

Constructor Details

This class inherits a constructor from Shoes::Basic

Instance Method Details

#style(args) ⇒ Object


23
24
25
26
27
28
29
30
# File 'lib/shoes/style.rb', line 23

def style args
  args.each{|k, v| send("#{k}=", v) if self.class.method_defined? "#{k}="}
  real.clear
  @args[:nocontrol] = @args[:noorder] = true
  m = self.class.to_s.downcase[7..-1]
  args = @args.merge args
  @real = @app.send(m, args, &args[:block]).real
end