LayeredRegion is an abstract UI type that groups together the functionality of layered graphical regions, specifically Textures and FontStrings. These objects can be moved from one layer to another, or can be suppressed by turning off the layer on the frame to which they are attached. These layered regions can also be colorized in the graphics engine using the :SetVertexColor() method.
Defined Methods
- layer = LayeredRegion:GetDrawLayer() - Returns the layer at which the region's graphics are drawn relative to others in its frame
- LayeredRegion:SetDrawLayer("layer") - Sets the layer at which the region's graphics are drawn relative to others in its frame
- LayeredRegion:SetVertexColor(red, green, blue [, alpha]) - Sets a color shading for the region's graphics
Inherited Methods
- canChange = LayeredRegion:CanChangeProtectedState() - Returns whether protected properties of the region can be changed by non-secure scripts
- LayeredRegion:ClearAllPoints() - Removes all anchor points from the region
- animationGroup = LayeredRegion:CreateAnimationGroup(["name" [, "inheritsFrom"]]) - Creates a new AnimationGroup as a child of the region
- alpha = LayeredRegion:GetAlpha() - Returns the opacity of the region relative to its parent
- ... = LayeredRegion:GetAnimationGroups() - Returns a list of animation groups belonging to the region
- bottom = LayeredRegion:GetBottom() - Returns the distance from the bottom of the screen to the bottom of the region
- x, y = LayeredRegion:GetCenter() - Returns the screen coordinates of the region's center
- height = LayeredRegion:GetHeight() - Returns the height of the region
- left = LayeredRegion:GetLeft() - Returns the distance from the left edge of the screen to the left edge of the region
- name = LayeredRegion:GetName() - Returns the widget object's name
- numPoints = LayeredRegion:GetNumPoints() - Returns the number of anchor points defined for the region
- type = LayeredRegion:GetObjectType() - Returns the object's widget type
- parent = LayeredRegion:GetParent() - Returns the object's parent object
- point, relativeTo, relativePoint, xOffset, yOffset = LayeredRegion:GetPoint(index) - Returns information about one of the region's anchor points
- left, bottom, width, height = LayeredRegion:GetRect() - Returns the position and dimensions of the region
- right = LayeredRegion:GetRight() - Returns the distance from the left edge of the screen to the right edge of the region
- width, height = LayeredRegion:GetSize() - Returns the width and height of the region
- top = LayeredRegion:GetTop() - Returns the distance from the bottom of the screen to the top of the region
- width = LayeredRegion:GetWidth() - Returns the width of the region
- LayeredRegion:Hide() - Hides the region
- isDragging = LayeredRegion:IsDragging() - Returns whether the region is currently being dragged
- isOver = LayeredRegion:IsMouseOver() - Returns whether the mouse cursor is over the given region
- isType = LayeredRegion:IsObjectType("type") - Returns whether the object belongs to a given widget type
- isProtected, explicit = LayeredRegion:IsProtected() - Returns whether the region is protected
- shown = LayeredRegion:IsShown() - Returns whether the region is shown
- visible = LayeredRegion:IsVisible() - Returns whether the region is visible
- LayeredRegion:SetAllPoints([region]) or LayeredRegion:SetAllPoints(["name"]) - Sets all anchor points of the region to match those of another region
- LayeredRegion:SetAlpha(alpha) - Sets the opacity of the region relative to its parent
- LayeredRegion:SetHeight(height) - Sets the region's height
- LayeredRegion:SetParent(frame) or LayeredRegion:SetParent("name") - Makes another frame the parent of this region
- LayeredRegion:SetPoint("point" [, relativeTo [, "relativePoint" [, xOffset [, yOffset]]]]) - Sets an anchor point for the region
- LayeredRegion:SetSize(width, height) - Sets the size of the region to the specified values
- LayeredRegion:SetWidth(width) - Sets the region's width
- LayeredRegion:Show() - Shows the region
- LayeredRegion:StopAnimating() - Stops any active animations involving the region or its children