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); }
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); }
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); }
/// <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); }
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; }
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); }
public static NativeDialogResult showQuestionDialog(NativeOSWindow parent, String message, String caption) { return(MessageDialog_showQuestionDialog(parent._NativePtr, message, caption)); }
public static void showErrorDialog(NativeOSWindow parent, String message, String caption) { MessageDialog_showErrorDialog(parent._NativePtr, message, caption); }
public IntPtr create(NativeKeyboard obj, NativeOSWindow window) { handle = GCHandle.Alloc(obj); return(NativeKeyboard_new(window._NativePtr, keyDownCB, keyUpCB, GCHandle.ToIntPtr(handle))); }
public ColorDialog(NativeOSWindow parent = null) { Parent = parent; }
public IntPtr create(NativeMouse obj, NativeOSWindow window) { handle = GCHandle.Alloc(obj); return(NativeMouse_new(window._NativePtr, mouseButtonDownCB, mouseButtonUpCB, mouseMoveCB, mouseWheelCB, GCHandle.ToIntPtr(handle))); }
public IntPtr create(MultiTouch obj, NativeOSWindow nativeWindow) { handle = GCHandle.Alloc(obj); return(MultiTouch_new(nativeWindow._NativePtr, touchStartedCB, touchEndedCB, touchMovedCB, touchCanceledCB, GCHandle.ToIntPtr(handle))); }
public NativeInputHandler(NativeOSWindow window, bool enableMultitouch) { this.window = window; this.enableMultitouch = enableMultitouch; }
public DirDialog(NativeOSWindow parent = null, String message = "", String startPath = "") { Parent = parent; Message = message; StartPath = startPath; }
public CallbackHandler(NativeOSWindow window) { handle = GCHandle.Alloc(window); NativeOSWindow_setCallbacks(window._NativePtr, deleteCB, sizedCB, closedCB, closedCB, activateCB, createInternalResourcesCB, destroyInternalResourcesCB, GCHandle.ToIntPtr(handle)); }
public NativeOSWindow(NativeOSWindow parent, String title, IntVector2 position, IntSize2 size) : this(parent, title, position, size, false) { }