diff --git a/imgui-sys/src/lib.rs b/imgui-sys/src/lib.rs index 8e3ad72..21a3550 100644 --- a/imgui-sys/src/lib.rs +++ b/imgui-sys/src/lib.rs @@ -1023,7 +1023,6 @@ extern "C" { pub fn igSetScrollY(scroll_y: c_float); pub fn igSetScrollHere(center_y_ratio: c_float); pub fn igSetScrollFromPosY(pos_y: c_float, center_y_ratio: c_float); - pub fn igSetKeyboardFocusHere(offset: c_int); pub fn igSetStateStorage(tree: *mut ImGuiStorage); pub fn igGetStateStorage() -> *mut ImGuiStorage; } @@ -1702,6 +1701,12 @@ extern "C" { pub fn igStyleColorsLight(dst: *mut ImGuiStyle); } +// Focus +extern "C" { + pub fn igSetItemDefaultFocus(); + pub fn igSetKeyboardFocusHere(offset: c_int); +} + // Utilities extern "C" { pub fn igIsItemHovered(flags: ImGuiHoveredFlags) -> bool;