Back to index...

NameTypeDeprecatedSecureDescription
RiftScrollbarA UI element of type RiftScrollbar or derived from RiftScrollbar.
RiftScrollbar.Event:KeyDownSignals a key pressed.
RiftScrollbar.Event:KeyFocusGainSignals gaining key focus.
RiftScrollbar.Event:KeyFocusLossSignals losing key focus.
RiftScrollbar.Event:KeyRepeatFrame.Event:KeyRepeat@summary
RiftScrollbar.Event:KeyTypeSignals text typed.
RiftScrollbar.Event:KeyUpSignals a key released.
RiftScrollbar.Event:LayerSignals a change in the item's layer.
RiftScrollbar.Event:LeftClickSignals that the mouse's left button has been clicked inside the frame. Blocks left mouse events ...
RiftScrollbar.Event:LeftDownSignals that the mouse's left button has been pressed inside the frame. Blocks left mouse events ...
RiftScrollbar.Event:LeftUpSignals that the mouse's left button has been released inside the frame. Blocks left mouse events...
RiftScrollbar.Event:LeftUpoutsideSignals that the mouse's left button has been released outside the frame, after a "Down" message....
RiftScrollbar.Event:MiddleClickSignals that the mouse's middle button has been clicked inside the frame. Blocks middle mouse eve...
RiftScrollbar.Event:MiddleDownSignals that the mouse's middle button has been pressed inside the frame. Blocks middle mouse eve...
RiftScrollbar.Event:MiddleUpSignals that the mouse's middle button has been released inside the frame. Blocks middle mouse ev...
RiftScrollbar.Event:MiddleUpoutsideSignals that the mouse's middle button has been released outside the frame, after a "Down" messag...
RiftScrollbar.Event:Mouse4ClickSignals that the mouse's fourth button has been clicked inside the frame. Blocks fourth button mo...
RiftScrollbar.Event:Mouse4DownSignals that the mouse's fourth button has been pressed inside the frame. Blocks fourth button mo...
RiftScrollbar.Event:Mouse4UpSignals that the mouse's fourth button has been released inside the frame. Blocks fourth button m...
RiftScrollbar.Event:Mouse4UpoutsideSignals that the mouse's fourth button has been released outside the frame, after a "Down" messag...
RiftScrollbar.Event:Mouse5ClickSignals that the mouse's fifth button has been clicked inside the frame. Blocks fifth button mous...
RiftScrollbar.Event:Mouse5DownSignals that the mouse's fifth button has been pressed inside the frame. Blocks fifth button mous...
RiftScrollbar.Event:Mouse5UpSignals that the mouse's fifth button has been released inside the frame. Blocks fifth button mou...
RiftScrollbar.Event:Mouse5UpoutsideSignals that the mouse's fifth button has been released outside the frame, after a "Down" message...
RiftScrollbar.Event:MouseInSignals that the mouse cursor has been moved onto the frame. Blocks mouse movement events from fr...
RiftScrollbar.Event:MouseMoveSignals that the mouse cursor has been moved within the frame. Blocks mouse movement events from ...
RiftScrollbar.Event:MouseOutSignals that the mouse cursor has been moved off of the frame. Blocks mouse movement events from ...
RiftScrollbar.Event:MoveSignals that the frame's vertices have moved.
RiftScrollbar.Event:RightClickSignals that the mouse's right button has been clicked inside the frame. Blocks right mouse event...
RiftScrollbar.Event:RightDownSignals that the mouse's right button has been pressed inside the frame. Blocks right mouse event...
RiftScrollbar.Event:RightUpSignals that the mouse's right button has been released inside the frame. Blocks right mouse even...
RiftScrollbar.Event:RightUpoutsideSignals that the mouse's right button has been released outside the frame, after a "Down" message...
RiftScrollbar.Event:ScrollbarChangeSignals a change in the scrollbar position.
RiftScrollbar.Event:ScrollbarGrabSignals the user grabbing the scrollbar with the mouse.
RiftScrollbar.Event:ScrollbarReleaseSignals the user releasing the scrollbar.
RiftScrollbar.Event:SizeSignals that the frame's size has changed.
RiftScrollbar.Event:StrataSignals a change in the item's strata.
RiftScrollbar.Event:WheelBackSignals that the mousewheel has been moved backward inside the frame. Blocks mousewheel events fr...
RiftScrollbar.Event:WheelForwardSignals that the mousewheel has been moved forward inside the frame. Blocks mousewheel events fro...
RiftScrollbar:ClearAllfunctionClear all set points and sizes from this frame.
RiftScrollbar:ClearHeightfunctionClear a set height from this frame.
RiftScrollbar:ClearPointfunctionClear a set point from this frame.
RiftScrollbar:ClearWidthfunctionClear a set width from this frame.
RiftScrollbar:EventAttachfunctionAttaches an event handler to an event.
RiftScrollbar:EventDetachfunctionDetaches an event handler from an event. Any parameter can be 'nil', and this is interpreted as a...
RiftScrollbar:EventListfunctionLists the current event handlers for an event.
RiftScrollbar:EventMacroGetfunctionGets the macro that will be triggered when this event occurs.
RiftScrollbar:EventMacroSetfunctionSets the macro that will be triggered when this event occurs.
RiftScrollbar:GetAlphafunctionGets the alpha multiplier of this frame.
RiftScrollbar:GetBackgroundColorfunctionRetrieves the background color of this frame.
RiftScrollbar:GetBottomfunctionRetrieves the Y position of the bottom edge of this element.
RiftScrollbar:GetBoundsfunctionRetrieves the complete bounds of this element.
RiftScrollbar:GetChildrenfunctionReturns a table containing all of this element's children.
RiftScrollbar:GetEnabledfunctionGets whether the scrollbar is enabled or disabled.
RiftScrollbar:GetEventTablefunctionRetrieves the event table of this element. By default, this value is also stored in "this.Event".
RiftScrollbar:GetHeightfunctionRetrieves the height of this element.
RiftScrollbar:GetKeyFocusfunctionGets the key focus status.
RiftScrollbar:GetLayerfunctionGets the frame's layer order.
RiftScrollbar:GetLeftfunctionRetrieves the X position of the left edge of this element.
RiftScrollbar:GetMouseMaskingfunctionGet the current mouse masking mode. See SetMouseMasking for details.
RiftScrollbar:GetMouseoverUnitfunctionGets the unit that is being represented by this frame.
RiftScrollbar:GetNamefunctionRetrieves the name of this element.
RiftScrollbar:GetOrientationfunctionGets the current orientation of the scrollbar.
RiftScrollbar:GetOwnerfunctionRetrieves the owner of this element.
RiftScrollbar:GetParentfunctionGets the parent of this frame.
RiftScrollbar:GetPositionfunctionReturns the current position of the scrollbar.
RiftScrollbar:GetRangefunctionReturns the current range of the scrollbar.
RiftScrollbar:GetRightfunctionRetrieves the X position of the right edge of this element.
RiftScrollbar:GetSecureModefunctionGet the current secure mode. See SetSecureMode for details.
RiftScrollbar:GetStratafunctionGets the frame's strata. The strata determines render order on a coarser level than Layer does, a...
RiftScrollbar:GetStrataListfunctionGets a list of valid stratas for this frame.
RiftScrollbar:GetThicknessfunctionReturns the thickness of the scrollbar handle. Size is relative to the range.
RiftScrollbar:GetTopfunctionRetrieves the Y position of the top edge of this element.
RiftScrollbar:GetTypefunctionRetrieves the type of this element.
RiftScrollbar:GetVisiblefunctionGets the visibility flag for this frame.
RiftScrollbar:GetWidthfunctionRetrieves the width of this element.
RiftScrollbar:NudgefunctionModify the scrollbar position, clamped to the current bounds.
RiftScrollbar:NudgeDownfunctionShift the scrollbar down (i.e. away from zero) by a standard amount.
RiftScrollbar:NudgeUpfunctionShift the scrollbar up (i.e. towards zero) by a standard amount.
RiftScrollbar:ReadAllfunctionRead all set points and sizes from this frame.
RiftScrollbar:ReadHeightfunctionRead a set height from this frame.
RiftScrollbar:ReadPointfunctionRead a set point from this frame. Must be given a single-axis coordinate.
RiftScrollbar:ReadWidthfunctionRead a set width from this frame.
RiftScrollbar:SetAllPointsfunctionPins all the edges of this frame to the edges of a different frame. If no target is given, defaul...
RiftScrollbar:SetAlphafunctionSets the alpha transparency multiplier for this frame and its children.
RiftScrollbar:SetBackgroundColorfunctionSets the background color of this frame.
RiftScrollbar:SetEnabledfunctionSets whether the scrollbar is enabled or disabled.
RiftScrollbar:SetHeightfunctionSets the height of this frame. Undefined results if the frame already has two pinned Y coordinates.
RiftScrollbar:SetKeyFocusfunctionSets the key focus status. Note that only one frame can be the key focus at a time. Focusing on a...
RiftScrollbar:SetLayerfunctionSets the frame layer for this frame. This can be any number. Frames are drawn in ascending order....
RiftScrollbar:SetMouseMaskingfunctionSets the frame's mouse masking mode.
RiftScrollbar:SetMouseoverUnitfunctionSets the unit that will be represented by this frame.
RiftScrollbar:SetOrientationfunctionSets the orientation of the scrollbar.
RiftScrollbar:SetParentfunctionSets the parent of this frame. Circular dependencies result in undefined behavior. If this frame'...
RiftScrollbar:SetPointfunctionPins a point on this frame to a location on another frame. This is a rather complex function and ...
RiftScrollbar:SetPositionfunctionChanges the current position of the scrollbar.
RiftScrollbar:SetRangefunctionChanges the current range of the scrollbar.
RiftScrollbar:SetSecureModefunctionSets the frame's secure mode.
"normal" is the standard mode. It allows for most functionality to ...
RiftScrollbar:SetStratafunctionSets the strata for this frame.
RiftScrollbar:SetThicknessfunctionSets the current thickness of the scrollbar handle. Size is relative to the range.
RiftScrollbar:SetVisiblefunctionSets the frame's visibility flag. If set to false, then this frame and all its children will not ...
RiftScrollbar:SetWidthfunctionSets the width of this frame. Undefined results if the frame already has two pinned X coordinates.

