Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
WoW
Talk
English
Views
Read
Edit
History
More
Search
Navigation
Home
Random page
Help using wiki
Editions
for WoW
for WildStar
for Solar2D
Documentation
for WoW
for WildStar
Reference
WoW
⦁ FrameXML
⦁ AddOns
⦁ API
⦁ WoW Lua
WildStar
⦁ AddOns
⦁ API
⦁ WildStar Lua
Engine
Tools
What links here
Related changes
Special pages
Page information
Site
Recent Changes
Editing
WoW:XML/Dimension
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{uixmltype}} [[XML/Dimension|Dimension]] is a type used for a variety of purposes for defining values that relate to the UI coordinate system, and is a fundamental UI building block for defining positional layout. See [[XML/Value|Value]] for single value use type. The Dimension type can be used for '''Size''', '''Position''' and others, and can be found on [[XML/LayoutFrame|LayoutFrame]], [[XML/Anchor|Anchor]], and others. == Inheritance == Inherited by: none, Inherits: none, Defined in: multiple == Elements == * <[[XML/AbsDimension|AbsDimension]]> - defines a relative or absolute value, using 'absolute' unit based coordinates * <[[XML/RelDimension|RelDimension]]> - defines a relative or absolute value, using 'relative' scalar coordinates == Attributes == * x (int) - defines a value thats horizontally opposed * y (int) - defines a value thats vertically opposed == Summary == [[XML/Dimension|Dimension]] based elements facilitate the 'Layout' mechanism in the WoW UI. When used for <'''Size'''>, along with the <[[XML/Anchors|Anchors]]> element, allow WoW to position all of its visible and interactive elements on the screen, including the 3D views of the world. Dimension works by providing a flexible set of size or positional constructs, by using one of: inline values (X and Y), the [[XML/AbsDimension|AbsDimension]] element, or the [[XML/RelDimension|RelDimension]] element. === Example === <Frame name="MyFrame"> <Size> <[[XML/RelDimension|RelDimension]] x="0.5" y="0.5"/> </Size> <Frames> <Frame name="$parentChild"> <[[XML/Dimension|Size]] x="200" y="100"/> <Anchors> <Anchor point="TOP"> <Offset> <[[XML/AbsDimension|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 [[XML/Anchor|Anchor]], and using '''Abs''', '''Rel''' and '''inline''' values. == Details ==
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Tocright
(
edit
)
Template:Uixmltype
(
edit
)