Module: Layoutable

Included in:
KDE::Dialog, KDE::TabWidget, Qt::Dialog, Qt::TabWidget, Qt::Widget
Defined in:
lib/rui/toolkits/qtbase/qt.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#main_layoutObject

Returns the value of attribute main_layout.



499
500
501
# File 'lib/rui/toolkits/qtbase/qt.rb', line 499

def main_layout
  @main_layout
end

#ownerObject



519
520
521
# File 'lib/rui/toolkits/qtbase/qt.rb', line 519

def owner
  @owner || self
end

Instance Method Details

#add_accessor(name, result) ⇒ Object



509
510
511
512
513
# File 'lib/rui/toolkits/qtbase/qt.rb', line 509

def add_accessor(name, result)
  owner.metaclass_eval do
    define_method(name) { result }
  end
end

#add_layout(layout) ⇒ Object



501
502
503
504
# File 'lib/rui/toolkits/qtbase/qt.rb', line 501

def add_layout(layout)
  self.layout = layout
  owner.main_layout = layout
end

#add_widget(w) ⇒ Object



506
507
# File 'lib/rui/toolkits/qtbase/qt.rb', line 506

def add_widget(w)
end

#buddiesObject



515
516
517
# File 'lib/rui/toolkits/qtbase/qt.rb', line 515

def buddies
  @buddies ||= { }
end