Ejemplo n.º 1
0
 static void WidgetUnset_cb(IntPtr inst)
 {
     try {
         Accessible __obj = GLib.Object.GetObject(inst, false) as Accessible;
         __obj.OnWidgetUnset();
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
Ejemplo n.º 2
0
 static void ConnectWidgetDestroyed_cb(IntPtr inst)
 {
     try {
         Accessible __obj = GLib.Object.GetObject(inst, false) as Accessible;
         __obj.OnConnectWidgetDestroyed();
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
Ejemplo n.º 3
0
        public GtkNSViewHost(NSView view)
        {
            this.view = view ?? throw new ArgumentNullException(nameof(view));

            WidgetFlags |= WidgetFlags.NoWindow;

            Accessible.SetRole(AtkCocoa.Roles.AXGroup);

            var accessibility = AtkCocoaMacExtensions.GetNSAccessibilityElement(Accessible);

            if (accessibility != null)
            {
                accessibility.AccessibilityElement  = true;
                accessibility.AccessibilityChildren = new NSObject [] { view };
            }
        }