text.form 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. form textTest
  2. {
  3. height = 100%
  4. width = 240
  5. layout = LAYOUT_VERTICAL
  6. label topLabel
  7. {
  8. text = Text
  9. fontSize = 22
  10. }
  11. button fontButton
  12. {
  13. width = 100%
  14. height = 50
  15. text = Font (arial)
  16. }
  17. button wrapButton : fontButton
  18. {
  19. text = Word Wrap (On)
  20. }
  21. button clipRectButton : fontButton
  22. {
  23. text = Clipping (On)
  24. }
  25. button reverseButton : fontButton
  26. {
  27. text = Reverse Text (Off)
  28. }
  29. button switchClipRegionButton : fontButton
  30. {
  31. text = Clip Region (Viewport)
  32. }
  33. button simpleAdvancedButton : fontButton
  34. {
  35. text = Font API (Advanced)
  36. }
  37. label
  38. {
  39. size = 10,10
  40. }
  41. label sizeLabel : topLabel
  42. {
  43. text = Size (18)
  44. }
  45. container size
  46. {
  47. width = 100%
  48. button smallerButton
  49. {
  50. width = 50
  51. height = 50
  52. text = -
  53. }
  54. button biggerButton : smallerButton
  55. {
  56. x = 50
  57. text = +
  58. }
  59. }
  60. label
  61. {
  62. size = 10,10
  63. }
  64. label alignmentLabel : topLabel
  65. {
  66. text = Align (Top-left)
  67. }
  68. container alignments
  69. {
  70. width = 100%
  71. layout = LAYOUT_FLOW
  72. button topLeftButton
  73. {
  74. size = 60, 60
  75. text =
  76. fontSize = 20
  77. }
  78. button topCenterButton : topLeftButton
  79. {
  80. text = ^
  81. }
  82. button topRightButton : topLeftButton
  83. {
  84. text =
  85. }
  86. button centerLeftButton : topLeftButton
  87. {
  88. text = <
  89. }
  90. button centerButton : topLeftButton
  91. {
  92. text = .
  93. }
  94. button centerRightButton : topLeftButton
  95. {
  96. text = >
  97. }
  98. button bottomLeftButton : topLeftButton
  99. {
  100. text =
  101. }
  102. button bottomCenterButton : topLeftButton
  103. {
  104. text = v
  105. }
  106. button bottomRightButton : topLeftButton
  107. {
  108. text =
  109. }
  110. }
  111. }