Static methods

@:value({ offsetY : 0, offsetX : 0, divisionsY : 1, divisionsX : 1 })@:access(koui.elements.Element)staticdrawFromAtlas(g:KGraphics, element:Element, divisionsX:Int = 1, divisionsY:Int = 1, offsetX:Int = 0, offsetY:Int = 0, ?drawX:Int, ?drawY:Int):Bool

Draws a part of the background texture of the given element to the given Graphics object.

Parameters:

g
element
divisionsX

How many times the texture is divided (tiled) on the x axis (default: 1)

divisionsY

How many times the texture is divided (tiled) on the y axis (default: 1)

offsetX

The x axis index of the tile that should be drawn, see divisionsX (default: 0)

offsetY

The y axis index of the tile that should be drawn, see divisionsY (default: 0)

drawX

Custom drawing position

drawX

Custom drawing position

Returns:

true if the background texture exists and was drawn, else false