0.2.0
Loading...
Searching...
No Matches
EnumComboWithTooltip.hpp File Reference

Combo representing an enumeration with tooltip. More...

Go to the source code of this file.

Functions

template<typename T >
bool NAV::gui::widgets::EnumComboWithToolTip (const char *label, T &enumeration, size_t startIdx=0)
 Combo representing an enumeration.
 

Detailed Description

Combo representing an enumeration with tooltip.

Author
T. Topp (topp@.nosp@m.ins..nosp@m.uni-s.nosp@m.tutt.nosp@m.gart..nosp@m.de)
Date
2024-01-19

Function Documentation

◆ EnumComboWithToolTip()

template<typename T >
bool NAV::gui::widgets::EnumComboWithToolTip ( const char * label,
T & enumeration,
size_t startIdx = 0 )

Combo representing an enumeration.

Template Parameters
TEnumeration Type
Parameters
[in]labelLabel to show beside the combo box. This has to be a unique id for ImGui.
[in]enumerationReference to the enumeration variable to select
[in]startIdxStart Index in the enum (so skip first items)
Returns
True if the value changed
Attention
The Enum type needs a last element called 'COUNT'