WoW:XML/RelDimension
← XML UI ← XML types < RelDimension
RelDimension is used for defining values that relate to the UI coordinate system. See the RelValue and Value for value pair use types. The RelDimension type can be used for Size, Position and others, and can be found on LayoutFrame, Anchor, and others.
InheritanceEdit
Inherited by: none, Inherits: none, Defined in: Dimension
ElementsEdit
none
AttributesEdit
- x (float) - defines a scalar value thats horizontally opposed
- y (float) - defines a scalar value thats vertically opposed
SummaryEdit
RelDimension facilitates the 'Layout' mechanism in the WoW UI. RelDimension is differnt from AbsDimension in that it works with a different UI screen coodinate system than AbsDimension does, both of which refer to the same sizes or postions on the same WoW UI screen. AbsDimension uses 'unit based' coodinates, like units -200 through 200 where a value refers to a postion some where in that range. RelDimension uses what can be refered to as 'scalar' coordinates, where there are no 'unit based' coordinates, and values are 'scaled' based on a ratio like 0.0 through 1.0.
ExampleEdit
<Frame name="MyFrame"> <Size> <RelDimension x="0.5" y="0.5"/> </Size> </Frame>
This example demonstrates use of Dimension with Size and using Rel values.