WoW API type: UITYPE FrameStrata

From AddOn Studio
Revision as of 04:49, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page UITYPE FrameStrata to UITYPE FrameStrata without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

API types

FrameStrata is a string which can take following values:

  • "PARENT"
  • "BACKGROUND"
  • "LOW"
  • "MEDIUM"
  • "HIGH"
  • "DIALOG"
  • "FULLSCREEN"
  • "FULLSCREEN_DIALOG"
  • "TOOLTIP"

These stratas are given in order from lowest to highest; except for "PARENT". Value "PARENT" is relative and indicates that you want to put your frame into the same strata as your frame's parent.

Notes[edit]

  • frameStrata attribute of Frame object has type FrameStrata.
  • Commonly, you'll do best to resist the temptation of setting FrameStrata for every frame you create. Unless you have a very special case, it should suffice to set the strata for the "main" frame, and just properly parent subsequent elements (background contains elements, elements contain widgets, widgets contain own highlights or something). Child elements are always rendered on top of their parents and that's the primary (if not only) layering technique you should use.


Sets the Frame Strata of the frame.

MyFrame:SetFrameStrata(strata)


Arguments[edit]

strata
FrameStrata -- The strata your frame will be put in


Returns[edit]

none