1# This is a bit of a contrived example. 2# Add a row with minimal contents into a box, and align the box contents to the 3# right. If the row didn't have a width, it would just wrap its contents and 4# draw them at the right of the box. If the row has a width then it will start 5# placing elements from the left of the row, hence the contents will be inset 6# from the right hand side of the parent box. 7box { 8 width { 9 expanded_dimension {} 10 } 11 height { 12 expanded_dimension {} 13 } 14 horizontal_alignment { 15 value: HORIZONTAL_ALIGN_END 16 } 17 modifiers { 18 background { 19 color { 20 argb: 0xFFFF0000 21 } 22 } 23 } 24 contents { 25 row { 26 width { 27 linear_dimension { 28 value: 100 29 } 30 } 31 contents { 32 text { 33 text { 34 value: "Hi" 35 } 36 } 37 } 38 contents { 39 text { 40 text { 41 value: "World" 42 } 43 } 44 } 45 } 46 } 47} 48