Merge pull request #209 from AberrantWolf/set_kb_focus

Added set keyboard focus function to Ui
This commit is contained in:
Joonas Javanainen 2019-03-27 08:03:00 +02:00 committed by GitHub
commit de29625139
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -528,6 +528,11 @@ impl<'ui> Ui<'ui> {
let io = self.imgui.io();
io.want_capture_keyboard
}
pub fn set_keyboard_focus_here(&self, offset: i32) {
unsafe {
sys::igSetKeyboardFocusHere(offset);
}
}
pub fn framerate(&self) -> f32 {
let io = self.imgui.io();
io.framerate