示例#1
0
        public static WindowPositionCallback SetWindowPosCallback(WindowPtr window, WindowPositionCallback callback)
        {
            var callbacks = GetCallbacks(window);
            var old       = callbacks.windowPosition;

            callbacks.windowPosition = callback;
            glfwSetWindowPosCallback(window, callback);
            CheckError();
            return(old);
        }
示例#2
0
        public static WindowPositionCallback SetWindowPositionCallback(WindowHandle window, WindowPositionCallback callback)
        {
            var old = glfwSetWindowPosCallback(window, callback);

            CheckError(nameof(SetWindowPositionCallback));
            return(old);
        }
 public static extern IntPtr glfwSetWindowPosCallback(WindowPtr window, WindowPositionCallback callback);
示例#4
0
 private static extern WindowPositionCallback glfwSetWindowPosCallback(WindowHandle window, WindowPositionCallback callback);