api/widgets/FrameBase

FrameBase:AddListener(listener)

Adds a new listener to the frame.
Extends the AddListener function to automatically set up any event handlers required by the listener. For example if the listener has an "OnEvent" function, an event handler for "OnEvent" will be set up on the frame.

Parameters

listener
a listener table to add.


FrameBase:EnableMouse(flag)

Enables or disables mouse interactivity.
Note: This function cannot be called during combat lockdown.

Parameters

flag
true if mouse interactivty should be enabled, or false if it should be disabled.


FrameBase:IsMouseEnabled()

Returns whether or not the frame is mouse enabled.

Return value

true if the frame is mouse enabled, or false otherwise.


FrameBase:IsMovable()

Returns whether or not the frame is movable.

Return value

true if the frame is movable, or false otherwise.


FrameBase:RemoveListener(listener)

Removes a listener from the frame.
Extends the RemoveListener to also remove any event handlers that are no longer being listened for from the frame.

Parameters

listener
the listener object to remove.


FrameBase:SetMovable(flag)

Sets whether or not the frame is movable.

Parameters

flag
true if the frame should be movable, or false if it should not.


FrameBase:StartMoving()

Starts moving the frame.


FrameBase:StopMovingOrSizing()

Stops the frame from being moved or resized.



Comments

Posts Quoted:
Reply
Clear All Quotes