DxGetBounds
		
		
		
		
		
		Jump to navigation
		Jump to search
		
		
	
This function returns the absolute local bounds of any DxElement.
Syntax
bool dxGetBounds ( DxElement dxElement )
OOP Syntax Help! I don't understand this!
- Method: DxElement:getBounds(...)
 
Required Arguments
- dxElement: element you wish to get the bounds for
 
Returns
Returns 4 integers
Example
This example creates a window and prints the bounds.
local window = DxWindow:new(50, 50, 300, 300, "My Window") local minX, minY, maxX, maxY = dxGetBounds(window) iprint(minX, minY, maxX, maxY) --50, 50, 350, 350
See Also
- dxAddClickFunction
 - dxAddRenderFunction
 - dxApplyMask
 - dxBringToFront
 - dxDestroy
 - dxGetAlpha
 - dxGetBounds
 - dxGetChildren
 - dxGetChildrenByType
 - dxGetColor
 - dxGetGlobalProperty
 - dxGetHoverColor
 - dxGetIndex
 - dxGetInheritedBounds
 - dxGetInheritedChildren
 - dxGetInheritedChildrenByType
 - dxGetInheritedParents
 - dxGetMaskTexture
 - dxGetNonRootElements
 - dxGetObstructingElement
 - dxGetParent
 - dxGetPosition
 - dxGetProperty
 - dxGetRootElement
 - dxGetRootElements
 - dxGetSize
 - dxGetText
 - dxGetTextColor
 - dxGetTexture
 - dxGetTopLevelChildren
 - dxGetVisible
 - dxIsChild
 - dxIsFront
 - dxIsInheritedChild
 - dxIsObstructed
 - dxIsObstructedByElement
 - dxIsParent
 - dxIsRootElement
 - dxRemoveClickFunction
 - dxRemoveRenderFunction
 - dxSendToBack
 - dxSetAlpha
 - dxSetCentered
 - dxSetColor
 - dxSetDragArea
 - dxSetGlobalProperty
 - dxSetHoverColor
 - dxSetIndex
 - dxSetMaskEnabled
 - dxSetParent
 - dxSetPosition
 - dxSetProperty
 - dxSetSize
 - dxSetText
 - dxSetTextColor
 - dxSetVisible
 - isMouseOverDxElement