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.



85
86
87
88
89
# File 'lib/mylibs.rb', line 85

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

Instance Method Details

#addLayout(l) ⇒ Object



91
92
93
# File 'lib/mylibs.rb', line 91

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

#addWidget(w) ⇒ Object



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

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

#addWidgets(*w) ⇒ Object



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

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

#layoutObject



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

def layout
    @layout
end