Sha256: adb73e7f107e183a7cf36f0dae91d7aedb6038966ed5f5b40a817b3b912d880c

Contents?: true

Size: 373 Bytes

Versions: 36

Compression:

Stored size: 373 Bytes

Contents

require 'glimmer-dsl-libui'

include Glimmer

window('Basic Area', 400, 400) {
  margined true
  
  vertical_box {
    area {
      on_draw do |area_draw_params|
        path { # a dynamic path is added semi-declaratively inside on_draw block
          rectangle(0, 0, 400, 400)
          
          fill r: 102, g: 102, b: 204, a: 1.0
        }
      end
    }
  }
}.show

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
glimmer-dsl-libui-0.3.3 examples/basic_area2.rb
glimmer-dsl-libui-0.3.2 examples/basic_area2.rb
glimmer-dsl-libui-0.3.1 examples/basic_area2.rb
glimmer-dsl-libui-0.3.0 examples/basic_area2.rb
glimmer-dsl-libui-0.2.24 examples/basic_area2.rb
glimmer-dsl-libui-0.2.23 examples/basic_area2.rb
glimmer-dsl-libui-0.2.22 examples/basic_area2.rb
glimmer-dsl-libui-0.2.21 examples/basic_area2.rb
glimmer-dsl-libui-0.2.20 examples/basic_area2.rb
glimmer-dsl-libui-0.2.19 examples/basic_area2.rb
glimmer-dsl-libui-0.2.18 examples/basic_area2.rb
glimmer-dsl-libui-0.2.17 examples/basic_area2.rb
glimmer-dsl-libui-0.2.16 examples/basic_area2.rb
glimmer-dsl-libui-0.2.15 examples/basic_area2.rb
glimmer-dsl-libui-0.2.14 examples/basic_area2.rb
glimmer-dsl-libui-0.2.13 examples/basic_area2.rb
glimmer-dsl-libui-0.2.12 examples/basic_area2.rb
glimmer-dsl-libui-0.2.11 examples/basic_area2.rb
glimmer-dsl-libui-0.2.10 examples/basic_area2.rb
glimmer-dsl-libui-0.2.9 examples/basic_area2.rb