v0.13.8

Frame

widget type126 methodsavailable in: camelot

CreateFrame("Frame", …) makes one. It has every method of Region, plus 126 of its own.

Inherits from

  1. Frame · 126
  2. Region · 16
  3. ScriptRegion · 55
  4. ScriptRegionResizing · 13
  5. AnimatableObject · 3
  6. Object · 5
  7. FrameScriptObject · 21

The number is each type's own documented methods. A Frame has all of them.

Methods

In the emulator: 85 implemented, 13 recorded, 28 guessed.

methodwhat it doesstatus
AbortDragStops the frame's current drag. · by wowlua
()
guessed
AddRolesetAdds a roleset tag to this frame without removing existing ones. · warcraft.wiki.gg ↗
(roleset: string)
guessed
CanChangeAttributeWhether the frame's attributes can be changed now. · by wowlua
(): boolean
guessed
ClearAlphaGradientRemoves the frame's alpha gradient. · by wowlua
()
guessed
ClearAttributeRemoves an attribute from the frame. · by wowlua
(attributeName: string): boolean
guessed
ClearAttributesRemoves all attributes from the frame. · by wowlua
()
implemented
CreateFontStringCreates a fontstring. · warcraft.wiki.gg ↗
(name: string?, drawLayer: DrawLayer?, templateName: string?): FontString
implemented
CreateLineDraws a line. · warcraft.wiki.gg ↗
(name: string?, drawLayer: DrawLayer?, templateName: string?, subLevel: number?): Line
implemented
CreateMaskTextureCreates a mask texture. · warcraft.wiki.gg ↗
(name: string?, drawLayer: DrawLayer?, templateName: string?, subLevel: number?): MaskTexture
implemented
CreateTextureCreates a texture. · warcraft.wiki.gg ↗
(name: string?, drawLayer: DrawLayer?, templateName: string?, subLevel: number?): Texture
implemented
CreateVectorGraphicsCreates a vector graphics region on the frame, which can show an SVG image. · by wowlua
(name: string?, drawLayer: DrawLayer?, templateName: string?, subLevel: number?): VectorGraphics
guessed
DesaturateHierarchyDesaturates the frame and all its children. · by wowlua
(desaturation: number, excludeRoot: boolean)
guessed
DisableDrawLayerPrevents display of the frame on the specified draw layer. · warcraft.wiki.gg ↗
(layer: DrawLayer)
guessed
DoesClipChildrenWhether the frame clips its children to its own bounds. · by wowlua
(): boolean
guessed
DoesHyperlinkPropagateToParentReturns whether hyperlink events (ex. OnHyperlinkEnter, OnHyperlinkLeave, OnHyperlinkClick) are propagated to this frame's parent. · warcraft.wiki.gg ↗
(): boolean
guessed
EnableDrawLayerAllows display of the frame on the specified draw layer. · warcraft.wiki.gg ↗
(layer: DrawLayer)
implemented
EnableGamePadButtonAllows the receipt of gamepad button inputs for this frame. · warcraft.wiki.gg ↗
(enable: boolean)
implemented
EnableGamePadStickAllows the receipt of gamepad stick inputs for this frame. · warcraft.wiki.gg ↗
(enable: boolean)
implemented
EnableKeyboardAllows this frame to receive keyboard input. · warcraft.wiki.gg ↗
(enable: boolean)
implemented
ExecuteAttributeRuns the snippet stored in the frame's attribute with the given arguments. · by wowlua
(attributeName: string, arguments: string?): (boolean, string?)
implemented
GetAlphaReturns the frame's opacity. · warcraft.wiki.gg ↗
(): number
implemented
GetAttributeReturns the value of a secure frame attribute. · warcraft.wiki.gg ↗
(attributeName: string): string
implemented
GetBoundsRectReturns the calculated bounding box of the frame and all of its descendant regions. · warcraft.wiki.gg ↗
(): (number, number, number, number)
guessed
GetChildrenReturns a list of child frames belonging to the frame. · warcraft.wiki.gg ↗
(): Frame
implemented
GetClampRectInsetsReturns the frame's clamp rectangle offsets. · warcraft.wiki.gg ↗
(): (number, number, number, number)
recorded
GetDontSavePositionWhether the game skips saving the frame's position. · by wowlua
(): boolean
guessed
GetEffectiveAlphaReturns the region's effective opacity. · warcraft.wiki.gg ↗
(): number
guessed
GetEffectiveScaleReturns the effective scale after propagating from the parent region. · warcraft.wiki.gg ↗
(): number
implemented
GetEffectivelyFlattensRenderLayersReturns true if render layer flattening has been implicitly enabled. · warcraft.wiki.gg ↗
(): boolean
guessed
GetFlattensRenderLayersReturns true if render layer flattening has been enabled. · warcraft.wiki.gg ↗
(): boolean
recorded
GetFrameLevelReturns the frame level of the frame. · warcraft.wiki.gg ↗
(): number
implemented
GetFrameStrataReturns the layering strata of the frame. · warcraft.wiki.gg ↗
(): FrameStrata
guessed
GetHighestFrameLevelReturns the highest framelevel of the frame and its first order children, or all children if iterateAllChildren is true. · warcraft.wiki.gg ↗
(iterateAllChildren: boolean): number
guessed
GetHitRectInsetsReturns the insets of the frame's hit rectangle. · warcraft.wiki.gg ↗
(): (number, number, number, number)
recorded
GetHyperlinksEnabledReturns true if mouse interaction with hyperlinks on the frame is enabled. · warcraft.wiki.gg ↗
(): boolean
guessed
GetIDReturns the frame's numeric identifier. · warcraft.wiki.gg ↗
(): number
implemented
GetNumChildrenReturns the number of child frames belonging to the frame. · warcraft.wiki.gg ↗
(): number
implemented
GetNumRegionsReturns the number of non-Frame child regions belonging to the frame. · warcraft.wiki.gg ↗
(): number
recorded
GetOnUpdateModeReturns the currently configured OnUpdate script execution mode. · warcraft.wiki.gg ↗
(): OnUpdateMode
guessed
GetPropagateKeyboardInputReturns whether the frame propagates keyboard events. · warcraft.wiki.gg ↗
(): boolean
implemented
GetRaisedFrameLevelReturns the frame's raised frame level. · by wowlua
(): number
guessed
GetRegionsReturns a list of non-Frame child regions belonging to the frame. · warcraft.wiki.gg ↗
(): Region
implemented
GetResizeBoundsReturns the minimum and maximum size of the frame for user resizing. · warcraft.wiki.gg ↗
(): (number, number, number, number)
implemented
GetRolesetNamesReturns the roleset tags assigned to this frame. Returns a list containing 'roleless' if none are assigned. · warcraft.wiki.gg ↗
(): string[]
guessed
GetScaleReturns the scale of the frame. · warcraft.wiki.gg ↗
(): number
implemented
GetWindowReturns the window the frame belongs to. · by wowlua
(): Window
guessed
HasAlphaGradientWhether the frame has an alpha gradient. · by wowlua
(): boolean
guessed
HasFixedFrameLevelWhether the frame's level is fixed, so it does not follow its parent's. · by wowlua
(): boolean
recorded
HasFixedFrameStrataWhether the frame's strata is fixed, so it does not follow its parent's. · by wowlua
(): boolean
recorded
HideHides the frame. · by wowlua
()
implemented
InterceptStartDragLets another frame take over a drag that starts on this frame. · by wowlua
(delegate: Frame): boolean
guessed
IsClampedToScreenReturns whether a frame is prevented from being moved off-screen. · warcraft.wiki.gg ↗
(): boolean
recorded
IsDrawLayerEnabledWhether the frame draws the given layer. · by wowlua
(layer: DrawLayer): boolean
implemented
IsEventRegisteredReturns whether a frame is registered to an event. · warcraft.wiki.gg ↗
(eventName: string): (boolean, string?)
implemented
IsFrameBufferWhether the frame renders through a frame buffer. · by wowlua
(): boolean
implemented
IsGamePadButtonEnabledChecks if this frame is configured to receive gamepad button inputs. · warcraft.wiki.gg ↗
(): boolean
implemented
IsGamePadStickEnabledChecks if this frame is configured to receive gamepad stick inputs. · warcraft.wiki.gg ↗
(): boolean
implemented
IsHighlightLockedWhether the frame's highlight is locked on. · by wowlua
(): boolean
implemented
IsIgnoringChildrenForBoundsWhether the frame leaves its children out of its bounds. · by wowlua
(): boolean
implemented
IsIgnoringParentAlphaWhether the frame ignores its parent's alpha. · by wowlua
(): boolean
implemented
IsIgnoringParentScaleWhether the frame ignores its parent's scale. · by wowlua
(): boolean
implemented
IsKeyboardEnabledReturns true if keyboard interactivity is enabled for the frame. · warcraft.wiki.gg ↗
(): boolean
recorded
IsMovableReturns true if the frame is movable. · warcraft.wiki.gg ↗
(): boolean
recorded
IsObjectLoadedWhether the frame's object has finished loading. · by wowlua
(): boolean
recorded
IsResizableReturns true if the frame can be resized by the user. · warcraft.wiki.gg ↗
(): boolean
recorded
IsRolesetFilteredReturns whether this frame is hidden because of its rolesets being filtered. · warcraft.wiki.gg ↗
(): boolean
implemented
IsShownWhether the frame is set to be shown, whether or not its parents are visible. · by wowlua
(): boolean
implemented
IsToplevelReturns whether this frame should raise its frame level on mouse interaction. · warcraft.wiki.gg ↗
(): boolean
recorded
IsUserPlacedReturns whether the frame has been moved by the user. · warcraft.wiki.gg ↗
(): boolean
recorded
IsUsingParentLevelWhether the frame takes its frame level from its parent. · by wowlua
(): boolean
implemented
IsVisibleWhether the frame and all its parents are shown. · by wowlua
(): boolean
implemented
LockHighlightSets the frame or button to always be drawn highlighted. · warcraft.wiki.gg ↗
()
implemented
LowerReduces the frame's frame level below all other frames in its strata. · warcraft.wiki.gg ↗
()
implemented
RaiseIncreases the frame's frame level above all other frames in its strata · warcraft.wiki.gg ↗
()
implemented
RegisterAllEventsFlags the frame to receive all events. · warcraft.wiki.gg ↗
()
implemented
RegisterEventRegisters the frame to an event. · warcraft.wiki.gg ↗
(eventName: string): boolean
implemented
RegisterEventCallbackRegisters a function the frame calls when the event fires. · by wowlua
(eventName: string, cb: FrameEventCallbackType): boolean
implemented
RegisterForDragRegisters the frame for dragging with a mouse button. · warcraft.wiki.gg ↗
(buttons: MouseButton)
implemented
RegisterUnitEventRegisters the frame for a specific event, triggering only for the specified units. · warcraft.wiki.gg ↗
(eventName: string, units: string): boolean
implemented
RegisterUnitEventCallbackRegisters a function the frame calls when the event fires for one of the given units. · by wowlua
(eventName: string, cb: FrameEventCallbackType, units: string): boolean
guessed
RemoveRolesetRemoves a roleset tag from this frame. · warcraft.wiki.gg ↗
(roleset: string)
guessed
ResizeToBoundsRectAddon-safe API for resizing a frame to match the bounds of its children. · warcraft.wiki.gg ↗
()
guessed
RotateTexturesRotates the frame's textures by the given angle around a point. · by wowlua
(radians: number, x: number, y: number)
guessed
SetAlphaSets the opacity of the frame. · warcraft.wiki.gg ↗
(alpha: number)
implemented
SetAlphaFromBooleanSets the frame's opacity to one of two values depending on a boolean, which may be a secret. Blizzard's code notes that tainted callers must use it instead of SetShown for secret values. · by wowlua
(value: boolean, alphaIfTrue: number, alphaIfFalse: number)
implemented
SetAlphaGradientConfigures a frame to perform an alpha gradient fade on its edges. · warcraft.wiki.gg ↗
(index: number, gradient: Vector2DMixin)
guessed
SetAttributeSets an attribute on the frame. · warcraft.wiki.gg ↗
(attributeName: string, value: string)
implemented
SetAttributeNoHandlerSets an attribute on the frame without triggering the OnAttributeChanged script. · warcraft.wiki.gg ↗
(attributeName: string, value: string)
implemented
SetClampRectInsetsControls how much of the frame may be moved off-screen. · warcraft.wiki.gg ↗
(left: number, right: number, top: number, bottom: number)
implemented
SetClampedToScreenPrevents the frame from moving off-screen. · warcraft.wiki.gg ↗
(clampedToScreen: boolean)
implemented
SetClipsChildrenSets whether the frame clips its children to its own bounds. · by wowlua
(clipsChildren: boolean)
implemented
SetDontSavePositionSets whether the game skips saving the frame's position. · by wowlua
(dontSave: boolean)
implemented
SetDrawLayerEnabledTurns drawing of a layer on or off for the frame. · by wowlua
(layer: DrawLayer, isEnabled: boolean)
implemented
SetFixedFrameLevelSets whether the frame's level is fixed, so it does not follow its parent's. · by wowlua
(isFixed: boolean)
implemented
SetFixedFrameStrataSets whether the frame's strata is fixed, so it does not follow its parent's. · by wowlua
(isFixed: boolean)
implemented
SetFlattensRenderLayersControls whether all subregions are composited into a single render layer. · warcraft.wiki.gg ↗
(flatten: boolean)
implemented
SetFrameLevelSets the level at which the frame is layered relative to others in its strata. · warcraft.wiki.gg ↗
(frameLevel: number)
implemented
SetFrameStrataSets the layering strata of the frame. · warcraft.wiki.gg ↗
(strata: FrameStrata)
implemented
SetHighlightLockedSets whether the frame's highlight stays on. · by wowlua
(locked: boolean)
implemented
SetHitRectInsetsSets the insets of the frame's hit rectangle. · warcraft.wiki.gg ↗
(left: number, right: number, top: number, bottom: number)
implemented
SetHyperlinkPropagateToParentEnables or disables propagating hyperlink events (ex. OnHyperlinkEnter, OnHyperlinkLeave, OnHyperlinkClick) to this frame's parent. · warcraft.wiki.gg ↗
(canPropagate: boolean)
implemented
SetHyperlinksEnabledAllows mouse interaction with hyperlinks on the frame. · warcraft.wiki.gg ↗
(enabled: boolean)
implemented
SetIDSets a numeric identifier for the frame. · warcraft.wiki.gg ↗
(id: number)
implemented
SetIgnoreParentAlphaSets whether the frame ignores its parent's alpha. · by wowlua
(ignore: boolean)
implemented
SetIgnoreParentScaleSets whether the frame ignores its parent's scale. · by wowlua
(ignore: boolean)
implemented
SetIgnoringChildrenForBoundsSets whether the frame leaves its children out of its bounds. · by wowlua
(ignore: boolean)
implemented
SetIsFrameBufferControls whether or not a frame is rendered to its own framebuffer prior to being composited atop the UI. · warcraft.wiki.gg ↗
(isFrameBuffer: boolean)
implemented
SetMovableSets whether the frame can be moved. · warcraft.wiki.gg ↗
(movable: boolean)
implemented
SetOnUpdateModeChanges when OnUpdate scripts are executed for this object. · warcraft.wiki.gg ↗
(onUpdateMode: OnUpdateMode)
implemented
SetPropagateKeyboardInputSets whether keyboard input is consumed by this frame or propagates to further frames. · warcraft.wiki.gg ↗
(propagate: boolean)
implemented
SetResizableSets whether the frame can be resized by the user. · warcraft.wiki.gg ↗
(resizable: boolean)
implemented
SetResizeBoundsSets the minimum and maximum size of the frame for user resizing. · warcraft.wiki.gg ↗
(minWidth: number, minHeight: number, maxWidth: number?, maxHeight: number?)
implemented
SetRolesetsSets the roleset tags for this frame, used by the UI mode system to gate visibility. Supports comma-separated names to assign multiple rolesets. Pass nil to clear. · warcraft.wiki.gg ↗
(rolesetsString: string?)
implemented
SetScaleSets the size scaling of the frame. · warcraft.wiki.gg ↗
(scale: number)
implemented
SetShownShows or hides the frame. · by wowlua
(shown: boolean)
implemented
SetToplevelControls whether or not a frame should raise its frame level on mouse interaction. · warcraft.wiki.gg ↗
(topLevel: boolean)
implemented
SetUserPlacedSets whether a frame has been moved by the user and will be saved in the layout cache. · warcraft.wiki.gg ↗
(userPlaced: boolean)
implemented
SetUsingParentLevelSets whether the frame takes its frame level from its parent. · by wowlua
(usingParentLevel: boolean)
implemented
SetWindowSets the window the frame belongs to. · by wowlua
(window: Window?)
implemented
ShowShows the frame. · by wowlua
()
implemented
StartMovingBegins repositioning the frame via mouse movement. · warcraft.wiki.gg ↗
(alwaysStartFromMouse: boolean)
implemented
StartSizingBegins resizing the frame via mouse movement. · warcraft.wiki.gg ↗
(resizePoint: FramePoint?, alwaysStartFromMouse: boolean)
implemented
StopMovingOrSizingStops moving or resizing the frame, and anchors the point that is closest to a UIParent point to that. · warcraft.wiki.gg ↗
()
implemented
UnlockHighlightSets the frame or button to not always be drawn highlighted. · warcraft.wiki.gg ↗
()
implemented
UnregisterAllEventsUnregisters all events from the frame. · warcraft.wiki.gg ↗
()
implemented
UnregisterEventUnregisters an event from the frame. · warcraft.wiki.gg ↗
(eventName: string): boolean
implemented

sources

Methods and inheritance: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (camelot 1.60.1). Descriptions: warcraft.wiki.gg's API pages, by its contributors, CC BY-SA 4.0 ↗; written by wowlua where no documentation describes the entry.