[cimgui 1.53.1] Allow access to ImDrawListSharedData

Add binding to igGetDrawListDrawData and igGetOverlayDrawList.
This commit is contained in:
Malik Olivier Boussejra 2018-05-01 11:16:29 +09:00
parent db5059d179
commit c016ed66b7

View File

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