예제 #1
0
        public static byte ImGui_ImplGlfw_GetWindowMinimized(ImGuiViewportPtr viewport)
        {
            var window = GetWindow(viewport);

            return((byte)(GLFW.GetWindowAttrib(window, WindowAttributeGetBool.Iconified) ? 1 : 0));
        }
예제 #2
0
    private static NativeBoolean GetWindowMinimized(ImGuiViewport *viewport)
    {
        ViewportData *viewportData = (ViewportData *)viewport->PlatformUserData;

        return(GLFW.GetWindowAttrib(viewportData->Window, WindowAttributeGetBool.Iconified));
    }
예제 #3
0
        public static byte ImGui_ImplGlfw_GetWindowFocus(ImGuiViewportPtr viewport)
        {
            var window = GetWindow(viewport);

            return((byte)(GLFW.GetWindowAttrib(window, WindowAttributeGetBool.Focused) ? 1 : 0));
        }