Class: VBoxLayoutWidget

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

Instance Method Summary collapse

Constructor Details

#initialize(parent = nil) ⇒ VBoxLayoutWidget

Returns a new instance of VBoxLayoutWidget.



52
53
54
55
56
# File 'lib/mylibs.rb', line 52

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

Instance Method Details

#addLayout(l) ⇒ Object



58
59
60
# File 'lib/mylibs.rb', line 58

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

#addWidget(w) ⇒ Object



62
63
64
# File 'lib/mylibs.rb', line 62

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

#addWidgetAtCenter(*w) ⇒ Object



75
76
77
# File 'lib/mylibs.rb', line 75

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

#addWidgetAtRight(*w) ⇒ Object



71
72
73
# File 'lib/mylibs.rb', line 71

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

#addWidgetWithNilStretch(*w) ⇒ Object Also known as: addWidgets



66
67
68
# File 'lib/mylibs.rb', line 66

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

#layoutObject



79
80
81
# File 'lib/mylibs.rb', line 79

def layout
    @layout
end