12.07.2015 Views

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 29 ■ Widget <strong>Reference</strong> 1179Returns:anchor—Token identifying the method <strong>for</strong> anchoring the tooltip relative to itsowner frame (string)GetItemANCHOR_BOTTOMLEFT - Align the top right <strong>of</strong> the tooltip with the bottom left<strong>of</strong> the ownerANCHOR_CURSOR - Tooltip follows the mouse cursorANCHOR_LEFT - Align the bottom right <strong>of</strong> the tooltip with the top left <strong>of</strong> theownerANCHOR_NONE - Tooltip appears in the default positionANCHOR_PRESERVE - Tooltip’s position is saved between sessions (useful if thetooltip is made user-movable)ANCHOR_RIGHT - Align the bottom left <strong>of</strong> the tooltip with the top right <strong>of</strong> theownerANCHOR_TOPLEFT - Align the bottom left <strong>of</strong> the tooltip with the top left <strong>of</strong> theownerANCHOR_TOPRIGHT - Align the bottom right <strong>of</strong> the tooltip with the top right <strong>of</strong>the ownerReturns the name <strong>and</strong> hyperlink <strong>for</strong> the item displayed in the tooltip.name, link = GameTooltip:GetItem()Returns:name—Name <strong>of</strong> the item whose in<strong>for</strong>mation is displayed in the tooltip, or nil.(string)link—A hyperlink <strong>for</strong> the item (string, hyperlink)GetMinimumWidthReturns the minimum width <strong>of</strong> the tooltip.width = GameTooltip:GetMinimumWidth()Returns:width—Minimum width <strong>of</strong> the tooltip frame (in pixels) (number)GetOwnerReturns the frame to which the tooltip refers <strong>and</strong> is anchored.owner = GameTooltip:GetOwner()Returns:owner—<strong>Reference</strong> to the Frame object to which the tooltip is anchored (frame)GetPaddingReturns the amount <strong>of</strong> space between tooltip’s text <strong>and</strong> its right-side edge.padding = GameTooltip:GetPadding()Returns:padding—Amount <strong>of</strong> space between the right-side edge <strong>of</strong> the tooltip’stext <strong>and</strong> the right-side edge <strong>of</strong> the tooltip frame (in pixels) (number)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!