Skip to content

UI.Area

Name - Description Default Type
<input> The value that will be passed to the Contents shards of the area. Any
<output> The output of this shard will be its input. Any
Position Absolute position; or when anchor is set, relative offset. None Float2&Float2
Anchor Corner or center of the screen. None Anchor
Contents The UI contents. None Shard[ Shard ]

Places UI element at a specific position.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
(GFX.MainWindow
 :Contents
 (->
  (Setup
   (GFX.DrawQueue) >= .ui-draw-queue
   (GFX.UIPass .ui-draw-queue) >> .render-steps)
  (UI
   .ui-draw-queue
   (->
    (UI.Area
     :Anchor Anchor.TopLeft
     :Contents
     (->
      "TopLeft" (UI.Label)))
    (UI.Area
     :Anchor Anchor.Top
     :Contents
     (->
      "Top" (UI.Label)))
    (UI.Area
     :Anchor Anchor.TopRight
     :Contents
     (->
      "TopRight" (UI.Label :Wrap false)))
    (UI.Area
     :Anchor Anchor.Left
     :Contents
     (->
      "Left" (UI.Label)))
    (UI.Area
     :Anchor Anchor.Center
     :Contents
     (->
      "Center" (UI.Label)))
    (UI.Area
     :Anchor Anchor.Right
     :Contents
     (->
      "Right" (UI.Label)))
    (UI.Area
     :Anchor Anchor.BottomLeft
     :Contents
     (->
      "BottomLeft" (UI.Label)))
    (UI.Area
     :Anchor Anchor.Bottom
     :Contents
     (->
      "Bottom" (UI.Label)))
    (UI.Area
     :Anchor Anchor.BottomRight
     :Contents
     (->
      "BottomRight" (UI.Label :Wrap false)))))

  (GFX.Render :Steps .render-steps)))