ImGuiStyleExtra
imgui.ImGuiStyleExtra (Class)
Portable access to the parts of ImGuiStyle the generator cannot bind: the
Colors[] C array, and the next-frame font size. Backed by the hand-written
dcimgui_extra_glue.cpp helpers, compiled into every target.
Static Members
getStyleColor(style: ImGuiStyle, idx: ImGuiCol): ImVec4| Name | Type |
|---|---|
style |
ImGuiStyle |
idx |
ImGuiCol |
| Returns |
|---|
| ImVec4 |
setNextFrameFontSizeBase(style: ImGuiStyle, size: Float): VoidSet the base font size, taking effect at the next frame.
Assigning style.fontSizeBase from inside a frame does nothing: ImGui
restores that field from the frame's own value as it builds it, so the
one place a size slider can run is the one place the assignment is lost.
This goes through the separate field ImGui keeps for the purpose (the one
its own style editor uses).
A size of 0 means "leave it alone" to ImGui, so it is ignored here.
| Name | Type |
|---|---|
style |
ImGuiStyle |
size |
Float |
setStyleColor(style: ImGuiStyle, idx: ImGuiCol, color: ImVec4): Void| Name | Type |
|---|---|
style |
ImGuiStyle |
idx |
ImGuiCol |
color |
ImVec4 |
Metadata
| Name | Parameters |
|---|---|
:hxGen |
- |