mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-11 21:48:36 +00:00
Merge pull request #209 from AberrantWolf/set_kb_focus
Added set keyboard focus function to Ui
This commit is contained in:
commit
de29625139
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user