Wikia

WoWWiki

XML/AbsDimension

Talk0
101,310pages on
this wiki

< XML

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.

Details Edit

Around Wikia's network

Random Wiki