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;
|
||||
|
||||
impl Ui {
|
||||
pub fn dockspace_over_main_viewport(&self) {
|
||||
pub fn dockspace_over_main_viewport(&self) -> imgui_sys::ImGuiID {
|
||||
unsafe {
|
||||
sys::igDockSpaceOverViewport(
|
||||
0,
|
||||
sys::igGetMainViewport(),
|
||||
sys::ImGuiDockNodeFlags_PassthruCentralNode as i32,
|
||||
null(),
|
||||
);
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user