WoW:XML/AbsDimension
< XML
Jump to navigation
Jump to search
← XML UI ← XML types < AbsDimension
AbsDimension is a type used for defining values that relate to the UI coordinate system. See AbsValue and Value for single value use types. The AbsDimension type can be used for Size, Position and others, and can be found on LayoutFrame, Anchor, and others.
Inheritance[edit]
Inherited by: none, Inherits: none, Defined in: Dimension
Elements[edit]
none
Attributes[edit]
- x (int) - defines a unit value thats horizontally opposed
- y (int) - defines a unit value thats vertically opposed
Summary[edit]
AbsDimension facilitates the 'Layout' mechanism in the WoW UI.
Example[edit]
<Frame name="MyFrame"> <Size> <RelDimension x="0.5" y="0.5"/> </Size> <Frames> <Frame name="$parentChild"> <Size x="200" y="100"/> <Anchors> <Anchor point="TOP"> <Offset> <AbsDimension x="0" y="-22" /> </Offset> </Anchor> </Anchors> </frame> </Frames> </Frame>
This example will align the top of the 'child' frame to the top of 'MyFrame', and then offset that alignment by -22 vertically. Also demonstrates use of Dimension with Size and Anchor, and using Abs, Rel and inline values.