Example #1
0
            public void showNativeDialogModal(NativeOSWindow parent, Color color)
            {
                handle = GCHandle.Alloc(this, GCHandleType.Normal);
                IntPtr parentPtr = parent != null ? parent._NativePtr : IntPtr.Zero;

                callbackHandler.showModal(this, parentPtr, color);
            }
Example #2
0
 public MultiTouch(NativeOSWindow nativeWindow, Touches touches)
     : base(touches)
 {
     callbackHandler = new CallbackHandler();
     Log.Info("Activating MultiTouch on window {0}", nativeWindow._NativePtr);
     nativeMultiTouch = callbackHandler.create(this, nativeWindow);
 }
            public void showNativeDialogModal(NativeOSWindow parent, String message, String defaultDir, String defaultFile, String wildcard, bool selectMultiple)
            {
                handle = GCHandle.Alloc(this, GCHandleType.Normal);
                IntPtr parentPtr = parent != null ? parent._NativePtr : IntPtr.Zero;

                callbackHandler.showModal(this, parentPtr, message, defaultDir, defaultFile, wildcard, selectMultiple);
            }
Example #4
0
            public void showNativeDialogModal(NativeOSWindow parent, String message, String startPath)
            {
                handle = GCHandle.Alloc(this, GCHandleType.Normal);
                IntPtr parentPtr = parent != null ? parent._NativePtr : IntPtr.Zero;

                callbackHandler.showModal(this, parentPtr, message, startPath);
            }
Example #5
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="eventManager">The EventManager to use.</param>
 /// <param name="inputHandler">The InputHandler to use.</param>
 /// <param name="window">The window to show the onscreen keyboard on.</param>
 /// <param name="lastEventLayer">The last event layer in the eventManager.</param>
 public TouchMouseGuiForwarder(EventManager eventManager, InputHandler inputHandler, SystemTimer systemTimer, NativeOSWindow window, Object lastEventLayer)
 {
     this.touches = eventManager.Touches;
     this.touches.FingerStarted += HandleFingerStarted;
     this.inputHandler           = inputHandler;
     this.window      = window;
     this.systemTimer = systemTimer;
 }
 public FileSaveDialog(NativeOSWindow parent = null, String message = "", String defaultDir = "", String defaultFile = "", String wildcard = "")
 {
     Parent      = parent;
     Message     = message;
     DefaultDir  = defaultDir;
     DefaultFile = defaultFile;
     Wildcard    = wildcard;
 }
 public FileOpenDialog(NativeOSWindow parent = null, String message = "", String defaultDir = "", String defaultFile = "", String wildcard = "", bool selectMultiple = false)
 {
     Parent         = parent;
     Message        = message;
     DefaultDir     = defaultDir;
     DefaultFile    = defaultFile;
     Wildcard       = wildcard;
     SelectMultiple = selectMultiple;
 }
        public NativeKeyboard(NativeOSWindow window, Keyboard keyboard)
            : base(keyboard)
        {
            this.window         = window;
            window.Deactivated += window_Deactivated;

            callbackHandler = new CallbackHandler();

            nativeKeyboard = callbackHandler.create(this, window);
        }
Example #9
0
        public NativeMouse(NativeOSWindow window, Mouse mouse)
            : base(mouse)
        {
            this.window = window;

            callbackHandler = new CallbackHandler();

            nativeMouse = callbackHandler.create(this, window);

            fireSizeChanged(window.WindowWidth, window.WindowHeight);
            window.Resized += window_Resized;
        }
Example #10
0
        public NativeOSWindow(NativeOSWindow parent, String title, IntVector2 position, IntSize2 size, bool floatOnParent)
        {
            this.title = title;

            IntPtr parentPtr = IntPtr.Zero;

            if (parent != null)
            {
                parentPtr = parent._NativePtr;
            }

            nativeWindow    = NativeOSWindow_create(parentPtr, title, position.x, position.y, size.Width, size.Height, floatOnParent);
            callbackHandler = new CallbackHandler(this);
        }
Example #11
0
 public static NativeDialogResult showQuestionDialog(NativeOSWindow parent, String message, String caption)
 {
     return(MessageDialog_showQuestionDialog(parent._NativePtr, message, caption));
 }
Example #12
0
 public static void showErrorDialog(NativeOSWindow parent, String message, String caption)
 {
     MessageDialog_showErrorDialog(parent._NativePtr, message, caption);
 }
Example #13
0
 public IntPtr create(NativeKeyboard obj, NativeOSWindow window)
 {
     handle = GCHandle.Alloc(obj);
     return(NativeKeyboard_new(window._NativePtr, keyDownCB, keyUpCB, GCHandle.ToIntPtr(handle)));
 }
Example #14
0
 public ColorDialog(NativeOSWindow parent = null)
 {
     Parent = parent;
 }
Example #15
0
 public IntPtr create(NativeMouse obj, NativeOSWindow window)
 {
     handle = GCHandle.Alloc(obj);
     return(NativeMouse_new(window._NativePtr, mouseButtonDownCB, mouseButtonUpCB, mouseMoveCB, mouseWheelCB, GCHandle.ToIntPtr(handle)));
 }
Example #16
0
 public IntPtr create(MultiTouch obj, NativeOSWindow nativeWindow)
 {
     handle = GCHandle.Alloc(obj);
     return(MultiTouch_new(nativeWindow._NativePtr, touchStartedCB, touchEndedCB, touchMovedCB, touchCanceledCB, GCHandle.ToIntPtr(handle)));
 }
Example #17
0
 public NativeInputHandler(NativeOSWindow window, bool enableMultitouch)
 {
     this.window           = window;
     this.enableMultitouch = enableMultitouch;
 }
Example #18
0
 public DirDialog(NativeOSWindow parent = null, String message = "", String startPath = "")
 {
     Parent    = parent;
     Message   = message;
     StartPath = startPath;
 }
Example #19
0
 public CallbackHandler(NativeOSWindow window)
 {
     handle = GCHandle.Alloc(window);
     NativeOSWindow_setCallbacks(window._NativePtr, deleteCB, sizedCB, closedCB, closedCB, activateCB, createInternalResourcesCB, destroyInternalResourcesCB, GCHandle.ToIntPtr(handle));
 }
Example #20
0
 public NativeOSWindow(NativeOSWindow parent, String title, IntVector2 position, IntSize2 size)
     : this(parent, title, position, size, false)
 {
 }