API inspired by Dear ImGui, but using ceramic elements UI, making it work with any ceramic target

Static variables

@:value("Yes")staticYES:String = "Yes"

@:value("No")staticNO:String = "No"

@:value("OK")staticOK:String = "OK"

staticread onlydefaultTheme:Theme

staticread onlycurrentTheme:Theme

Static methods

staticdepth(depth:Float):Void

staticget(key:String):Window

statichits(x:Float, y:Float):Bool

Return true if any window is hitten given point.

Parameters:

x

X position (logical screen metric)

y

Y position (logical screen metric)

Returns:

Bool

staticusesScanCode(scanCode:ScanCode):Bool

Returns true if there is a currently focused field that uses the given scan code

Parameters:

scanCode

The scan code to test

Returns:

true if this scan code is used

staticusesKeyCode(keyCode:KeyCode):Bool

Returns true if there is a currently focused field that uses the given key code

Parameters:

keyCode

The key code to test

Returns:

true if this key code is used

staticusesShift():Bool

@:value({ height : WindowData.DEFAULT_HEIGHT, width : WindowData.DEFAULT_WIDTH })staticinlinebegin(key:String, title:String, width:Float = WindowData.DEFAULT_WIDTH, height:Float = WindowData.DEFAULT_HEIGHT, ?pos:Null<PosInfos>):Window

@:value({ height : WindowData.DEFAULT_HEIGHT, width : WindowData.DEFAULT_WIDTH })staticinlinebegin(key:String, width:Float = WindowData.DEFAULT_WIDTH, height:Float = WindowData.DEFAULT_HEIGHT, ?pos:Null<PosInfos>):Window

staticinlinebeginTabs(selected:StringPointer):Bool

staticendTabs():Void

staticinlinetab(key:String):Bool

staticinlinetab(key:String, title:String):Bool

staticbeginRow():Void

staticendRow():Void

@:value({ labelPosition : DEFAULT_LABEL_POSITION })staticlabelPosition(labelPosition:LabelPosition = DEFAULT_LABEL_POSITION):Void

@:value({ labelWidth : DEFAULT_LABEL_WIDTH })staticlabelWidth(labelWidth:Float = DEFAULT_LABEL_WIDTH):Void

@:value({ textAlign : DEFAULT_TEXT_ALIGN })statictextAlign(textAlign:TextAlign = DEFAULT_TEXT_ALIGN):Void

staticdisabled(disabled:Bool):Void

staticflex(flex:Int):Void

staticinlinetextColor():Void

staticinlinetextColor(color:Color):Void

staticinlinebackground():Void

staticinlinebackground(color:Color):Void

staticinlinetint():Void

staticinlinetint(tint:Color, altTint:Color):Void

staticinlinetint(tint:Color):Void

staticassets(?assets:Assets):Void

statictheme(theme:Theme):Void

@:value({ anchorY : 0, anchorX : 0 })staticposition(x:Float, y:Float, anchorX:Float = 0, anchorY:Float = 0):Void

staticfocus():Void

staticexpanded():Void

staticoverlay():Bool

statictitleAlign(titleAlign:TextAlign):Void

staticclosable(?isOpen:Null<BoolPointer>):Bool

@:value({ duplicable : false, trashable : false, lockable : false, sortable : false })staticinlinelist(height:Float, items:ArrayPointer, ?selected:Null<IntPointer>, sortable:Bool = false, lockable:Bool = false, trashable:Bool = false, duplicable:Bool = false):ListStatus

@:value({ duplicable : false, trashable : false, lockable : false, sortable : false })staticinlinelist(bigItems:Bool, height:Float, items:ArrayPointer, ?selected:Null<IntPointer>, sortable:Bool = false, lockable:Bool = false, trashable:Bool = false, duplicable:Bool = false):ListStatus

staticinlineselect(?title:String, value:StringPointer, list:Array<String>, ?nullValueText:String):Bool

staticinlineselect(?title:String, value:EnumValuePointer, enumType:Dynamic, ?list:Array<String>, ?nullValueText:String):Bool

staticinlineselect(?title:String, value:IntPointer, list:Array<String>, ?nullValueText:String):Bool

