ScriptRegion
Jump to navigation
Jump to search
Defined Methods
- ScriptRegion:CanChangeProtectedState() : canChange - Returns true if protected properties of the region can be changed by non-secure scripts.
- ScriptRegion:CollapsesLayout() : collapsesLayout
- ScriptRegion:EnableMouse([enable])
#secureframe
- Sets whether the region should receive mouse input. - ScriptRegion:EnableMouseMotion([enable])
#secureframe
- Sets whether the region should receive mouse hover events. - ScriptRegion:EnableMouseWheel([enable])
#secureframe
- Sets whether the region should receive mouse wheel input. - ScriptRegion:GetBottom() : bottom
#restrictedframe
- Returns the offset to the bottom edge of the region. - ScriptRegion:GetCenter() : x, y
#restrictedframe
- Returns the offset to the center of the region. - ScriptRegion:GetHeight([ignoreRect]) : height - Returns the height of the region.
- ScriptRegion:GetLeft() : left
#restrictedframe
- Returns the offset to the left edge of the region. - ScriptRegion:GetRect() : left, bottom, width, height
#restrictedframe
- Returns the coords and size of the region. - ScriptRegion:GetRight() : right
#restrictedframe
- Returns the offset to the right edge of the region. - ScriptRegion:GetScaledRect() : left, bottom, width, height - Returns the scaled coords and size of the region.
- ScriptRegion:GetSize([ignoreRect]) : width, height - Returns the width and height of the region.
- ScriptRegion:GetSourceLocation() : location - Returns the script name and line number where the region was created.
- ScriptRegion:GetTop() : top
#restrictedframe
- Returns the offset to the top edge of the region. - ScriptRegion:GetWidth([ignoreRect]) : width - Returns the width of the region.
- ScriptRegion:Hide()
#secureframe
- Hides the region. - ScriptRegion:Intersects(region) : intersects
- ScriptRegion:IsAnchoringRestricted() : isRestricted - Returns true if the region has cross-region anchoring restrictions applied.
- ScriptRegion:IsCollapsed() : isCollapsed
- ScriptRegion:IsDragging() : isDragging - Returns true if the region is being dragged.
- ScriptRegion:IsMouseClickEnabled() : enabled - Returns true if the region can receive mouse clicks.
- ScriptRegion:IsMouseEnabled() : enabled - Returns true if the region can receive mouse input.
- ScriptRegion:IsMouseMotionEnabled() : enabled - Returns true if the region can receive mouse hover events.
- ScriptRegion:IsMouseMotionFocus() : isMouseMotionFocus - Returns true if the mouse cursor is hovering over the region.
- ScriptRegion:IsMouseOver([offsetTop [, offsetBottom [, offsetLeft [, offsetRight]]]]) : isMouseOver - Returns true if the mouse cursor is hovering over the region.
- ScriptRegion:IsMouseWheelEnabled() : enabled - Returns true if the region can receive mouse wheel input.
- ScriptRegion:IsProtected() : isProtected, isProtectedExplicitly - Returns whether the region is currently protected.
- ScriptRegion:IsRectValid() : isValid - Returns true if the region can be positioned on the screen.
- ScriptRegion:IsShown() : isShown - Returns true if the region should be shown; it depends on the parents if it's visible.
- ScriptRegion:IsVisible() : isVisible - Returns true if the region and its parents are shown.
- ScriptRegion:SetCollapsesLayout(collapsesLayout)
#secureframe
- ScriptRegion:SetMouseClickEnabled([enabled])
#secureframe
- Sets whether the region should receive mouse clicks. - ScriptRegion:SetMouseMotionEnabled([enabled])
#secureframe
- Sets whether the region should receive mouse hover events. - ScriptRegion:SetParent([parent])
#secureframe
- Sets the parent of the region. - ScriptRegion:SetPassThroughButtons([button1, ...])
#nocombat
- Allows the region to propagate mouse clicks to underlying regions or the world frame. - ScriptRegion:SetPropagateMouseClicks(propagate)
#nocombat
- ScriptRegion:SetPropagateMouseMotion(propagate)
#nocombat
- ScriptRegion:SetShown([show])
#secureframe
- Shows or hides the region. - ScriptRegion:Show()
#secureframe
- Shows the region. - ScriptRegionResizing:AdjustPointsOffset(x, y)
#secureframe
- Adjusts the x and y offset of the region. - ScriptRegionResizing:ClearAllPoints()
#secureframe
- Removes all anchor points from the region. - ScriptRegionResizing:ClearPoint(point)
#secureframe
- Removes an anchor point from the region by name. - ScriptRegionResizing:ClearPointsOffset()
#secureframe
- Resets the x and y offset on the region to zero. - ScriptRegionResizing:GetNumPoints() : numPoints - Returns the number of anchor points for the region.
- ScriptRegionResizing:GetPoint([anchorIndex [, resolveCollapsed]]) : point, relativeTo, relativePoint, offsetX, offsetY
#restrictedframe
- Returns an anchor point for the region. - ScriptRegionResizing:GetPointByName(point [, resolveCollapsed]) : point, relativeTo, relativePoint, offsetX, offsetY - Returns an anchor point by name for the region.
- ScriptRegionResizing:SetAllPoints(relativeTo [, doResize])
#secureframe
- Positions the region the same as another region. - ScriptRegionResizing:SetHeight(height)
#secureframe
- Sets the height of the region. - ScriptRegionResizing:SetPoint(point [, relativeTo [, relativePoint]] [, offsetX, offsetY])
#anchorfamily
#secureframe
- Sets an anchor point for the region. - ScriptRegionResizing:SetSize(x, y)
#secureframe
- Sets the width and height of the region. - ScriptRegionResizing:SetWidth(width)
#secureframe
- Sets the width of the region. - AnimatableObject:CreateAnimationGroup([name [, templateName]]) : group - Creates an animation group.
- AnimatableObject:GetAnimationGroups() : scriptObject, ... - Returns the animation groups of this region.
- AnimatableObject:StopAnimating() - Stops any active animations on this region.
Defined Script Types
- OnShow(self) - Invoked when the widget is shown.
- OnHide(self) - Invoked when the widget is hidden.
- OnEnter(self, motion) - Invoked when the cursor enters the widget's interactive area.
- OnLeave(self, motion) - Invoked when the mouse cursor leaves the widget's interactive area.
- OnMouseDown(self, button) - Invoked when a mouse button is pressed while the cursor is over the widget.
- OnMouseUp(self, button, upInside) - Invoked when the mouse button is released following a mouse down action in the widget.
- OnMouseWheel(self, delta) - Invoked when the widget receives a mouse wheel scrolling action.
- OnLoad(self) - Invoked when the widget is created.