Implement keyboard focus command in Ui

This commit is contained in:
Scott Harper 2019-03-17 11:40:01 +09:00
parent 74ff73d06d
commit 26a9eddc62

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