|
template<ImGuiDataType_ _Scalar, unsigned int _Size, typename T, typename U> |
InputWithUnitChange | InputWithUnit (const char *label, float itemWidth, float unitWidth, T v[_Size], U &combo_current_item, const char *combo_items_separated_by_zeros, T step, T step_fast, const char *format, ImGuiInputTextFlags flags, int combo_popup_max_height_in_items) |
| Shows an InputText GUI element to modify the provided value and also set its unit.
|
|
template<ImGuiDataType_ _Scalar, unsigned int _Size, typename T, typename U> |
InputWithUnitChange | SliderWithUnit (const char *label, float itemWidth, float unitWidth, T v[_Size], U &combo_current_item, const char *combo_items_separated_by_zeros, T min, T max, const char *format, ImGuiInputTextFlags flags, int combo_popup_max_height_in_items) |
| Shows an Slider GUI element to modify the provided value and also set its unit.
|
|
template<typename U> |
InputWithUnitChange | Unit (const char *label, float unitWidth, U &combo_current_item, const char *combo_items_separated_by_zeros, int combo_popup_max_height_in_items) |
| Shows a Unit input combo.
|
|
template<ImGuiDataType_ _Scalar, unsigned int _Size, typename T, typename U>
InputWithUnitChange NAV::gui::widgets::internal::InputWithUnit |
( |
const char * | label, |
|
|
float | itemWidth, |
|
|
float | unitWidth, |
|
|
T | v[_Size], |
|
|
U & | combo_current_item, |
|
|
const char * | combo_items_separated_by_zeros, |
|
|
T | step, |
|
|
T | step_fast, |
|
|
const char * | format, |
|
|
ImGuiInputTextFlags | flags, |
|
|
int | combo_popup_max_height_in_items ) |
Shows an InputText GUI element to modify the provided value and also set its unit.
- Parameters
-
[in] | label | Label to display beside the input. Has to be unique (use # to hide text afterwards to append an uid) |
[in] | itemWidth | Width of the input element(s) + unit combo |
[in] | unitWidth | Width of the unit combo |
[in,out] | v | Pointer to the value to modify |
[in,out] | combo_current_item | The selected item in the unit combo |
[in] | combo_items_separated_by_zeros | Items to display in the unit combo (separated by \0 and ends with \0\0) |
[in] | step | Step size of the InputText |
[in] | step_fast | Fast step size of the InputText |
[in] | format | Printf format to display the value with |
[in] | flags | InputText flags to modify the behavior |
[in] | combo_popup_max_height_in_items | Maximum height of the combo in number of items |
- Returns
- Returns if the value or unit was changed
Definition at line 115 of file InputWithUnit.hpp.
template<ImGuiDataType_ _Scalar, unsigned int _Size, typename T, typename U>
InputWithUnitChange NAV::gui::widgets::internal::SliderWithUnit |
( |
const char * | label, |
|
|
float | itemWidth, |
|
|
float | unitWidth, |
|
|
T | v[_Size], |
|
|
U & | combo_current_item, |
|
|
const char * | combo_items_separated_by_zeros, |
|
|
T | min, |
|
|
T | max, |
|
|
const char * | format, |
|
|
ImGuiInputTextFlags | flags, |
|
|
int | combo_popup_max_height_in_items ) |
Shows an Slider GUI element to modify the provided value and also set its unit.
- Parameters
-
[in] | label | Label to display beside the input. Has to be unique (use # to hide text afterwards to append an uid) |
[in] | itemWidth | Width of the input element(s) + unit combo |
[in] | unitWidth | Width of the unit combo |
[in,out] | v | Pointer to the value to modify |
[in,out] | combo_current_item | The selected item in the unit combo |
[in] | combo_items_separated_by_zeros | Items to display in the unit combo (separated by \0 and ends with \0\0) |
[in] | min | Minimum value allowed |
[in] | max | Maximum value allowed |
[in] | format | Printf format to display the value with |
[in] | flags | Slider flags to modify the behavior |
[in] | combo_popup_max_height_in_items | Maximum height of the combo in number of items |
- Returns
- Returns if the value or unit was changed
Definition at line 158 of file InputWithUnit.hpp.