-
Notifications
You must be signed in to change notification settings - Fork 3
4 Helper
The helper class contains some functions to get more accurate positions and sizes of DirectGui widgets
getBorderSize(guiItem)
Returns the border width of the given item if it has an actual frameSize and correct frameStyle. Otherwise returns (0,0)
getBounds(guiItem)
Returns either the bounds of an element or if those are none but a frameSize is given, it will return the frameSize
getRealWidth(guiItem)
Returns the width of this item including border size and scale factor
getRealHeight(guiItem)
Returns the height of this item including border size and scale factor
getRealLeft(guiItem)
Returns the left bounding value including border size and scale factor
getRealRight(guiItem)
Returns the right bounding value including border size and scale factor
getRealTop(guiItem)
Returns the top bounding value including border size and scale factor
getRealBottom(guiItem)
Returns the bottom bounding value including border size and scale factor