mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-24 02:14:22 +00:00
Added GetStyleColorVec4()
This commit is contained in:
parent
cf84650ee8
commit
af2db53780
2 changed files with 7 additions and 0 deletions
|
|
@ -1212,6 +1212,12 @@ ImU32 ImGui::GetColorU32(const ImVec4& col)
|
|||
return ColorConvertFloat4ToU32(c);
|
||||
}
|
||||
|
||||
const ImVec4& ImGui::GetStyleColorVec4(ImGuiCol idx)
|
||||
{
|
||||
ImGuiStyle& style = GImGui->Style;
|
||||
return style.Colors[idx];
|
||||
}
|
||||
|
||||
ImU32 ImGui::GetColorU32(ImU32 col)
|
||||
{
|
||||
float style_alpha = GImGui->Style.Alpha;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue