[cimgui 1.53.1] Add binding to igSetItemDefaultFocus
Group functions related to focus management together.
@@ -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;
