[cimgui 1.53.1] Allow access to ImDrawListSharedData
Add binding to igGetDrawListDrawData and igGetOverlayDrawList.
@@ -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;
