Sha256: 4ecaec32f48539a5bbe15b7adde030ae6edda17b1400d7994f4c9dd6d59ead28

Contents?: true

Size: 465 Bytes

Versions: 5

Compression:

Stored size: 465 Bytes

Contents

#!/usr/bin/env ruby
require 'fxruby-enhancement'

include Fox
include Fox::Enhancement::Mapper

fx_app :app do
  app_name "Hello"
  vendor_name "Example"

  fx_main_window(:main) {
    title "Hello"
    opts DECOR_ALL

    fx_button {
      text "&Hello, World"
      selector FXApp::ID_QUIT
      target refc(:app)
    }

    instance { |w|
      w.show PLACEMENT_SCREEN
    }
  }
end

# alias for fox_component is fxc
fox_component :app do |app|
  app.launch
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fxruby-enhancement-0.2.3 examples/hello.rb
fxruby-enhancement-0.2.2 examples/hello.rb
fxruby-enhancement-0.2.1 examples/hello.rb
fxruby-enhancement-0.2.0 examples/hello.rb
fxruby-enhancement-0.1.0 examples/hello.rb