module Rubyvis def self.Layout Rubyvis::Layout end class Layout < Rubyvis::Panel @properties=Panel.properties.dup def layout_build_properties(s,properties) mark_build_properties(s,properties) end def layout_build_implied(s) panel_build_implied(s) end def self.attr_accessor_dsl(*attr) attr.each do |sym| if sym.is_a? Array name,func=sym else name=sym func=nil end @properties[name]=true self.property_method(name,false, func, self) define_method(name.to_s+"=") {|v| self.send(name,v) } end end end end require 'rubyvis/layout/stack'