Method: Shoes::Swt::SwtButton#initialize

Defined in:
shoes-swt/lib/shoes/swt/swt_button.rb

#initialize(dsl, app, type) {|@real| ... } ⇒ SwtButton

Returns a new instance of SwtButton.

Yields:



14
15
16
17
18
19
20
21
22
23
24
# File 'shoes-swt/lib/shoes/swt/swt_button.rb', line 14

def initialize(dsl, app, type)
  @dsl = dsl
  @app = app

  @type = type
  @real = ::Swt::Widgets::Button.new(@app.real, @type)

  yield(@real) if block_given?

  set_size
end