Class: RUI::GuiBuilder::Button

Inherits:
Widget show all
Defined in:
lib/rui/toolkits/qtbase/gui_builder.rb

Overview

A push button.

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



359
360
361
362
363
364
# File 'lib/rui/toolkits/qtbase/gui_builder.rb', line 359

def factory(desc)
  Factory.new do |parent|
    KDE::PushButton.new(KDE::Icon.from_theme(desc.opts[:icon]), 
                        desc.opts[:text], parent)
  end
end