parin.ui2

The ui2 module functions as a immediate mode UI library. It will replace the old UI module.

Functions 6

fnIVec2 parinTempUiTextSizeFunc(UiFont font, uint fontScale, const(char)[] text) @trusted @safe nothrow @nogc
fnvoid readyUi(ref UiContext ui, UiCommand[] commandsBuffer, char[] charDataBuffer, UiFont font = null, uint fontScale = 1, UiIconIdSizeFunc iconSizeFunc = null) @trusted @safe nothrow @nogcInitializes the microui context and sets temporary text size functions. Value `font` should be a `FontId*`.
fnvoid handleUiInput(ref UiContext ui) @safe nothrow @nogcHandles input events and updates the microui context accordingly.
fnvoid drawUiState(ref UiContext ui) @trusted @safe nothrow @nogcDraws the microui context to the screen.
fnvoid beginUiFrame(ref UiContext ui) @safe nothrow @nogcBegins input handling and UI processing.
fnvoid endUiFrame(ref UiContext ui) @safe nothrow @nogcEnds UI processing and performs drawing.