Class: NBPanel
- Inherits:
-
Wx::Panel
- Object
- Wx::Panel
- NBPanel
- Defined in:
- lib/MINT-debugger/debugger2.rb
Instance Attribute Summary collapse
-
#win ⇒ Object
Returns the value of attribute win.
Instance Method Summary collapse
-
#initialize(parent) ⇒ NBPanel
constructor
A new instance of NBPanel.
- #on_size(event) ⇒ Object
Constructor Details
#initialize(parent) ⇒ NBPanel
Returns a new instance of NBPanel.
10 11 12 13 14 |
# File 'lib/MINT-debugger/debugger2.rb', line 10 def initialize(parent) super(parent, -1) evt_size {|event| on_size(event)} @win end |
Instance Attribute Details
#win ⇒ Object
Returns the value of attribute win.
9 10 11 |
# File 'lib/MINT-debugger/debugger2.rb', line 9 def win @win end |
Instance Method Details
#on_size(event) ⇒ Object
16 17 18 19 |
# File 'lib/MINT-debugger/debugger2.rb', line 16 def on_size(event) win.set_size(event.get_size()) win.notfifyNewSize(event.get_size()) end |