Class: HudWidget
- Inherits:
-
Qt::Widget
- Object
- Qt::Widget
- HudWidget
- Defined in:
- lib/hud-impl.rb
Overview
Class MainDlg ############################################
Instance Attribute Summary collapse
-
#w ⇒ Object
readonly
Returns the value of attribute w.
Instance Method Summary collapse
-
#initialize(parent = nil) ⇒ HudWidget
constructor
A new instance of HudWidget.
- #pBexit_clicked ⇒ Object
Constructor Details
#initialize(parent = nil) ⇒ HudWidget
Returns a new instance of HudWidget.
7 8 9 10 11 12 13 |
# File 'lib/hud-impl.rb', line 7 def initialize parent=nil super @w=Ui::HudWidget.new @w.setupUi(self) @parent=parent end |
Instance Attribute Details
#w ⇒ Object (readonly)
Returns the value of attribute w.
5 6 7 |
# File 'lib/hud-impl.rb', line 5 def w @w end |
Instance Method Details
#pBexit_clicked ⇒ Object
15 16 17 18 |
# File 'lib/hud-impl.rb', line 15 def pBexit_clicked() p @w.pBexit.text @parent.close end |