From 774e336f9ca8dfe6e45c8f5869d0ed70d8a62b9d Mon Sep 17 00:00:00 2001 From: Joonas Javanainen Date: Tue, 2 Jul 2019 00:09:33 +0300 Subject: [PATCH] Rename time/frame_count --- src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 3b97869..946ffe4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -94,10 +94,10 @@ fn test_version() { } impl Context { - pub fn get_time(&self) -> f64 { + pub fn time(&self) -> f64 { unsafe { sys::igGetTime() } } - pub fn get_frame_count(&self) -> i32 { + pub fn frame_count(&self) -> i32 { unsafe { sys::igGetFrameCount() } } } @@ -132,10 +132,10 @@ impl<'ui> Ui<'ui> { pub fn style_color(&self, style_color: StyleColor) -> [f32; 4] { self.ctx.style()[style_color] } - pub fn get_time(&self) -> f64 { + pub fn time(&self) -> f64 { unsafe { sys::igGetTime() } } - pub fn get_frame_count(&self) -> i32 { + pub fn frame_count(&self) -> i32 { unsafe { sys::igGetFrameCount() } } pub fn render(self) -> &'ui DrawData {