RiftScrollbar

A UI element of type RiftScrollbar or derived from RiftScrollbar.

RiftScrollbar.Event:KeyDown

Signals a key pressed.

Usage:

Frame.Event:KeyDown(button)
ParameterTypeDatatypeDescription
buttonparametervariantThe key, in string form.

RiftScrollbar.Event:KeyFocusGain

Signals gaining key focus.

Usage:

Frame.Event:KeyFocusGain()

RiftScrollbar.Event:KeyFocusLoss

Signals losing key focus.

Usage:

Frame.Event:KeyFocusLoss()

RiftScrollbar.Event:KeyRepeat

Frame.Event:KeyRepeat@summary

Usage:

Frame.Event:KeyRepeat(button)
ParameterTypeDatatypeDescription
buttonparametervariantThe key, in string form.

RiftScrollbar.Event:KeyType

Signals text typed.

Usage:

Frame.Event:KeyType(typed)
ParameterTypeDatatypeDescription
typedparametervariantThe text.

RiftScrollbar.Event:KeyUp

Signals a key released.

Usage:

Frame.Event:KeyUp(button)
ParameterTypeDatatypeDescription
buttonparametervariantThe key, in string form.

RiftScrollbar.Event:Layer

Signals a change in the item's layer.

Usage:

Frame.Event:Layer()

