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.



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

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

Instance Method Details

#addLayout(l) ⇒ Object



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

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

#addWidget(w) ⇒ Object



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

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

#addWidgetAtCenter(*w) ⇒ Object



84
85
86
# File 'lib/mylibs.rb', line 84

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

#addWidgetAtRight(*w) ⇒ Object



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

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

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



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

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

#layoutObject



88
89
90
# File 'lib/mylibs.rb', line 88

def layout
    @layout
end