Skip to content

4 Helper

Fireclaw edited this page Dec 29, 2020 · 3 revisions

The helper class contains some functions to get more accurate positions and sizes of DirectGui widgets

Functions

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

Clone this wiki locally