RiftScrollbar.Event:LeftClick

Signals that the mouse's left button has been clicked inside the frame. Blocks left mouse events and mouse movement events from frames below this one. May block right mouse events depending on the MouseMasking mode.

Usage:

Frame.Event:LeftClick()

RiftScrollbar.Event:LeftDown

Signals that the mouse's left button has been pressed inside the frame. Blocks left mouse events and mouse movement events from frames below this one. May block right mouse events depending on the MouseMasking mode.

Usage:

Frame.Event:LeftDown()

RiftScrollbar.Event:LeftUp

Signals that the mouse's left button has been released inside the frame. Blocks left mouse events and mouse movement events from frames below this one. May block right mouse events depending on the MouseMasking mode.

Usage:

Frame.Event:LeftUp()

RiftScrollbar.Event:LeftUpoutside

Signals that the mouse's left button has been released outside the frame, after a "Down" message. Blocks left mouse events and mouse movement events from frames below this one. May block right mouse events depending on the MouseMasking mode.

Usage:

Frame.Event:LeftUpoutside()

RiftScrollbar.Event:MiddleClick

Signals that the mouse's middle button has been clicked inside the frame. Blocks middle mouse events from frames below this one.

Usage:

Frame.Event:MiddleClick()

RiftScrollbar.Event:MiddleDown

Signals that the mouse's middle button has been pressed inside the frame. Blocks middle mouse events from frames below this one.

Usage:

Frame.Event:MiddleDown()

RiftScrollbar.Event:MiddleUp

Signals that the mouse's middle button has been released inside the frame. Blocks middle mouse events from frames below this one.

Usage:

Frame.Event:MiddleUp()

RiftScrollbar.Event:MiddleUpoutside

Signals that the mouse's middle button has been released outside the frame, after a "Down" message. Blocks middle mouse events from frames below this one.

Usage:

Frame.Event:MiddleUpoutside()

RiftScrollbar.Event:Mouse4Click

Signals that the mouse's fourth button has been clicked inside the frame. Blocks fourth button mouse events from frames below this one.

Usage:

Frame.Event:Mouse4Click()

RiftScrollbar.Event:Mouse4Down

Signals that the mouse's fourth button has been pressed inside the frame. Blocks fourth button mouse events from frames below this one.

Usage:

Frame.Event:Mouse4Down()

RiftScrollbar.Event:Mouse4Up

Signals that the mouse's fourth button has been released inside the frame. Blocks fourth button mouse events from frames below this one.

Usage:

Frame.Event:Mouse4Up()

RiftScrollbar.Event:Mouse4Upoutside

Signals that the mouse's fourth button has been released outside the frame, after a "Down" message. Blocks fourth button mouse events from frames below this one.

Usage:

Frame.Event:Mouse4Upoutside()

RiftScrollbar.Event:Mouse5Click

Signals that the mouse's fifth button has been clicked inside the frame. Blocks fifth button mouse events from frames below this one.

Usage:

Frame.Event:Mouse5Click()

RiftScrollbar.Event:Mouse5Down

