Class: Qt::MatrixLayout

Inherits:
GridLayout show all
Defined in:
lib/cosmos/gui/qt.rb

Instance Method Summary collapse

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(widget)
  super(widget, @row, @col)
  increment_row_col()
end