mirror of
https://github.com/ocornut/imgui.git
synced 2026-03-30 21:05:54 -05:00
ImStrv: Step 1 - change string type to ImStrv in API. (REBASED)
(last rebase amend 2024/12/11)
This commit is contained in:
@@ -8330,7 +8330,7 @@ void ImGui::ShowAboutWindow(bool* p_open)
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
// Demo helper function to select among default colors. See ShowStyleEditor() for more advanced options.
|
||||
bool ImGui::ShowStyleSelector(const char* label)
|
||||
bool ImGui::ShowStyleSelector(ImStrv label)
|
||||
{
|
||||
// FIXME: This is a bit tricky to get right as style are functions, they don't register a name nor the fact that one is active.
|
||||
// So we keep track of last active one among our limited selection.
|
||||
@@ -11081,7 +11081,7 @@ void ImGui::ShowAboutWindow(bool*) {}
|
||||
void ImGui::ShowDemoWindow(bool*) {}
|
||||
void ImGui::ShowUserGuide() {}
|
||||
void ImGui::ShowStyleEditor(ImGuiStyle*) {}
|
||||
bool ImGui::ShowStyleSelector(const char*) { return false; }
|
||||
bool ImGui::ShowStyleSelector(ImStrv) { return false; }
|
||||
|
||||
#endif // #ifndef IMGUI_DISABLE_DEMO_WINDOWS
|
||||
|
||||
|
||||
Reference in New Issue
Block a user