mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-26 04:48:29 +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)]
|
#[repr(C)]
|
||||||
struct ImDrawListSharedData {
|
pub struct ImDrawListSharedData {
|
||||||
/// UV of white pixel in the atlas
|
/// UV of white pixel in the atlas
|
||||||
tex_uv_white_pixel: ImVec2,
|
tex_uv_white_pixel: ImVec2,
|
||||||
/// Current/default font (optional, for simplified AddText overload)
|
/// Current/default font (optional, for simplified AddText overload)
|
||||||
@ -1781,6 +1781,12 @@ pub unsafe fn igIsRootWindowOrAnyChildHovered(_flags: ImGuiHoveredFlags) -> bool
|
|||||||
igIsWindowHovered(ImGuiHoveredFlags::RootAndChildWindows)
|
igIsWindowHovered(ImGuiHoveredFlags::RootAndChildWindows)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// DrawList
|
||||||
|
extern "C" {
|
||||||
|
pub fn igGetOverlayDrawList() -> *mut ImDrawList;
|
||||||
|
pub fn igGetDrawListSharedData() -> *mut ImDrawListSharedData;
|
||||||
|
}
|
||||||
|
|
||||||
// Inputs
|
// Inputs
|
||||||
extern "C" {
|
extern "C" {
|
||||||
pub fn igGetKeyIndex(imgui_key: ImGuiKey) -> c_int;
|
pub fn igGetKeyIndex(imgui_key: ImGuiKey) -> c_int;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user