WoW:API GameTooltip SetOwner

From AddOn Studio
Revision as of 18:16, 1 October 2005 by WoWWiki>Joules
Jump to navigation Jump to search
GameTooltip:SetOwner -Documentation by Xenoveritas-
-Edited by ThePooBurner-


GameTooltip:SetOwner(owner, anchor);


Moves the game tooltip to a location based on the "owner" frame.


Arguments


(owner, "Anchor")
owner
Frame - Owner frame, which defines the element where the tooltip is centered on
anchor
String - a string that describes the anchor point as it would be set via the SetPoint() function. Anchoring meathods as follows:
ANCHOR_TOPRIGHT ------- SetPoint("BOTTOMRIGHT",object,"TOPRIGHT")
ANCHOR_RIGHT ------- SetPoint("BOTTOMLEFT",object,"TOPRIGHT")
ANCHOR_BOTTOMRIGHT ------- SetPoint("TOPLEFT",object,"BOTTOMRIGHT")
ANCHOR_TOPLEFT ------- SetPoint("BOTTOMLEFT",object,"TOPLEFT")
ANCHOR_LEFT ------- SetPoint("BOTTOMRIGHT",object,"TOPLEFT")
ANCHOR_BOTTOMLEFT ------- SetPoint("TOPRIGHT",object,"BOTTOMLEFT")
ANCHOR_CURSOR

Returns
Nothing?

Details


This only appears to be a convience method for setting the location of the tooltip, it doesn't seem to actually grant any "ownership" of the tooltip over anything else.

Template:WoW API