mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-10-06 21:58:05 +03:00
* Make a custom widget for truncated text that shows a tooltip only when truncated * Use the above widget more consistently in various places * Ensure tooltips still show even when the preceding widget is disabled
21 lines
617 B
C++
21 lines
617 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
namespace ImGui {
|
|
|
|
void HelpTooltip(const char* desc);
|
|
void HelpMarker(const char* desc);
|
|
void WarnTooltip(const char* desc, const char* warn);
|
|
void WarnMarker(const char* desc, const char* warn);
|
|
void DummyMarker();
|
|
|
|
void Knob(float fraction, float size, float thickness = 2.f,
|
|
float pos_x = -1.f, float pos_y = -1.f);
|
|
|
|
void TextTruncated(const std::string& p_text, float p_truncated_width);
|
|
bool AddButton(const std::string& tooltip);
|
|
bool DeleteButton(const std::string& tooltip);
|
|
bool ClearButton(const std::string& tooltip);
|
|
}
|