dear-imgui-sys 0.12.0

Low-level FFI bindings to Dear ImGui v1.92.7 (docking branch) via cimgui (C API)
Documentation
//! Low-level Android backend shim.
//!
//! This module wraps the repository-owned C shim around Dear ImGui's official
//! `imgui_impl_android` backend.
//!
//! Typical usage:
//!
//! - initialize with an `ANativeWindow*`
//! - call `dear_imgui_backend_android_new_frame()` once per frame
//! - optionally forward raw `AInputEvent*` values through
//!   `dear_imgui_backend_android_handle_input_event()`
//! - shut down before destroying the associated window / activity state
//!
//! If your Android stack uses a higher-level input wrapper such as
//! `android-activity`, you may instead translate input into `dear-imgui-rs::Io`
//! manually and only reuse the window + frame lifecycle parts here.

use std::ffi::c_void;

unsafe extern "C" {
    pub fn dear_imgui_backend_android_init(window: *mut c_void) -> bool;
    pub fn dear_imgui_backend_android_handle_input_event(input_event: *const c_void) -> i32;
    pub fn dear_imgui_backend_android_shutdown();
    pub fn dear_imgui_backend_android_new_frame();
}