static Toolkit() { _loggingCallback = new utLogHandler(LoggingCallback); Toolkit.utSetLogHandler(_loggingCallback); _loggingEnabled = true; }
internal static void HandleEvent(ref Toolkit.utEvent e) { GraphicsWindow window = (GraphicsWindow)_masterWindowList[e.window]; switch (e.what) { case Toolkit.utEventKind.UT_EVENT_WINDOW_CLOSE: window.Dispose(); break; case Toolkit.utEventKind.UT_EVENT_WINDOW_RESIZE: window.OnResize(e.arg0, e.arg1); break; } }
internal static InputEventArgs FromEvent(Toolkit.utEvent e) { InputEventArgs args = new InputEventArgs(); args.Kind = (InputKind)e.what; args.Index = e.arg1; args.Value = e.arg2; return args; }