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
-
#main_layout ⇒ Object
Returns the value of attribute main_layout.
- #owner ⇒ Object
Instance Method Summary collapse
- #add_accessor(name, result) ⇒ Object
- #add_layout(layout) ⇒ Object
- #add_widget(w) ⇒ Object
- #buddies ⇒ Object
Instance Attribute Details
#main_layout ⇒ Object
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 |
#owner ⇒ Object
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. 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 (w) end |
#buddies ⇒ Object
515 516 517 |
# File 'lib/rui/toolkits/qtbase/qt.rb', line 515 def buddies @buddies ||= { } end |