ImGuiDragFlags__AnythingBelowThisMightBeAPowerTerm=8,// We treat anything < this as being potentially a (float) power term from the previous API that has got miscast to this enum, and trigger an assert
ImGuiDragFlags_Vertical=1<<3,// Should this widget be orientated vertically?
ImGuiDragFlags_Logarithmic=1<<4// Should this widget be logarithmic? (linear otherwise)
ImGuiDragFlags_InvalidMask_=0x7000000F,// [Internal] We treat using those bits as being potentially a 'float power' argument from the previous API that has got miscast to this enum, and will trigger an assert if needed.
ImGuiDragFlags_Logarithmic=1<<4// Should this widget be logarithmic? (linear otherwise)
};
// Flags for SliderFloat(), SliderInt() etc.
enumImGuiSliderFlags_
{
ImGuiSliderFlags_None=0,
ImGuiSliderFlags__AnythingBelowThisMightBeAPowerTerm=8,// We treat anything < this as being potentially a (float) power term from the previous API that has got miscast to this enum, and trigger an assert
ImGuiSliderFlags_Vertical=1<<3,// Should this widget be orientated vertically?
ImGuiSliderFlags_Logarithmic=1<<4// Should this widget be logarithmic? (linear otherwise)
ImGuiSliderFlags_InvalidMask_=0x7000000F,// [Internal] We treat using those bits as being potentially a 'float power' argument from the previous API that has got miscast to this enum, and will trigger an assert if needed.
ImGuiSliderFlags_Logarithmic=1<<4// Should this widget be logarithmic? (linear otherwise)
ImGui::DragScalar("drag float ^2",ImGuiDataType_Float,&f32_v,0.005f,&f32_zero,&f32_one,"%f",2.0f);ImGui::SameLine();HelpMarker("You can use the 'power' parameter to increase tweaking precision on one side of the range.");
IM_ASSERT(((flags==0)||(flags>=ImGuiDragFlags__AnythingBelowThisMightBeAPowerTerm))&&"Invalid ImGuiDragFlags flags - has a power term been mistakenly cast to flags?");
IM_ASSERT((flags==1||(flags&ImGuiDragFlags_InvalidMask_)==0)&&"Invalid ImGuiDragFlags flags! Has a power term been mistakenly cast to flags?");
IM_ASSERT(((flags==0)||(flags>=ImGuiSliderFlags__AnythingBelowThisMightBeAPowerTerm))&&"Invalid ImGuiSliderFlags flags - has a power term been mistakenly cast to flags?");
IM_ASSERT((flags==1||(flags&ImGuiSliderFlags_InvalidMask_)==0)&&"Invalid ImGuiSliderFlags flag! Has a power term been mistakenly cast to flags?");