Class: Shoes::Swt::ShellControlListener

Inherits:
Object
  • Object
show all
Defined in:
shoes-swt/lib/shoes/swt/app.rb

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ ShellControlListener

Returns a new instance of ShellControlListener.



340
341
342
# File 'shoes-swt/lib/shoes/swt/app.rb', line 340

def initialize(app)
  @app = app
end

Instance Method Details

#controlMoved(_e) ⇒ Object



353
354
# File 'shoes-swt/lib/shoes/swt/app.rb', line 353

def controlMoved(_e)
end

#controlResized(event) ⇒ Object



344
345
346
347
348
349
350
351
# File 'shoes-swt/lib/shoes/swt/app.rb', line 344

def controlResized(event)
  shell = event.widget
  width  = shell.client_area.width
  height = shell.client_area.height
  @app.real.setSize width, height
  @app.real.layout
  @app.dsl.trigger_resize_callbacks
end