Back to index...

NameTypeDeprecatedSecureDescription
RiftWindowBorder.Event:KeyDownSignals a key pressed.
RiftWindowBorder.Event:KeyFocusGainSignals gaining key focus.
RiftWindowBorder.Event:KeyFocusLossSignals losing key focus.
RiftWindowBorder.Event:KeyRepeatFrame.Event:KeyRepeat@summary
RiftWindowBorder.Event:KeyTypeSignals text typed.
RiftWindowBorder.Event:KeyUpSignals a key released.
RiftWindowBorder.Event:LeftClickSignals that the mouse's left button has been clicked inside the frame. Blocks left mouse events ...
RiftWindowBorder.Event:LeftDownSignals that the mouse's left button has been pressed inside the frame. Blocks left mouse events ...
RiftWindowBorder.Event:LeftUpSignals that the mouse's left button has been released inside the frame. Blocks left mouse events...
RiftWindowBorder.Event:LeftUpoutsideSignals that the mouse's left button has been released outside the frame, after a "Down" message....
RiftWindowBorder.Event:MiddleClickSignals that the mouse's middle button has been clicked inside the frame. Blocks middle mouse eve...
RiftWindowBorder.Event:MiddleDownSignals that the mouse's middle button has been pressed inside the frame. Blocks middle mouse eve...
RiftWindowBorder.Event:MiddleUpSignals that the mouse's middle button has been released inside the frame. Blocks middle mouse ev...
RiftWindowBorder.Event:MiddleUpoutsideSignals that the mouse's middle button has been released outside the frame, after a "Down" messag...
RiftWindowBorder.Event:Mouse4ClickSignals that the mouse's fourth button has been clicked inside the frame. Blocks fourth button mo...
RiftWindowBorder.Event:Mouse4DownSignals that the mouse's fourth button has been pressed inside the frame. Blocks fourth button mo...
RiftWindowBorder.Event:Mouse4UpSignals that the mouse's fourth button has been released inside the frame. Blocks fourth button m...
RiftWindowBorder.Event:Mouse4UpoutsideSignals that the mouse's fourth button has been released outside the frame, after a "Down" messag...
RiftWindowBorder.Event:Mouse5ClickSignals that the mouse's fifth button has been clicked inside the frame. Blocks fifth button mous...
RiftWindowBorder.Event:Mouse5DownSignals that the mouse's fifth button has been pressed inside the frame. Blocks fifth button mous...
RiftWindowBorder.Event:Mouse5UpSignals that the mouse's fifth button has been released inside the frame. Blocks fifth button mou...
RiftWindowBorder.Event:Mouse5UpoutsideSignals that the mouse's fifth button has been released outside the frame, after a "Down" message...
RiftWindowBorder.Event:MouseInSignals that the mouse cursor has been moved onto the frame. Blocks mouse movement events from fr...
RiftWindowBorder.Event:MouseMoveSignals that the mouse cursor has been moved within the frame. Blocks mouse movement events from ...
RiftWindowBorder.Event:MouseOutSignals that the mouse cursor has been moved off of the frame. Blocks mouse movement events from ...
RiftWindowBorder.Event:MoveSignals that the frame's vertices have moved.
RiftWindowBorder.Event:RightClickSignals that the mouse's right button has been clicked inside the frame. Blocks right mouse event...
RiftWindowBorder.Event:RightDownSignals that the mouse's right button has been pressed inside the frame. Blocks right mouse event...
RiftWindowBorder.Event:RightUpSignals that the mouse's right button has been released inside the frame. Blocks right mouse even...
RiftWindowBorder.Event:RightUpoutsideSignals that the mouse's right button has been released outside the frame, after a "Down" message...
RiftWindowBorder.Event:SizeSignals that the frame's size has changed.
RiftWindowBorder.Event:WheelBackSignals that the mousewheel has been moved backward inside the frame. Blocks mousewheel events fr...
RiftWindowBorder.Event:WheelForwardSignals that the mousewheel has been moved forward inside the frame. Blocks mousewheel events fro...
RiftWindowBorder:EventAttachfunctionAttaches an event handler to an event.
RiftWindowBorder:EventDetachfunctionDetaches an event handler from an event. Any parameter can be 'nil', and this is interpreted as a...
RiftWindowBorder:EventListfunctionLists the current event handlers for an event.
RiftWindowBorder:EventMacroGetfunctionGets the macro that will be triggered when this event occurs.
RiftWindowBorder:EventMacroSetfunctionSets the macro that will be triggered when this event occurs.
RiftWindowBorder:GetAlphafunctionGets the alpha multiplier of this frame.
RiftWindowBorder:GetBackgroundColorfunctionRetrieves the background color of this frame.
RiftWindowBorder:GetBottomfunctionRetrieves the Y position of the bottom edge of this element.
RiftWindowBorder:GetBoundsfunctionRetrieves the complete bounds of this element.
RiftWindowBorder:GetChildrenfunctionReturns a table containing all of this element's children.
RiftWindowBorder:GetEventTablefunctionRetrieves the event table of this element. By default, this value is also stored in "this.Event".
RiftWindowBorder:GetHeightfunctionRetrieves the height of this element.
RiftWindowBorder:GetKeyFocusfunctionGets the key focus status.
RiftWindowBorder:GetLeftfunctionRetrieves the X position of the left edge of this element.
RiftWindowBorder:GetMouseMaskingfunctionGet the current mouse masking mode. See SetMouseMasking for details.
RiftWindowBorder:GetNamefunctionRetrieves the name of this element.
RiftWindowBorder:GetOwnerfunctionRetrieves the owner of this element.
RiftWindowBorder:GetRightfunctionRetrieves the X position of the right edge of this element.
RiftWindowBorder:GetTopfunctionRetrieves the Y position of the top edge of this element.
RiftWindowBorder:GetTypefunctionRetrieves the type of this element.
RiftWindowBorder:GetVisiblefunctionGets the visibility flag for this frame.
RiftWindowBorder:GetWidthfunctionRetrieves the width of this element.
RiftWindowBorder:ReadAllfunctionRead all set points and sizes from this frame.
RiftWindowBorder:ReadHeightfunctionRead a set height from this frame.
RiftWindowBorder:ReadPointfunctionRead a set point from this frame. Must be given a single-axis coordinate.
RiftWindowBorder:ReadWidthfunctionRead a set width from this frame.
RiftWindowBorder:SetAlphafunctionSets the alpha transparency multiplier for this frame and its children.
RiftWindowBorder:SetBackgroundColorfunctionSets the background color of this frame.
RiftWindowBorder:SetKeyFocusfunctionSets the key focus status. Note that only one frame can be the key focus at a time. Focusing on a...
RiftWindowBorder:SetMouseMaskingfunctionSets the frame's mouse masking mode.
RiftWindowBorder:SetVisiblefunctionSets the frame's visibility flag. If set to false, then this frame and all its children will not ...

