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.



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