Class: RUI::GuiBuilder::CheckBox

Inherits:
Widget show all
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

#create_element

Methods included from RUI::GuiBuilder

build, #build, #builder, #setup_widget

Instance Method Details

#factory(desc) ⇒ Object



322
323
324
325
326
327
328
329
# File 'lib/rui/toolkits/qtbase/gui_builder.rb', line 322

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