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); } }
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); } }
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 }; } }