@:value({ alignLabel : false })staticinlinecheck(?title:String, value:BoolPointer, alignLabel:Bool = false):CheckStatus

static_check(?title:String, value:BoolPointer, alignLabel:Bool):CheckStatus

staticeditColor(?title:String, value:IntPointer):Bool

@:value({ focused : false, multiline : false })staticeditText(?title:String, value:StringPointer, multiline:Bool = false, ?placeholder:String, ?autocompleteCandidates:Array<String>, focused:Bool = false):EditTextStatus

staticeditInt(?title:String, value:IntPointer, ?placeholder:String, ?minValue:Int, ?maxValue:Int):Bool

staticeditFloat(?title:String, value:FloatPointer, ?placeholder:String, ?minValue:Float, ?maxValue:Float, ?round:Int):Bool

staticslideInt(?title:String, value:IntPointer, minValue:Int, maxValue:Int):Bool

@:value({ round : 1000 })staticslideFloat(?title:String, value:FloatPointer, minValue:Float, maxValue:Float, round:Int = 1000):Bool

@:value({ useFilter : true, alignLabel : false, scaleToFit : false })staticvisual(?title:String, visual:Visual, scaleToFit:Bool = false, alignLabel:Bool = false, useFilter:Bool = true):Void

@:value({ alignLabel : false, scaleToFit : false })staticinlineimage(?title:String, tile:TextureTile, scaleToFit:Bool = false, alignLabel:Bool = false, ?textureFilter:TextureFilter):Quad

@:value({ alignLabel : false, scaleToFit : false, frameHeight : -1, frameWidth : -1, frameY : -1, frameX : -1 })staticinlineimage(?title:String, texture:Texture, frameX:Float = -1, frameY:Float = -1, frameWidth:Float = -1, frameHeight:Float = -1, scaleToFit:Bool = false, alignLabel:Bool = false, ?textureFilter:TextureFilter):Quad

@:value({ alignLabel : false, scaleToFit : false, frameHeight : -1, frameWidth : -1, frameY : -1, frameX : -1 })staticinlineimage(assetId:String, frameX:Float = -1, frameY:Float = -1, frameWidth:Float = -1, frameHeight:Float = -1, scaleToFit:Bool = false, alignLabel:Bool = false, ?textureFilter:TextureFilter):Quad

@:value({ alignLabel : false, scaleToFit : false, frameHeight : -1, frameWidth : -1, frameY : -1, frameX : -1 })staticinlineimage(title:String, assetId:String, frameX:Float = -1, frameY:Float = -1, frameWidth:Float = -1, frameHeight:Float = -1, scaleToFit:Bool = false, alignLabel:Bool = false, ?textureFilter:TextureFilter):Quad

staticmargin():Void

@:value({ height : DEFAULT_SPACE_HEIGHT })staticspace(height:Float = DEFAULT_SPACE_HEIGHT):Void

@:value({ height : DEFAULT_SEPARATOR_HEIGHT })staticseparator(height:Float = DEFAULT_SEPARATOR_HEIGHT):Void

staticinlinebutton(title:String, enabled:Bool):Bool

staticinlinebutton(title:String):Bool

static_button(title:String, enabled:Bool):Bool

statictext(value:String, ?align:TextAlign):Void

staticend():Void

staticinlinefocusedWindow():Window

staticallow(owner:Entity):Void

staticfilter(owner:Entity):Void

@:value({ height : WindowData.DEFAULT_HEIGHT, width : DIALOG_WIDTH, cancelable : true })staticinlineconfirm(title:String, message:String, cancelable:Bool = true, ?yes:String, ?no:String, width:Float = DIALOG_WIDTH, height:Float = WindowData.DEFAULT_HEIGHT, ?key:String):ConfirmStatus

@:value({ height : WindowData.DEFAULT_HEIGHT, width : DIALOG_WIDTH, cancelable : true })staticinlineconfirm(title:String, message:String, cancelable:Bool = true, ?yes:String, ?no:String, width:Float = DIALOG_WIDTH, height:Float = WindowData.DEFAULT_HEIGHT, callback:() ‑> Void):Void

