joka.ui
The ui module includes a UI library.
Types 32
The UI font type.
The UI texture type.
The UI icon ID type.
A function used for getting the width and height of the text.
A function used for getting the width and height of an icon.
A UI color.
Static table of UI colors with UiColorType being the key.
A bitmask type for mouse button state, combining one or more UiMouseButtonFlag values.
Individual mouse button flags for use in a UiMouseButtonFlags bitmask.
A bitmask type for keyboard key state, combining one or more UiKeyFlag values.
Individual key flags for use in a UiKeyFlags bitmask.
Controls which axis or axes keyboard navigation responds to.
IVec2 mousePositionIVec2 mousePressedPositionUiMouseButtonFlags mouseButtonDownUiMouseButtonFlags mouseButtonPressedUiMouseButtonFlags mouseButtonReleasedbool mouseActionOnReleaseUiKeyFlags keyDownUiKeyFlags keyPressedUiKeyFlags keyReleasedUiKeyNavigation keyNavigationUiKeyNavigation nextKeyNavigationThe result of a UI control function.
The result values of a UI control function.
The option flags of a UI control function.
The option flag values of a UI control function.
bool submittedByKeyboardbool hoverbool activebool focusuint focusIdbool mouseActionThe UI context.
UiCommands commandsUiFocusState focusStateUiTextSizeFunc textSizeUiIconIdSizeFunc iconSizeUiStyle * styleUiStyle _styleUiInput inputbool manualBordersModechar[] charDataBufferSz charDataLengthint charHeightint charOffsetvoid ready(UiTextSizeFunc textSizeFunc, UiCommand[] commandsBuffer, char[] charDataBuffer, UiFont font, uint fontScale = 1, UiIconIdSizeFunc iconSizeFunc = null) @safe nothrow @nogcScopedUiFocus captureFocus(UiKeyNavigation keyNavigation = UiKeyNavigation.none, bool canIgnore = false) @safe nothrow @nogcUiLayout _row(IRect area, int areaCount, int spacing, bool fromRight, int infiniteSlice) static @safe nothrow @nogcUiLayout rowItems(IRect area, int count, int spacing, bool fromRight = false) static @safe nothrow @nogcUiLayout _col(IRect area, int areaCount, int spacing, bool fromBottom, int infiniteSlice) static @safe nothrow @nogcUiLayout colItems(IRect area, int count, int spacing, bool fromBottom = false) static @safe nothrow @nogcvoid drawRect(IRect area, UiColorType colorType, bool hover, bool active, bool focus, bool off, uint border) @trusted @safe nothrow @nogcvoid drawBox(IRect area, UiColorType colorType, bool hover, bool active, bool focus, bool off, uint border) @safe nothrow @nogcvoid drawIcon(UiIconId iconId, UiColorType colorType, IRect area, UiFlags optionFlags) @safe nothrow @nogcvoid drawText(IStr text, UiColorType colorType, IRect area, UiFlags optionFlags) @trusted @safe nothrow @nogcvoid drawLabelContent(IRect area, IStr text, UiIconId iconId = 0, UiFlags optionFlags = defaultUiFlags) @safe nothrow @nogcUiControlInteraction registerControlInteraction(IRect area, UiFlags optionFlags) @safe nothrow @nogcUiResultFlags handleButtonInteraction(UiControlInteraction interaction, IRect area, UiFlags optionFlags) @safe nothrow @nogcUiColorType handleButtonColorType(UiControlInteraction interaction, UiFlags optionFlags) @safe nothrow @nogcUiResultFlags label(IRect area, IStr text, UiIconId iconId = 0, UiFlags optionFlags = defaultUiFlags) @safe nothrow @nogcUiResultFlags icon(IRect area, UiIconId iconId, UiFlags optionFlags = defaultUiFlags) @safe nothrow @nogcUiResultFlags buttonWithIcon(IRect area, IStr text, UiIconId iconId, UiFlags optionFlags = defaultUiFlags) @safe nothrow @nogcUiResultFlags button(IRect area, IStr text, UiFlags optionFlags = defaultUiFlags) @safe nothrow @nogcUiResultFlags stepper(T)(IRect area, ref T number, T startInclusive, T stopInclusive, T step, IStr info = "", bool canLoop = true, IStr fmtStr = defaultAsciiFmtArgStr, UiFlags optionFlags = defaultUiFlags) @safe nothrow @nogcUiResultFlags stepper(IRect area, ref int number, IStr info = "", bool canLoop = true, IStr fmtStr = "{}%", UiFlags optionFlags = defaultUiFlags) @safe nothrow @nogcUiResultFlags cycler(T)(IRect area, ref T enumNumber, IStr info = "", bool canLoop = true, bool canKeepFirstChar = false, UiFlags optionFlags = defaultUiFlags) @safe nothrow @nogcthis(UiTextSizeFunc textSizeFunc, UiCommand[] commandsBuffer, char[] charDataBuffer, UiFont font, uint fontScale = 1, UiIconIdSizeFunc iconSizeFunc = null)Functions 1
Variables 1
defaultUiFlags = UiFlag.alignCenterThe default control flags.