Signals that the mouse's fifth button has been pressed inside the frame. Blocks fifth button mouse events from frames below this one.

Usage:

Frame.Event:Mouse5Down()

RiftScrollbar.Event:Mouse5Up

Signals that the mouse's fifth button has been released inside the frame. Blocks fifth button mouse events from frames below this one.

Usage:

Frame.Event:Mouse5Up()

RiftScrollbar.Event:Mouse5Upoutside

Signals that the mouse's fifth button has been released outside the frame, after a "Down" message. Blocks fifth button mouse events from frames below this one.

Usage:

Frame.Event:Mouse5Upoutside()

RiftScrollbar.Event:MouseIn

Signals that the mouse cursor has been moved onto the frame. Blocks mouse movement events from frames below this one. May block left and right events depending on the MouseMasking mode.

Usage:

Frame.Event:MouseIn()

RiftScrollbar.Event:MouseMove

Signals that the mouse cursor has been moved within the frame. Blocks mouse movement events from frames below this one. May block left and right events depending on the MouseMasking mode.

Usage:

Frame.Event:MouseMove(x, y)
ParameterTypeDatatypeDescription
xparametervariantX coordinate.
yparameter<nope>Y coordinate.

RiftScrollbar.Event:MouseOut

Signals that the mouse cursor has been moved off of the frame. Blocks mouse movement events from frames below this one. May block left and right events depending on the MouseMasking mode.

Usage:

Frame.Event:MouseOut()

RiftScrollbar.Event:Move

Signals that the frame's vertices have moved.

Usage:

Layout.Event:Move()

RiftScrollbar.Event:RightClick

Signals that the mouse's right button has been clicked inside the frame. Blocks right mouse events and mouse movement events from frames below this one. May block left mouse events depending on the MouseMasking mode.

Usage:

Frame.Event:RightClick()

RiftScrollbar.Event:RightDown

Signals that the mouse's right button has been pressed inside the frame. Blocks right mouse events and mouse movement events from frames below this one. May block left mouse events depending on the MouseMasking mode.

Usage:

Frame.Event:RightDown()

RiftScrollbar.Event:RightUp

Signals that the mouse's right button has been released inside the frame. Blocks right mouse events and mouse movement events from frames below this one. May block left mouse events depending on the MouseMasking mode.

Usage:

Frame.Event:RightUp()

RiftScrollbar.Event:RightUpoutside

Signals that the mouse's right button has been released outside the frame, after a "Down" message. Blocks right mouse events and mouse movement events from frames below this one. May block left mouse events depending on the MouseMasking mode.

Usage:

Frame.Event:RightUpoutside()

RiftScrollbar.Event:ScrollbarChange

Signals a change in the scrollbar position.

Usage:

RiftScrollbar.Event:ScrollbarChange()

RiftScrollbar.Event:ScrollbarGrab

Signals the user grabbing the scrollbar with the mouse.

Usage:

RiftScrollbar.Event:ScrollbarGrab()

RiftScrollbar.Event:ScrollbarRelease

Signals the user releasing the scrollbar.

Usage:

RiftScrollbar.Event:ScrollbarRelease()

RiftScrollbar.Event:Size

Signals that the frame's size has changed.

Usage:

Layout.Event:Size()

RiftScrollbar.Event:Strata

Signals a change in the item's strata.

Usage:

Frame.Event:Strata()

RiftScrollbar.Event:WheelBack

Signals that the mousewheel has been moved backward inside the frame. Blocks mousewheel events from frames below this one.

Usage:

Frame.Event:WheelBack()

RiftScrollbar.Event:WheelForward

Signals that the mousewheel has been moved forward inside the frame. Blocks mousewheel events from frames below this one.

Usage:

Frame.Event:WheelForward()

RiftScrollbar:ClearAll

Clear all set points and sizes from this frame.

Usage:

Frame:ClearAll()
noSecureFrameAndEnvironment
true

RiftScrollbar:ClearHeight

Clear a set height from this frame.

Usage:

Frame:ClearHeight()
noSecureFrameAndEnvironment
true

RiftScrollbar:ClearPoint

Clear a set point from this frame.

Usage:

Frame:ClearPoint(coordinate)
Frame:ClearPoint(x, y)
ParameterTypeDatatypeDescription
coordinateparameterstringNamed coordinate.
xparameternumber/nilX coordinate of the point.
yparameternumber/nilY coordinate of the point.
noSecureFrameAndEnvironment
true

RiftScrollbar:ClearWidth

Clear a set width from this frame.

Usage:

Frame:ClearWidth()
noSecureFrameAndEnvironment
true

RiftScrollbar:EventAttach

Attaches an event handler to an event.

Usage:

