WoW:API Region GetBottom: Difference between revisions

m
No edit summary
Line 1: Line 1:
This function returns the bottom edge of the frame in relation to the bottom of the screen.  As a frame moves up its return value for this function increases, as the frame moves down its return value decreases.  This function works for all frames including UIParent and WorldFrame.
This function returns the bottom edge of the frame in relation to the bottom of the screen, scaled with the frame's effective scale.  As a frame moves up its return value for this function increases, as the frame moves down its return value decreases.  This function works for all frames including UIParent and WorldFrame.


This function is only guaranteed to work after the PLAYER_LOGIN event and then, only if the frame in question is being Shown.  Also, currently if you re-anchor a frame or Show a frame, you will need to wait up to a second before this function will return the correct new value.
This function is only guaranteed to work after the PLAYER_LOGIN event and then, only if the frame in question is being Shown.  Also, currently if you re-anchor a frame or Show a frame, you will need to wait up to a second before this function will return the correct new value.
Line 25: Line 25:
==See also==
==See also==


*[[API_Frame_GetTop|Frame:GetTop()]]
*[[API_LayoutFrame_GetTop|LayoutFrame:GetTop()]]
*[[API_Frame_GetLeft|Frame:GetLeft()]]
*[[API_LayoutFrame_GetLeft|LayoutFrame:GetLeft()]]
*[[API_Frame_GetRight|Frame:GetRight()]]
*[[API_LayoutFrame_GetRight|LayoutFrame:GetRight()]]




Anonymous user