mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-11 21:48:36 +00:00
[cimgui 1.53.1] Allow access to ImDrawListSharedData
Add binding to igGetDrawListDrawData and igGetOverlayDrawList.
This commit is contained in:
parent
db5059d179
commit
c016ed66b7
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user