Layout:EventAttach(handle, callback, label)
Layout:EventAttach(handle, callback, label, priority)
ParameterTypeDatatypeDescription
callbackparameterfunctionA global event handler function. This will be called when the event fires. The first parameter will be the standard frame event handle, any other parameters will follow that.
handleparametereventFrameA handle to a frame event, usually pulled out of the "Event.UI." hierarchy.
labelparameterstringHuman-readable label used to identify the handler in error reports, performance reports, and for later detaching.
priorityparameternumberPriority of the event handler. Higher numbers trigger first.
noSecureFrameAndEnvironment
true

RiftScrollbar:EventDetach

Detaches an event handler from an event. Any parameter can be 'nil', and this is interpreted as a wildcard. If multiple events match the constraints, only one will be detached.

Usage:

Layout:EventDetach(handle, callback)
Layout:EventDetach(handle, callback, label)
Layout:EventDetach(handle, callback, label, priority)
Layout:EventDetach(handle, callback, label, priority, owner)
ParameterTypeDatatypeDescription
callbackparameterfunction/nilA callback function to search for.
handleparametereventFrameA handle to a frame event, usually pulled out of the "Event.UI." hierarchy.
labelparameterstring/nilHuman-readable label used to identify the handler in error reports, performance reports, and for later detaching.
ownerparameterstring/nilOwner to search for.
priorityparameternumber/nilPriority of the event handler. Higher numbers trigger first.

RiftScrollbar:EventList

Lists the current event handlers for an event.

Usage:

result = Layout:EventList(handle)
ParameterTypeDatatypeDescription
handleparametereventFrameA handle to a frame event, usually pulled out of the "Event.UI." hierarchy.
resultresulttableA table of event handlers for this event.
members
handler The handler that will be called when the event fires.
label Human-readable label used to identify the handler in error reports, performance reports, and for later detaching.
macro The macro that will run when the event fires.
owner Owner to search for.
priority Priority of the event handler. Higher numbers trigger first.

RiftScrollbar:EventMacroGet

Gets the macro that will be triggered when this event occurs.

Usage:

macro = Layout:EventMacroGet(handle)
ParameterTypeDatatypeDescription
handleparametereventFrameA handle to a frame event, usually pulled out of the "Event.UI." hierarchy.
macroresultstring/nilThe macro that will be triggered.

RiftScrollbar:EventMacroSet

Sets the macro that will be triggered when this event occurs.

Usage:

Layout:EventMacroSet(handle, macro)
ParameterTypeDatatypeDescription
handleparametereventFrameA handle to a frame event, usually pulled out of the "Event.UI." hierarchy.
macroparameterstring/nilThe macro to trigger. nil to clear the macro.
requireSecureFrameAndInsecureEnvironment
true

RiftScrollbar:GetAlpha

Gets the alpha multiplier of this frame.

Usage:

alpha = Element:GetAlpha()
ParameterTypeDatatypeDescription
alpharesultnumberThe alpha multiplier of this frame. 1 is fully opaque, 0 is fully transparent. This does not include multiplied alphas from this frame's parent - it's the exact value passed to SetAlpha.

RiftScrollbar:GetBackgroundColor

Retrieves the background color of this frame.

Usage:

r, g, b, a = Element:GetBackgroundColor()
ParameterTypeDatatypeDescription
aresultnumberAlpha. 1 is fully opaque, 0 is fully transparent.
bresultnumberBlue.
gresultnumberGreen.
rresultnumberRed.

RiftScrollbar:GetBottom

Retrieves the Y position of the bottom edge of this element.

Usage:

bottom = Layout:GetBottom()
ParameterTypeDatatypeDescription
bottomresultnumberThe Y position of the bottom edge of this element.

RiftScrollbar:GetBounds

Retrieves the complete bounds of this element.

Usage:

left, top, right, bottom = Layout:GetBounds()
ParameterTypeDatatypeDescription
bottomresultnumberThe Y position of the bottom edge of this element.
leftresultnumberThe X position of the left edge of this element.
rightresultnumberThe X position of the right edge of this element.
topresultnumberThe Y position of the top edge of this element.

RiftScrollbar:GetChildren

Returns a table containing all of this element's children.

Usage:

children = Element:GetChildren()
ParameterTypeDatatypeDescription
childrenresulttableA table containing this element's children.

RiftScrollbar:GetEnabled

Gets whether the scrollbar is enabled or disabled.

Usage:

enabled = RiftScrollbar:GetEnabled()
ParameterTypeDatatypeDescription
enabledresultbooleanThe current enable state of this item.

RiftScrollbar:GetEventTable

Retrieves the event table of this element. By default, this value is also stored in "this.Event".

Usage:

eventTable = Layout:GetEventTable()
ParameterTypeDatatypeDescription
eventTableresulttableThe event table of this element.

RiftScrollbar:GetHeight

Retrieves the height of this element.

Usage:

height = Layout:GetHeight()
ParameterTypeDatatypeDescription
heightresultnumberThe height of this element.

RiftScrollbar:GetKeyFocus

Gets the key focus status.

Usage:

focus = Element:GetKeyFocus()
ParameterTypeDatatypeDescription
focusresultbooleanWhether this frame is the current key focus.

