Sha256: 27672dd608b0b70b1534059be8318eacac16ceaa6277d386347bf81f057a356f
Contents?: true
Size: 485 Bytes
Versions: 1
Compression:
Stored size: 485 Bytes
Contents
class Shoes module Swt class Button < SwtButton # Create a button # # @param [Shoes::Button] dsl The Shoes DSL button this represents # @param [::Swt::Widgets::Composite] parent The parent element of this button # @param [Proc] blk The block of code to call when this button is activated def initialize(dsl, app) super(dsl, app, ::Swt::SWT::PUSH) do |button| button.set_text @dsl.text end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shoes-swt-4.0.0.pre5 | lib/shoes/swt/button.rb |