public override void KeyDown(NSEvent theEvent) { if (!MacEventView.KeyDown(Widget, theEvent)) { base.KeyDown(theEvent); } }
public TableLayoutHandler() { #if OSX Control = new MacEventView { Handler = this }; #elif IOS Control = new NSView(); #endif }
static void TriggerKeyDown(IntPtr sender, IntPtr sel, IntPtr e) { var obj = Runtime.GetNSObject(sender); var handler = (MacView <T, W>)((IMacControl)obj).Handler; var theEvent = new NSEvent(e); if (!MacEventView.KeyDown(handler.Widget, theEvent)) { Messaging.void_objc_msgSendSuper_IntPtr(obj.SuperHandle, sel, e); } }
protected override NSView CreateControl() { container = new MacEventView { Handler = this }; var control = new PixelLayoutView { Handler = this }; container.ContentView = control; return(control); }
public override void KeyDown(NSEvent theEvent) { var macControl = WeakDelegate as IMacControl; if (macControl != null) { var macViewHandler = macControl.WeakHandler.Target as IMacViewHandler; if (macViewHandler != null && MacEventView.KeyDown(macViewHandler.Widget, theEvent)) { return; } } base.KeyDown(theEvent); }
static void TriggerKeyUp(IntPtr sender, IntPtr sel, IntPtr e) { var obj = Runtime.GetNSObject(sender); var handler = GetHandler(obj) as IMacViewHandler; if (handler != null) { var theEvent = Messaging.GetNSObject <NSEvent>(e); if (!MacEventView.KeyUp(handler.Widget, theEvent)) { Messaging.void_objc_msgSendSuper_IntPtr(obj.SuperHandle, sel, e); } } }
public TableLayoutHandler() { #if OSX Control = new MacEventView { Handler = this }; #elif IOS Control = new NSView(); #endif #pragma warning disable 612,618 spacing = TableLayout.DefaultSpacing; padding = TableLayout.DefaultPadding; #pragma warning restore 612,618 }
public PixelLayoutHandler() { Control = new MacEventView { Handler = this }; }