(Not documented)
# File wxconstructor.rb, line 60 def hbox_sizer(&block) sizer(Wx::BoxSizer, Wx::HORIZONTAL, &block) end
(Not documented)
# File wxconstructor.rb, line 40 def page(label, cls = Wx::Panel, *args, &block) wid = widget(cls, *args, &block) @body.add_page(wid, label) end
(Not documented)
# File wxconstructor.rb, line 46 def sizer(cls, *args, &block) sz = cls.new(*args) self.class.new(sz, self).instance_exec(sz, &block) if block case @body when Wx::Sizer then @body.add(sz, *@location_args) else @body.set_sizer(sz) end return sz end
(Not documented)
# File wxconstructor.rb, line 68 def static_hbox_sizer(label, &block) box = Wx::StaticBox.new(parent_widget, :label => label) sizer(Wx::StaticBoxSizer, box, Wx::HORIZONTAL, &block) end
(Not documented)
# File wxconstructor.rb, line 73 def static_vbox_sizer(label, &block) box = Wx::StaticBox.new(parent_widget, :label => label) sizer(Wx::StaticBoxSizer, box, Wx::VERTICAL, &block) end
(Not documented)
# File wxconstructor.rb, line 79 def stretch_spacer(proportion = @location_args[0]) @body.add_stretch_spacer(proportion) end
(Not documented)
# File wxconstructor.rb, line 64 def vbox_sizer(&block) sizer(Wx::BoxSizer, Wx::VERTICAL, &block) end
(Not documented)
# File wxconstructor.rb, line 27 def widget(cls, *args, &block) wid = cls.new(parent_widget, *args) self.class.new(wid, self).instance_exec(wid, &block) if block case @body when Wx::Sizer @body.add(wid, *@location_args) end return wid end
Disabled; run with $DEBUG to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.