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


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">
    <RelDimension x="0.5" y="0.5"/>
    <Frame name="$parentChild">
      <Size x="200" y="100"/>
        <Anchor point="TOP">
            <AbsDimension x="0" y="-22" />

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.

Details Edit

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.