Sha256: 6fc5f34ae48082cb2e8fa6485323ef753075d18bacabdefb40c55e70d80c907d

Contents?: true

Size: 1.23 KB

Versions: 14

Compression:

Stored size: 1.23 KB

Contents

# Used in the layouts.rb sample in conjunction with custom-layout2.yml
frame:
  x: 38
  y: 38
  width: 750
  height: 1050
  radius: 25
title:
  x: 125
  y: 50
  width: 625
  height: 100
  align: center #strings also work for most options
  valign: !ruby/symbol middle #yaml also support symbols, see http://www.yaml.org/YAML_for_ruby.html#symbols
subtitle:
  x: 150
  y: 150
  width: 575
  height: 60
  align: center 
  valign: middle
icon:
  width: 125
  height: 125
  y: 250
icon_left:
  extends: icon
  x: 150
icon_middle:
  extends: icon
  x: 350
  y: 400  #overrides the y inherited from icon
icon_right:
  extends: icon
  x: 550

# Squib also supports its own merging-and-modify feature
# Called "extends"
# Any layout can extend another layout, so long as it's not a circle
# Order doesn't matter since it's done after YAML procesing
# And, if the entry overrides
bonus: #becomes our bonus rectangle
  x: 250
  y: 600
  width:  300
  height: 200
  radius: 32
bonus_inner:
  extends: bonus
  x: += 10 # i.e. 260
  y: += 10 # i.e. 610
  width: -= 20  # i.e. 180
  height: -= 20 # i.e. 180
  radius: -= 8
bonus_text:
  extends: bonus_inner
  x: +=10
  y: +=10
  width: -= 20
  height: -= 20

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
squib-0.12.0 samples/layouts/custom-layout.yml
squib-0.11.0 samples/layouts/custom-layout.yml
squib-0.10.0 samples/custom-layout.yml
squib-0.9.0 samples/custom-layout.yml
squib-0.8.0 samples/custom-layout.yml
squib-0.7.0 samples/custom-layout.yml
squib-0.6.0 samples/custom-layout.yml
squib-0.5.1 samples/custom-layout.yml
squib-0.5.0 samples/custom-layout.yml
squib-0.4.0 samples/custom-layout.yml
squib-0.3.0 samples/custom-layout.yml
squib-0.2.0 samples/custom-layout.yml
squib-0.1.0 samples/custom-layout.yml
squib-0.0.6 samples/custom-layout.yml