0.4.1
Loading...
Searching...
No Matches
InputWithUnit.hpp File Reference

Defines Widgets which allow the input of values and the selection of the unit. More...

Go to the source code of this file.

Namespaces

namespace  NAV
 
namespace  NAV::gui
 
namespace  NAV::gui::widgets
 
namespace  NAV::gui::widgets::internal
 

Enumerations

enum  NAV::gui::widgets::InputWithUnitChange : uint8_t {
  NAV::gui::widgets::InputWithUnitChange_None ,
  NAV::gui::widgets::InputWithUnitChange_Input ,
  NAV::gui::widgets::InputWithUnitChange_Unit
}
 Return value signaling that the input or the unit changed. More...
 

Functions

template<typename U>
InputWithUnitChange NAV::gui::widgets::InputDouble2LWithUnit (const char *label, float itemWidth, float unitWidth, double v[2], double v_min, double v_max, U &combo_current_item, const char *combo_items_separated_by_zeros, const char *format="%.6f", ImGuiInputTextFlags flags=0, int combo_popup_max_height_in_items=-1)
 Shows an InputText GUI element to modify the provided value and also set its unit.
 
template<typename U>
InputWithUnitChange NAV::gui::widgets::InputDouble2WithUnit (const char *label, float itemWidth, float unitWidth, double v[2], U &combo_current_item, const char *combo_items_separated_by_zeros, const char *format="%.6f", ImGuiInputTextFlags flags=0, int combo_popup_max_height_in_items=-1)
 Shows an InputText GUI element to modify the provided value and also set its unit.
 
template<typename U>
InputWithUnitChange NAV::gui::widgets::InputDouble3LWithUnit (const char *label, float itemWidth, float unitWidth, double v[3], double v_min, double v_max, U &combo_current_item, const char *combo_items_separated_by_zeros, const char *format="%.6f", ImGuiInputTextFlags flags=0, int combo_popup_max_height_in_items=-1)
 Shows an InputText GUI element to modify the provided value and also set its unit.
 
template<typename U>
InputWithUnitChange NAV::gui::widgets::InputDouble3WithUnit (const char *label, float itemWidth, float unitWidth, double v[3], U &combo_current_item, const char *combo_items_separated_by_zeros, const char *format="%.6f", ImGuiInputTextFlags flags=0, int combo_popup_max_height_in_items=-1)
 Shows an InputText GUI element to modify the provided value and also set its unit.
 
template<typename U>
InputWithUnitChange NAV::gui::widgets::InputDouble4LWithUnit (const char *label, float itemWidth, float unitWidth, double v[4], double v_min, double v_max, U &combo_current_item, const char *combo_items_separated_by_zeros, const char *format="%.6f", ImGuiInputTextFlags flags=0, int combo_popup_max_height_in_items=-1)
 Shows an InputText GUI element to modify the provided value and also set its unit.
 
template<typename U>
InputWithUnitChange NAV::gui::widgets::InputDouble4WithUnit (const char *label, float itemWidth, float unitWidth, double v[4], U &combo_current_item, const char *combo_items_separated_by_zeros, const char *format="%.6f", ImGuiInputTextFlags flags=0, int combo_popup_max_height_in_items=-1)
 Shows an InputText GUI element to modify the provided value and also set its unit.
 
template<typename U>
InputWithUnitChange NAV::gui::widgets::InputDoubleLWithUnit (const char *label, float itemWidth, float unitWidth, double *v, double v_min, double v_max, U &combo_current_item, const char *combo_items_separated_by_zeros, double step=0.0, double step_fast=0.0, const char *format="%.6f", ImGuiInputTextFlags flags=0, int combo_popup_max_height_in_items=-1)
 Shows an InputText GUI element to modify the provided value and also set its unit.
 