RiftWindowBorder.Event:KeyDown

Signals a key pressed.

Usage:

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

RiftWindowBorder.Event:KeyFocusGain

Signals gaining key focus.

Usage:

Frame.Event:KeyFocusGain()

RiftWindowBorder.Event:KeyFocusLoss

Signals losing key focus.

Usage:

Frame.Event:KeyFocusLoss()

RiftWindowBorder.Event:KeyRepeat

Frame.Event:KeyRepeat@summary

Usage:

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

RiftWindowBorder.Event:KeyType

Signals text typed.

Usage:

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

RiftWindowBorder.Event:KeyUp

Signals a key released.

Usage:

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

RiftWindowBorder.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()

RiftWindowBorder.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()

RiftWindowBorder.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()

RiftWindowBorder.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()

RiftWindowBorder.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()

RiftWindowBorder.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()

RiftWindowBorder.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()

RiftWindowBorder.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()

RiftWindowBorder.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()

RiftWindowBorder.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()

RiftWindowBorder.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()

RiftWindowBorder.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()

RiftWindowBorder.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()

RiftWindowBorder.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()

RiftWindowBorder.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()

RiftWindowBorder.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()

RiftWindowBorder.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()

RiftWindowBorder.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.

RiftWindowBorder.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()

RiftWindowBorder.Event:Move

Signals that the frame's vertices have moved.

Usage:

Layout.Event:Move()

RiftWindowBorder.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()

RiftWindowBorder.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()

RiftWindowBorder.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()

RiftWindowBorder.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()

RiftWindowBorder.Event:Size

Signals that the frame's size has changed.

Usage:

Layout.Event:Size()

RiftWindowBorder.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()

RiftWindowBorder.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()

RiftWindowBorder: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

RiftWindowBorder: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.

RiftWindowBorder: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.

RiftWindowBorder: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.

RiftWindowBorder: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

RiftWindowBorder: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.

RiftWindowBorder: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.

RiftWindowBorder: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.

RiftWindowBorder: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.

RiftWindowBorder:GetChildren

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

Usage:

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

RiftWindowBorder: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.

RiftWindowBorder:GetHeight

Retrieves the height of this element.

Usage:

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

RiftWindowBorder:GetKeyFocus

Gets the key focus status.

Usage:

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

RiftWindowBorder: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.

RiftWindowBorder:GetMouseMasking

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

Usage:

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

RiftWindowBorder: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.

RiftWindowBorder:GetOwner

Retrieves the owner of this element.

Usage:

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

RiftWindowBorder: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.

RiftWindowBorder: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.

RiftWindowBorder:GetType

Retrieves the type of this element.

Usage:

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

RiftWindowBorder: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.

RiftWindowBorder:GetWidth

Retrieves the width of this element.

Usage:

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

RiftWindowBorder: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)}.

RiftWindowBorder: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.

RiftWindowBorder: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.

RiftWindowBorder: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.

RiftWindowBorder: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.

RiftWindowBorder: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.

RiftWindowBorder: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.

RiftWindowBorder: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

RiftWindowBorder: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

Back to index...