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
fnvoid readyUi(ref UiContext ui, UiCommand[] commandsBuffer, char[] charDataBuffer, UiFont font = null, uint fontScale = 1, UiIconIdSizeFunc iconSizeFunc = null) @trustedInitializes the microui context and sets temporary text size functions. Value `font` should be a `FontId*`.
fnvoid handleUiInput(ref UiContext ui)Handles input events and updates the microui context accordingly.
fnvoid drawUiState(ref UiContext ui) @trustedDraws the microui context to the screen.
fnvoid beginUiFrame(ref UiContext ui)Begins input handling and UI processing.
fnvoid endUiFrame(ref UiContext ui)Ends UI processing and performs drawing.