RiftScrollbar:GetLayer

Gets the frame's layer order.

Usage:

layer = Frame:GetLayer()
ParameterTypeDatatypeDescription
layerresultnumberThe render layer of this frame. See Frame:SetLayer for details.

RiftScrollbar:GetLeft

Retrieves the X position of the left edge of this element.

Usage:

left = Layout:GetLeft()
ParameterTypeDatatypeDescription
leftresultnumberThe X position of the left edge of this element.

RiftScrollbar:GetMouseMasking

Get the current mouse masking mode. See SetMouseMasking for details.

Usage:

mask = Element:GetMouseMasking()
ParameterTypeDatatypeDescription
maskresultstringThe current mouse masking mode.

RiftScrollbar:GetMouseoverUnit

Gets the unit that is being represented by this frame.

Usage:

unit = Frame:GetMouseoverUnit()
ParameterTypeDatatypeDescription
unitresultstringThe current mouseover unit. May be nil if there is no mouseover unit.

RiftScrollbar:GetName

Retrieves the name of this element.

Usage:

name = Layout:GetName()
ParameterTypeDatatypeDescription
nameresultstringThe name of this element, as provided by the addon that created it.

RiftScrollbar:GetOrientation

Gets the current orientation of the scrollbar.

Usage:

orientation = RiftScrollbar:GetOrientation()
ParameterTypeDatatypeDescription
orientationresultstringThe current orientation. Valid results include "vertical" and "horizontal".

RiftScrollbar:GetOwner

Retrieves the owner of this element.

Usage:

owner = Layout:GetOwner()
ParameterTypeDatatypeDescription
ownerresultstringThe owner of this element. Given as an addon identifier.

RiftScrollbar:GetParent

Gets the parent of this frame.

Usage:

parent = Frame:GetParent()
ParameterTypeDatatypeDescription
parentresultElementThe parent element of this frame.

RiftScrollbar:GetPosition

Returns the current position of the scrollbar.

Usage:

position = RiftScrollbar:GetPosition()
ParameterTypeDatatypeDescription
positionresultnumberThe current position of this scrollbar.

RiftScrollbar:GetRange

Returns the current range of the scrollbar.

Usage:

minimum, maximum = RiftScrollbar:GetRange()
ParameterTypeDatatypeDescription
maximumresultnumberThe maximum value for the position of this slider.
minimumresultnumberThe minimum value for the position of this slider.

RiftScrollbar:GetRight

Retrieves the X position of the right edge of this element.

Usage:

right = Layout:GetRight()
ParameterTypeDatatypeDescription
rightresultnumberThe X position of the right edge of this element.

RiftScrollbar:GetSecureMode

Get the current secure mode. See SetSecureMode for details.

Usage:

secure = Frame:GetSecureMode()
ParameterTypeDatatypeDescription
secureresultstringThe current secure mode.

RiftScrollbar:GetStrata

Gets the frame's strata. The strata determines render order on a coarser level than Layer does, as well as determining how far an element is brought to the front when clicked on.

Usage:

strata = Frame:GetStrata()
ParameterTypeDatatypeDescription
strataresultstringThe item's current strata.

RiftScrollbar:GetStrataList

Gets a list of valid stratas for this frame.

Usage:

stratas = Frame:GetStrataList()
ParameterTypeDatatypeDescription
stratasresulttableAn array of valid stratas, in order.

RiftScrollbar:GetThickness

Returns the thickness of the scrollbar handle. Size is relative to the range.

Usage:

thickness = RiftScrollbar:GetThickness()
ParameterTypeDatatypeDescription
thicknessresultnumberThe thickness of the handle.

RiftScrollbar:GetTop

Retrieves the Y position of the top edge of this element.

Usage:

top = Layout:GetTop()
ParameterTypeDatatypeDescription
topresultnumberThe Y position of the top edge of this element.

RiftScrollbar:GetType

Retrieves the type of this element.

Usage:

type = Layout:GetType()
ParameterTypeDatatypeDescription
typeresultstringThe type of this element.

RiftScrollbar:GetVisible

Gets the visibility flag for this frame.

Usage:

visible = Element:GetVisible()
ParameterTypeDatatypeDescription
visibleresultbooleanThis frame's visibility flag, as set by SetVisible. Does not check the visibility flags of the frame's parents.

RiftScrollbar:GetWidth

Retrieves the width of this element.

Usage:

width = Layout:GetWidth()
ParameterTypeDatatypeDescription
widthresultnumberThe width of this element.

RiftScrollbar:Nudge

Modify the scrollbar position, clamped to the current bounds.

Usage:

RiftScrollbar:Nudge(offset)
ParameterTypeDatatypeDescription
offsetparameternumberThe amount to nudge.

RiftScrollbar:NudgeDown

Shift the scrollbar down (i.e. away from zero) by a standard amount.

Usage:

RiftScrollbar:NudgeDown()

RiftScrollbar:NudgeUp

