diff --git a/imgui-sys/src/lib.rs b/imgui-sys/src/lib.rs index 46e0f07..8e3ad72 100644 --- a/imgui-sys/src/lib.rs +++ b/imgui-sys/src/lib.rs @@ -796,7 +796,7 @@ pub struct ImDrawList { } #[repr(C)] -struct ImDrawListSharedData { +pub struct ImDrawListSharedData { /// UV of white pixel in the atlas tex_uv_white_pixel: ImVec2, /// Current/default font (optional, for simplified AddText overload) @@ -1781,6 +1781,12 @@ pub unsafe fn igIsRootWindowOrAnyChildHovered(_flags: ImGuiHoveredFlags) -> bool igIsWindowHovered(ImGuiHoveredFlags::RootAndChildWindows) } +// DrawList +extern "C" { + pub fn igGetOverlayDrawList() -> *mut ImDrawList; + pub fn igGetDrawListSharedData() -> *mut ImDrawListSharedData; +} + // Inputs extern "C" { pub fn igGetKeyIndex(imgui_key: ImGuiKey) -> c_int;