Static variables

@:value(new Map<Int,Dynamic>())staticassetMap:Map<Int, Dynamic> = new Map<Int,Dynamic>()

@:value("font_default.ttf")staticinlineread onlydefaultFontName:String = "font_default.ttf"

@:value(kha.graphics2.ImageScaleQuality.Low)staticimageScaleQuality:ImageScaleQuality = kha.graphics2.ImageScaleQuality.Low

@:value("en")staticlocale:String = "en"

@:value(-1)staticscreenH:Int = -1

@:value(-1)staticscreenW:Int = -1

@:value(new Array<zui.Themes.TTheme>())staticthemes:Array<TTheme> = new Array<zui.Themes.TTheme>()

Static methods

staticdraw(ui:Zui, canvas:TCanvas, g:Graphics):Array<String>

staticgetAnchorOffset(canvas:TCanvas, element:TElement):Array<Float>

Returns the positional scaled offset of the given element based on its anchor setting.

Parameters:

canvas

The canvas object

element

The element

Returns:

Array<Float> [xOffset, yOffset]

staticgetAsset(canvas:TCanvas, asset:String):Dynamic

staticgetAssetId(canvas:TCanvas):Int

staticinlinegetColor(color:Null<Int>, defaultColor:Int):Int

staticgetElementId(canvas:TCanvas):Int

staticgetTheme(theme:String):TTheme

staticinlineisFontAsset(assetName:Null<String>):Bool

staticparseCanvasFromBlob(blob:Blob):TCanvas

Parse the content of the given blob object and return a TCanvas object from it.