Class: NBPanel

Inherits:
Wx::Panel
  • Object
show all
Defined in:
lib/MINT-debugger/debugger2.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#winObject

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