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.
759 760 761 762 763 764 |
# File 'lib/cosmos/gui/qt.rb', line 759 def initialize(num_columns) super(nil) @num_columns = num_columns @row = 0 @col = 0 end |
Instance Method Details
#addLayout(layout) ⇒ Object
771 772 773 774 |
# File 'lib/cosmos/gui/qt.rb', line 771 def addLayout(layout) super(layout, @row, @col) increment_row_col() end |
#addWidget(widget) ⇒ Object
766 767 768 769 |
# File 'lib/cosmos/gui/qt.rb', line 766 def addWidget() super(, @row, @col) increment_row_col() end |