Shift the scrollbar up (i.e. towards zero) by a standard amount.

Usage:

RiftScrollbar:NudgeUp()

RiftScrollbar:ReadAll

Read all set points and sizes from this frame.

Usage:

results = Layout:ReadAll()
ParameterTypeDatatypeDescription
resultsresulttableResult table. Contains data in the following format: {x = {size = (size), [(position)] = {layout = (layout), position = (position), offset = (offset)}}, y = (the same thing)}.

RiftScrollbar:ReadHeight

Read a set height from this frame.

Usage:

height = Layout:ReadHeight()
ParameterTypeDatatypeDescription
heightresultnumberThe parameter passed to SetHeight(), or nil if no such parameter has been passed.

RiftScrollbar:ReadPoint

Read a set point from this frame. Must be given a single-axis coordinate.

Usage:

layout, position, offset = Layout:ReadPoint(coordinate)
layout, position, offset = Layout:ReadPoint(x, y)
origin, offset = Layout:ReadPoint(coordinate)
origin, offset = Layout:ReadPoint(x, y)
ParameterTypeDatatypeDescription
coordinateparameterstringNamed coordinate. Must be a one-axis coordinate.
xparameternumber/nilX coordinate of the point. Either this or Y must be nil.
yparameternumber/nilY coordinate of the point. Either this or X must be nil.
layoutresultLayoutThe table that this point is pinned to.
offsetresultnumberThe offset in pixels from the source location to the actual location.
originresultstringThe string "origin".
positionresultnumberThe position on "layout" that this point is pinned. 0 refers to the top or left edge, 1 refers to the bottom or right edge.

RiftScrollbar:ReadWidth

Read a set width from this frame.

Usage:

width = Layout:ReadWidth()
ParameterTypeDatatypeDescription
widthresultnumberThe parameter passed to SetWidth(), or nil if no such parameter has been passed.

RiftScrollbar:SetAllPoints

Pins all the edges of this frame to the edges of a different frame. If no target is given, defaults to this frame's parent.

Usage:

Frame:SetAllPoints()
Frame:SetAllPoints(target)
ParameterTypeDatatypeDescription
targetparameterLayoutTarget Layout to pin this frame's edges to.
noSecureFrameAndEnvironment
true

RiftScrollbar:SetAlpha

Sets the alpha transparency multiplier for this frame and its children.

Usage:

Element:SetAlpha(alpha)
ParameterTypeDatatypeDescription
alphaparameternumberThe new alpha multiplier. 1 is fully opaque, 0 is fully transparent.

RiftScrollbar:SetBackgroundColor

Sets the background color of this frame.

Usage:

Element:SetBackgroundColor(r, g, b)
Element:SetBackgroundColor(r, g, b, a)
ParameterTypeDatatypeDescription
aparameternumberAlpha. 1 is fully opaque, 0 is fully transparent. Defaults to 1.
bparameternumberBlue.
gparameternumberGreen.
rparameternumberRed.

RiftScrollbar:SetEnabled

Sets whether the scrollbar is enabled or disabled.

Usage:

RiftScrollbar:SetEnabled(enabled)
ParameterTypeDatatypeDescription
enabledparameterbooleanThe new enable state of this item.

RiftScrollbar:SetHeight

Sets the height of this frame. Undefined results if the frame already has two pinned Y coordinates.

Usage:

Frame:SetHeight(height)
ParameterTypeDatatypeDescription
heightparameternumberThe new height of this frame.
noSecureFrameAndEnvironment
true

RiftScrollbar:SetKeyFocus

Sets the key focus status. Note that only one frame can be the key focus at a time. Focusing on another frame will automatically unset the current focus.

Usage:

Element:SetKeyFocus(focus)
ParameterTypeDatatypeDescription
focusparameterbooleanThe new key focus setting.

RiftScrollbar:SetLayer

Sets the frame layer for this frame. This can be any number. Frames are drawn in ascending order. If two frames have the same layer number, then the order of those frames is undefined, but guarantees no Z-fighting. Frames are always drawn after their parents.

Usage:

Frame:SetLayer(layer)
ParameterTypeDatatypeDescription
layerparameternumberThe new layer for this frame.
noSecureFrameAndEnvironment
true

RiftScrollbar:SetMouseMasking

Sets the frame's mouse masking mode.

Usage:

Element:SetMouseMasking(mask)
ParameterTypeDatatypeDescription
maskparameterstringThe new mouse masking mode. "full" is the standard mode, and means that creating any Left, Right, or movement-related mouse event will cause the frame to accept and consume any event from any of those types. "limited" causes the frame to accept and consume only events for buttons that have been hooked, so that hooking "LeftDown" will still pass Right mouse events through the frame. Note that hooking any mouse event will still consume MouseMove/In/Out events.
noSecureFrameAndEnvironment
true

RiftScrollbar:SetMouseoverUnit

Sets the unit that will be represented by this frame.

Usage:

