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
| Name | Type |
|---|---|
style |
cpp.Star |
idx |
ImGuiCol |
| Returns |
|---|
| ImVec4 |
Set 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 |
cpp.Star |
size |
Float |
| Name | Type |
|---|---|
style |
cpp.Star |
idx |
ImGuiCol |
color |
ImVec4 |
Metadata
| Name | Parameters |
|---|---|
:cppInclude |
"linc_imgui.h" |