WoW:API GameTooltip SetOwner: Difference between revisions

m
no edit summary
No edit summary
 
mNo edit summary
Line 1: Line 1:
<center>'''GameTooltip:SetOwner''' ''-Documentation by [[user:Xenoveritas|Xenoveritas]]-''</center>
<center>'''GameTooltip:SetOwner''' ''-Documentation by [[user:Xenoveritas|Xenoveritas]]-''</center>
<center>''-Edited by [[user:ThePooBurner|ThePooBurner]]-''</center>


<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args -->
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args -->
Line 16: Line 17:
:(owner, "Anchor")
:(owner, "Anchor")
:;owner : Frame - Owner frame, which defines the element where the tooltip is centered on
:;owner : Frame - Owner frame, which defines the element where the tooltip is centered on
:;anchor : String - a string that describes the anchor point, "ANCHOR_LEFT" anchors it to the left edge, "ANCHOR_RIGHT" anchors it to the right edge
:;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")


----
----
Anonymous user