Frame:SetMouseoverUnit(unit)
ParameterTypeDatatypeDescription
unitparameternil, unitThe new mouseover unit. May be a unit ID or a unit specifier. Pass in nil to disable the mouseover effect.
requireSecureFrameAndInsecureEnvironment
true

RiftScrollbar:SetOrientation

Sets the orientation of the scrollbar.

Usage:

RiftScrollbar:SetOrientation(orientation)
ParameterTypeDatatypeDescription
orientationparameterstringThe new orientation. Must be either "vertical" or "horizontal".

RiftScrollbar:SetParent

Sets the parent of this frame. Circular dependencies result in undefined behavior. If this frame's secure mode is "restricted", then its parent must also have a secure mode of "restricted".

Usage:

Frame:SetParent(parent)
ParameterTypeDatatypeDescription
parentparameterElementThe new parent for this frame.
noSecureFrameAndEnvironment
true

RiftScrollbar:SetPoint

Pins a point on this frame to a location on another frame. This is a rather complex function and you should look at examples to see how to use it.
This function can take many different forms. In general, it looks like this: SetPoint(point_on_this_frame, target_frame, point_on_target_frame [, x_offset, y_offset]).
The first part is the point on this frame that will be attached. Usually, these are string identifiers. "TOPLEFT", "TOPCENTER", "TOPRIGHT", "CENTERLEFT", "CENTER", "CENTERRIGHT", "BOTTOMLEFT", "BOTTOMCENTER", "BOTTOMRIGHT". You may also use a string identifier that refers to a single axis - "TOP", "BOTTOM", "LEFT", "RIGHT", "CENTERX", "CENTERY". If you want more direct numeric control you can use number pairs. 0,0 is equivalent to "TOPLEFT", 1,1 is equivalent to "BOTTOMRIGHT", 0.5,nil is equivalent to "CENTERX".
The second part is the frame to attach to, as well as the point on that frame to attach to. The frame is simply passing in the frame table. The point is the same identifier or number pair as the first parameter.
Optionally, you may include an X or Y offset to the point.
This connection is permanent, and if the target frame moves, this frame will move along with it.
Caveat: If the target is a frame set to the "restricted" SecureMode, and the client is currently in "secure" mode, then unexpected behavior may occur.

Usage:

Frame:SetPoint(...)
ParameterTypeDatatypeDescription
...parameter...This function's parameters are complicated. Read the above summary for details.
noSecureFrameAndEnvironment
true

RiftScrollbar:SetPosition

Changes the current position of the scrollbar.

Usage:

RiftScrollbar:SetPosition(position)
ParameterTypeDatatypeDescription
positionparameternumberThe new position of this scrollbar. Must be within the current range.

RiftScrollbar:SetRange

Changes the current range of the scrollbar.

Usage:

RiftScrollbar:SetRange(minimum, maximum)
ParameterTypeDatatypeDescription
maximumparameternumberThe new maximum value for the position of this slider. Must be an integer and larger than or equal to "minimum".
minimumparameternumberThe new minimum value for the position of this slider. Must be an integer and smaller than or equal to "maximum".

RiftScrollbar:SetSecureMode

Sets the frame's secure mode.
"normal" is the standard mode. It allows for most functionality to be used and does not restrict frames in combat. "restricted" allows for certain sensitive functions to be called, but disables a significant amount of functionality in combat. In order to change a frame to "restricted", its parent must already be "restricted". Note that a "restricted" frame can still have "normal" children.
If you are not planning to use any restricted functions, your frame should remain in normal mode.
At the moment, it is not possible to change from "restricted" back to "normal".

Usage:

Frame:SetSecureMode(secure)
ParameterTypeDatatypeDescription
secureparameterstringThe new secure mode. Valid inputs are "normal" and "restricted".

RiftScrollbar:SetStrata

Sets the strata for this frame.

Usage:

Frame:SetStrata(strata)
ParameterTypeDatatypeDescription
strataparameterstringThe item's new strata. Must be one of the elements returned by :GetStrataList().
noSecureFrameAndEnvironment
true

RiftScrollbar:SetThickness

Sets the current thickness of the scrollbar handle. Size is relative to the range.

Usage:

RiftScrollbar:SetThickness(thickness)
ParameterTypeDatatypeDescription
thicknessparameternumberThe new thickness of the handle.

RiftScrollbar:SetVisible

Sets the frame's visibility flag. If set to false, then this frame and all its children will not be rendered or accept mouse input.

Usage:

Element:SetVisible(visible)
ParameterTypeDatatypeDescription
visibleparameterbooleanThe new visibility flag.
noSecureFrameAndEnvironment
true

RiftScrollbar:SetWidth

Sets the width of this frame. Undefined results if the frame already has two pinned X coordinates.

Usage:

Frame:SetWidth(width)
ParameterTypeDatatypeDescription
widthparameternumberThe new width of this frame.
noSecureFrameAndEnvironment
true

Back to index...