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 | edit source]

Inherited by: none, Inherits: none, Defined in: Dimension

Elements[edit | edit source]

none

Attributes[edit | edit source]

  • x (int) - defines a unit value thats horizontally opposed
  • y (int) - defines a unit value thats vertically opposed

Summary[edit | edit source]

AbsDimension facilitates the 'Layout' mechanism in the WoW UI.

Example[edit | edit source]

<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.

Details[edit | edit source]

Community content is available under CC-BY-SA unless otherwise noted.