Class: HBoxLayoutWidget

Inherits:
Qt::Widget
  • Object
show all
Defined in:
lib/mylibs.rb

Instance Method Summary collapse

Constructor Details

#initialize(parent = nil) ⇒ HBoxLayoutWidget

Returns a new instance of HBoxLayoutWidget.



94
95
96
97
98
# File 'lib/mylibs.rb', line 94

def initialize(parent=nil)
    @layout = Qt::HBoxLayout.new
    super(parent)
    setLayout(@layout)
end

Instance Method Details

#addLayout(l) ⇒ Object



100
101
102
# File 'lib/mylibs.rb', line 100

def addLayout(l)
    @layout.addLayout(l)
end

#addWidget(w) ⇒ Object



104
105
106
# File 'lib/mylibs.rb', line 104

def addWidget(w)
    @layout.addWidget(w)
end

#addWidgets(*w) ⇒ Object



108
109
110
# File 'lib/mylibs.rb', line 108

def addWidgets(*w)
    @layout.addWidgets(*w)
end

#layoutObject



112
113
114
# File 'lib/mylibs.rb', line 112

def layout
    @layout
end