New buttons and icon modes

This commit is contained in:
Bruno
2021-01-24 10:54:25 +01:00
parent 207ac11ded
commit e5ed27180f
2 changed files with 64 additions and 6 deletions

View File

@@ -11,21 +11,25 @@
namespace ImGuiToolkit
{
// Icons from resource icon.dds
void Icon(int i, int j, bool enabled = true);
bool IconButton(int i, int j, const char *tooltips = nullptr);
void Icon (int i, int j, bool enabled = true);
bool IconButton (int i, int j, const char *tooltips = nullptr);
bool IconToggle (int i, int j, int i_toggle, int j_toggle, bool* toggle, const char *tooltips[] = nullptr);
void ShowIconsWindow(bool* p_open);
// utility buttons
// icon buttons
bool ButtonIcon (int i, int j, const char* tooltip = nullptr);
bool ButtonIconToggle (int i, int j, int i_toggle, int j_toggle, bool* toggle);
bool ButtonIconMultistate (std::vector<std::pair<int, int> > icons, int* state);
bool ButtonToggle(const char* label, bool* toggle);
bool ComboIcon (std::vector<std::pair<int, int> > icons, int* state);
// utility buttons
bool ButtonToggle (const char* label, bool* toggle);
void ButtonSwitch (const char* label, bool* toggle , const char *help = nullptr);
void ButtonOpenUrl (const char* url, const ImVec2& size_arg = ImVec2(0,0));
void ToolTip (const char* desc);
void ToolTip (const char* desc);
void HelpMarker (const char* desc, const char* icon = ICON_FA_QUESTION_CIRCLE);
void HelpIcon (const char* desc, int i, int j);
// utility sliders
bool TimelineSlider (const char* label, guint64 *time, guint64 start, guint64 end, guint64 step, const float width);