template<typename U>
InputWithUnitChange NAV::gui::widgets::InputDoubleWithUnit (const char *label, float itemWidth, float unitWidth, double *v, U &combo_current_item, const char *combo_items_separated_by_zeros, double step=0.0, double step_fast=0.0, const char *format="%.6f", ImGuiInputTextFlags flags=0, int combo_popup_max_height_in_items=-1)
 Shows an InputText GUI element to modify the provided value and also set its unit.
 
template<typename U>
InputWithUnitChange NAV::gui::widgets::InputFloat2LWithUnit (const char *label, float itemWidth, float unitWidth, float v[2], float v_min, float v_max, U &combo_current_item, const char *combo_items_separated_by_zeros, const char *format="%.3f", ImGuiInputTextFlags flags=0, int combo_popup_max_height_in_items=-1)
 Shows an InputText GUI element to modify the provided value and also set its unit.
 
template<typename U>
InputWithUnitChange NAV::gui::widgets::InputFloat2WithUnit (const char *label, float itemWidth, float unitWidth, float v[2], U &combo_current_item, const char *combo_items_separated_by_zeros, const char *format="%.3f", ImGuiInputTextFlags flags=0, int combo_popup_max_height_in_items=-1)
 Shows an InputText GUI element to modify the provided value and also set its unit.
 
template<typename U>
InputWithUnitChange NAV::gui::widgets::InputFloat3LWithUnit (const char *label, float itemWidth, float unitWidth, float v[3], float v_min, float v_max, U &combo_current_item, const char *combo_items_separated_by_zeros, const char *format="%.3f", ImGuiInputTextFlags flags=0, int combo_popup_max_height_in_items=-1)
 Shows an InputText GUI element to modify the provided value and also set its unit.
 
template<typename U>
InputWithUnitChange NAV::gui::widgets::InputFloat3WithUnit (const char *label, float itemWidth, float unitWidth, float v[3], U &combo_current_item, const char *combo_items_separated_by_zeros, const char *format="%.3f", ImGuiInputTextFlags flags=0, int combo_popup_max_height_in_items=-1)
 Shows an InputText GUI element to modify the provided value and also set its unit.
 
template<typename U>
InputWithUnitChange NAV::gui::widgets::InputFloat4LWithUnit (const char *label, float itemWidth, float unitWidth, float v[4], float v_min, float v_max, U &combo_current_item, const char *combo_items_separated_by_zeros, const char *format="%.3f", ImGuiInputTextFlags flags=0, int combo_popup_max_height_in_items=-1)
 Shows an InputText GUI element to modify the provided value and also set its unit.
 
template<typename U>
InputWithUnitChange NAV::gui::widgets::InputFloat4WithUnit (const char *label, float itemWidth, float unitWidth, float v[4], U &combo_current_item, const char *combo_items_separated_by_zeros, const char *format="%.3f", ImGuiInputTextFlags flags=0, int combo_popup_max_height_in_items=-1)
 Shows an InputText GUI element to modify the provided value and also set its unit.
 
template<typename U>
InputWithUnitChange NAV::gui::widgets::InputFloatLWithUnit (const char *label, float itemWidth, float unitWidth, float *v, float v_min, float v_max, U &combo_current_item, const char *combo_items_separated_by_zeros, float step=0.0, float step_fast=0.0, const char *format="%.3f", ImGuiInputTextFlags flags=0, int combo_popup_max_height_in_items=-1)
 Shows an InputText GUI element to modify the provided value and also set its unit.
 
template<typename U>
InputWithUnitChange NAV::gui::widgets::InputFloatWithUnit (const char *label, float itemWidth, float unitWidth, float *v, U &combo_current_item, const char *combo_items_separated_by_zeros, float step=0.0, float step_fast=0.0, const char *format="%.3f", ImGuiInputTextFlags flags=0, int combo_popup_max_height_in_items=-1)
 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 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.
 
template<typename T>
std::string NAV::MakeComboItems ()
 Units separated by '\0' and terminated by double '\0'.
 
