Class: Qt::MatrixLayout
- Inherits:
-
GridLayout
- Object
- GridLayout
- Qt::MatrixLayout
- Defined in:
- lib/cosmos/gui/qt.rb
Instance Method Summary collapse
- #addLayout(layout) ⇒ Object
- #addWidget(widget) ⇒ Object
-
#initialize(num_columns) ⇒ MatrixLayout
constructor
A new instance of MatrixLayout.
Constructor Details
#initialize(num_columns) ⇒ MatrixLayout
Returns a new instance of MatrixLayout.
716 717 718 719 720 721 |
# File 'lib/cosmos/gui/qt.rb', line 716 def initialize(num_columns) super(nil) @num_columns = num_columns @row = 0 @col = 0 end |
Instance Method Details
#addLayout(layout) ⇒ Object
728 729 730 731 |
# File 'lib/cosmos/gui/qt.rb', line 728 def addLayout(layout) super(layout, @row, @col) increment_row_col() end |
#addWidget(widget) ⇒ Object
723 724 725 726 |
# File 'lib/cosmos/gui/qt.rb', line 723 def addWidget() super(, @row, @col) increment_row_col() end |