Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

im_cool_bar (C++)

ImCoolBar: a bar of icons that grow under the mouse, as in the macOS dock.

The C++ API of ImCoolBar as it is bound to Python: the entries of the module imgui_bundle.im_cool_bar, in the same order, with their C++ signatures and the headers’ comments. From the stubs: the functions excluded from the bindings, the typedefs and the macros are absent.

ImCoolbar.h

ImCoolBarFlags_ (enum)

MemberValue
ImCoolBarFlags_None = 00
ImCoolBarFlags_Horizontal = (1 << 0)(1 << 0)
ImCoolBarFlags_Vertical = (1 << 1)(1 << 1)

ImCoolBarSettings (struct)

Member
ImVec2 anchor{0.5f, 0.5f};
float normalSize{40.0f};
float hoveredSize{150.0f};
float animStep{0.05f};
float effectStrength{0.5f};
ImCoolBarFlags mode{ImCoolBarFlags_Horizontal};

ImCoolBarSettings::ImCoolBarSettings

ImCoolBarSettings(const ImVec2& aAnchor = ImVec2(0.5f, 0.5f), const float aNormalSize = 40.0f, const float aHoveredSize = 150.0f, const float aAnimStep = 0.05f, const float aEffectStrength = 0.5f, const ImCoolBarFlags aMode = ImCoolBarFlags_Horizontal) : anchor(aAnchor), normalSize(aNormalSize), hoveredSize(aHoveredSize), animStep(aAnimStep), effectStrength(aEffectStrength), mode(aMode);

ImGui::CoolBarDebugCheckVersion

IMCOOLBAR_API bool CoolBarDebugCheckVersion(const char* aVersion, size_t aSettingsSize);

ImGui::BeginCoolBar

IMCOOLBAR_API bool BeginCoolBar(const char* aLabel, const ImCoolBarSettings& arSettings = __srcmlcpp_brace_init__(), ImGuiWindowFlags aWinFlags = ImGuiWindowFlags_None);

ImGui::EndCoolBar

IMCOOLBAR_API void EndCoolBar();

ImGui::CoolBarItem

IMCOOLBAR_API bool CoolBarItem();

ImGui::GetCoolBarItemWidth

IMCOOLBAR_API float GetCoolBarItemWidth();

ImGui::GetCoolBarItemScale

IMCOOLBAR_API float GetCoolBarItemScale();

ImGui::ShowCoolBarMetrics

IMCOOLBAR_API void ShowCoolBarMetrics(bool* apoOpen);

ImGui::ShowCoolBarDemoWindow

IMCOOLBAR_API void ShowCoolBarDemoWindow(bool* apoOpen = nullptr, ImCoolBarSettings* apoSettings = nullptr, ImCoolBarSettings* apoDefaultSettings = nullptr);