Class: RUI::GuiBuilder::CheckBox
- Defined in:
- lib/rui/toolkits/qtbase/gui_builder.rb
Overview
A checkbox.
The checked property specifies whether the checkbox is checked.
Instance Method Summary collapse
Methods inherited from Widget
Methods included from RUI::GuiBuilder
build, #build, #builder, #setup_widget
Instance Method Details
#factory(desc) ⇒ Object
345 346 347 348 349 350 351 352 |
# File 'lib/rui/toolkits/qtbase/gui_builder.rb', line 345 def factory(desc) Factory.new do |parent| check = Qt::CheckBox.new(parent) check.text = desc.opts[:text].to_s check.checked = desc.opts[:checked] check end end |