WoW:XML/AbsDimension

< XML
Revision as of 01:01, 2 August 2012 by Bear (talk | contribs) (Created page with "AbsDimension")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

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

Elements

none

Attributes

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

Summary

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

Example

<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