This allow using custom formats to display values in scientific notation, and is generally more consistent with other API. Obsoleted functions using the optional "int decimal_precision" parameter. (#648)
This allow using custom formats to display values in scientific notation, and is generally more consistent with other API. Obsoleted functions using the optional "int decimal_precision" parameter. (#648)
- DragFloat, DragInt: Cancel mouse tweak when current value is initially past the min/max boundaries and mouse is pushing in the same direction (keyboard/gamepad version already did this).
- DragFloat, DragInt: Cancel mouse tweak when current value is initially past the min/max boundaries and mouse is pushing in the same direction (keyboard/gamepad version already did this).
- DragFloat, SliderFloat: Fixes to allow input of scientific notation numbers when using CTRL+Click to input the value. (~#648, #1011)
- DragFloat, SliderFloat: Fixes to allow input of scientific notation numbers when using CTRL+Click to input the value. (~#648, #1011)
- DragFloat, SliderFloat: Rounding-on-write uses the provided format string instead of parsing the precision from the string, which allows for finer uses of %e %g etc. (#648, #642)
- Style: Changed default style.DisplaySafeAreaPadding values from (4,4) to (3,3) so it is smaller than FramePadding and has no effect on main menu bar on a computer. (#1439)
- Style: Changed default style.DisplaySafeAreaPadding values from (4,4) to (3,3) so it is smaller than FramePadding and has no effect on main menu bar on a computer. (#1439)
- Misc: Added IMGUI_CHECKVERSION() macro to compare version string and data structure sizes in order to catch issues with mismatching compilation unit settings. (#1695, #1769)
- Misc: Added IMGUI_CHECKVERSION() macro to compare version string and data structure sizes in order to catch issues with mismatching compilation unit settings. (#1695, #1769)
- Demo: Fixed Overlay: Added a context menu item to enable freely moving the window.
- Demo: Fixed Overlay: Added a context menu item to enable freely moving the window.
if(c>='A'&&c<='Z'&&(c!='L'))// L is a type modifier, other letters qualify as types aka end of the format
if(fmt[0]=='%'){fmt++;continue;}// Ignore "%%"
break;
fmt_start=fmt-1;
if(c>='a'&&c<='z'&&(c!='h'&&c!='j'&&c!='l'&&c!='t'&&c!='w'&&c!='z'))// h/j/l/t/w/z are type modifiers, other letters qualify as types aka end of the format
while((c=*fmt++)!=0)
break;
{
if(c>='A'&&c<='Z'&&(c!='L'))// L is a type modifier, other letters qualify as types aka end of the format
break;
if(c>='a'&&c<='z'&&(c!='h'&&c!='j'&&c!='l'&&c!='t'&&c!='w'&&c!='z'))// h/j/l/t/w/z are type modifiers, other letters qualify as types aka end of the format
break;
}
if(fmt[0]==0)// If we only have leading decoration, we don't need to copy the data.
grab_sz=ImMin(ImMax(1.0f*(slider_sz/((v_min<v_max?v_max-v_min:v_min-v_max)+1.0f)),style.GrabMinSize),slider_sz);// Integer sliders, if possible have the grab size represent 1 unit
grab_sz=ImMin(ImMax(1.0f*(slider_sz/((v_min<v_max?v_max-v_min:v_min-v_max)+1.0f)),style.GrabMinSize),slider_sz);// Integer sliders, if possible have the grab size represent 1 unit