Sets the frame to which the tooltip refers and is anchored

Signature:

GameTooltip:SetOwner(frame [, "anchorType" [, xOffset [, yOffset]]])

Arguments:

  • frame - Reference to the Frame to which the tooltip refers (frame)

  • anchorType - Token identifying the positioning method for the tooltip relative to its owner frame (string)

    • ANCHOR_BOTTOMLEFT - Align the top right of the tooltip with the bottom left of the owner
    • ANCHOR_CURSOR - Toolip follows the mouse cursor
    • ANCHOR_LEFT - Align the bottom right of the tooltip with the top left of the owner
    • ANCHOR_NONE - Tooltip appears in the default position
    • ANCHOR_PRESERVE - Tooltip's position is saved between sessions (useful if the tooltip is made user-movable)
    • ANCHOR_RIGHT - Align the bottom left of the tooltip with the top right of the owner
    • ANCHOR_TOPLEFT - Align the bottom left of the tooltip with the top left of the owner
    • ANCHOR_TOPRIGHT - Align the bottom right of the tooltip with the top right of the owner

  • xOffset - The horizontal offset for the tooltip anchor (number)

  • yOffset - The vertical offset for the tooltip anchor (number)