WoW API type: UIOBJECTTYPE Inset

From AddOn Studio
Revision as of 02:38, 8 September 2007 by WoWWiki>Fibby (New page: {{Wowapitype}} {{Stub/API}} == Examples == <TextInsets left="2" right="2" top="0" left="0" /> <BackgroundInsets> <AbsInset left="1" right="1" top="1" bottom="1" /...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

API types

Examples

 <TextInsets left="2" right="2" top="0" left="0" />
 <BackgroundInsets>
    <AbsInset left="1" right="1" top="1" bottom="1" />
 </BackgroundInsets>

Note: you can either specify insets through child <AbsInset> / <RelInset> element, OR directly with attributes left, right, top, bottom. However, when you declare insets via attributes you must specify all four of them. That is, you cannot write

 <!-- Warning: This is an example of incorrect Inset object -->
 <TextInsets left="2" right="2" />


XML

Attributes

  • left (int)
  • right (int)
  • top (int)
  • bottom (int)

Elements

Only one of these elements may be used:

  • AbsInset
  • RelInset