igDragFloat2() private method

private igDragFloat2 ( string label, Vector2 &v, float v_speed, float v_min, float v_max, string display_format, float power ) : bool
label string
v Vector2
v_speed float
v_min float
v_max float
display_format string
power float
return bool
Esempio n. 1
0
        public static bool DragVector2(string label, ref Vector2 value, float min, float max, float dragSpeed = 1f, string displayFormat = "%f", float dragPower = 1f)
        {
            System.Numerics.Vector2 vec2 = value.ToNumericsVector2();
            bool result = ImGuiNative.igDragFloat2(label, ref vec2, dragSpeed, min, max, displayFormat, dragPower);

            value = new Vector2(vec2.X, vec2.Y);
            return(result);
        }
Esempio n. 2
0
 public static bool DragVector2(string label, ref Vector2 value, float min, float max, float dragSpeed = 1f, string displayFormat = "%f", float dragPower = 1f)
 {
     return(ImGuiNative.igDragFloat2(label, ref value, dragSpeed, min, max, displayFormat, dragPower));
 }
Esempio n. 3
0
 public static bool DragImVec2(string label, ref ImVec2 value, float min, float max, float dragSpeed = 1f, string displayFormat = "%f", float dragPower = 1f)
 => ImGuiNative.igDragFloat2(label, ref value, dragSpeed, min, max, displayFormat, dragPower);