template<typename U>
InputWithUnitChange NAV::gui::widgets::SliderDouble2WithUnit (const char *label, float itemWidth, float unitWidth, double v[2], double v_min, double v_max, U &combo_current_item, const char *combo_items_separated_by_zeros, const char *format="%.6f", ImGuiSliderFlags flags=0, int combo_popup_max_height_in_items=-1)
 Shows an Slider GUI element to modify the provided value and also set its unit.
 
template<typename U>
InputWithUnitChange NAV::gui::widgets::SliderDouble3WithUnit (const char *label, float itemWidth, float unitWidth, double v[3], double v_min, double v_max, U &combo_current_item, const char *combo_items_separated_by_zeros, const char *format="%.6f", ImGuiSliderFlags flags=0, int combo_popup_max_height_in_items=-1)
 Shows an Slider GUI element to modify the provided value and also set its unit.
 
template<typename U>
InputWithUnitChange NAV::gui::widgets::SliderDouble4WithUnit (const char *label, float itemWidth, float unitWidth, double v[4], double v_min, double v_max, U &combo_current_item, const char *combo_items_separated_by_zeros, const char *format="%.6f", ImGuiSliderFlags flags=0, int combo_popup_max_height_in_items=-1)
 Shows an Slider GUI element to modify the provided value and also set its unit.
 
template<typename U>
InputWithUnitChange NAV::gui::widgets::SliderDoubleWithUnit (const char *label, float itemWidth, float unitWidth, double *v, double v_min, double v_max, U &combo_current_item, const char *combo_items_separated_by_zeros, const char *format="%.6f", ImGuiSliderFlags flags=0, int combo_popup_max_height_in_items=-1)
 Shows an Slider GUI element to modify the provided value and also set its unit.
 
template<typename U>
InputWithUnitChange NAV::gui::widgets::SliderFloat2WithUnit (const char *label, float itemWidth, float unitWidth, float v[2], float v_min, float v_max, U &combo_current_item, const char *combo_items_separated_by_zeros, const char *format="%.3f", ImGuiSliderFlags flags=0, int combo_popup_max_height_in_items=-1)
 Shows an Slider GUI element to modify the provided value and also set its unit.
 
template<typename U>
InputWithUnitChange NAV::gui::widgets::SliderFloat3WithUnit (const char *label, float itemWidth, float unitWidth, float v[3], float v_min, float v_max, U &combo_current_item, const char *combo_items_separated_by_zeros, const char *format="%.3f", ImGuiSliderFlags flags=0, int combo_popup_max_height_in_items=-1)
 Shows an Slider GUI element to modify the provided value and also set its unit.
 
template<typename U>
InputWithUnitChange NAV::gui::widgets::SliderFloat4WithUnit (const char *label, float itemWidth, float unitWidth, float v[4], float v_min, float v_max, U &combo_current_item, const char *combo_items_separated_by_zeros, const char *format="%.3f", ImGuiSliderFlags flags=0, int combo_popup_max_height_in_items=-1)
 Shows an Slider GUI element to modify the provided value and also set its unit.
 
template<typename U>
InputWithUnitChange NAV::gui::widgets::SliderFloatWithUnit (const char *label, float itemWidth, float unitWidth, float *v, float v_min, float v_max, U &combo_current_item, const char *combo_items_separated_by_zeros, const char *format="%.3f", ImGuiSliderFlags flags=0, int combo_popup_max_height_in_items=-1)
 Shows an Slider GUI element to modify the provided value and also set its unit.
 
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.
 
template<typename U>
InputWithUnitChange NAV::gui::widgets::internal::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.
 

Detailed Description

Defines Widgets which allow the input of values and the selection of the unit.

Author
T. Topp (topp@.nosp@m.ins..nosp@m.uni-s.nosp@m.tutt.nosp@m.gart..nosp@m.de)
Date
2021-10-21

Definition in file InputWithUnit.hpp.