Skip to content

Positioned

Jeff Olajos edited this page Oct 21, 2024 · 32 revisions

**<POSITIONED/> : ViewableWidget

The <POSITIONED/>, <POS/> or <POSITION/> widget is used to orient its children within the parent <STACK/>.

Restrictions:

  • Can only occur as a direct child of <STACK/>. Ignored otherwise.

Attributes

Name Type Default Description Req
top int null The number of pixels from the top of the STACK
left int null The number of pixels from the left of the STACK
right int null The number of pixels from the right of the STACK
bottom int null The number of pixels from the bottom of the STACK
xoffset int null The x-offset in pixels from the center of the STACK
yoffset int null The y-offset in pixels from the center of the STACK
depth int null Override the render order of the widget in the stack.
draggable bool false When specified, the child can be repositioned by dragging the content. To access the coordinates and size, refer to bindables viewx, viewy, viewwidth and viewheight

a depth="2" will render before a depth="3" regardless of the order in the template effectively layering the widget with depth="3" overtop.

Clone this wiki locally