Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I get ImGuiWindowClass? #80

Closed
FaresX opened this issue Mar 4, 2023 · 1 comment
Closed

How can I get ImGuiWindowClass? #80

FaresX opened this issue Mar 4, 2023 · 1 comment

Comments

@FaresX
Copy link

FaresX commented Mar 4, 2023

I read the imgui_demo.cpp from https://pthom.github.io/imgui_manual_online/manual/imgui_manual.html to find the usage of dockspace

 ImGui::DockSpaceOverViewport(ImGui::GetMainViewport());

but in LibCImGui, it is like this

function igDockSpaceOverViewport(viewport, flags, window_class)
    ccall((:igDockSpaceOverViewport, libcimgui), ImGuiID, (Ptr{ImGuiViewport}, ImGuiDockNodeFlags, Ptr{ImGuiWindowClass}), viewport, flags, window_class)
end

How can I get a ImGuiWindowClass object?

@JamesWrigley
Copy link
Collaborator

Closing this because as of #141 DockSpaceOverViewport() is automatically wrapped with the correct default arguments:

CImGui.jl/src/wrapper.jl

Lines 2811 to 2816 in 206783e

DockSpaceOverViewport(
dockspace_id::Union{ImGuiID,Integer} = 0,
viewport::VoidablePtrOrRef{ImGuiViewport} = C_NULL,
flags::Union{ImGuiDockNodeFlags,ImGuiDockNodeFlags_,Integer} = 0,
window_class::VoidablePtrOrRef{ImGuiWindowClass} = C_NULL,
) = igDockSpaceOverViewport(dockspace_id, viewport, flags, window_class)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants