WoW:XML/Anchors: Difference between revisions

From AddOn Studio
< XML
Jump to navigation Jump to search
(Created page with "Anchors are a fundamental UI building block for defining positional layout for UI elements of LayoutFrames. The Anchors XML element can be defined on any LayoutFrame or LayoutFra...")
 
(CategorySelect - Adding categories)
Line 26: Line 26:
==Attributes==
==Attributes==
none
none
[[Category:XML elements]]

Revision as of 06:08, 27 July 2012

Anchors are a fundamental UI building block for defining positional layout for UI elements of LayoutFrames. The Anchors XML element can be defined on any LayoutFrame or LayoutFrame type, which also includes Frames, Textures, and FontStrings.

Example:
<Frame name="MyFrame">
  <Frames>
    <Frame name="$parentChild">
      <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.

Inheritance

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

Elements

<Anchor>

Attributes

none