Custom graphics class for Koui.

Static variables

privatestatictextPipeline:PipelineState

Static methods

staticinitTextPipeline():Void

Constructor

new(canvas:Canvas)

Variables

Methods

drawKAlignedString(text:String, x:FastFloat, y:FastFloat, horAlign:HorTextAlignment, verAlign:VerTextAlignment, style:Style):Void

Draw an aligned string with the given style. The drawing takes the font, font size, color and text shadow specified by the style into account.

See also:

  • kha.graphics2.GraphicsExtension.drawAlignedString()

fillKCircle(cx:FastFloat, cy:FastFloat, radius:FastFloat, style:Style):Void

Draw a filled circle with the given style. The drawing takes drop shadows, gradients and borders into account.

fillKRect(x:FastFloat, y:FastFloat, width:FastFloat, height:FastFloat, style:Style):Void

Draw a filled rectangle with the given style. The drawing takes drop shadows, gradients, borders and rounded corners into account.

privatekhaGraphicsExtDrawAlignedString(text:String, x:Float, y:Float, horAlign:HorTextAlignment, verAlign:VerTextAlignment):Void

Copied (and slightly adapted) version of the deprecated kha.graphics2.GraphicsExtension.drawAlignedString() to avoid deprecation warnings. The original code is licensed under the zlib license.