Sha256: 1c9f4aa9083719cd8771bc1f6db2f1d0981d2eb4810b054c9b7e95a545f5216a

Contents?: true

Size: 506 Bytes

Versions: 3

Compression:

Stored size: 506 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
      
      instance { |b|
        b.target = ref(: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

3 entries across 3 versions & 1 rubygems

Version Path
fxruby-enhancement-0.0.4 examples/hello.rb
fxruby-enhancement-0.0.3 examples/hello.rb
fxruby-enhancement-0.0.2 examples/hello.rb