0.2.0
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.

Enumerations

enum  NAV::gui::widgets::InputWithUnitChange : int {
  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

InputWithUnitChange NAV::gui::widgets::InputDouble2LWithUnit (const char *label, float itemWidth, float unitWidth, double v[2], double v_min, double v_max, int *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.
 
InputWithUnitChange NAV::gui::widgets::InputDouble2WithUnit (const char *label, float itemWidth, float unitWidth, double v[2], int *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.
 
InputWithUnitChange NAV::gui::widgets::InputDouble3LWithUnit (const char *label, float itemWidth, float unitWidth, double v[3], double v_min, double v_max, int *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.
 
InputWithUnitChange NAV::gui::widgets::InputDouble3WithUnit (const char *label, float itemWidth, float unitWidth, double v[3], int *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.
 
InputWithUnitChange NAV::gui::widgets::InputDouble4LWithUnit (const char *label, float itemWidth, float unitWidth, double v[4], double v_min, double v_max, int *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.
 
InputWithUnitChange NAV::gui::widgets::InputDouble4WithUnit (const char *label, float itemWidth, float unitWidth, double v[4], int *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.
 
InputWithUnitChange NAV::gui::widgets::InputDoubleLWithUnit (const char *label, float itemWidth, float unitWidth, double *v, double v_min, double v_max, int *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.
 
InputWithUnitChange NAV::gui::widgets::InputDoubleWithUnit (const char *label, float itemWidth, float unitWidth, double *v, int *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.
 
InputWithUnitChange NAV::gui::widgets::InputFloat2LWithUnit (const char *label, float itemWidth, float unitWidth, float v[2], float v_min, float v_max, int *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.
 
InputWithUnitChange NAV::gui::widgets::InputFloat2WithUnit (const char *label, float itemWidth, float unitWidth, float v[2], int *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.
 
InputWithUnitChange NAV::gui::widgets::InputFloat3LWithUnit (const char *label, float itemWidth, float unitWidth, float v[3], float v_min, float v_max, int *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.
 
InputWithUnitChange NAV::gui::widgets::InputFloat3WithUnit (const char *label, float itemWidth, float unitWidth, float v[3], int *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.
 
InputWithUnitChange NAV::gui::widgets::InputFloat4LWithUnit (const char *label, float itemWidth, float unitWidth, float v[4], float v_min, float v_max, int *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.
 
InputWithUnitChange NAV::gui::widgets::InputFloat4WithUnit (const char *label, float itemWidth, float unitWidth, float v[4], int *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.
 
InputWithUnitChange NAV::gui::widgets::InputFloatLWithUnit (const char *label, float itemWidth, float unitWidth, float *v, float v_min, float v_max, int *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.
 
InputWithUnitChange NAV::gui::widgets::InputFloatWithUnit (const char *label, float itemWidth, float unitWidth, float *v, int *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.
 
InputWithUnitChange NAV::gui::widgets::SliderDouble2WithUnit (const char *label, float itemWidth, float unitWidth, double v[2], double v_min, double v_max, int *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.
 
InputWithUnitChange NAV::gui::widgets::SliderDouble3WithUnit (const char *label, float itemWidth, float unitWidth, double v[3], double v_min, double v_max, int *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.
 
InputWithUnitChange NAV::gui::widgets::SliderDouble4WithUnit (const char *label, float itemWidth, float unitWidth, double v[4], double v_min, double v_max, int *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.
 
InputWithUnitChange NAV::gui::widgets::SliderDoubleWithUnit (const char *label, float itemWidth, float unitWidth, double *v, double v_min, double v_max, int *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.
 
InputWithUnitChange NAV::gui::widgets::SliderFloat2WithUnit (const char *label, float itemWidth, float unitWidth, float v[2], float v_min, float v_max, int *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.
 
InputWithUnitChange NAV::gui::widgets::SliderFloat3WithUnit (const char *label, float itemWidth, float unitWidth, float v[3], float v_min, float v_max, int *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.
 
InputWithUnitChange NAV::gui::widgets::SliderFloat4WithUnit (const char *label, float itemWidth, float unitWidth, float v[4], float v_min, float v_max, int *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.
 
InputWithUnitChange NAV::gui::widgets::SliderFloatWithUnit (const char *label, float itemWidth, float unitWidth, float *v, float v_min, float v_max, int *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.
 

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

Enumeration Type Documentation

◆ InputWithUnitChange

Return value signaling that the input or the unit changed.

Enumerator
InputWithUnitChange_None 

Nothing changed.

InputWithUnitChange_Input 

The Input changed.

InputWithUnitChange_Unit 

The Unit changed.

Function Documentation

◆ InputDouble2LWithUnit()

InputWithUnitChange NAV::gui::widgets::InputDouble2LWithUnit ( const char * label,
float itemWidth,
float unitWidth,
double v[2],
double v_min,
double v_max,
int * 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.

Parameters
[in]labelLabel to display beside the input. Has to be unique (use # to hide text afterwards to append an uid)
[in]itemWidthWidth of the input element(s) + unit combo
[in]unitWidthWidth of the unit combo
[in,out]vPointer to the value to modify
[in]v_minMinimum value allowed
[in]v_maxMaximum value allowed
[in,out]combo_current_itemPointer to the selected item in the unit combo
[in]combo_items_separated_by_zerosItems to display in the unit combo (separated by \0 and ends with \0\0)
[in]formatPrintf format to display the value with
[in]flagsInputText flags to modify the behavior
[in]combo_popup_max_height_in_itemsMaximum height of the combo in number of items
Returns
Returns if the value or unit was changed

◆ InputDouble2WithUnit()

InputWithUnitChange NAV::gui::widgets::InputDouble2WithUnit ( const char * label,
float itemWidth,
float unitWidth,
double v[2],
int * 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.

Parameters
[in]labelLabel to display beside the input. Has to be unique (use # to hide text afterwards to append an uid)
[in]itemWidthWidth of the input element(s) + unit combo
[in]unitWidthWidth of the unit combo
[in,out]vPointer to the value to modify
[in,out]combo_current_itemPointer to the selected item in the unit combo
[in]combo_items_separated_by_zerosItems to display in the unit combo (separated by \0 and ends with \0\0)
[in]formatPrintf format to display the value with
[in]flagsInputText flags to modify the behavior
[in]combo_popup_max_height_in_itemsMaximum height of the combo in number of items
Returns
Returns if the value or unit was changed

◆ InputDouble3LWithUnit()

InputWithUnitChange NAV::gui::widgets::InputDouble3LWithUnit ( const char * label,
float itemWidth,
float unitWidth,
double v[3],
double v_min,
double v_max,
int * 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.

Parameters
[in]labelLabel to display beside the input. Has to be unique (use # to hide text afterwards to append an uid)
[in]itemWidthWidth of the input element(s) + unit combo
[in]unitWidthWidth of the unit combo
[in,out]vPointer to the value to modify
[in]v_minMinimum value allowed
[in]v_maxMaximum value allowed
[in,out]combo_current_itemPointer to the selected item in the unit combo
[in]combo_items_separated_by_zerosItems to display in the unit combo (separated by \0 and ends with \0\0)
[in]formatPrintf format to display the value with
[in]flagsInputText flags to modify the behavior
[in]combo_popup_max_height_in_itemsMaximum height of the combo in number of items
Returns
Returns if the value or unit was changed

◆ InputDouble3WithUnit()

InputWithUnitChange NAV::gui::widgets::InputDouble3WithUnit ( const char * label,
float itemWidth,
float unitWidth,
double v[3],
int * 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.

Parameters
[in]labelLabel to display beside the input. Has to be unique (use # to hide text afterwards to append an uid)
[in]itemWidthWidth of the input element(s) + unit combo
[in]unitWidthWidth of the unit combo
[in,out]vPointer to the value to modify
[in,out]combo_current_itemPointer to the selected item in the unit combo
[in]combo_items_separated_by_zerosItems to display in the unit combo (separated by \0 and ends with \0\0)
[in]formatPrintf format to display the value with
[in]flagsInputText flags to modify the behavior
[in]combo_popup_max_height_in_itemsMaximum height of the combo in number of items
Returns
Returns if the value or unit was changed

◆ InputDouble4LWithUnit()

InputWithUnitChange NAV::gui::widgets::InputDouble4LWithUnit ( const char * label,
float itemWidth,
float unitWidth,
double v[4],
double v_min,
double v_max,
int * 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.

Parameters
[in]labelLabel to display beside the input. Has to be unique (use # to hide text afterwards to append an uid)
[in]itemWidthWidth of the input element(s) + unit combo
[in]unitWidthWidth of the unit combo
[in,out]vPointer to the value to modify
[in]v_minMinimum value allowed
[in]v_maxMaximum value allowed
[in,out]combo_current_itemPointer to the selected item in the unit combo
[in]combo_items_separated_by_zerosItems to display in the unit combo (separated by \0 and ends with \0\0)
[in]formatPrintf format to display the value with
[in]flagsInputText flags to modify the behavior
[in]combo_popup_max_height_in_itemsMaximum height of the combo in number of items
Returns
Returns if the value or unit was changed

◆ InputDouble4WithUnit()

InputWithUnitChange NAV::gui::widgets::InputDouble4WithUnit ( const char * label,
float itemWidth,
float unitWidth,
double v[4],
int * 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.

Parameters
[in]labelLabel to display beside the input. Has to be unique (use # to hide text afterwards to append an uid)
[in]itemWidthWidth of the input element(s) + unit combo
[in]unitWidthWidth of the unit combo
[in,out]vPointer to the value to modify
[in,out]combo_current_itemPointer to the selected item in the unit combo
[in]combo_items_separated_by_zerosItems to display in the unit combo (separated by \0 and ends with \0\0)
[in]formatPrintf format to display the value with
[in]flagsInputText flags to modify the behavior
[in]combo_popup_max_height_in_itemsMaximum height of the combo in number of items
Returns
Returns if the value or unit was changed

◆ InputDoubleLWithUnit()

InputWithUnitChange NAV::gui::widgets::InputDoubleLWithUnit ( const char * label,
float itemWidth,
float unitWidth,
double * v,
double v_min,
double v_max,
int * 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.

Parameters
[in]labelLabel to display beside the input. Has to be unique (use # to hide text afterwards to append an uid)
[in]itemWidthWidth of the input element(s) + unit combo
[in]unitWidthWidth of the unit combo
[in,out]vPointer to the value to modify
[in]v_minMinimum value allowed
[in]v_maxMaximum value allowed
[in,out]combo_current_itemPointer to the selected item in the unit combo
[in]combo_items_separated_by_zerosItems to display in the unit combo (separated by \0 and ends with \0\0)
[in]stepStep size of the InputText
[in]step_fastFast step size of the InputText
[in]formatPrintf format to display the value with
[in]flagsInputText flags to modify the behavior
[in]combo_popup_max_height_in_itemsMaximum height of the combo in number of items
Returns
Returns if the value or unit was changed

◆ InputDoubleWithUnit()

InputWithUnitChange NAV::gui::widgets::InputDoubleWithUnit ( const char * label,
float itemWidth,
float unitWidth,
double * v,
int * 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.

Parameters
[in]labelLabel to display beside the input. Has to be unique (use # to hide text afterwards to append an uid)
[in]itemWidthWidth of the input element(s) + unit combo
[in]unitWidthWidth of the unit combo
[in,out]vPointer to the value to modify
[in,out]combo_current_itemPointer to the selected item in the unit combo
[in]combo_items_separated_by_zerosItems to display in the unit combo (separated by \0 and ends with \0\0)
[in]stepStep size of the InputText
[in]step_fastFast step size of the InputText
[in]formatPrintf format to display the value with
[in]flagsInputText flags to modify the behavior
[in]combo_popup_max_height_in_itemsMaximum height of the combo in number of items
Returns
Returns if the value or unit was changed

◆ InputFloat2LWithUnit()

InputWithUnitChange NAV::gui::widgets::InputFloat2LWithUnit ( const char * label,
float itemWidth,
float unitWidth,
float v[2],
float v_min,
float v_max,
int * 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.

Parameters
[in]labelLabel to display beside the input. Has to be unique (use # to hide text afterwards to append an uid)
[in]itemWidthWidth of the input element(s) + unit combo
[in]unitWidthWidth of the unit combo
[in,out]vPointer to the value to modify
[in]v_minMinimum value allowed
[in]v_maxMaximum value allowed
[in,out]combo_current_itemPointer to the selected item in the unit combo
[in]combo_items_separated_by_zerosItems to display in the unit combo (separated by \0 and ends with \0\0)
[in]formatPrintf format to display the value with
[in]flagsInputText flags to modify the behavior
[in]combo_popup_max_height_in_itemsMaximum height of the combo in number of items
Returns
Returns if the value or unit was changed

◆ InputFloat2WithUnit()

InputWithUnitChange NAV::gui::widgets::InputFloat2WithUnit ( const char * label,
float itemWidth,
float unitWidth,
float v[2],
int * 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.

Parameters
[in]labelLabel to display beside the input. Has to be unique (use # to hide text afterwards to append an uid)
[in]itemWidthWidth of the input element(s) + unit combo
[in]unitWidthWidth of the unit combo
[in,out]vPointer to the value to modify
[in,out]combo_current_itemPointer to the selected item in the unit combo
[in]combo_items_separated_by_zerosItems to display in the unit combo (separated by \0 and ends with \0\0)
[in]formatPrintf format to display the value with
[in]flagsInputText flags to modify the behavior
[in]combo_popup_max_height_in_itemsMaximum height of the combo in number of items
Returns
Returns if the value or unit was changed

◆ InputFloat3LWithUnit()

InputWithUnitChange NAV::gui::widgets::InputFloat3LWithUnit ( const char * label,
float itemWidth,
float unitWidth,
float v[3],
float v_min,
float v_max,
int * 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.

Parameters
[in]labelLabel to display beside the input. Has to be unique (use # to hide text afterwards to append an uid)
[in]itemWidthWidth of the input element(s) + unit combo
[in]unitWidthWidth of the unit combo
[in,out]vPointer to the value to modify
[in]v_minMinimum value allowed
[in]v_maxMaximum value allowed
[in,out]combo_current_itemPointer to the selected item in the unit combo
[in]combo_items_separated_by_zerosItems to display in the unit combo (separated by \0 and ends with \0\0)
[in]formatPrintf format to display the value with
[in]flagsInputText flags to modify the behavior
[in]combo_popup_max_height_in_itemsMaximum height of the combo in number of items
Returns
Returns if the value or unit was changed

◆ InputFloat3WithUnit()

InputWithUnitChange NAV::gui::widgets::InputFloat3WithUnit ( const char * label,
float itemWidth,
float unitWidth,
float v[3],
int * 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.

Parameters
[in]labelLabel to display beside the input. Has to be unique (use # to hide text afterwards to append an uid)
[in]itemWidthWidth of the input element(s) + unit combo
[in]unitWidthWidth of the unit combo
[in,out]vPointer to the value to modify
[in,out]combo_current_itemPointer to the selected item in the unit combo
[in]combo_items_separated_by_zerosItems to display in the unit combo (separated by \0 and ends with \0\0)
[in]formatPrintf format to display the value with
[in]flagsInputText flags to modify the behavior
[in]combo_popup_max_height_in_itemsMaximum height of the combo in number of items
Returns
Returns if the value or unit was changed

◆ InputFloat4LWithUnit()

InputWithUnitChange NAV::gui::widgets::InputFloat4LWithUnit ( const char * label,
float itemWidth,
float unitWidth,
float v[4],
float v_min,
float v_max,
int * 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.

Parameters
[in]labelLabel to display beside the input. Has to be unique (use # to hide text afterwards to append an uid)
[in]itemWidthWidth of the input element(s) + unit combo
[in]unitWidthWidth of the unit combo
[in,out]vPointer to the value to modify
[in]v_minMinimum value allowed
[in]v_maxMaximum value allowed
[in,out]combo_current_itemPointer to the selected item in the unit combo
[in]combo_items_separated_by_zerosItems to display in the unit combo (separated by \0 and ends with \0\0)
[in]formatPrintf format to display the value with
[in]flagsInputText flags to modify the behavior
[in]combo_popup_max_height_in_itemsMaximum height of the combo in number of items
Returns
Returns if the value or unit was changed

◆ InputFloat4WithUnit()

InputWithUnitChange NAV::gui::widgets::InputFloat4WithUnit ( const char * label,
float itemWidth,
float unitWidth,
float v[4],
int * 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.

Parameters
[in]labelLabel to display beside the input. Has to be unique (use # to hide text afterwards to append an uid)
[in]itemWidthWidth of the input element(s) + unit combo
[in]unitWidthWidth of the unit combo
[in,out]vPointer to the value to modify
[in,out]combo_current_itemPointer to the selected item in the unit combo
[in]combo_items_separated_by_zerosItems to display in the unit combo (separated by \0 and ends with \0\0)
[in]formatPrintf format to display the value with
[in]flagsInputText flags to modify the behavior
[in]combo_popup_max_height_in_itemsMaximum height of the combo in number of items
Returns
Returns if the value or unit was changed

◆ InputFloatLWithUnit()

InputWithUnitChange NAV::gui::widgets::InputFloatLWithUnit ( const char * label,
float itemWidth,
float unitWidth,
float * v,
float v_min,
float v_max,
int * 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.

Parameters
[in]labelLabel to display beside the input. Has to be unique (use # to hide text afterwards to append an uid)
[in]itemWidthWidth of the input element(s) + unit combo
[in]unitWidthWidth of the unit combo
[in,out]vPointer to the value to modify
[in]v_minMinimum value allowed
[in]v_maxMaximum value allowed
[in,out]combo_current_itemPointer to the selected item in the unit combo
[in]combo_items_separated_by_zerosItems to display in the unit combo (separated by \0 and ends with \0\0)
[in]stepStep size of the InputText
[in]step_fastFast step size of the InputText
[in]formatPrintf format to display the value with
[in]flagsInputText flags to modify the behavior
[in]combo_popup_max_height_in_itemsMaximum height of the combo in number of items
Returns
Returns if the value or unit was changed

◆ InputFloatWithUnit()

InputWithUnitChange NAV::gui::widgets::InputFloatWithUnit ( const char * label,
float itemWidth,
float unitWidth,
float * v,
int * 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.

Parameters
[in]labelLabel to display beside the input. Has to be unique (use # to hide text afterwards to append an uid)
[in]itemWidthWidth of the input element(s) + unit combo
[in]unitWidthWidth of the unit combo
[in,out]vPointer to the value to modify
[in,out]combo_current_itemPointer to the selected item in the unit combo
[in]combo_items_separated_by_zerosItems to display in the unit combo (separated by \0 and ends with \0\0)
[in]stepStep size of the InputText
[in]step_fastFast step size of the InputText
[in]formatPrintf format to display the value with
[in]flagsInputText flags to modify the behavior
[in]combo_popup_max_height_in_itemsMaximum height of the combo in number of items
Returns
Returns if the value or unit was changed

◆ SliderDouble2WithUnit()

InputWithUnitChange NAV::gui::widgets::SliderDouble2WithUnit ( const char * label,
float itemWidth,
float unitWidth,
double v[2],
double v_min,
double v_max,
int * 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.

Parameters
[in]labelLabel to display beside the input. Has to be unique (use # to hide text afterwards to append an uid)
[in]itemWidthWidth of the input element(s) + unit combo
[in]unitWidthWidth of the unit combo
[in,out]vPointer to the value to modify
[in]v_minMinimum value allowed
[in]v_maxMaximum value allowed
[in,out]combo_current_itemPointer to the selected item in the unit combo
[in]combo_items_separated_by_zerosItems to display in the unit combo (separated by \0 and ends with \0\0)
[in]formatPrintf format to display the value with
[in]flagsSlider flags to modify the behavior
[in]combo_popup_max_height_in_itemsMaximum height of the combo in number of items
Returns
Returns if the value or unit was changed

◆ SliderDouble3WithUnit()

InputWithUnitChange NAV::gui::widgets::SliderDouble3WithUnit ( const char * label,
float itemWidth,
float unitWidth,
double v[3],
double v_min,
double v_max,
int * 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.

Parameters
[in]labelLabel to display beside the input. Has to be unique (use # to hide text afterwards to append an uid)
[in]itemWidthWidth of the input element(s) + unit combo
[in]unitWidthWidth of the unit combo
[in,out]vPointer to the value to modify
[in]v_minMinimum value allowed
[in]v_maxMaximum value allowed
[in,out]combo_current_itemPointer to the selected item in the unit combo
[in]combo_items_separated_by_zerosItems to display in the unit combo (separated by \0 and ends with \0\0)
[in]formatPrintf format to display the value with
[in]flagsSlider flags to modify the behavior
[in]combo_popup_max_height_in_itemsMaximum height of the combo in number of items
Returns
Returns if the value or unit was changed

◆ SliderDouble4WithUnit()

InputWithUnitChange NAV::gui::widgets::SliderDouble4WithUnit ( const char * label,
float itemWidth,
float unitWidth,
double v[4],
double v_min,
double v_max,
int * 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.

Parameters
[in]labelLabel to display beside the input. Has to be unique (use # to hide text afterwards to append an uid)
[in]itemWidthWidth of the input element(s) + unit combo
[in]unitWidthWidth of the unit combo
[in,out]vPointer to the value to modify
[in]v_minMinimum value allowed
[in]v_maxMaximum value allowed
[in,out]combo_current_itemPointer to the selected item in the unit combo
[in]combo_items_separated_by_zerosItems to display in the unit combo (separated by \0 and ends with \0\0)
[in]formatPrintf format to display the value with
[in]flagsSlider flags to modify the behavior
[in]combo_popup_max_height_in_itemsMaximum height of the combo in number of items
Returns
Returns if the value or unit was changed

◆ SliderDoubleWithUnit()

InputWithUnitChange NAV::gui::widgets::SliderDoubleWithUnit ( const char * label,
float itemWidth,
float unitWidth,
double * v,
double v_min,
double v_max,
int * 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.

Parameters
[in]labelLabel to display beside the input. Has to be unique (use # to hide text afterwards to append an uid)
[in]itemWidthWidth of the input element(s) + unit combo
[in]unitWidthWidth of the unit combo
[in,out]vPointer to the value to modify
[in]v_minMinimum value allowed
[in]v_maxMaximum value allowed
[in,out]combo_current_itemPointer to the selected item in the unit combo
[in]combo_items_separated_by_zerosItems to display in the unit combo (separated by \0 and ends with \0\0)
[in]formatPrintf format to display the value with
[in]flagsSlider flags to modify the behavior
[in]combo_popup_max_height_in_itemsMaximum height of the combo in number of items
Returns
Returns if the value or unit was changed

◆ SliderFloat2WithUnit()

InputWithUnitChange NAV::gui::widgets::SliderFloat2WithUnit ( const char * label,
float itemWidth,
float unitWidth,
float v[2],
float v_min,
float v_max,
int * 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.

Parameters
[in]labelLabel to display beside the input. Has to be unique (use # to hide text afterwards to append an uid)
[in]itemWidthWidth of the input element(s) + unit combo
[in]unitWidthWidth of the unit combo
[in,out]vPointer to the value to modify
[in]v_minMinimum value allowed
[in]v_maxMaximum value allowed
[in,out]combo_current_itemPointer to the selected item in the unit combo
[in]combo_items_separated_by_zerosItems to display in the unit combo (separated by \0 and ends with \0\0)
[in]formatPrintf format to display the value with
[in]flagsSlider flags to modify the behavior
[in]combo_popup_max_height_in_itemsMaximum height of the combo in number of items
Returns
Returns if the value or unit was changed

◆ SliderFloat3WithUnit()

InputWithUnitChange NAV::gui::widgets::SliderFloat3WithUnit ( const char * label,
float itemWidth,
float unitWidth,
float v[3],
float v_min,
float v_max,
int * 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.

Parameters
[in]labelLabel to display beside the input. Has to be unique (use # to hide text afterwards to append an uid)
[in]itemWidthWidth of the input element(s) + unit combo
[in]unitWidthWidth of the unit combo
[in,out]vPointer to the value to modify
[in]v_minMinimum value allowed
[in]v_maxMaximum value allowed
[in,out]combo_current_itemPointer to the selected item in the unit combo
[in]combo_items_separated_by_zerosItems to display in the unit combo (separated by \0 and ends with \0\0)
[in]formatPrintf format to display the value with
[in]flagsSlider flags to modify the behavior
[in]combo_popup_max_height_in_itemsMaximum height of the combo in number of items
Returns
Returns if the value or unit was changed

◆ SliderFloat4WithUnit()

InputWithUnitChange NAV::gui::widgets::SliderFloat4WithUnit ( const char * label,
float itemWidth,
float unitWidth,
float v[4],
float v_min,
float v_max,
int * 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.

Parameters
[in]labelLabel to display beside the input. Has to be unique (use # to hide text afterwards to append an uid)
[in]itemWidthWidth of the input element(s) + unit combo
[in]unitWidthWidth of the unit combo
[in,out]vPointer to the value to modify
[in]v_minMinimum value allowed
[in]v_maxMaximum value allowed
[in,out]combo_current_itemPointer to the selected item in the unit combo
[in]combo_items_separated_by_zerosItems to display in the unit combo (separated by \0 and ends with \0\0)
[in]formatPrintf format to display the value with
[in]flagsSlider flags to modify the behavior
[in]combo_popup_max_height_in_itemsMaximum height of the combo in number of items
Returns
Returns if the value or unit was changed

◆ SliderFloatWithUnit()

InputWithUnitChange NAV::gui::widgets::SliderFloatWithUnit ( const char * label,
float itemWidth,
float unitWidth,
float * v,
float v_min,
float v_max,
int * 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.

Parameters
[in]labelLabel to display beside the input. Has to be unique (use # to hide text afterwards to append an uid)
[in]itemWidthWidth of the input element(s) + unit combo
[in]unitWidthWidth of the unit combo
[in,out]vPointer to the value to modify
[in]v_minMinimum value allowed
[in]v_maxMaximum value allowed
[in,out]combo_current_itemPointer to the selected item in the unit combo
[in]combo_items_separated_by_zerosItems to display in the unit combo (separated by \0 and ends with \0\0)
[in]formatPrintf format to display the value with
[in]flagsSlider flags to modify the behavior
[in]combo_popup_max_height_in_itemsMaximum height of the combo in number of items
Returns
Returns if the value or unit was changed