[cimgui 1.53.1] Add binding to igSetItemDefaultFocus

Group functions related to focus management together.
This commit is contained in:
Malik Olivier Boussejra 2018-05-01 11:17:50 +09:00
parent c016ed66b7
commit 20d40f0e01

View File

@ -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;