mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-11 05:28:35 +00:00
Return the dockspace ID from dockspace_over_main_viewport
This commit is contained in:
parent
beef13f54d
commit
91fdf45397
@ -3,14 +3,14 @@ use std::ptr::null;
|
|||||||
use crate::Ui;
|
use crate::Ui;
|
||||||
|
|
||||||
impl Ui {
|
impl Ui {
|
||||||
pub fn dockspace_over_main_viewport(&self) {
|
pub fn dockspace_over_main_viewport(&self) -> imgui_sys::ImGuiID {
|
||||||
unsafe {
|
unsafe {
|
||||||
sys::igDockSpaceOverViewport(
|
sys::igDockSpaceOverViewport(
|
||||||
0,
|
0,
|
||||||
sys::igGetMainViewport(),
|
sys::igGetMainViewport(),
|
||||||
sys::ImGuiDockNodeFlags_PassthruCentralNode as i32,
|
sys::ImGuiDockNodeFlags_PassthruCentralNode as i32,
|
||||||
null(),
|
null(),
|
||||||
);
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user