Sha256: a06016c2263a2a42b40ea37b6dba6cc0c9a90f5dbd7bd979283db4f23a8fb0ef

Contents?: true

Size: 391 Bytes

Versions: 4

Compression:

Stored size: 391 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(area_draw_params) { # 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

4 entries across 4 versions & 1 rubygems

Version Path
glimmer-dsl-libui-0.1.4 examples/basic_area2.rb
glimmer-dsl-libui-0.1.3 examples/basic_area2.rb
glimmer-dsl-libui-0.1.2 examples/basic_area2.rb
glimmer-dsl-libui-0.1.1 examples/basic_area2.rb