From 20d40f0e01cfff4c9ad62e0f29c992996e2d3ec2 Mon Sep 17 00:00:00 2001 From: Malik Olivier Boussejra Date: Tue, 1 May 2018 11:17:50 +0900 Subject: [PATCH] [cimgui 1.53.1] Add binding to igSetItemDefaultFocus Group functions related to focus management together. --- imgui-sys/src/lib.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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;