@:value({ height : WindowData.DEFAULT_HEIGHT, width : DIALOG_WIDTH, cancelable : false })staticinlineconfirm(title:String, message:String, cancelable:Bool = false, ?yes:String, ?no:String, width:Float = DIALOG_WIDTH, height:Float = WindowData.DEFAULT_HEIGHT, callback:(confirmed:Bool) ‑> Void):Void

@:value({ height : WindowData.DEFAULT_HEIGHT, width : DIALOG_WIDTH, cancelable : false })static_confirm(key:String, title:String, message:String, cancelable:Bool = false, ?yes:String, ?no:String, width:Float = DIALOG_WIDTH, height:Float = WindowData.DEFAULT_HEIGHT, async:Bool, callback:(confirmed:Bool) ‑> Void):ConfirmStatus

@:value({ height : WindowData.DEFAULT_HEIGHT, width : DIALOG_WIDTH, cancelable : false })staticinlineinfo(title:String, message:String, cancelable:Bool = false, ?ok:String, width:Float = DIALOG_WIDTH, height:Float = WindowData.DEFAULT_HEIGHT, ?key:String):InfoStatus

@:value({ height : WindowData.DEFAULT_HEIGHT, width : DIALOG_WIDTH, cancelable : false })staticinlineinfo(title:String, message:String, cancelable:Bool = false, ?ok:String, width:Float = DIALOG_WIDTH, height:Float = WindowData.DEFAULT_HEIGHT, callback:() ‑> Void):Void

@:value({ height : WindowData.DEFAULT_HEIGHT, width : DIALOG_WIDTH, cancelable : false })staticinlineprompt(title:String, message:String, value:StringPointer, ?placeholder:String, cancelable:Bool = false, ?ok:String, ?cancel:String, width:Float = DIALOG_WIDTH, height:Float = WindowData.DEFAULT_HEIGHT, ?key:String):PromptStatus

@:value({ height : WindowData.DEFAULT_HEIGHT, width : DIALOG_WIDTH, cancelable : false })staticinlineprompt(title:String, message:String, ?placeholder:String, cancelable:Bool = false, ?ok:String, ?cancel:String, width:Float = DIALOG_WIDTH, height:Float = WindowData.DEFAULT_HEIGHT, callback:(text:String) ‑> Void):Void

@:value({ height : WindowData.DEFAULT_HEIGHT, width : DIALOG_WIDTH, cancelable : false })staticinlinechoice(title:String, message:String, cancelable:Bool = false, choices:Array<String>, width:Float = DIALOG_WIDTH, height:Float = WindowData.DEFAULT_HEIGHT, ?key:String):ChoiceStatus

@:value({ height : WindowData.DEFAULT_HEIGHT, width : DIALOG_WIDTH, cancelable : false })staticinlinechoice(title:String, message:String, cancelable:Bool = false, choices:Array<String>, width:Float = DIALOG_WIDTH, height:Float = WindowData.DEFAULT_HEIGHT, callback:(index:Int, text:String) ‑> Void):Void

statichandle():Handle

staticinlinereadInt(intPointer:IntPointer):Int

staticinlinewriteInt(intPointer:IntPointer, value:Int):Void

staticinlinereadFloat(floatPointer:FloatPointer):Float

staticinlinewriteFloat(floatPointer:FloatPointer, value:Float):Void

staticinlinereadString(stringPointer:StringPointer):String

staticinlinewriteString(stringPointer:StringPointer, value:String):Void

staticinlinereadArray(arrayPointer:ArrayPointer):Array<Dynamic>

staticinlinewriteArray(arrayPointer:ArrayPointer, value:Array<Dynamic>):Void

staticinlinereadEnumValue(enumValuePointer:EnumValuePointer):Dynamic

staticinlinewriteEnumValue(enumValuePointer:EnumValuePointer, value:Dynamic):Void

staticinlinereadBool(boolPointer:BoolPointer):Bool

staticinlinewriteBool(boolPointer:BoolPointer, value:Bool):Void

staticbool(?value:Bool):Dynamic

staticint(?value:Int):IntPointer

staticcolor(?value:Color):Dynamic

staticstring(?value:String):Dynamic

staticfloat(?value:Float):Dynamic

staticarray(?value:Dynamic):Dynamic