diff --git a/imgui-sys/src/lib.rs b/imgui-sys/src/lib.rs index fe87031..108b4e8 100644 --- a/imgui-sys/src/lib.rs +++ b/imgui-sys/src/lib.rs @@ -321,6 +321,12 @@ impl ImVec2 { y: y as c_float, } } + pub fn zero() -> ImVec2 { + ImVec2 { + x: 0.0 as c_float, + y: 0.0 as c_float, + } + } } impl From<[f32; 2]> for ImVec2 {