diff --git a/cocoa/NSApplication.go b/cocoa/NSApplication.go index 98c609ec..a3d15880 100644 --- a/cocoa/NSApplication.go +++ b/cocoa/NSApplication.go @@ -32,11 +32,11 @@ type NSApplication struct { } func NSApplication_New() NSApplication { - return NSApplication_alloc().Init_asNSApplication() + return NSApplication_Alloc().Init_AsNSApplication() } func NSApp() NSApplication { - return NSApplication_sharedApplication() + return NSApplication_SharedApplication() } func NSApp_WithDidLaunch(cb func(notification objc.Object)) NSApplication { @@ -49,25 +49,8 @@ func NSApp_WithDidLaunch(cb func(notification objc.Object)) NSApplication { } func (app NSApplication) Terminate() { - app.Terminate_(nil) + app.gen_NSApplication.Terminate(nil) } - -func (app NSApplication) SetDelegate(delegate objc.Object) { - app.SetDelegate_(delegate) -} - -func (app NSApplication) Delegate() objc.Object { - return app.gen_NSApplication.Delegate() -} - -func (app NSApplication) SetMainMenu(menu NSMenu) { - app.SetMainMenu_(menu) -} - func (app NSApplication) SetActivationPolicy(policy int) { - app.SetActivationPolicy_(core.NSInteger(policy)) -} - -func (app NSApplication) ActivateIgnoringOtherApps(flag bool) { - app.ActivateIgnoringOtherApps_(flag) + app.gen_NSApplication.SetActivationPolicy(core.NSInteger(policy)) } diff --git a/cocoa/NSBundle.go b/cocoa/NSBundle.go index bd60e797..efdf4589 100644 --- a/cocoa/NSBundle.go +++ b/cocoa/NSBundle.go @@ -3,5 +3,5 @@ package cocoa type NSBundle struct{ gen_NSBundle } func NSBundle_Main() NSBundle { - return NSBundle_mainBundle() + return NSBundle_MainBundle() } diff --git a/cocoa/NSColor.go b/cocoa/NSColor.go index 81fcc5fc..e6c6aac8 100644 --- a/cocoa/NSColor.go +++ b/cocoa/NSColor.go @@ -5,9 +5,9 @@ import "github.com/progrium/macdriver/core" type NSColor struct{ gen_NSColor } func NSColor_Init(r, g, b, a float64) NSColor { - return NSColor_colorWithRed_green_blue_alpha_(core.CGFloat(r), core.CGFloat(g), core.CGFloat(b), core.CGFloat(a)) + return NSColor_ColorWithRedGreenBlueAlpha(core.CGFloat(r), core.CGFloat(g), core.CGFloat(b), core.CGFloat(a)) } func NSColor_Clear() NSColor { - return NSColor_clearColor() + return NSColor_ClearColor() } diff --git a/cocoa/NSControl.go b/cocoa/NSControl.go index 543d55a2..548f4c70 100644 --- a/cocoa/NSControl.go +++ b/cocoa/NSControl.go @@ -9,5 +9,5 @@ type NSControl struct { } func NSControl_Init(frame core.NSRect) NSControl { - return NSControl_alloc().InitWithFrame__asNSControl(frame) + return NSControl_Alloc().InitWithFrame_AsNSControl(frame) } diff --git a/cocoa/NSEvent_monitor.go b/cocoa/NSEvent_monitor.go index 6d18d401..023c1869 100644 --- a/cocoa/NSEvent_monitor.go +++ b/cocoa/NSEvent_monitor.go @@ -22,7 +22,7 @@ func monitorGlobalReentry(event unsafe.Pointer) { } obj := objc.ObjectPtr(uintptr(event)) obj.Retain() - monitorCh <- NSEvent_fromRef(obj) + monitorCh <- NSEvent_FromRef(obj) } //export monitorLocalReentry @@ -32,6 +32,6 @@ func monitorLocalReentry(event unsafe.Pointer) unsafe.Pointer { } obj := objc.ObjectPtr(uintptr(event)) obj.Retain() - monitorCh <- NSEvent_fromRef(obj) + monitorCh <- NSEvent_FromRef(obj) return event } diff --git a/cocoa/NSFont.go b/cocoa/NSFont.go index 4c287773..3fb594a2 100644 --- a/cocoa/NSFont.go +++ b/cocoa/NSFont.go @@ -7,7 +7,7 @@ import ( type NSFont struct{ gen_NSFont } func NSFont_Init(fontName string, size float64) NSFont { - return NSFont_fontWithName_size_( + return NSFont_FontWithNameSize( core.String(fontName), core.CGFloat(size), ) diff --git a/cocoa/NSImage.go b/cocoa/NSImage.go index d77e2637..9c4a008c 100644 --- a/cocoa/NSImage.go +++ b/cocoa/NSImage.go @@ -9,23 +9,15 @@ type NSImage struct { } func NSImage_InitWithData(data core.NSDataRef) NSImage { - return NSImage_alloc().InitWithData__asNSImage(data) + return NSImage_Alloc().InitWithData_AsNSImage(data) } func NSImage_InitWithURL(url core.NSURL) NSImage { - return NSImage_alloc().InitWithContentsOfURL__asNSImage(url) + return NSImage_Alloc().InitWithContentsOfURL_AsNSImage(url) } func NSImage_ImageNamed(name string) NSImage { - return NSImage_fromRef(NSImage_alloc().Send("imageNamed:", core.String(name))) -} - -func (i NSImage) SetSize(size core.NSSize) { - i.SetSize_(size) -} - -func (i NSImage) SetTemplate(b bool) { - i.SetTemplate_(b) + return NSImage_FromRef(NSImage_Alloc().Send("imageNamed:", core.String(name))) } func (i NSImage) SetValueForKey(value, key interface{}) { diff --git a/cocoa/NSImageView.go b/cocoa/NSImageView.go index 8ab114ef..146457ad 100644 --- a/cocoa/NSImageView.go +++ b/cocoa/NSImageView.go @@ -5,9 +5,5 @@ type NSImageView struct { } func NSImageView_New() NSImageView { - return NSImageView_alloc().Init_asNSImageView() -} - -func (imgView NSImageView) SetImage(img NSImageRef) { - imgView.gen_NSImageView.SetImage_(img) + return NSImageView_Alloc().Init_AsNSImageView() } diff --git a/cocoa/NSImage_test.go b/cocoa/NSImage_test.go index 7770af50..d57302c4 100644 --- a/cocoa/NSImage_test.go +++ b/cocoa/NSImage_test.go @@ -8,7 +8,7 @@ import ( ) func TestNSImageSize(t *testing.T) { - img := NSImage_alloc().InitWithSize__asNSImage(core.Size(100, 200)) + img := NSImage_Alloc().InitWithSize_AsNSImage(core.Size(100, 200)) size := img.Size() assert.EqualValues(t, 100, size.Width) assert.EqualValues(t, 200, size.Height) diff --git a/cocoa/NSLayoutManager.go b/cocoa/NSLayoutManager.go index f777182c..2b4fe7d0 100644 --- a/cocoa/NSLayoutManager.go +++ b/cocoa/NSLayoutManager.go @@ -1,17 +1,5 @@ package cocoa -import ( - "github.com/progrium/macdriver/core" -) - type NSLayoutManager struct { gen_NSLayoutManager } - -func (lm NSLayoutManager) EnsureLayoutForTextContainer(tc NSTextContainerRef) { - lm.EnsureLayoutForTextContainer_(tc) -} - -func (lm NSLayoutManager) UsedRectForTextContainer(tc NSTextContainerRef) (rect core.NSRect) { - return lm.UsedRectForTextContainer_(tc) -} diff --git a/cocoa/NSMenu.go b/cocoa/NSMenu.go index 7ec73b38..968dcf70 100644 --- a/cocoa/NSMenu.go +++ b/cocoa/NSMenu.go @@ -2,7 +2,6 @@ package cocoa import ( "github.com/progrium/macdriver/core" - "github.com/progrium/macdriver/objc" ) type NSMenu struct { @@ -10,33 +9,13 @@ type NSMenu struct { } func NSMenu_New() NSMenu { - return NSMenu_alloc().Init_asNSMenu() + return NSMenu_Alloc().Init_AsNSMenu() } func NSMenu_Init(title string) NSMenu { - return NSMenu_alloc().InitWithTitle__asNSMenu(core.String(title)) -} - -func (menu NSMenu) SetTitle(title string) { - menu.SetTitle_(core.String(title)) + return NSMenu_Alloc().InitWithTitle_AsNSMenu(core.String(title)) } func (menu NSMenu) Title() string { return menu.gen_NSMenu.Title().String() } - -func (menu NSMenu) AddItem(item NSMenuItemRef) { - menu.AddItem_(item) -} - -func (menu NSMenu) RemoveItem(item NSMenuItemRef) { - menu.RemoveItem_(item) -} - -func (menu NSMenu) SetAutoenablesItems(b bool) { - menu.SetAutoenablesItems_(b) -} - -func (menu NSMenu) SetDelegate(delegate objc.Object) { - menu.SetDelegate_(delegate) -} diff --git a/cocoa/NSMenuItem.go b/cocoa/NSMenuItem.go index 46a2703d..74cdf074 100644 --- a/cocoa/NSMenuItem.go +++ b/cocoa/NSMenuItem.go @@ -14,25 +14,19 @@ type NSMenuItem struct { // NSMenuItem_Init returns an initialized instance of NSMenuItem. // https://developer.apple.com/documentation/appkit/nsmenuitem/1514858-initwithtitle?language=objc func NSMenuItem_Init(itemName string, action objc.Selector, keyEquivalent string) NSMenuItem { - return NSMenuItem_alloc().InitWithTitle_action_keyEquivalent__asNSMenuItem( + return NSMenuItem_Alloc().InitWithTitleActionKeyEquivalent_AsNSMenuItem( core.String(itemName), action, core.String(keyEquivalent)) } // NSMenuItem_New returns an initialized instance of NSMenuItem. func NSMenuItem_New() NSMenuItem { - return NSMenuItem_alloc().Init_asNSMenuItem() + return NSMenuItem_Alloc().Init_AsNSMenuItem() } // NSMenuItem_Separator returns a menu item that is used to separate logical groups of menu commands. // https://developer.apple.com/documentation/appkit/nsmenuitem/1514838-separatoritem?language=objc func NSMenuItem_Separator() NSMenuItem { - return NSMenuItem_separatorItem() -} - -// SetSubmenu sets the submenu of the menu item. -// https://developer.apple.com/documentation/appkit/nsmenuitem/1514845-submenu?language=objc -func (i NSMenuItem) SetSubmenu(submenu NSMenuRef) { - i.SetSubmenu_(submenu) + return NSMenuItem_SeparatorItem() } // Hidden returns a boolean value that indicates whether the menu item is hidden. @@ -41,24 +35,12 @@ func (i NSMenuItem) Hidden() bool { return i.IsHidden() } -// SetHidden sets a boolean value that indicates whether the menu item is hidden. -// https://developer.apple.com/documentation/appkit/nsmenuitem/1514846-hidden?language=objc -func (i NSMenuItem) SetHidden(b bool) { - i.SetHidden_(b) -} - // Enabled returns a boolean value that indicates whether the menu item is enabled. // https://developer.apple.com/documentation/appkit/nsmenuitem/1514863-enabled?language=objc func (i NSMenuItem) Enabled() bool { return i.IsEnabled() } -// SetEnabled sets a boolean value that indicates whether the menu item is enabled. -// https://developer.apple.com/documentation/appkit/nsmenuitem/1514863-enabled?language=objc -func (i NSMenuItem) SetEnabled(b bool) { - i.SetEnabled_(b) -} - // Title returns the menu item's title. // https://developer.apple.com/documentation/appkit/nsmenuitem/1514805-title?language=objc func (i NSMenuItem) Title() string { @@ -68,19 +50,13 @@ func (i NSMenuItem) Title() string { // SetTitle sets the menu item's title. // https://developer.apple.com/documentation/appkit/nsmenuitem/1514805-title?language=objc func (i NSMenuItem) SetTitle(s string) { - i.SetTitle_(core.String(s)) + i.gen_NSMenuItem.SetTitle(core.String(s)) } // SetAttributedTitle sets a custom string for the menu item's title. // https://developer.apple.com/documentation/appkit/nsmenuitem/1514860-attributedtitle?language=objc func (i NSMenuItem) SetAttributedTitle(s string) { - i.SetAttributedTitle_(core.NSAttributedString_FromString(s)) -} - -// SetImage sets the menu item’s image. -// https://developer.apple.com/documentation/appkit/nsmenuitem/1514819-image?language=objc -func (i NSMenuItem) SetImage(obj NSImage) { - i.SetImage_(obj) + i.gen_NSMenuItem.SetAttributedTitle(core.NSAttributedString_FromString(s)) } // ToolTip returns a help tag for the menu item. @@ -92,7 +68,7 @@ func (i NSMenuItem) ToolTip() string { // SetToolTip sets a help tag for the menu item. // https://developer.apple.com/documentation/appkit/nsmenuitem/1514848-tooltip?language=objc func (i NSMenuItem) SetToolTip(s string) { - i.SetToolTip_(core.String(s)) + i.gen_NSMenuItem.SetToolTip(core.String(s)) } // Target returns the menu item's target. @@ -101,32 +77,16 @@ func (i NSMenuItem) Target() objc.Object { return i.gen_NSMenuItem.Target() } -// SetTarget sets the menu item's target. -// https://developer.apple.com/documentation/appkit/nsmenuitem/1514843-target?language=objc -func (i NSMenuItem) SetTarget(obj objc.Object) { - i.SetTarget_(obj) -} - -func (i NSMenuItem) SetView(obj NSViewRef) { - i.SetView_(obj) -} - // Action returns the menu item's action-method selector. // https://developer.apple.com/documentation/appkit/nsmenuitem/1514825-action?language=objc func (i NSMenuItem) Action() objc.Selector { return objc.Sel(i.Get("action").String()) } -// SetAction sets the menu item's action-method selector. -// https://developer.apple.com/documentation/appkit/nsmenuitem/1514825-action?language=objc -func (i NSMenuItem) SetAction(sel objc.Selector) { - i.SetAction_(sel) -} - // SetState sets the state of the menu item. // https://developer.apple.com/documentation/appkit/nsmenuitem/1514804-state?language=objc func (i NSMenuItem) SetState(state int) { - i.SetState_(core.NSInteger(state)) + i.gen_NSMenuItem.SetState(core.NSInteger(state)) } // State returns the state of the menu item. diff --git a/cocoa/NSNib.go b/cocoa/NSNib.go index 082e09d9..91547e76 100644 --- a/cocoa/NSNib.go +++ b/cocoa/NSNib.go @@ -12,17 +12,17 @@ type NSNib struct { } func NSNib_InitWithNibNamed_Bundle(name string, bundle NSBundle) NSNib { - return NSNib_fromRef(NSNib_alloc().Send("initWithNibNamed:bundle:", core.String(name), bundle)) + return NSNib_FromRef(NSNib_Alloc().Send("initWithNibNamed:bundle:", core.String(name), bundle)) } func NSNib_InitWithNibData_Bundle(data core.NSDataRef, bundle NSBundleRef) NSNib { - return NSNib_alloc().InitWithNibData_bundle__asNSNib(data, bundle) + return NSNib_Alloc().InitWithNibDataBundle_AsNSNib(data, bundle) } func (nib NSNib) InstantiateWithOwner_TopLevelObjects(owner objc.Object) (core.NSArray, bool) { var ptr uintptr ok := nib.Send("instantiateWithOwner:topLevelObjects:", owner, &ptr).Bool() - return core.NSArray_fromPointer(unsafe.Pointer(ptr)), ok + return core.NSArray_FromPointer(unsafe.Pointer(ptr)), ok } // Deprecated: use InstantiateWithOwner_TopLevelObjects diff --git a/cocoa/NSPasteboard.go b/cocoa/NSPasteboard.go index bb371882..dfed43c0 100644 --- a/cocoa/NSPasteboard.go +++ b/cocoa/NSPasteboard.go @@ -51,19 +51,6 @@ type NSPasteboard struct { gen_NSPasteboard } -// NSPasteboard_GeneralPasteboard is the shared pasteboard object to use for general content. -// https://developer.apple.com/documentation/appkit/nspasteboard/1530091-generalpasteboard?language=objc -func NSPasteboard_GeneralPasteboard() NSPasteboard { - return NSPasteboard_generalPasteboard() -} - -// ClearContents clears the existing contents of the pasteboard. -// https://developer.apple.com/documentation/appkit/nspasteboard/1533599-clearcontents?language=objc -func (pb NSPasteboard) ClearContents() { - // TODO this returns an int, should we add that to this wrapper? - pb.gen_NSPasteboard.ClearContents() -} - // SetStringForType sets the given string as the representation for the specified type for the first item on the receiver. // https://developer.apple.com/documentation/appkit/nspasteboard/1528225-setstring?language=objc func (pb NSPasteboard) SetStringForType(s string, t NSPasteboardType) { @@ -79,7 +66,7 @@ func (pb NSPasteboard) StringForType(t NSPasteboardType) string { // DataForType returns the data for the specified type from the first item in the receiver that contains the type. // https://developer.apple.com/documentation/appkit/nspasteboard/1531810-datafortype?language=objc func (pb NSPasteboard) DataForType(t NSPasteboardType) core.NSData { - return core.NSData_fromRef(pb.Send("dataForType:", core.String(string(t)))) + return core.NSData_FromRef(pb.Send("dataForType:", core.String(string(t)))) } // Types is an array of the receiver’s supported data types. diff --git a/cocoa/NSPopover.go b/cocoa/NSPopover.go index fbc56661..4edf9b01 100644 --- a/cocoa/NSPopover.go +++ b/cocoa/NSPopover.go @@ -14,7 +14,7 @@ const ( ) func NSPopover_Init() NSPopover { - return NSPopover_alloc().Init_asNSPopover() + return NSPopover_Alloc().Init_AsNSPopover() } func (p NSPopover) SetContentSize(s core.NSSize) { @@ -22,11 +22,7 @@ func (p NSPopover) SetContentSize(s core.NSSize) { } func (p NSPopover) SetBehavior(b int) { - p.SetBehavior_(core.NSInteger(b)) -} - -func (p NSPopover) SetAnimates(b bool) { - p.SetAnimates_(b) + p.gen_NSPopover.SetBehavior(core.NSInteger(b)) } func (p NSPopover) SetDelegate(delegate objc.Object) { diff --git a/cocoa/NSScreen.go b/cocoa/NSScreen.go index 7f8011e7..cf88ef2c 100644 --- a/cocoa/NSScreen.go +++ b/cocoa/NSScreen.go @@ -5,14 +5,5 @@ type NSScreen struct { } func NSScreen_Main() NSScreen { - return NSScreen_mainScreen() -} - -func NSScreen_Screens() []NSScreen { - var result []NSScreen - screens := NSScreen_screens() - for i := uint64(0); i < screens.Count(); i++ { - result = append(result, NSScreen_fromRef(screens.ObjectAtIndex(i))) - } - return result + return NSScreen_MainScreen() } diff --git a/cocoa/NSSound.go b/cocoa/NSSound.go index 0d4d8468..3451bae6 100644 --- a/cocoa/NSSound.go +++ b/cocoa/NSSound.go @@ -9,7 +9,7 @@ type NSSound struct { } func NSSound_InitWithData(data core.NSDataRef) NSSound { - return NSSound_alloc().InitWithData__asNSSound(data) + return NSSound_Alloc().InitWithData_AsNSSound(data) } func (sound NSSound) Play() { diff --git a/cocoa/NSStatusBar.go b/cocoa/NSStatusBar.go index af16720e..c6fb5aaf 100644 --- a/cocoa/NSStatusBar.go +++ b/cocoa/NSStatusBar.go @@ -14,13 +14,9 @@ type NSStatusBar struct { } func NSStatusBar_System() NSStatusBar { - return NSStatusBar_systemStatusBar() + return NSStatusBar_SystemStatusBar() } func (sb NSStatusBar) StatusItemWithLength(l float64) NSStatusItem { - return sb.StatusItemWithLength_(core.CGFloat(l)) -} - -func (sb NSStatusBar) RemoveStatusItem(i NSStatusItemRef) { - sb.RemoveStatusItem_(i) + return sb.gen_NSStatusBar.StatusItemWithLength(core.CGFloat(l)) } diff --git a/cocoa/NSStatusBarButton.go b/cocoa/NSStatusBarButton.go index 6dd23481..e6185ab1 100644 --- a/cocoa/NSStatusBarButton.go +++ b/cocoa/NSStatusBarButton.go @@ -21,11 +21,7 @@ func (b NSStatusBarButton) Title() string { } func (b NSStatusBarButton) SetTitle(s string) { - b.SetTitle_(core.String(s)) -} - -func (b NSStatusBarButton) SetImage(obj NSImageRef) { - b.SetImage_(obj) + b.gen_NSStatusBarButton.SetTitle(core.String(s)) } func (b NSStatusBarButton) ToolTip() string { diff --git a/cocoa/NSStatusItem.go b/cocoa/NSStatusItem.go index e2498936..98ed4833 100644 --- a/cocoa/NSStatusItem.go +++ b/cocoa/NSStatusItem.go @@ -9,15 +9,11 @@ type NSStatusItem struct { } func (i NSStatusItem) Button() NSStatusBarButton { - return NSStatusBarButton_fromRef(i.Get("button")) -} - -func (i NSStatusItem) SetMenu(menu NSMenu) { - i.SetMenu_(menu) + return NSStatusBarButton_FromRef(i.Get("button")) } func (i NSStatusItem) Menu() NSMenu { - return NSMenu_fromRef(i.Get("menu")) + return NSMenu_FromRef(i.Get("menu")) } func (i NSStatusItem) Target() objc.Object { diff --git a/cocoa/NSTextContainer.go b/cocoa/NSTextContainer.go index 3f34bedb..14116e30 100644 --- a/cocoa/NSTextContainer.go +++ b/cocoa/NSTextContainer.go @@ -3,7 +3,3 @@ package cocoa type NSTextContainer struct { gen_NSTextContainer } - -func (tc NSTextContainer) SetHeightTracksTextView(b bool) { - tc.SetHeightTracksTextView_(b) -} diff --git a/cocoa/NSTextView.go b/cocoa/NSTextView.go index 8d390aba..9de70626 100644 --- a/cocoa/NSTextView.go +++ b/cocoa/NSTextView.go @@ -19,7 +19,7 @@ type NSTextView struct { } func NSTextView_Init(frame core.NSRect) NSTextView { - return NSTextView_alloc().InitWithFrame__asNSTextView(frame) + return NSTextView_Alloc().InitWithFrame_AsNSTextView(frame) } func (v NSTextView) String() string { @@ -27,57 +27,25 @@ func (v NSTextView) String() string { } func (v NSTextView) SetString(s string) { - v.SetString_(core.String(s)) + v.gen_NSTextView.SetString(core.String(s)) } func (v NSTextView) Selectable() bool { return v.IsSelectable() } -func (v NSTextView) SetSelectable(b bool) { - v.SetSelectable_(b) -} - func (v NSTextView) RichText() bool { return v.IsRichText() } -func (v NSTextView) SetRichText(b bool) { - v.SetRichText_(b) -} - func (v NSTextView) Editable() bool { return v.IsEditable() } -func (v NSTextView) SetEditable(b bool) { - v.SetEditable_(b) -} - func (v NSTextView) FieldEditor() bool { return v.IsFieldEditor() } -func (v NSTextView) SetFieldEditor(b bool) { - v.SetFieldEditor_(b) -} - -func (v NSTextView) SetImportsGraphics(b bool) { - v.SetImportsGraphics_(b) -} - -func (v NSTextView) SetDrawsBackground(b bool) { - v.SetDrawsBackground_(b) -} - -func (v NSTextView) SetFont(f NSFont) { - v.SetFont_(f) -} - -func (v NSTextView) SetTextColor(c NSColorRef) { - v.SetTextColor_(c) -} - // TODO(mgood): once `NSTextAlignment` is defined in the schema we can use the // generated methods on the `NSText` parent class here func (v NSTextView) Alignment() NSTextAlignment { @@ -87,7 +55,3 @@ func (v NSTextView) Alignment() NSTextAlignment { func (v NSTextView) SetAlignment(d NSTextAlignment) { v.Set("alignment:", d) } - -func (v NSTextView) SetTextContainer(tc NSTextContainer) { - v.SetTextContainer_(tc) -} diff --git a/cocoa/NSView.go b/cocoa/NSView.go index 8ba323b6..76602e8a 100644 --- a/cocoa/NSView.go +++ b/cocoa/NSView.go @@ -10,47 +10,11 @@ type NSView struct { } func NSView_Init(frame core.NSRect) NSView { - return NSView_alloc().InitWithFrame__asNSView(frame) -} - -func (v NSView) SetBackgroundColor(color NSColor) { - v.SetBackgroundColor_(color) -} - -func (v NSView) SetWantsLayer(b bool) { - v.SetWantsLayer_(b) + return NSView_Alloc().InitWithFrame_AsNSView(frame) } func (v NSView) AddSubviewPositionedRelativeTo(subview NSViewRef, positioned int, relativeTo NSViewRef) { - v.AddSubview_positioned_relativeTo_(subview, core.NSUInteger(positioned), relativeTo) -} - -func (v NSView) AddSubview(subview NSViewRef) { - v.AddSubview_(subview) -} - -func (v NSView) SetFrameOrigin(p core.NSPoint) { - v.SetFrameOrigin_(p) -} - -func (v NSView) SetFrameSize(s core.NSSize) { - v.SetFrameSize_(s) -} - -func (v NSView) SetFrame(r core.NSRect) { - v.SetFrame_(r) -} - -func (v NSView) SetBoundsOrigin(p core.NSPoint) { - v.SetBoundsOrigin_(p) -} - -func (v NSView) SetBoundsSize(s core.NSSize) { - v.SetBoundsSize_(s) -} - -func (v NSView) SetBounds(r core.NSRect) { - v.SetBounds_(r) + v.gen_NSView.AddSubviewPositionedRelativeTo(subview, core.NSUInteger(positioned), relativeTo) } func (v NSView) SetOpaque(b bool) { diff --git a/cocoa/NSViewController.go b/cocoa/NSViewController.go index cf473231..08cb1938 100644 --- a/cocoa/NSViewController.go +++ b/cocoa/NSViewController.go @@ -3,7 +3,7 @@ package cocoa type NSViewController struct{ gen_NSViewController } func NSViewController_New() NSViewController { - return NSViewController_alloc().Init_asNSViewController() + return NSViewController_Alloc().Init_AsNSViewController() } func (c NSViewController) SetView(v NSView) { diff --git a/cocoa/NSVisualEffectView.go b/cocoa/NSVisualEffectView.go index e126fb16..f85dc525 100644 --- a/cocoa/NSVisualEffectView.go +++ b/cocoa/NSVisualEffectView.go @@ -10,7 +10,7 @@ type NSVisualEffectView struct { } func NSVisualEffectView_New() NSVisualEffectView { - return NSVisualEffectView_alloc().Init_asNSVisualEffectView() + return NSVisualEffectView_Alloc().Init_AsNSVisualEffectView() } // effect.Set("translatesAutoresizingMaskIntoConstraints:", false) diff --git a/cocoa/NSWindow.go b/cocoa/NSWindow.go index a82b17f8..4a154bfd 100644 --- a/cocoa/NSWindow.go +++ b/cocoa/NSWindow.go @@ -12,25 +12,21 @@ type NSWindow struct { var nsWindow = objc.Get("NSWindow") func NSWindow_New() NSWindow { - return NSWindow_alloc().Init_asNSWindow() + return NSWindow_Alloc().Init_AsNSWindow() } func NSWindow_WithContentViewController(controller NSViewControllerRef) NSWindow { - return NSWindow_windowWithContentViewController_(controller) + return NSWindow_WindowWithContentViewController(controller) } func NSWindow_Init(rect core.NSRect, windowStyle core.NSUInteger, bufferingType NSBackingStoreType, deferCreation bool) NSWindow { - return NSWindow_alloc().InitWithContentRect_styleMask_backing_defer__asNSWindow( + return NSWindow_Alloc().InitWithContentRectStyleMaskBackingDefer_AsNSWindow( rect, core.NSUInteger(windowStyle), core.NSUInteger(bufferingType), deferCreation, ) } -func (w NSWindow) MakeKeyAndOrderFront(sender objc.Object) { - w.MakeKeyAndOrderFront_(sender) -} - func (w NSWindow) SetLevel(level int) { - w.SetLevel_(core.NSInteger(level)) + w.gen_NSWindow.SetLevel(core.NSInteger(level)) } func (w NSWindow) Level() int64 { @@ -38,7 +34,7 @@ func (w NSWindow) Level() int64 { } func (w NSWindow) SetStyleMask(mask uint) { - w.SetStyleMask_(core.NSUInteger(mask)) + w.gen_NSWindow.SetStyleMask(core.NSUInteger(mask)) } func (w NSWindow) StyleMask() uint { @@ -46,63 +42,31 @@ func (w NSWindow) StyleMask() uint { } func (w NSWindow) SetTitle(title string) { - w.SetTitle_(core.String(title)) + w.gen_NSWindow.SetTitle(core.String(title)) } func (w NSWindow) Title() string { return w.gen_NSWindow.Title().String() } -func (w NSWindow) SetContentView(view NSViewRef) { - w.SetContentView_(view) -} - -func (w NSWindow) ToggleFullScreen(s objc.Object) { - w.ToggleFullScreen_(s) -} - -func (w NSWindow) ContentRectForFrameRect(frameRect core.NSRect) (rect core.NSRect) { - return w.ContentRectForFrameRect_(frameRect) -} - -func (w NSWindow) SetTitlebarAppearsTransparent(b bool) { - w.SetTitlebarAppearsTransparent_(b) -} - func (w NSWindow) SetTitleVisibility(v int) { - w.SetTitleVisibility_(core.NSInteger(v)) + w.gen_NSWindow.SetTitleVisibility(core.NSInteger(v)) } func (w NSWindow) TitleVisibility() int64 { return int64(w.gen_NSWindow.TitleVisibility()) } -func (w NSWindow) SetOpaque(b bool) { - w.SetOpaque_(b) -} - func (w NSWindow) Opaque() bool { return w.IsOpaque() } -func (w NSWindow) SetIgnoresMouseEvents(b bool) { - w.SetIgnoresMouseEvents_(b) -} - -func (w NSWindow) SetMovableByWindowBackground(b bool) { - w.SetMovableByWindowBackground_(b) -} - func (w NSWindow) MovableByWindowBackground() bool { return w.IsMovableByWindowBackground() } -func (w NSWindow) SetBackgroundColor(color NSColor) { - w.SetBackgroundColor_(color) -} - func (w NSWindow) SetFrameDisplay(frame core.NSRect, display bool) { - w.SetFrame_display_(frame, display) + w.SetFrameDisplay(frame, display) } func (w NSWindow) CollectionBehavior() uint { @@ -110,29 +74,5 @@ func (w NSWindow) CollectionBehavior() uint { } func (w NSWindow) SetCollectionBehavior(collectionBehavior uint) { - w.SetCollectionBehavior_(core.NSUInteger(collectionBehavior)) -} - -// SetHasShadow sets a Boolean value that indicates whether the window has a shadow. -// https://developer.apple.com/documentation/appkit/nswindow/1419234-hasshadow?language=objc -func (w NSWindow) SetHasShadow(b bool) { - w.SetHasShadow_(b) -} - -// OrderOut removes the window from the screen list, which hides the window. -// https://developer.apple.com/documentation/appkit/nswindow/1419660-orderout?language=objc -func (w NSWindow) OrderOut(sender objc.Object) { - w.OrderOut_(sender) -} - -// OrderFront moves the window to the front of its level in the screen list, without changing either the key window or the main window. -// https://developer.apple.com/documentation/appkit/nswindow/1419495-orderfront?language=objc -func (w NSWindow) OrderFront(sender objc.Object) { - w.OrderFront_(sender) -} - -// OrderBack moves the window to the back of its level in the screen list, without changing either the key window or the main window. -// https://developer.apple.com/documentation/appkit/nswindow/1419204-orderback?language=objc -func (w NSWindow) OrderBack(sender objc.Object) { - w.OrderBack_(sender) + w.gen_NSWindow.SetCollectionBehavior(core.NSUInteger(collectionBehavior)) } diff --git a/cocoa/cocoa_objc.gen.go b/cocoa/cocoa_objc.gen.go index f5e919e3..5b4e259e 100755 --- a/cocoa/cocoa_objc.gen.go +++ b/cocoa/cocoa_objc.gen.go @@ -22,2029 +22,2029 @@ bool cocoa_convertObjCBool(BOOL b) { } -void* NSBundle_type_alloc() { +void* NSBundle_type_Alloc() { return [NSBundle alloc]; } -void* NSBundle_type_bundleWithURL_(void* url) { +void* NSBundle_type_BundleWithURL(void* url) { return [NSBundle bundleWithURL: url]; } -void* NSBundle_type_bundleWithPath_(void* path) { +void* NSBundle_type_BundleWithPath(void* path) { return [NSBundle bundleWithPath: path]; } -void* NSBundle_type_bundleWithIdentifier_(void* identifier) { +void* NSBundle_type_BundleWithIdentifier(void* identifier) { return [NSBundle bundleWithIdentifier: identifier]; } -void* NSBundle_type_URLForResource_withExtension_subdirectory_inBundleWithURL_(void* name, void* ext, void* subpath, void* bundleURL) { +void* NSBundle_type_URLForResourceWithExtensionSubdirectoryInBundleWithURL(void* name, void* ext, void* subpath, void* bundleURL) { return [NSBundle URLForResource: name withExtension: ext subdirectory: subpath inBundleWithURL: bundleURL]; } -void* NSBundle_type_URLsForResourcesWithExtension_subdirectory_inBundleWithURL_(void* ext, void* subpath, void* bundleURL) { +void* NSBundle_type_URLsForResourcesWithExtensionSubdirectoryInBundleWithURL(void* ext, void* subpath, void* bundleURL) { return [NSBundle URLsForResourcesWithExtension: ext subdirectory: subpath inBundleWithURL: bundleURL]; } -void* NSBundle_type_pathForResource_ofType_inDirectory_(void* name, void* ext, void* bundlePath) { +void* NSBundle_type_PathForResourceOfTypeInDirectory(void* name, void* ext, void* bundlePath) { return [NSBundle pathForResource: name ofType: ext inDirectory: bundlePath]; } -void* NSBundle_type_pathsForResourcesOfType_inDirectory_(void* ext, void* bundlePath) { +void* NSBundle_type_PathsForResourcesOfTypeInDirectory(void* ext, void* bundlePath) { return [NSBundle pathsForResourcesOfType: ext inDirectory: bundlePath]; } -void* NSBundle_type_preferredLocalizationsFromArray_(void* localizationsArray) { +void* NSBundle_type_PreferredLocalizationsFromArray(void* localizationsArray) { return [NSBundle preferredLocalizationsFromArray: localizationsArray]; } -void* NSBundle_type_preferredLocalizationsFromArray_forPreferences_(void* localizationsArray, void* preferencesArray) { +void* NSBundle_type_PreferredLocalizationsFromArrayForPreferences(void* localizationsArray, void* preferencesArray) { return [NSBundle preferredLocalizationsFromArray: localizationsArray forPreferences: preferencesArray]; } -void* NSBundle_type_mainBundle() { +void* NSBundle_type_MainBundle() { return [NSBundle mainBundle]; } -void* NSBundle_type_allFrameworks() { +void* NSBundle_type_AllFrameworks() { return [NSBundle allFrameworks]; } -void* NSBundle_type_allBundles() { +void* NSBundle_type_AllBundles() { return [NSBundle allBundles]; } -void* NSSound_type_alloc() { +void* NSSound_type_Alloc() { return [NSSound alloc]; } -BOOL NSSound_type_canInitWithPasteboard_(void* pasteboard) { +BOOL NSSound_type_CanInitWithPasteboard(void* pasteboard) { return [NSSound canInitWithPasteboard: pasteboard]; } -void* NSSound_type_soundUnfilteredTypes() { +void* NSSound_type_SoundUnfilteredTypes() { return [NSSound soundUnfilteredTypes]; } -void* NSApplication_type_alloc() { +void* NSApplication_type_Alloc() { return [NSApplication alloc]; } -void NSApplication_type_detachDrawingThread_toTarget_withObject_(void* selector, void* target, void* argument) { +void NSApplication_type_DetachDrawingThreadToTargetWithObject(void* selector, void* target, void* argument) { [NSApplication detachDrawingThread: selector toTarget: target withObject: argument]; } -void* NSApplication_type_sharedApplication() { +void* NSApplication_type_SharedApplication() { return [NSApplication sharedApplication]; } -void* NSControl_type_alloc() { +void* NSControl_type_Alloc() { return [NSControl alloc]; } -void* NSButton_type_alloc() { +void* NSButton_type_Alloc() { return [NSButton alloc]; } -void* NSButton_type_checkboxWithTitle_target_action_(void* title, void* target, void* action) { +void* NSButton_type_CheckboxWithTitleTargetAction(void* title, void* target, void* action) { return [NSButton checkboxWithTitle: title target: target action: action]; } -void* NSButton_type_buttonWithImage_target_action_(void* image, void* target, void* action) { +void* NSButton_type_ButtonWithImageTargetAction(void* image, void* target, void* action) { return [NSButton buttonWithImage: image target: target action: action]; } -void* NSButton_type_radioButtonWithTitle_target_action_(void* title, void* target, void* action) { +void* NSButton_type_RadioButtonWithTitleTargetAction(void* title, void* target, void* action) { return [NSButton radioButtonWithTitle: title target: target action: action]; } -void* NSButton_type_buttonWithTitle_image_target_action_(void* title, void* image, void* target, void* action) { +void* NSButton_type_ButtonWithTitleImageTargetAction(void* title, void* image, void* target, void* action) { return [NSButton buttonWithTitle: title image: image target: target action: action]; } -void* NSButton_type_buttonWithTitle_target_action_(void* title, void* target, void* action) { +void* NSButton_type_ButtonWithTitleTargetAction(void* title, void* target, void* action) { return [NSButton buttonWithTitle: title target: target action: action]; } -void* NSEvent_type_alloc() { +void* NSEvent_type_Alloc() { return [NSEvent alloc]; } -void* NSEvent_type_eventWithEventRef_(void* eventRef) { +void* NSEvent_type_EventWithEventRef(void* eventRef) { return [NSEvent eventWithEventRef: eventRef]; } -void NSEvent_type_stopPeriodicEvents() { +void NSEvent_type_StopPeriodicEvents() { [NSEvent stopPeriodicEvents]; } -void NSEvent_type_removeMonitor_(void* eventMonitor) { +void NSEvent_type_RemoveMonitor(void* eventMonitor) { [NSEvent removeMonitor: eventMonitor]; } -unsigned long NSEvent_type_pressedMouseButtons() { +unsigned long NSEvent_type_PressedMouseButtons() { return [NSEvent pressedMouseButtons]; } -NSPoint NSEvent_type_mouseLocation() { +NSPoint NSEvent_type_MouseLocation() { return [NSEvent mouseLocation]; } -BOOL NSEvent_type_mouseCoalescingEnabled() { +BOOL NSEvent_type_MouseCoalescingEnabled() { return [NSEvent mouseCoalescingEnabled]; } -void NSEvent_type_setMouseCoalescingEnabled_(BOOL value) { +void NSEvent_type_SetMouseCoalescingEnabled(BOOL value) { [NSEvent setMouseCoalescingEnabled: value]; } -BOOL NSEvent_type_swipeTrackingFromScrollEventsEnabled() { +BOOL NSEvent_type_SwipeTrackingFromScrollEventsEnabled() { return [NSEvent swipeTrackingFromScrollEventsEnabled]; } -void* NSFont_type_alloc() { +void* NSFont_type_Alloc() { return [NSFont alloc]; } -void* NSFont_type_fontWithName_size_(void* fontName, double fontSize) { +void* NSFont_type_FontWithNameSize(void* fontName, double fontSize) { return [NSFont fontWithName: fontName size: fontSize]; } -void* NSFont_type_userFontOfSize_(double fontSize) { +void* NSFont_type_UserFontOfSize(double fontSize) { return [NSFont userFontOfSize: fontSize]; } -void* NSFont_type_userFixedPitchFontOfSize_(double fontSize) { +void* NSFont_type_UserFixedPitchFontOfSize(double fontSize) { return [NSFont userFixedPitchFontOfSize: fontSize]; } -void* NSFont_type_systemFontOfSize_(double fontSize) { +void* NSFont_type_SystemFontOfSize(double fontSize) { return [NSFont systemFontOfSize: fontSize]; } -void* NSFont_type_boldSystemFontOfSize_(double fontSize) { +void* NSFont_type_BoldSystemFontOfSize(double fontSize) { return [NSFont boldSystemFontOfSize: fontSize]; } -void* NSFont_type_labelFontOfSize_(double fontSize) { +void* NSFont_type_LabelFontOfSize(double fontSize) { return [NSFont labelFontOfSize: fontSize]; } -void* NSFont_type_messageFontOfSize_(double fontSize) { +void* NSFont_type_MessageFontOfSize(double fontSize) { return [NSFont messageFontOfSize: fontSize]; } -void* NSFont_type_menuBarFontOfSize_(double fontSize) { +void* NSFont_type_MenuBarFontOfSize(double fontSize) { return [NSFont menuBarFontOfSize: fontSize]; } -void* NSFont_type_menuFontOfSize_(double fontSize) { +void* NSFont_type_MenuFontOfSize(double fontSize) { return [NSFont menuFontOfSize: fontSize]; } -void* NSFont_type_controlContentFontOfSize_(double fontSize) { +void* NSFont_type_ControlContentFontOfSize(double fontSize) { return [NSFont controlContentFontOfSize: fontSize]; } -void* NSFont_type_titleBarFontOfSize_(double fontSize) { +void* NSFont_type_TitleBarFontOfSize(double fontSize) { return [NSFont titleBarFontOfSize: fontSize]; } -void* NSFont_type_paletteFontOfSize_(double fontSize) { +void* NSFont_type_PaletteFontOfSize(double fontSize) { return [NSFont paletteFontOfSize: fontSize]; } -void* NSFont_type_toolTipsFontOfSize_(double fontSize) { +void* NSFont_type_ToolTipsFontOfSize(double fontSize) { return [NSFont toolTipsFontOfSize: fontSize]; } -void NSFont_type_setUserFont_(void* font) { +void NSFont_type_SetUserFont(void* font) { [NSFont setUserFont: font]; } -void NSFont_type_setUserFixedPitchFont_(void* font) { +void NSFont_type_SetUserFixedPitchFont(void* font) { [NSFont setUserFixedPitchFont: font]; } -double NSFont_type_systemFontSize() { +double NSFont_type_SystemFontSize() { return [NSFont systemFontSize]; } -double NSFont_type_smallSystemFontSize() { +double NSFont_type_SmallSystemFontSize() { return [NSFont smallSystemFontSize]; } -double NSFont_type_labelFontSize() { +double NSFont_type_LabelFontSize() { return [NSFont labelFontSize]; } -void* NSImage_type_alloc() { +void* NSImage_type_Alloc() { return [NSImage alloc]; } -void* NSImage_type_imageWithSystemSymbolName_accessibilityDescription_(void* symbolName, void* description) { +void* NSImage_type_ImageWithSystemSymbolNameAccessibilityDescription(void* symbolName, void* description) { return [NSImage imageWithSystemSymbolName: symbolName accessibilityDescription: description]; } -BOOL NSImage_type_canInitWithPasteboard_(void* pasteboard) { +BOOL NSImage_type_CanInitWithPasteboard(void* pasteboard) { return [NSImage canInitWithPasteboard: pasteboard]; } -void* NSImage_type_imageTypes() { +void* NSImage_type_ImageTypes() { return [NSImage imageTypes]; } -void* NSImage_type_imageUnfilteredTypes() { +void* NSImage_type_ImageUnfilteredTypes() { return [NSImage imageUnfilteredTypes]; } -void* NSImageView_type_alloc() { +void* NSImageView_type_Alloc() { return [NSImageView alloc]; } -void* NSImageView_type_imageViewWithImage_(void* image) { +void* NSImageView_type_ImageViewWithImage(void* image) { return [NSImageView imageViewWithImage: image]; } -void* NSNib_type_alloc() { +void* NSNib_type_Alloc() { return [NSNib alloc]; } -void* NSPasteboard_type_alloc() { +void* NSPasteboard_type_Alloc() { return [NSPasteboard alloc]; } -void* NSPasteboard_type_pasteboardByFilteringFile_(void* filename) { +void* NSPasteboard_type_PasteboardByFilteringFile(void* filename) { return [NSPasteboard pasteboardByFilteringFile: filename]; } -void* NSPasteboard_type_pasteboardByFilteringTypesInPasteboard_(void* pboard) { +void* NSPasteboard_type_PasteboardByFilteringTypesInPasteboard(void* pboard) { return [NSPasteboard pasteboardByFilteringTypesInPasteboard: pboard]; } -void* NSPasteboard_type_pasteboardWithUniqueName() { +void* NSPasteboard_type_PasteboardWithUniqueName() { return [NSPasteboard pasteboardWithUniqueName]; } -void* NSPasteboard_type_generalPasteboard() { +void* NSPasteboard_type_GeneralPasteboard() { return [NSPasteboard generalPasteboard]; } -void* NSLayoutManager_type_alloc() { +void* NSLayoutManager_type_Alloc() { return [NSLayoutManager alloc]; } -void* NSMenu_type_alloc() { +void* NSMenu_type_Alloc() { return [NSMenu alloc]; } -BOOL NSMenu_type_menuBarVisible() { +BOOL NSMenu_type_MenuBarVisible() { return [NSMenu menuBarVisible]; } -void NSMenu_type_setMenuBarVisible_(BOOL visible) { +void NSMenu_type_SetMenuBarVisible(BOOL visible) { [NSMenu setMenuBarVisible: visible]; } -void NSMenu_type_popUpContextMenu_withEvent_forView_(void* menu, void* event, void* view) { +void NSMenu_type_PopUpContextMenuWithEventForView(void* menu, void* event, void* view) { [NSMenu popUpContextMenu: menu withEvent: event forView: view]; } -void NSMenu_type_popUpContextMenu_withEvent_forView_withFont_(void* menu, void* event, void* view, void* font) { +void NSMenu_type_PopUpContextMenuWithEventForViewWithFont(void* menu, void* event, void* view, void* font) { [NSMenu popUpContextMenu: menu withEvent: event forView: view withFont: font]; } -void* NSPopover_type_alloc() { +void* NSPopover_type_Alloc() { return [NSPopover alloc]; } -void* NSMenuItem_type_alloc() { +void* NSMenuItem_type_Alloc() { return [NSMenuItem alloc]; } -void* NSMenuItem_type_separatorItem() { +void* NSMenuItem_type_SeparatorItem() { return [NSMenuItem separatorItem]; } -BOOL NSMenuItem_type_usesUserKeyEquivalents() { +BOOL NSMenuItem_type_UsesUserKeyEquivalents() { return [NSMenuItem usesUserKeyEquivalents]; } -void NSMenuItem_type_setUsesUserKeyEquivalents_(BOOL value) { +void NSMenuItem_type_SetUsesUserKeyEquivalents(BOOL value) { [NSMenuItem setUsesUserKeyEquivalents: value]; } -void* NSRunningApplication_type_alloc() { +void* NSRunningApplication_type_Alloc() { return [NSRunningApplication alloc]; } -void* NSRunningApplication_type_runningApplicationsWithBundleIdentifier_(void* bundleIdentifier) { +void* NSRunningApplication_type_RunningApplicationsWithBundleIdentifier(void* bundleIdentifier) { return [NSRunningApplication runningApplicationsWithBundleIdentifier: bundleIdentifier]; } -void NSRunningApplication_type_terminateAutomaticallyTerminableApplications() { +void NSRunningApplication_type_TerminateAutomaticallyTerminableApplications() { [NSRunningApplication terminateAutomaticallyTerminableApplications]; } -void* NSRunningApplication_type_currentApplication() { +void* NSRunningApplication_type_CurrentApplication() { return [NSRunningApplication currentApplication]; } -void* NSScreen_type_alloc() { +void* NSScreen_type_Alloc() { return [NSScreen alloc]; } -void* NSScreen_type_mainScreen() { +void* NSScreen_type_MainScreen() { return [NSScreen mainScreen]; } -void* NSScreen_type_deepestScreen() { +void* NSScreen_type_DeepestScreen() { return [NSScreen deepestScreen]; } -void* NSScreen_type_screens() { +void* NSScreen_type_Screens() { return [NSScreen screens]; } -BOOL NSScreen_type_screensHaveSeparateSpaces() { +BOOL NSScreen_type_ScreensHaveSeparateSpaces() { return [NSScreen screensHaveSeparateSpaces]; } -void* NSStatusBar_type_alloc() { +void* NSStatusBar_type_Alloc() { return [NSStatusBar alloc]; } -void* NSStatusBar_type_systemStatusBar() { +void* NSStatusBar_type_SystemStatusBar() { return [NSStatusBar systemStatusBar]; } -void* NSStatusBarButton_type_alloc() { +void* NSStatusBarButton_type_Alloc() { return [NSStatusBarButton alloc]; } -void* NSStatusItem_type_alloc() { +void* NSStatusItem_type_Alloc() { return [NSStatusItem alloc]; } -void* NSText_type_alloc() { +void* NSText_type_Alloc() { return [NSText alloc]; } -void* NSTextField_type_alloc() { +void* NSTextField_type_Alloc() { return [NSTextField alloc]; } -void* NSTextField_type_labelWithAttributedString_(void* attributedStringValue) { +void* NSTextField_type_LabelWithAttributedString(void* attributedStringValue) { return [NSTextField labelWithAttributedString: attributedStringValue]; } -void* NSTextField_type_labelWithString_(void* stringValue) { +void* NSTextField_type_LabelWithString(void* stringValue) { return [NSTextField labelWithString: stringValue]; } -void* NSTextField_type_textFieldWithString_(void* stringValue) { +void* NSTextField_type_TextFieldWithString(void* stringValue) { return [NSTextField textFieldWithString: stringValue]; } -void* NSTextField_type_wrappingLabelWithString_(void* stringValue) { +void* NSTextField_type_WrappingLabelWithString(void* stringValue) { return [NSTextField wrappingLabelWithString: stringValue]; } -void* NSTextContainer_type_alloc() { +void* NSTextContainer_type_Alloc() { return [NSTextContainer alloc]; } -void* NSViewController_type_alloc() { +void* NSViewController_type_Alloc() { return [NSViewController alloc]; } -void* NSVisualEffectView_type_alloc() { +void* NSVisualEffectView_type_Alloc() { return [NSVisualEffectView alloc]; } -void* NSWindow_type_alloc() { +void* NSWindow_type_Alloc() { return [NSWindow alloc]; } -void* NSWindow_type_windowWithContentViewController_(void* contentViewController) { +void* NSWindow_type_WindowWithContentViewController(void* contentViewController) { return [NSWindow windowWithContentViewController: contentViewController]; } -NSRect NSWindow_type_contentRectForFrameRect_styleMask_(NSRect fRect, unsigned long style) { +NSRect NSWindow_type_ContentRectForFrameRectStyleMask(NSRect fRect, unsigned long style) { return [NSWindow contentRectForFrameRect: fRect styleMask: style]; } -NSRect NSWindow_type_frameRectForContentRect_styleMask_(NSRect cRect, unsigned long style) { +NSRect NSWindow_type_FrameRectForContentRectStyleMask(NSRect cRect, unsigned long style) { return [NSWindow frameRectForContentRect: cRect styleMask: style]; } -double NSWindow_type_minFrameWidthWithTitle_styleMask_(void* title, unsigned long style) { +double NSWindow_type_MinFrameWidthWithTitleStyleMask(void* title, unsigned long style) { return [NSWindow minFrameWidthWithTitle: title styleMask: style]; } -long NSWindow_type_windowNumberAtPoint_belowWindowWithWindowNumber_(NSPoint point, long windowNumber) { +long NSWindow_type_WindowNumberAtPointBelowWindowWithWindowNumber(NSPoint point, long windowNumber) { return [NSWindow windowNumberAtPoint: point belowWindowWithWindowNumber: windowNumber]; } -BOOL NSWindow_type_allowsAutomaticWindowTabbing() { +BOOL NSWindow_type_AllowsAutomaticWindowTabbing() { return [NSWindow allowsAutomaticWindowTabbing]; } -void NSWindow_type_setAllowsAutomaticWindowTabbing_(BOOL value) { +void NSWindow_type_SetAllowsAutomaticWindowTabbing(BOOL value) { [NSWindow setAllowsAutomaticWindowTabbing: value]; } -void* NSWorkspace_type_alloc() { +void* NSWorkspace_type_Alloc() { return [NSWorkspace alloc]; } -void* NSWorkspace_type_sharedWorkspace() { +void* NSWorkspace_type_SharedWorkspace() { return [NSWorkspace sharedWorkspace]; } -void* NSColor_type_alloc() { +void* NSColor_type_Alloc() { return [NSColor alloc]; } -void* NSColor_type_colorFromPasteboard_(void* pasteBoard) { +void* NSColor_type_ColorFromPasteboard(void* pasteBoard) { return [NSColor colorFromPasteboard: pasteBoard]; } -void* NSColor_type_colorWithRed_green_blue_alpha_(double red, double green, double blue, double alpha) { +void* NSColor_type_ColorWithRedGreenBlueAlpha(double red, double green, double blue, double alpha) { return [NSColor colorWithRed: red green: green blue: blue alpha: alpha]; } -BOOL NSColor_type_ignoresAlpha() { +BOOL NSColor_type_IgnoresAlpha() { return [NSColor ignoresAlpha]; } -void NSColor_type_setIgnoresAlpha_(BOOL value) { +void NSColor_type_SetIgnoresAlpha(BOOL value) { [NSColor setIgnoresAlpha: value]; } -void* NSColor_type_systemCyanColor() { +void* NSColor_type_SystemCyanColor() { return [NSColor systemCyanColor]; } -void* NSColor_type_systemMintColor() { +void* NSColor_type_SystemMintColor() { return [NSColor systemMintColor]; } -void* NSColor_type_clearColor() { +void* NSColor_type_ClearColor() { return [NSColor clearColor]; } -void* NSTextView_type_alloc() { +void* NSTextView_type_Alloc() { return [NSTextView alloc]; } -void NSTextView_type_registerForServices() { +void NSTextView_type_RegisterForServices() { [NSTextView registerForServices]; } -void* NSTextView_type_fieldEditor() { +void* NSTextView_type_FieldEditor() { return [NSTextView fieldEditor]; } -BOOL NSTextView_type_stronglyReferencesTextStorage() { +BOOL NSTextView_type_StronglyReferencesTextStorage() { return [NSTextView stronglyReferencesTextStorage]; } -void* NSView_type_alloc() { +void* NSView_type_Alloc() { return [NSView alloc]; } -BOOL NSView_type_requiresConstraintBasedLayout() { +BOOL NSView_type_RequiresConstraintBasedLayout() { return [NSView requiresConstraintBasedLayout]; } -void* NSView_type_focusView() { +void* NSView_type_FocusView() { return [NSView focusView]; } -void* NSView_type_defaultMenu() { +void* NSView_type_DefaultMenu() { return [NSView defaultMenu]; } -BOOL NSView_type_compatibleWithResponsiveScrolling() { +BOOL NSView_type_CompatibleWithResponsiveScrolling() { return [NSView compatibleWithResponsiveScrolling]; } -void* NSBundle_inst_initWithURL_(void *id, void* url) { +void* NSBundle_inst_URLForAuxiliaryExecutable(void *id, void* executableName) { return [(NSBundle*)id - initWithURL: url]; -} - -void* NSBundle_inst_initWithPath_(void *id, void* path) { - return [(NSBundle*)id - initWithPath: path]; + URLForAuxiliaryExecutable: executableName]; } -void* NSBundle_inst_loadNibNamed_owner_options_(void *id, void* name, void* owner, void* options) { +void* NSBundle_inst_URLForResourceWithExtension(void *id, void* name, void* ext) { return [(NSBundle*)id - loadNibNamed: name - owner: owner - options: options]; + URLForResource: name + withExtension: ext]; } -void* NSBundle_inst_URLForResource_withExtension_subdirectory_(void *id, void* name, void* ext, void* subpath) { +void* NSBundle_inst_URLForResourceWithExtensionSubdirectory(void *id, void* name, void* ext, void* subpath) { return [(NSBundle*)id URLForResource: name withExtension: ext subdirectory: subpath]; } -void* NSBundle_inst_URLForResource_withExtension_(void *id, void* name, void* ext) { +void* NSBundle_inst_URLForResourceWithExtensionSubdirectoryLocalization(void *id, void* name, void* ext, void* subpath, void* localizationName) { return [(NSBundle*)id URLForResource: name - withExtension: ext]; + withExtension: ext + subdirectory: subpath + localization: localizationName]; } -void* NSBundle_inst_URLsForResourcesWithExtension_subdirectory_(void *id, void* ext, void* subpath) { +void* NSBundle_inst_URLsForResourcesWithExtensionSubdirectory(void *id, void* ext, void* subpath) { return [(NSBundle*)id URLsForResourcesWithExtension: ext subdirectory: subpath]; } -void* NSBundle_inst_URLForResource_withExtension_subdirectory_localization_(void *id, void* name, void* ext, void* subpath, void* localizationName) { - return [(NSBundle*)id - URLForResource: name - withExtension: ext - subdirectory: subpath - localization: localizationName]; -} - -void* NSBundle_inst_URLsForResourcesWithExtension_subdirectory_localization_(void *id, void* ext, void* subpath, void* localizationName) { +void* NSBundle_inst_URLsForResourcesWithExtensionSubdirectoryLocalization(void *id, void* ext, void* subpath, void* localizationName) { return [(NSBundle*)id URLsForResourcesWithExtension: ext subdirectory: subpath localization: localizationName]; } -void* NSBundle_inst_pathForResource_ofType_(void *id, void* name, void* ext) { +void* NSBundle_inst_InitWithPath(void *id, void* path) { return [(NSBundle*)id - pathForResource: name - ofType: ext]; + initWithPath: path]; } -void* NSBundle_inst_pathForResource_ofType_inDirectory_(void *id, void* name, void* ext, void* subpath) { +void* NSBundle_inst_InitWithURL(void *id, void* url) { return [(NSBundle*)id - pathForResource: name - ofType: ext - inDirectory: subpath]; + initWithURL: url]; } -void* NSBundle_inst_pathForResource_ofType_inDirectory_forLocalization_(void *id, void* name, void* ext, void* subpath, void* localizationName) { +BOOL NSBundle_inst_Load(void *id) { return [(NSBundle*)id - pathForResource: name - ofType: ext - inDirectory: subpath - forLocalization: localizationName]; + load]; } -void* NSBundle_inst_pathsForResourcesOfType_inDirectory_(void *id, void* ext, void* subpath) { +void* NSBundle_inst_LoadNibNamedOwnerOptions(void *id, void* name, void* owner, void* options) { return [(NSBundle*)id - pathsForResourcesOfType: ext - inDirectory: subpath]; + loadNibNamed: name + owner: owner + options: options]; } -void* NSBundle_inst_pathsForResourcesOfType_inDirectory_forLocalization_(void *id, void* ext, void* subpath, void* localizationName) { +void* NSBundle_inst_LocalizedAttributedStringForKeyValueTable(void *id, void* key, void* value, void* tableName) { return [(NSBundle*)id - pathsForResourcesOfType: ext - inDirectory: subpath - forLocalization: localizationName]; + localizedAttributedStringForKey: key + value: value + table: tableName]; } -void* NSBundle_inst_localizedStringForKey_value_table_(void *id, void* key, void* value, void* tableName) { +void* NSBundle_inst_LocalizedStringForKeyValueTable(void *id, void* key, void* value, void* tableName) { return [(NSBundle*)id localizedStringForKey: key value: value table: tableName]; } -void* NSBundle_inst_URLForAuxiliaryExecutable_(void *id, void* executableName) { +void* NSBundle_inst_ObjectForInfoDictionaryKey(void *id, void* key) { return [(NSBundle*)id - URLForAuxiliaryExecutable: executableName]; + objectForInfoDictionaryKey: key]; } -void* NSBundle_inst_pathForAuxiliaryExecutable_(void *id, void* executableName) { +void* NSBundle_inst_PathForAuxiliaryExecutable(void *id, void* executableName) { return [(NSBundle*)id pathForAuxiliaryExecutable: executableName]; } -void* NSBundle_inst_objectForInfoDictionaryKey_(void *id, void* key) { +void* NSBundle_inst_PathForResourceOfType(void *id, void* name, void* ext) { return [(NSBundle*)id - objectForInfoDictionaryKey: key]; + pathForResource: name + ofType: ext]; } -BOOL NSBundle_inst_load(void *id) { +void* NSBundle_inst_PathForResourceOfTypeInDirectory(void *id, void* name, void* ext, void* subpath) { return [(NSBundle*)id - load]; + pathForResource: name + ofType: ext + inDirectory: subpath]; } -BOOL NSBundle_inst_unload(void *id) { +void* NSBundle_inst_PathForResourceOfTypeInDirectoryForLocalization(void *id, void* name, void* ext, void* subpath, void* localizationName) { return [(NSBundle*)id - unload]; + pathForResource: name + ofType: ext + inDirectory: subpath + forLocalization: localizationName]; } -void* NSBundle_inst_localizedAttributedStringForKey_value_table_(void *id, void* key, void* value, void* tableName) { +void* NSBundle_inst_PathsForResourcesOfTypeInDirectory(void *id, void* ext, void* subpath) { return [(NSBundle*)id - localizedAttributedStringForKey: key - value: value - table: tableName]; + pathsForResourcesOfType: ext + inDirectory: subpath]; } -void* NSBundle_inst_init(void *id) { +void* NSBundle_inst_PathsForResourcesOfTypeInDirectoryForLocalization(void *id, void* ext, void* subpath, void* localizationName) { + return [(NSBundle*)id + pathsForResourcesOfType: ext + inDirectory: subpath + forLocalization: localizationName]; +} + +BOOL NSBundle_inst_Unload(void *id) { + return [(NSBundle*)id + unload]; +} + +void* NSBundle_inst_Init(void *id) { return [(NSBundle*)id init]; } -void* NSBundle_inst_resourceURL(void *id) { +void* NSBundle_inst_ResourceURL(void *id) { return [(NSBundle*)id resourceURL]; } -void* NSBundle_inst_executableURL(void *id) { +void* NSBundle_inst_ExecutableURL(void *id) { return [(NSBundle*)id executableURL]; } -void* NSBundle_inst_privateFrameworksURL(void *id) { +void* NSBundle_inst_PrivateFrameworksURL(void *id) { return [(NSBundle*)id privateFrameworksURL]; } -void* NSBundle_inst_sharedFrameworksURL(void *id) { +void* NSBundle_inst_SharedFrameworksURL(void *id) { return [(NSBundle*)id sharedFrameworksURL]; } -void* NSBundle_inst_builtInPlugInsURL(void *id) { +void* NSBundle_inst_BuiltInPlugInsURL(void *id) { return [(NSBundle*)id builtInPlugInsURL]; } -void* NSBundle_inst_sharedSupportURL(void *id) { +void* NSBundle_inst_SharedSupportURL(void *id) { return [(NSBundle*)id sharedSupportURL]; } -void* NSBundle_inst_appStoreReceiptURL(void *id) { +void* NSBundle_inst_AppStoreReceiptURL(void *id) { return [(NSBundle*)id appStoreReceiptURL]; } -void* NSBundle_inst_resourcePath(void *id) { +void* NSBundle_inst_ResourcePath(void *id) { return [(NSBundle*)id resourcePath]; } -void* NSBundle_inst_executablePath(void *id) { +void* NSBundle_inst_ExecutablePath(void *id) { return [(NSBundle*)id executablePath]; } -void* NSBundle_inst_privateFrameworksPath(void *id) { +void* NSBundle_inst_PrivateFrameworksPath(void *id) { return [(NSBundle*)id privateFrameworksPath]; } -void* NSBundle_inst_sharedFrameworksPath(void *id) { +void* NSBundle_inst_SharedFrameworksPath(void *id) { return [(NSBundle*)id sharedFrameworksPath]; } -void* NSBundle_inst_builtInPlugInsPath(void *id) { +void* NSBundle_inst_BuiltInPlugInsPath(void *id) { return [(NSBundle*)id builtInPlugInsPath]; } -void* NSBundle_inst_sharedSupportPath(void *id) { +void* NSBundle_inst_SharedSupportPath(void *id) { return [(NSBundle*)id sharedSupportPath]; } -void* NSBundle_inst_bundleURL(void *id) { +void* NSBundle_inst_BundleURL(void *id) { return [(NSBundle*)id bundleURL]; } -void* NSBundle_inst_bundlePath(void *id) { +void* NSBundle_inst_BundlePath(void *id) { return [(NSBundle*)id bundlePath]; } -void* NSBundle_inst_bundleIdentifier(void *id) { +void* NSBundle_inst_BundleIdentifier(void *id) { return [(NSBundle*)id bundleIdentifier]; } -void* NSBundle_inst_infoDictionary(void *id) { +void* NSBundle_inst_InfoDictionary(void *id) { return [(NSBundle*)id infoDictionary]; } -void* NSBundle_inst_localizations(void *id) { +void* NSBundle_inst_Localizations(void *id) { return [(NSBundle*)id localizations]; } -void* NSBundle_inst_preferredLocalizations(void *id) { +void* NSBundle_inst_PreferredLocalizations(void *id) { return [(NSBundle*)id preferredLocalizations]; } -void* NSBundle_inst_developmentLocalization(void *id) { +void* NSBundle_inst_DevelopmentLocalization(void *id) { return [(NSBundle*)id developmentLocalization]; } -void* NSBundle_inst_localizedInfoDictionary(void *id) { +void* NSBundle_inst_LocalizedInfoDictionary(void *id) { return [(NSBundle*)id localizedInfoDictionary]; } -void* NSBundle_inst_executableArchitectures(void *id) { +void* NSBundle_inst_ExecutableArchitectures(void *id) { return [(NSBundle*)id executableArchitectures]; } -BOOL NSBundle_inst_isLoaded(void *id) { +BOOL NSBundle_inst_IsLoaded(void *id) { return [(NSBundle*)id isLoaded]; } -void* NSSound_inst_initWithContentsOfFile_byReference_(void *id, void* path, BOOL byRef) { +void* NSSound_inst_InitWithContentsOfFileByReference(void *id, void* path, BOOL byRef) { return [(NSSound*)id initWithContentsOfFile: path byReference: byRef]; } -void* NSSound_inst_initWithContentsOfURL_byReference_(void *id, void* url, BOOL byRef) { +void* NSSound_inst_InitWithContentsOfURLByReference(void *id, void* url, BOOL byRef) { return [(NSSound*)id initWithContentsOfURL: url byReference: byRef]; } -void* NSSound_inst_initWithData_(void *id, void* data) { +void* NSSound_inst_InitWithData(void *id, void* data) { return [(NSSound*)id initWithData: data]; } -void* NSSound_inst_initWithPasteboard_(void *id, void* pasteboard) { +void* NSSound_inst_InitWithPasteboard(void *id, void* pasteboard) { return [(NSSound*)id initWithPasteboard: pasteboard]; } -BOOL NSSound_inst_pause(void *id) { +BOOL NSSound_inst_Pause(void *id) { return [(NSSound*)id pause]; } -BOOL NSSound_inst_play(void *id) { +BOOL NSSound_inst_Play(void *id) { return [(NSSound*)id play]; } -BOOL NSSound_inst_resume(void *id) { +BOOL NSSound_inst_Resume(void *id) { return [(NSSound*)id resume]; } -BOOL NSSound_inst_stop(void *id) { +BOOL NSSound_inst_Stop(void *id) { return [(NSSound*)id stop]; } -void NSSound_inst_writeToPasteboard_(void *id, void* pasteboard) { +void NSSound_inst_WriteToPasteboard(void *id, void* pasteboard) { [(NSSound*)id writeToPasteboard: pasteboard]; } -void* NSSound_inst_init(void *id) { +void* NSSound_inst_Init(void *id) { return [(NSSound*)id init]; } -void* NSSound_inst_delegate(void *id) { +void* NSSound_inst_Delegate(void *id) { return [(NSSound*)id delegate]; } -void NSSound_inst_setDelegate_(void *id, void* value) { +void NSSound_inst_SetDelegate(void *id, void* value) { [(NSSound*)id setDelegate: value]; } -BOOL NSSound_inst_loops(void *id) { +BOOL NSSound_inst_Loops(void *id) { return [(NSSound*)id loops]; } -void NSSound_inst_setLoops_(void *id, BOOL value) { +void NSSound_inst_SetLoops(void *id, BOOL value) { [(NSSound*)id setLoops: value]; } -BOOL NSSound_inst_isPlaying(void *id) { +BOOL NSSound_inst_IsPlaying(void *id) { return [(NSSound*)id isPlaying]; } -void NSApplication_inst_run(void *id) { +void NSApplication_inst_ActivateContextHelpMode(void *id, void* sender) { [(NSApplication*)id - run]; + activateContextHelpMode: sender]; } -void NSApplication_inst_finishLaunching(void *id) { +void NSApplication_inst_ActivateIgnoringOtherApps(void *id, BOOL flag) { [(NSApplication*)id - finishLaunching]; + activateIgnoringOtherApps: flag]; } -void NSApplication_inst_stop_(void *id, void* sender) { - [(NSApplication*)id - stop: sender]; +long NSApplication_inst_ActivationPolicy(void *id) { + return [(NSApplication*)id + activationPolicy]; } -void NSApplication_inst_sendEvent_(void *id, void* event) { +void NSApplication_inst_CancelUserAttentionRequest(void *id, long request) { [(NSApplication*)id - sendEvent: event]; + cancelUserAttentionRequest: request]; } -void NSApplication_inst_postEvent_atStart_(void *id, void* event, BOOL flag) { +void NSApplication_inst_Deactivate(void *id) { [(NSApplication*)id - postEvent: event - atStart: flag]; + deactivate]; } -BOOL NSApplication_inst_tryToPerform_with_(void *id, void* action, void* object) { - return [(NSApplication*)id - tryToPerform: action - with: object]; +void NSApplication_inst_DisableRelaunchOnLogin(void *id) { + [(NSApplication*)id + disableRelaunchOnLogin]; } -BOOL NSApplication_inst_sendAction_to_from_(void *id, void* action, void* target, void* sender) { - return [(NSApplication*)id - sendAction: action - to: target - from: sender]; +void NSApplication_inst_EnableRelaunchOnLogin(void *id) { + [(NSApplication*)id + enableRelaunchOnLogin]; } -void* NSApplication_inst_targetForAction_(void *id, void* action) { - return [(NSApplication*)id - targetForAction: action]; +void NSApplication_inst_FinishLaunching(void *id) { + [(NSApplication*)id + finishLaunching]; } -void* NSApplication_inst_targetForAction_to_from_(void *id, void* action, void* target, void* sender) { - return [(NSApplication*)id - targetForAction: action - to: target - from: sender]; +void NSApplication_inst_HideOtherApplications(void *id, void* sender) { + [(NSApplication*)id + hideOtherApplications: sender]; } -void NSApplication_inst_terminate_(void *id, void* sender) { +void NSApplication_inst_PostEventAtStart(void *id, void* event, BOOL flag) { [(NSApplication*)id - terminate: sender]; + postEvent: event + atStart: flag]; } -void NSApplication_inst_replyToApplicationShouldTerminate_(void *id, BOOL shouldTerminate) { +void NSApplication_inst_RegisterForRemoteNotifications(void *id) { [(NSApplication*)id - replyToApplicationShouldTerminate: shouldTerminate]; + registerForRemoteNotifications]; } -void NSApplication_inst_activateIgnoringOtherApps_(void *id, BOOL flag) { +void NSApplication_inst_RegisterUserInterfaceItemSearchHandler(void *id, void* handler) { [(NSApplication*)id - activateIgnoringOtherApps: flag]; + registerUserInterfaceItemSearchHandler: handler]; } -void NSApplication_inst_deactivate(void *id) { +void NSApplication_inst_ReplyToApplicationShouldTerminate(void *id, BOOL shouldTerminate) { [(NSApplication*)id - deactivate]; + replyToApplicationShouldTerminate: shouldTerminate]; } -void NSApplication_inst_disableRelaunchOnLogin(void *id) { +void NSApplication_inst_Run(void *id) { [(NSApplication*)id - disableRelaunchOnLogin]; + run]; } -void NSApplication_inst_enableRelaunchOnLogin(void *id) { - [(NSApplication*)id - enableRelaunchOnLogin]; +BOOL NSApplication_inst_SendActionToFrom(void *id, void* action, void* target, void* sender) { + return [(NSApplication*)id + sendAction: action + to: target + from: sender]; } -void NSApplication_inst_registerForRemoteNotifications(void *id) { +void NSApplication_inst_SendEvent(void *id, void* event) { [(NSApplication*)id - registerForRemoteNotifications]; + sendEvent: event]; } -void NSApplication_inst_unregisterForRemoteNotifications(void *id) { - [(NSApplication*)id - unregisterForRemoteNotifications]; +BOOL NSApplication_inst_SetActivationPolicy(void *id, long activationPolicy) { + return [(NSApplication*)id + setActivationPolicy: activationPolicy]; } -void NSApplication_inst_toggleTouchBarCustomizationPalette_(void *id, void* sender) { +void NSApplication_inst_ShowHelp(void *id, void* sender) { [(NSApplication*)id - toggleTouchBarCustomizationPalette: sender]; + showHelp: sender]; } -void NSApplication_inst_cancelUserAttentionRequest_(void *id, long request) { +void NSApplication_inst_Stop(void *id, void* sender) { [(NSApplication*)id - cancelUserAttentionRequest: request]; + stop: sender]; } -void NSApplication_inst_registerUserInterfaceItemSearchHandler_(void *id, void* handler) { - [(NSApplication*)id - registerUserInterfaceItemSearchHandler: handler]; +void* NSApplication_inst_TargetForAction(void *id, void* action) { + return [(NSApplication*)id + targetForAction: action]; } -void NSApplication_inst_unregisterUserInterfaceItemSearchHandler_(void *id, void* handler) { - [(NSApplication*)id - unregisterUserInterfaceItemSearchHandler: handler]; +void* NSApplication_inst_TargetForActionToFrom(void *id, void* action, void* target, void* sender) { + return [(NSApplication*)id + targetForAction: action + to: target + from: sender]; } -void NSApplication_inst_showHelp_(void *id, void* sender) { +void NSApplication_inst_Terminate(void *id, void* sender) { [(NSApplication*)id - showHelp: sender]; + terminate: sender]; } -void NSApplication_inst_activateContextHelpMode_(void *id, void* sender) { +void NSApplication_inst_ToggleTouchBarCustomizationPalette(void *id, void* sender) { [(NSApplication*)id - activateContextHelpMode: sender]; + toggleTouchBarCustomizationPalette: sender]; } -void NSApplication_inst_hideOtherApplications_(void *id, void* sender) { - [(NSApplication*)id - hideOtherApplications: sender]; +BOOL NSApplication_inst_TryToPerformWith(void *id, void* action, void* object) { + return [(NSApplication*)id + tryToPerform: action + with: object]; } -void NSApplication_inst_unhideAllApplications_(void *id, void* sender) { +void NSApplication_inst_UnhideAllApplications(void *id, void* sender) { [(NSApplication*)id unhideAllApplications: sender]; } -long NSApplication_inst_activationPolicy(void *id) { - return [(NSApplication*)id - activationPolicy]; +void NSApplication_inst_UnregisterForRemoteNotifications(void *id) { + [(NSApplication*)id + unregisterForRemoteNotifications]; } -BOOL NSApplication_inst_setActivationPolicy_(void *id, long activationPolicy) { - return [(NSApplication*)id - setActivationPolicy: activationPolicy]; +void NSApplication_inst_UnregisterUserInterfaceItemSearchHandler(void *id, void* handler) { + [(NSApplication*)id + unregisterUserInterfaceItemSearchHandler: handler]; } -void* NSApplication_inst_init(void *id) { +void* NSApplication_inst_Init(void *id) { return [(NSApplication*)id init]; } -void* NSApplication_inst_delegate(void *id) { +void* NSApplication_inst_Delegate(void *id) { return [(NSApplication*)id delegate]; } -void NSApplication_inst_setDelegate_(void *id, void* value) { +void NSApplication_inst_SetDelegate(void *id, void* value) { [(NSApplication*)id setDelegate: value]; } -void* NSApplication_inst_currentEvent(void *id) { +void* NSApplication_inst_CurrentEvent(void *id) { return [(NSApplication*)id currentEvent]; } -BOOL NSApplication_inst_isRunning(void *id) { +BOOL NSApplication_inst_IsRunning(void *id) { return [(NSApplication*)id isRunning]; } -BOOL NSApplication_inst_isActive(void *id) { +BOOL NSApplication_inst_IsActive(void *id) { return [(NSApplication*)id isActive]; } -BOOL NSApplication_inst_isRegisteredForRemoteNotifications(void *id) { +BOOL NSApplication_inst_IsRegisteredForRemoteNotifications(void *id) { return [(NSApplication*)id isRegisteredForRemoteNotifications]; } -void* NSApplication_inst_applicationIconImage(void *id) { +void* NSApplication_inst_ApplicationIconImage(void *id) { return [(NSApplication*)id applicationIconImage]; } -void NSApplication_inst_setApplicationIconImage_(void *id, void* value) { +void NSApplication_inst_SetApplicationIconImage(void *id, void* value) { [(NSApplication*)id setApplicationIconImage: value]; } -void* NSApplication_inst_helpMenu(void *id) { +void* NSApplication_inst_HelpMenu(void *id) { return [(NSApplication*)id helpMenu]; } -void NSApplication_inst_setHelpMenu_(void *id, void* value) { +void NSApplication_inst_SetHelpMenu(void *id, void* value) { [(NSApplication*)id setHelpMenu: value]; } -void* NSApplication_inst_servicesProvider(void *id) { +void* NSApplication_inst_ServicesProvider(void *id) { return [(NSApplication*)id servicesProvider]; } -void NSApplication_inst_setServicesProvider_(void *id, void* value) { +void NSApplication_inst_SetServicesProvider(void *id, void* value) { [(NSApplication*)id setServicesProvider: value]; } -BOOL NSApplication_inst_isFullKeyboardAccessEnabled(void *id) { +BOOL NSApplication_inst_IsFullKeyboardAccessEnabled(void *id) { return [(NSApplication*)id isFullKeyboardAccessEnabled]; } -void* NSApplication_inst_orderedDocuments(void *id) { +void* NSApplication_inst_OrderedDocuments(void *id) { return [(NSApplication*)id orderedDocuments]; } -void* NSApplication_inst_orderedWindows(void *id) { +void* NSApplication_inst_OrderedWindows(void *id) { return [(NSApplication*)id orderedWindows]; } -void* NSApplication_inst_mainMenu(void *id) { +void* NSApplication_inst_MainMenu(void *id) { return [(NSApplication*)id mainMenu]; } -void NSApplication_inst_setMainMenu_(void *id, void* value) { +void NSApplication_inst_SetMainMenu(void *id, void* value) { [(NSApplication*)id setMainMenu: value]; } -void* NSControl_inst_initWithFrame_(void *id, NSRect frameRect) { +BOOL NSControl_inst_AbortEditing(void *id) { return [(NSControl*)id - initWithFrame: frameRect]; + abortEditing]; } -void NSControl_inst_takeDoubleValueFrom_(void *id, void* sender) { - [(NSControl*)id - takeDoubleValueFrom: sender]; +void* NSControl_inst_CurrentEditor(void *id) { + return [(NSControl*)id + currentEditor]; } -void NSControl_inst_takeFloatValueFrom_(void *id, void* sender) { +void NSControl_inst_DrawWithExpansionFrameInView(void *id, NSRect contentFrame, void* view) { [(NSControl*)id - takeFloatValueFrom: sender]; + drawWithExpansionFrame: contentFrame + inView: view]; } -void NSControl_inst_takeIntValueFrom_(void *id, void* sender) { +void NSControl_inst_EditWithFrameEditorDelegateEvent(void *id, NSRect rect, void* textObj, void* delegate, void* event) { [(NSControl*)id - takeIntValueFrom: sender]; + editWithFrame: rect + editor: textObj + delegate: delegate + event: event]; } -void NSControl_inst_takeIntegerValueFrom_(void *id, void* sender) { +void NSControl_inst_EndEditing(void *id, void* textObj) { [(NSControl*)id - takeIntegerValueFrom: sender]; + endEditing: textObj]; } -void NSControl_inst_takeObjectValueFrom_(void *id, void* sender) { - [(NSControl*)id - takeObjectValueFrom: sender]; +NSRect NSControl_inst_ExpansionFrameWithFrame(void *id, NSRect contentFrame) { + return [(NSControl*)id + expansionFrameWithFrame: contentFrame]; +} + +void* NSControl_inst_InitWithFrame(void *id, NSRect frameRect) { + return [(NSControl*)id + initWithFrame: frameRect]; } -void NSControl_inst_takeStringValueFrom_(void *id, void* sender) { +void NSControl_inst_MouseDown(void *id, void* event) { [(NSControl*)id - takeStringValueFrom: sender]; + mouseDown: event]; } -void NSControl_inst_drawWithExpansionFrame_inView_(void *id, NSRect contentFrame, void* view) { +void NSControl_inst_PerformClick(void *id, void* sender) { [(NSControl*)id - drawWithExpansionFrame: contentFrame - inView: view]; + performClick: sender]; } -NSRect NSControl_inst_expansionFrameWithFrame_(void *id, NSRect contentFrame) { - return [(NSControl*)id - expansionFrameWithFrame: contentFrame]; +void NSControl_inst_SelectWithFrameEditorDelegateStartLength(void *id, NSRect rect, void* textObj, void* delegate, long selStart, long selLength) { + [(NSControl*)id + selectWithFrame: rect + editor: textObj + delegate: delegate + start: selStart + length: selLength]; } -BOOL NSControl_inst_abortEditing(void *id) { +BOOL NSControl_inst_SendActionTo(void *id, void* action, void* target) { return [(NSControl*)id - abortEditing]; + sendAction: action + to: target]; } -void* NSControl_inst_currentEditor(void *id) { +NSSize NSControl_inst_SizeThatFits(void *id, NSSize size) { return [(NSControl*)id - currentEditor]; + sizeThatFits: size]; } -void NSControl_inst_validateEditing(void *id) { +void NSControl_inst_SizeToFit(void *id) { [(NSControl*)id - validateEditing]; + sizeToFit]; } -void NSControl_inst_editWithFrame_editor_delegate_event_(void *id, NSRect rect, void* textObj, void* delegate, void* event) { +void NSControl_inst_TakeDoubleValueFrom(void *id, void* sender) { [(NSControl*)id - editWithFrame: rect - editor: textObj - delegate: delegate - event: event]; + takeDoubleValueFrom: sender]; } -void NSControl_inst_endEditing_(void *id, void* textObj) { +void NSControl_inst_TakeFloatValueFrom(void *id, void* sender) { [(NSControl*)id - endEditing: textObj]; + takeFloatValueFrom: sender]; } -void NSControl_inst_selectWithFrame_editor_delegate_start_length_(void *id, NSRect rect, void* textObj, void* delegate, long selStart, long selLength) { +void NSControl_inst_TakeIntValueFrom(void *id, void* sender) { [(NSControl*)id - selectWithFrame: rect - editor: textObj - delegate: delegate - start: selStart - length: selLength]; -} - -NSSize NSControl_inst_sizeThatFits_(void *id, NSSize size) { - return [(NSControl*)id - sizeThatFits: size]; + takeIntValueFrom: sender]; } -void NSControl_inst_sizeToFit(void *id) { +void NSControl_inst_TakeIntegerValueFrom(void *id, void* sender) { [(NSControl*)id - sizeToFit]; + takeIntegerValueFrom: sender]; } -BOOL NSControl_inst_sendAction_to_(void *id, void* action, void* target) { - return [(NSControl*)id - sendAction: action - to: target]; +void NSControl_inst_TakeObjectValueFrom(void *id, void* sender) { + [(NSControl*)id + takeObjectValueFrom: sender]; } -void NSControl_inst_performClick_(void *id, void* sender) { +void NSControl_inst_TakeStringValueFrom(void *id, void* sender) { [(NSControl*)id - performClick: sender]; + takeStringValueFrom: sender]; } -void NSControl_inst_mouseDown_(void *id, void* event) { +void NSControl_inst_ValidateEditing(void *id) { [(NSControl*)id - mouseDown: event]; + validateEditing]; } -void* NSControl_inst_init(void *id) { +void* NSControl_inst_Init(void *id) { return [(NSControl*)id init]; } -BOOL NSControl_inst_isEnabled(void *id) { +BOOL NSControl_inst_IsEnabled(void *id) { return [(NSControl*)id isEnabled]; } -void NSControl_inst_setEnabled_(void *id, BOOL value) { +void NSControl_inst_SetEnabled(void *id, BOOL value) { [(NSControl*)id setEnabled: value]; } -int NSControl_inst_intValue(void *id) { +int NSControl_inst_IntValue(void *id) { return [(NSControl*)id intValue]; } -void NSControl_inst_setIntValue_(void *id, int value) { +void NSControl_inst_SetIntValue(void *id, int value) { [(NSControl*)id setIntValue: value]; } -long NSControl_inst_integerValue(void *id) { +long NSControl_inst_IntegerValue(void *id) { return [(NSControl*)id integerValue]; } -void NSControl_inst_setIntegerValue_(void *id, long value) { +void NSControl_inst_SetIntegerValue(void *id, long value) { [(NSControl*)id setIntegerValue: value]; } -void* NSControl_inst_objectValue(void *id) { +void* NSControl_inst_ObjectValue(void *id) { return [(NSControl*)id objectValue]; } -void NSControl_inst_setObjectValue_(void *id, void* value) { +void NSControl_inst_SetObjectValue(void *id, void* value) { [(NSControl*)id setObjectValue: value]; } -void* NSControl_inst_stringValue(void *id) { +void* NSControl_inst_StringValue(void *id) { return [(NSControl*)id stringValue]; } -void NSControl_inst_setStringValue_(void *id, void* value) { +void NSControl_inst_SetStringValue(void *id, void* value) { [(NSControl*)id setStringValue: value]; } -void* NSControl_inst_attributedStringValue(void *id) { +void* NSControl_inst_AttributedStringValue(void *id) { return [(NSControl*)id attributedStringValue]; } -void NSControl_inst_setAttributedStringValue_(void *id, void* value) { +void NSControl_inst_SetAttributedStringValue(void *id, void* value) { [(NSControl*)id setAttributedStringValue: value]; } -void* NSControl_inst_font(void *id) { +void* NSControl_inst_Font(void *id) { return [(NSControl*)id font]; } -void NSControl_inst_setFont_(void *id, void* value) { +void NSControl_inst_SetFont(void *id, void* value) { [(NSControl*)id setFont: value]; } -BOOL NSControl_inst_usesSingleLineMode(void *id) { +BOOL NSControl_inst_UsesSingleLineMode(void *id) { return [(NSControl*)id usesSingleLineMode]; } -void NSControl_inst_setUsesSingleLineMode_(void *id, BOOL value) { +void NSControl_inst_SetUsesSingleLineMode(void *id, BOOL value) { [(NSControl*)id setUsesSingleLineMode: value]; } -BOOL NSControl_inst_allowsExpansionToolTips(void *id) { +BOOL NSControl_inst_AllowsExpansionToolTips(void *id) { return [(NSControl*)id allowsExpansionToolTips]; } -void NSControl_inst_setAllowsExpansionToolTips_(void *id, BOOL value) { +void NSControl_inst_SetAllowsExpansionToolTips(void *id, BOOL value) { [(NSControl*)id setAllowsExpansionToolTips: value]; } -BOOL NSControl_inst_isHighlighted(void *id) { +BOOL NSControl_inst_IsHighlighted(void *id) { return [(NSControl*)id isHighlighted]; } -void NSControl_inst_setHighlighted_(void *id, BOOL value) { +void NSControl_inst_SetHighlighted(void *id, BOOL value) { [(NSControl*)id setHighlighted: value]; } -void* NSControl_inst_action(void *id) { +void* NSControl_inst_Action(void *id) { return [(NSControl*)id action]; } -void NSControl_inst_setAction_(void *id, void* value) { +void NSControl_inst_SetAction(void *id, void* value) { [(NSControl*)id setAction: value]; } -void* NSControl_inst_target(void *id) { +void* NSControl_inst_Target(void *id) { return [(NSControl*)id target]; } -void NSControl_inst_setTarget_(void *id, void* value) { +void NSControl_inst_SetTarget(void *id, void* value) { [(NSControl*)id setTarget: value]; } -BOOL NSControl_inst_isContinuous(void *id) { +BOOL NSControl_inst_IsContinuous(void *id) { return [(NSControl*)id isContinuous]; } -void NSControl_inst_setContinuous_(void *id, BOOL value) { +void NSControl_inst_SetContinuous(void *id, BOOL value) { [(NSControl*)id setContinuous: value]; } -long NSControl_inst_tag(void *id) { +long NSControl_inst_Tag(void *id) { return [(NSControl*)id tag]; } -void NSControl_inst_setTag_(void *id, long value) { +void NSControl_inst_SetTag(void *id, long value) { [(NSControl*)id setTag: value]; } -BOOL NSControl_inst_refusesFirstResponder(void *id) { +BOOL NSControl_inst_RefusesFirstResponder(void *id) { return [(NSControl*)id refusesFirstResponder]; } -void NSControl_inst_setRefusesFirstResponder_(void *id, BOOL value) { +void NSControl_inst_SetRefusesFirstResponder(void *id, BOOL value) { [(NSControl*)id setRefusesFirstResponder: value]; } -BOOL NSControl_inst_ignoresMultiClick(void *id) { +BOOL NSControl_inst_IgnoresMultiClick(void *id) { return [(NSControl*)id ignoresMultiClick]; } -void NSControl_inst_setIgnoresMultiClick_(void *id, BOOL value) { +void NSControl_inst_SetIgnoresMultiClick(void *id, BOOL value) { [(NSControl*)id setIgnoresMultiClick: value]; } -void NSButton_inst_compressWithPrioritizedCompressionOptions_(void *id, void* prioritizedOptions) { +void NSButton_inst_CompressWithPrioritizedCompressionOptions(void *id, void* prioritizedOptions) { [(NSButton*)id compressWithPrioritizedCompressionOptions: prioritizedOptions]; } -NSSize NSButton_inst_minimumSizeWithPrioritizedCompressionOptions_(void *id, void* prioritizedOptions) { - return [(NSButton*)id - minimumSizeWithPrioritizedCompressionOptions: prioritizedOptions]; -} - -void NSButton_inst_setNextState(void *id) { +void NSButton_inst_Highlight(void *id, BOOL flag) { [(NSButton*)id - setNextState]; + highlight: flag]; } -void NSButton_inst_highlight_(void *id, BOOL flag) { - [(NSButton*)id - highlight: flag]; +NSSize NSButton_inst_MinimumSizeWithPrioritizedCompressionOptions(void *id, void* prioritizedOptions) { + return [(NSButton*)id + minimumSizeWithPrioritizedCompressionOptions: prioritizedOptions]; } -BOOL NSButton_inst_performKeyEquivalent_(void *id, void* key) { +BOOL NSButton_inst_PerformKeyEquivalent(void *id, void* key) { return [(NSButton*)id performKeyEquivalent: key]; } -void* NSButton_inst_init(void *id) { +void NSButton_inst_SetNextState(void *id) { + [(NSButton*)id + setNextState]; +} + +void* NSButton_inst_Init(void *id) { return [(NSButton*)id init]; } -void* NSButton_inst_contentTintColor(void *id) { +void* NSButton_inst_ContentTintColor(void *id) { return [(NSButton*)id contentTintColor]; } -void NSButton_inst_setContentTintColor_(void *id, void* value) { +void NSButton_inst_SetContentTintColor(void *id, void* value) { [(NSButton*)id setContentTintColor: value]; } -BOOL NSButton_inst_hasDestructiveAction(void *id) { +BOOL NSButton_inst_HasDestructiveAction(void *id) { return [(NSButton*)id hasDestructiveAction]; } -void NSButton_inst_setHasDestructiveAction_(void *id, BOOL value) { +void NSButton_inst_SetHasDestructiveAction(void *id, BOOL value) { [(NSButton*)id setHasDestructiveAction: value]; } -void* NSButton_inst_alternateTitle(void *id) { +void* NSButton_inst_AlternateTitle(void *id) { return [(NSButton*)id alternateTitle]; } -void NSButton_inst_setAlternateTitle_(void *id, void* value) { +void NSButton_inst_SetAlternateTitle(void *id, void* value) { [(NSButton*)id setAlternateTitle: value]; } -void* NSButton_inst_attributedTitle(void *id) { +void* NSButton_inst_AttributedTitle(void *id) { return [(NSButton*)id attributedTitle]; } -void NSButton_inst_setAttributedTitle_(void *id, void* value) { +void NSButton_inst_SetAttributedTitle(void *id, void* value) { [(NSButton*)id setAttributedTitle: value]; } -void* NSButton_inst_attributedAlternateTitle(void *id) { +void* NSButton_inst_AttributedAlternateTitle(void *id) { return [(NSButton*)id attributedAlternateTitle]; } -void NSButton_inst_setAttributedAlternateTitle_(void *id, void* value) { +void NSButton_inst_SetAttributedAlternateTitle(void *id, void* value) { [(NSButton*)id setAttributedAlternateTitle: value]; } -void* NSButton_inst_title(void *id) { +void* NSButton_inst_Title(void *id) { return [(NSButton*)id title]; } -void NSButton_inst_setTitle_(void *id, void* value) { +void NSButton_inst_SetTitle(void *id, void* value) { [(NSButton*)id setTitle: value]; } -void* NSButton_inst_sound(void *id) { +void* NSButton_inst_Sound(void *id) { return [(NSButton*)id sound]; } -void NSButton_inst_setSound_(void *id, void* value) { +void NSButton_inst_SetSound(void *id, void* value) { [(NSButton*)id setSound: value]; } -BOOL NSButton_inst_isSpringLoaded(void *id) { +BOOL NSButton_inst_IsSpringLoaded(void *id) { return [(NSButton*)id isSpringLoaded]; } -void NSButton_inst_setSpringLoaded_(void *id, BOOL value) { +void NSButton_inst_SetSpringLoaded(void *id, BOOL value) { [(NSButton*)id setSpringLoaded: value]; } -long NSButton_inst_maxAcceleratorLevel(void *id) { +long NSButton_inst_MaxAcceleratorLevel(void *id) { return [(NSButton*)id maxAcceleratorLevel]; } -void NSButton_inst_setMaxAcceleratorLevel_(void *id, long value) { +void NSButton_inst_SetMaxAcceleratorLevel(void *id, long value) { [(NSButton*)id setMaxAcceleratorLevel: value]; } -void* NSButton_inst_image(void *id) { +void* NSButton_inst_Image(void *id) { return [(NSButton*)id image]; } -void NSButton_inst_setImage_(void *id, void* value) { +void NSButton_inst_SetImage(void *id, void* value) { [(NSButton*)id setImage: value]; } -void* NSButton_inst_alternateImage(void *id) { +void* NSButton_inst_AlternateImage(void *id) { return [(NSButton*)id alternateImage]; } -void NSButton_inst_setAlternateImage_(void *id, void* value) { +void NSButton_inst_SetAlternateImage(void *id, void* value) { [(NSButton*)id setAlternateImage: value]; } -BOOL NSButton_inst_isBordered(void *id) { +BOOL NSButton_inst_IsBordered(void *id) { return [(NSButton*)id isBordered]; } -void NSButton_inst_setBordered_(void *id, BOOL value) { +void NSButton_inst_SetBordered(void *id, BOOL value) { [(NSButton*)id setBordered: value]; } -BOOL NSButton_inst_isTransparent(void *id) { +BOOL NSButton_inst_IsTransparent(void *id) { return [(NSButton*)id isTransparent]; } -void NSButton_inst_setTransparent_(void *id, BOOL value) { +void NSButton_inst_SetTransparent(void *id, BOOL value) { [(NSButton*)id setTransparent: value]; } -void* NSButton_inst_bezelColor(void *id) { +void* NSButton_inst_BezelColor(void *id) { return [(NSButton*)id bezelColor]; } -void NSButton_inst_setBezelColor_(void *id, void* value) { +void NSButton_inst_SetBezelColor(void *id, void* value) { [(NSButton*)id setBezelColor: value]; } -BOOL NSButton_inst_showsBorderOnlyWhileMouseInside(void *id) { +BOOL NSButton_inst_ShowsBorderOnlyWhileMouseInside(void *id) { return [(NSButton*)id showsBorderOnlyWhileMouseInside]; } -void NSButton_inst_setShowsBorderOnlyWhileMouseInside_(void *id, BOOL value) { +void NSButton_inst_SetShowsBorderOnlyWhileMouseInside(void *id, BOOL value) { [(NSButton*)id setShowsBorderOnlyWhileMouseInside: value]; } -BOOL NSButton_inst_imageHugsTitle(void *id) { +BOOL NSButton_inst_ImageHugsTitle(void *id) { return [(NSButton*)id imageHugsTitle]; } -void NSButton_inst_setImageHugsTitle_(void *id, BOOL value) { +void NSButton_inst_SetImageHugsTitle(void *id, BOOL value) { [(NSButton*)id setImageHugsTitle: value]; } -BOOL NSButton_inst_allowsMixedState(void *id) { +BOOL NSButton_inst_AllowsMixedState(void *id) { return [(NSButton*)id allowsMixedState]; } -void NSButton_inst_setAllowsMixedState_(void *id, BOOL value) { +void NSButton_inst_SetAllowsMixedState(void *id, BOOL value) { [(NSButton*)id setAllowsMixedState: value]; } -long NSButton_inst_state(void *id) { +long NSButton_inst_State(void *id) { return [(NSButton*)id state]; } -void NSButton_inst_setState_(void *id, long value) { +void NSButton_inst_SetState(void *id, long value) { [(NSButton*)id setState: value]; } -void* NSButton_inst_keyEquivalent(void *id) { +void* NSButton_inst_KeyEquivalent(void *id) { return [(NSButton*)id keyEquivalent]; } -void NSButton_inst_setKeyEquivalent_(void *id, void* value) { +void NSButton_inst_SetKeyEquivalent(void *id, void* value) { [(NSButton*)id setKeyEquivalent: value]; } -void* NSEvent_inst_init(void *id) { +void* NSEvent_inst_Init(void *id) { return [(NSEvent*)id init]; } -NSPoint NSEvent_inst_locationInWindow(void *id) { +NSPoint NSEvent_inst_LocationInWindow(void *id) { return [(NSEvent*)id locationInWindow]; } -void* NSEvent_inst_window(void *id) { +void* NSEvent_inst_Window(void *id) { return [(NSEvent*)id window]; } -long NSEvent_inst_windowNumber(void *id) { +long NSEvent_inst_WindowNumber(void *id) { return [(NSEvent*)id windowNumber]; } -void* NSEvent_inst_eventRef(void *id) { +void* NSEvent_inst_EventRef(void *id) { return [(NSEvent*)id eventRef]; } -void* NSEvent_inst_characters(void *id) { +void* NSEvent_inst_Characters(void *id) { return [(NSEvent*)id characters]; } -void* NSEvent_inst_charactersIgnoringModifiers(void *id) { +void* NSEvent_inst_CharactersIgnoringModifiers(void *id) { return [(NSEvent*)id charactersIgnoringModifiers]; } -BOOL NSEvent_inst_isARepeat(void *id) { +BOOL NSEvent_inst_IsARepeat(void *id) { return [(NSEvent*)id isARepeat]; } -long NSEvent_inst_buttonNumber(void *id) { +long NSEvent_inst_ButtonNumber(void *id) { return [(NSEvent*)id buttonNumber]; } -long NSEvent_inst_clickCount(void *id) { +long NSEvent_inst_ClickCount(void *id) { return [(NSEvent*)id clickCount]; } -long NSEvent_inst_eventNumber(void *id) { +long NSEvent_inst_EventNumber(void *id) { return [(NSEvent*)id eventNumber]; } -long NSEvent_inst_trackingNumber(void *id) { +long NSEvent_inst_TrackingNumber(void *id) { return [(NSEvent*)id trackingNumber]; } -void* NSEvent_inst_userData(void *id) { +void* NSEvent_inst_UserData(void *id) { return [(NSEvent*)id userData]; } -long NSEvent_inst_data1(void *id) { +long NSEvent_inst_Data1(void *id) { return [(NSEvent*)id data1]; } -long NSEvent_inst_data2(void *id) { +long NSEvent_inst_Data2(void *id) { return [(NSEvent*)id data2]; } -double NSEvent_inst_deltaX(void *id) { +double NSEvent_inst_DeltaX(void *id) { return [(NSEvent*)id deltaX]; } -double NSEvent_inst_deltaY(void *id) { +double NSEvent_inst_DeltaY(void *id) { return [(NSEvent*)id deltaY]; } -double NSEvent_inst_deltaZ(void *id) { +double NSEvent_inst_DeltaZ(void *id) { return [(NSEvent*)id deltaZ]; } -long NSEvent_inst_stage(void *id) { +long NSEvent_inst_Stage(void *id) { return [(NSEvent*)id stage]; } -double NSEvent_inst_stageTransition(void *id) { +double NSEvent_inst_StageTransition(void *id) { return [(NSEvent*)id stageTransition]; } -unsigned long NSEvent_inst_capabilityMask(void *id) { +unsigned long NSEvent_inst_CapabilityMask(void *id) { return [(NSEvent*)id capabilityMask]; } -unsigned long NSEvent_inst_deviceID(void *id) { +unsigned long NSEvent_inst_DeviceID(void *id) { return [(NSEvent*)id deviceID]; } -BOOL NSEvent_inst_isEnteringProximity(void *id) { +BOOL NSEvent_inst_IsEnteringProximity(void *id) { return [(NSEvent*)id isEnteringProximity]; } -unsigned long NSEvent_inst_pointingDeviceID(void *id) { +unsigned long NSEvent_inst_PointingDeviceID(void *id) { return [(NSEvent*)id pointingDeviceID]; } -unsigned long NSEvent_inst_pointingDeviceSerialNumber(void *id) { +unsigned long NSEvent_inst_PointingDeviceSerialNumber(void *id) { return [(NSEvent*)id pointingDeviceSerialNumber]; } -unsigned long NSEvent_inst_systemTabletID(void *id) { +unsigned long NSEvent_inst_SystemTabletID(void *id) { return [(NSEvent*)id systemTabletID]; } -unsigned long NSEvent_inst_tabletID(void *id) { +unsigned long NSEvent_inst_TabletID(void *id) { return [(NSEvent*)id tabletID]; } -unsigned long NSEvent_inst_vendorID(void *id) { +unsigned long NSEvent_inst_VendorID(void *id) { return [(NSEvent*)id vendorID]; } -unsigned long NSEvent_inst_vendorPointingDeviceType(void *id) { +unsigned long NSEvent_inst_VendorPointingDeviceType(void *id) { return [(NSEvent*)id vendorPointingDeviceType]; } -long NSEvent_inst_absoluteX(void *id) { +long NSEvent_inst_AbsoluteX(void *id) { return [(NSEvent*)id absoluteX]; } -long NSEvent_inst_absoluteY(void *id) { +long NSEvent_inst_AbsoluteY(void *id) { return [(NSEvent*)id absoluteY]; } -long NSEvent_inst_absoluteZ(void *id) { +long NSEvent_inst_AbsoluteZ(void *id) { return [(NSEvent*)id absoluteZ]; } -NSPoint NSEvent_inst_tilt(void *id) { +NSPoint NSEvent_inst_Tilt(void *id) { return [(NSEvent*)id tilt]; } -void* NSEvent_inst_vendorDefined(void *id) { +void* NSEvent_inst_VendorDefined(void *id) { return [(NSEvent*)id vendorDefined]; } -double NSEvent_inst_magnification(void *id) { +double NSEvent_inst_Magnification(void *id) { return [(NSEvent*)id magnification]; } -BOOL NSEvent_inst_hasPreciseScrollingDeltas(void *id) { +BOOL NSEvent_inst_HasPreciseScrollingDeltas(void *id) { return [(NSEvent*)id hasPreciseScrollingDeltas]; } -double NSEvent_inst_scrollingDeltaX(void *id) { +double NSEvent_inst_ScrollingDeltaX(void *id) { return [(NSEvent*)id scrollingDeltaX]; } -double NSEvent_inst_scrollingDeltaY(void *id) { +double NSEvent_inst_ScrollingDeltaY(void *id) { return [(NSEvent*)id scrollingDeltaY]; } -BOOL NSEvent_inst_isDirectionInvertedFromDevice(void *id) { +BOOL NSEvent_inst_IsDirectionInvertedFromDevice(void *id) { return [(NSEvent*)id isDirectionInvertedFromDevice]; } -void NSFont_inst_set(void *id) { - [(NSFont*)id - set]; -} - -void* NSFont_inst_fontWithSize_(void *id, double fontSize) { +void* NSFont_inst_FontWithSize(void *id, double fontSize) { return [(NSFont*)id fontWithSize: fontSize]; } -void* NSFont_inst_init(void *id) { +void NSFont_inst_Set(void *id) { + [(NSFont*)id + set]; +} + +void* NSFont_inst_Init(void *id) { return [(NSFont*)id init]; } -double NSFont_inst_pointSize(void *id) { +double NSFont_inst_PointSize(void *id) { return [(NSFont*)id pointSize]; } -BOOL NSFont_inst_isFixedPitch(void *id) { +BOOL NSFont_inst_IsFixedPitch(void *id) { return [(NSFont*)id isFixedPitch]; } -unsigned long NSFont_inst_mostCompatibleStringEncoding(void *id) { +unsigned long NSFont_inst_MostCompatibleStringEncoding(void *id) { return [(NSFont*)id mostCompatibleStringEncoding]; } -unsigned long NSFont_inst_numberOfGlyphs(void *id) { +unsigned long NSFont_inst_NumberOfGlyphs(void *id) { return [(NSFont*)id numberOfGlyphs]; } -void* NSFont_inst_displayName(void *id) { +void* NSFont_inst_DisplayName(void *id) { return [(NSFont*)id displayName]; } -void* NSFont_inst_familyName(void *id) { +void* NSFont_inst_FamilyName(void *id) { return [(NSFont*)id familyName]; } -void* NSFont_inst_fontName(void *id) { +void* NSFont_inst_FontName(void *id) { return [(NSFont*)id fontName]; } -BOOL NSFont_inst_isVertical(void *id) { +BOOL NSFont_inst_IsVertical(void *id) { return [(NSFont*)id isVertical]; } -void* NSFont_inst_verticalFont(void *id) { +void* NSFont_inst_VerticalFont(void *id) { return [(NSFont*)id verticalFont]; } -void* NSImage_inst_initByReferencingFile_(void *id, void* fileName) { +void NSImage_inst_AddRepresentations(void *id, void* imageReps) { + [(NSImage*)id + addRepresentations: imageReps]; +} + +void NSImage_inst_CancelIncrementalLoad(void *id) { + [(NSImage*)id + cancelIncrementalLoad]; +} + +void NSImage_inst_DrawInRect(void *id, NSRect rect) { + [(NSImage*)id + drawInRect: rect]; +} + +void* NSImage_inst_InitByReferencingFile(void *id, void* fileName) { return [(NSImage*)id initByReferencingFile: fileName]; } -void* NSImage_inst_initByReferencingURL_(void *id, void* url) { +void* NSImage_inst_InitByReferencingURL(void *id, void* url) { return [(NSImage*)id initByReferencingURL: url]; } -void* NSImage_inst_initWithContentsOfFile_(void *id, void* fileName) { +void* NSImage_inst_InitWithContentsOfFile(void *id, void* fileName) { return [(NSImage*)id initWithContentsOfFile: fileName]; } -void* NSImage_inst_initWithContentsOfURL_(void *id, void* url) { +void* NSImage_inst_InitWithContentsOfURL(void *id, void* url) { return [(NSImage*)id initWithContentsOfURL: url]; } -void* NSImage_inst_initWithData_(void *id, void* data) { +void* NSImage_inst_InitWithData(void *id, void* data) { return [(NSImage*)id initWithData: data]; } -void* NSImage_inst_initWithDataIgnoringOrientation_(void *id, void* data) { +void* NSImage_inst_InitWithDataIgnoringOrientation(void *id, void* data) { return [(NSImage*)id initWithDataIgnoringOrientation: data]; } -void* NSImage_inst_initWithPasteboard_(void *id, void* pasteboard) { +void* NSImage_inst_InitWithPasteboard(void *id, void* pasteboard) { return [(NSImage*)id initWithPasteboard: pasteboard]; } -void* NSImage_inst_initWithSize_(void *id, NSSize size) { +void* NSImage_inst_InitWithSize(void *id, NSSize size) { return [(NSImage*)id initWithSize: size]; } -BOOL NSImage_inst_isTemplate(void *id) { +BOOL NSImage_inst_IsTemplate(void *id) { return [(NSImage*)id isTemplate]; } -void NSImage_inst_addRepresentations_(void *id, void* imageReps) { - [(NSImage*)id - addRepresentations: imageReps]; -} - -void NSImage_inst_drawInRect_(void *id, NSRect rect) { - [(NSImage*)id - drawInRect: rect]; +void* NSImage_inst_LayerContentsForContentsScale(void *id, double layerContentsScale) { + return [(NSImage*)id + layerContentsForContentsScale: layerContentsScale]; } -void NSImage_inst_lockFocus(void *id) { +void NSImage_inst_LockFocus(void *id) { [(NSImage*)id lockFocus]; } -void NSImage_inst_lockFocusFlipped_(void *id, BOOL flipped) { +void NSImage_inst_LockFocusFlipped(void *id, BOOL flipped) { [(NSImage*)id lockFocusFlipped: flipped]; } -void NSImage_inst_unlockFocus(void *id) { - [(NSImage*)id - unlockFocus]; -} - -void NSImage_inst_recache(void *id) { +void NSImage_inst_Recache(void *id) { [(NSImage*)id recache]; } -void NSImage_inst_cancelIncrementalLoad(void *id) { - [(NSImage*)id - cancelIncrementalLoad]; -} - -void* NSImage_inst_layerContentsForContentsScale_(void *id, double layerContentsScale) { +double NSImage_inst_RecommendedLayerContentsScale(void *id, double preferredContentsScale) { return [(NSImage*)id - layerContentsForContentsScale: layerContentsScale]; + recommendedLayerContentsScale: preferredContentsScale]; } -double NSImage_inst_recommendedLayerContentsScale_(void *id, double preferredContentsScale) { - return [(NSImage*)id - recommendedLayerContentsScale: preferredContentsScale]; +void NSImage_inst_UnlockFocus(void *id) { + [(NSImage*)id + unlockFocus]; } -void* NSImage_inst_init(void *id) { +void* NSImage_inst_Init(void *id) { return [(NSImage*)id init]; } -void* NSImage_inst_delegate(void *id) { +void* NSImage_inst_Delegate(void *id) { return [(NSImage*)id delegate]; } -void NSImage_inst_setDelegate_(void *id, void* value) { +void NSImage_inst_SetDelegate(void *id, void* value) { [(NSImage*)id setDelegate: value]; } -NSSize NSImage_inst_size(void *id) { +NSSize NSImage_inst_Size(void *id) { return [(NSImage*)id size]; } -void NSImage_inst_setSize_(void *id, NSSize value) { +void NSImage_inst_SetSize(void *id, NSSize value) { [(NSImage*)id setSize: value]; } -void NSImage_inst_setTemplate_(void *id, BOOL value) { +void NSImage_inst_SetTemplate(void *id, BOOL value) { [(NSImage*)id setTemplate: value]; } -void* NSImage_inst_representations(void *id) { +void* NSImage_inst_Representations(void *id) { return [(NSImage*)id representations]; } -BOOL NSImage_inst_prefersColorMatch(void *id) { +BOOL NSImage_inst_PrefersColorMatch(void *id) { return [(NSImage*)id prefersColorMatch]; } -void NSImage_inst_setPrefersColorMatch_(void *id, BOOL value) { +void NSImage_inst_SetPrefersColorMatch(void *id, BOOL value) { [(NSImage*)id setPrefersColorMatch: value]; } -BOOL NSImage_inst_usesEPSOnResolutionMismatch(void *id) { +BOOL NSImage_inst_UsesEPSOnResolutionMismatch(void *id) { return [(NSImage*)id usesEPSOnResolutionMismatch]; } -void NSImage_inst_setUsesEPSOnResolutionMismatch_(void *id, BOOL value) { +void NSImage_inst_SetUsesEPSOnResolutionMismatch(void *id, BOOL value) { [(NSImage*)id setUsesEPSOnResolutionMismatch: value]; } -BOOL NSImage_inst_matchesOnMultipleResolution(void *id) { +BOOL NSImage_inst_MatchesOnMultipleResolution(void *id) { return [(NSImage*)id matchesOnMultipleResolution]; } -void NSImage_inst_setMatchesOnMultipleResolution_(void *id, BOOL value) { +void NSImage_inst_SetMatchesOnMultipleResolution(void *id, BOOL value) { [(NSImage*)id setMatchesOnMultipleResolution: value]; } -BOOL NSImage_inst_isValid(void *id) { +BOOL NSImage_inst_IsValid(void *id) { return [(NSImage*)id isValid]; } -void* NSImage_inst_backgroundColor(void *id) { +void* NSImage_inst_BackgroundColor(void *id) { return [(NSImage*)id backgroundColor]; } -void NSImage_inst_setBackgroundColor_(void *id, void* value) { +void NSImage_inst_SetBackgroundColor(void *id, void* value) { [(NSImage*)id setBackgroundColor: value]; } -NSRect NSImage_inst_alignmentRect(void *id) { +NSRect NSImage_inst_AlignmentRect(void *id) { return [(NSImage*)id alignmentRect]; } -void NSImage_inst_setAlignmentRect_(void *id, NSRect value) { +void NSImage_inst_SetAlignmentRect(void *id, NSRect value) { [(NSImage*)id setAlignmentRect: value]; } @@ -2054,5454 +2054,5454 @@ void* NSImage_inst_TIFFRepresentation(void *id) { TIFFRepresentation]; } -void* NSImage_inst_accessibilityDescription(void *id) { +void* NSImage_inst_AccessibilityDescription(void *id) { return [(NSImage*)id accessibilityDescription]; } -void NSImage_inst_setAccessibilityDescription_(void *id, void* value) { +void NSImage_inst_SetAccessibilityDescription(void *id, void* value) { [(NSImage*)id setAccessibilityDescription: value]; } -BOOL NSImage_inst_matchesOnlyOnBestFittingAxis(void *id) { +BOOL NSImage_inst_MatchesOnlyOnBestFittingAxis(void *id) { return [(NSImage*)id matchesOnlyOnBestFittingAxis]; } -void NSImage_inst_setMatchesOnlyOnBestFittingAxis_(void *id, BOOL value) { +void NSImage_inst_SetMatchesOnlyOnBestFittingAxis(void *id, BOOL value) { [(NSImage*)id setMatchesOnlyOnBestFittingAxis: value]; } -void* NSImageView_inst_init(void *id) { +void* NSImageView_inst_Init(void *id) { return [(NSImageView*)id init]; } -void* NSImageView_inst_image(void *id) { +void* NSImageView_inst_Image(void *id) { return [(NSImageView*)id image]; } -void NSImageView_inst_setImage_(void *id, void* value) { +void NSImageView_inst_SetImage(void *id, void* value) { [(NSImageView*)id setImage: value]; } -BOOL NSImageView_inst_animates(void *id) { +BOOL NSImageView_inst_Animates(void *id) { return [(NSImageView*)id animates]; } -void NSImageView_inst_setAnimates_(void *id, BOOL value) { +void NSImageView_inst_SetAnimates(void *id, BOOL value) { [(NSImageView*)id setAnimates: value]; } -BOOL NSImageView_inst_isEditable(void *id) { +BOOL NSImageView_inst_IsEditable(void *id) { return [(NSImageView*)id isEditable]; } -void NSImageView_inst_setEditable_(void *id, BOOL value) { +void NSImageView_inst_SetEditable(void *id, BOOL value) { [(NSImageView*)id setEditable: value]; } -BOOL NSImageView_inst_allowsCutCopyPaste(void *id) { +BOOL NSImageView_inst_AllowsCutCopyPaste(void *id) { return [(NSImageView*)id allowsCutCopyPaste]; } -void NSImageView_inst_setAllowsCutCopyPaste_(void *id, BOOL value) { +void NSImageView_inst_SetAllowsCutCopyPaste(void *id, BOOL value) { [(NSImageView*)id setAllowsCutCopyPaste: value]; } -void* NSImageView_inst_contentTintColor(void *id) { +void* NSImageView_inst_ContentTintColor(void *id) { return [(NSImageView*)id contentTintColor]; } -void NSImageView_inst_setContentTintColor_(void *id, void* value) { +void NSImageView_inst_SetContentTintColor(void *id, void* value) { [(NSImageView*)id setContentTintColor: value]; } -void* NSNib_inst_initWithNibData_bundle_(void *id, void* nibData, void* bundle) { +void* NSNib_inst_InitWithNibDataBundle(void *id, void* nibData, void* bundle) { return [(NSNib*)id initWithNibData: nibData bundle: bundle]; } -BOOL NSNib_inst_instantiateWithOwner_topLevelObjects_(void *id, void* owner, void* topLevelObjects) { +BOOL NSNib_inst_InstantiateWithOwnerTopLevelObjects(void *id, void* owner, void* topLevelObjects) { return [(NSNib*)id instantiateWithOwner: owner topLevelObjects: topLevelObjects]; } -void* NSNib_inst_init(void *id) { +void* NSNib_inst_Init(void *id) { return [(NSNib*)id init]; } -void NSPasteboard_inst_releaseGlobally(void *id) { - [(NSPasteboard*)id - releaseGlobally]; +long NSPasteboard_inst_AddTypesOwner(void *id, void* newTypes, void* newOwner) { + return [(NSPasteboard*)id + addTypes: newTypes + owner: newOwner]; } -long NSPasteboard_inst_clearContents(void *id) { +BOOL NSPasteboard_inst_CanReadItemWithDataConformingToTypes(void *id, void* types) { return [(NSPasteboard*)id - clearContents]; + canReadItemWithDataConformingToTypes: types]; } -BOOL NSPasteboard_inst_writeObjects_(void *id, void* objects) { +BOOL NSPasteboard_inst_CanReadObjectForClassesOptions(void *id, void* classArray, void* options) { return [(NSPasteboard*)id - writeObjects: objects]; + canReadObjectForClasses: classArray + options: options]; } -void* NSPasteboard_inst_readObjectsForClasses_options_(void *id, void* classArray, void* options) { +long NSPasteboard_inst_ClearContents(void *id) { return [(NSPasteboard*)id - readObjectsForClasses: classArray - options: options]; + clearContents]; } -BOOL NSPasteboard_inst_canReadItemWithDataConformingToTypes_(void *id, void* types) { +long NSPasteboard_inst_DeclareTypesOwner(void *id, void* newTypes, void* newOwner) { return [(NSPasteboard*)id - canReadItemWithDataConformingToTypes: types]; + declareTypes: newTypes + owner: newOwner]; } -BOOL NSPasteboard_inst_canReadObjectForClasses_options_(void *id, void* classArray, void* options) { +void* NSPasteboard_inst_ReadObjectsForClassesOptions(void *id, void* classArray, void* options) { return [(NSPasteboard*)id - canReadObjectForClasses: classArray + readObjectsForClasses: classArray options: options]; } -long NSPasteboard_inst_declareTypes_owner_(void *id, void* newTypes, void* newOwner) { - return [(NSPasteboard*)id - declareTypes: newTypes - owner: newOwner]; +void NSPasteboard_inst_ReleaseGlobally(void *id) { + [(NSPasteboard*)id + releaseGlobally]; } -long NSPasteboard_inst_addTypes_owner_(void *id, void* newTypes, void* newOwner) { +BOOL NSPasteboard_inst_WriteFileContents(void *id, void* filename) { return [(NSPasteboard*)id - addTypes: newTypes - owner: newOwner]; + writeFileContents: filename]; } -BOOL NSPasteboard_inst_writeFileContents_(void *id, void* filename) { +BOOL NSPasteboard_inst_WriteObjects(void *id, void* objects) { return [(NSPasteboard*)id - writeFileContents: filename]; + writeObjects: objects]; } -void* NSPasteboard_inst_init(void *id) { +void* NSPasteboard_inst_Init(void *id) { return [(NSPasteboard*)id init]; } -void* NSPasteboard_inst_pasteboardItems(void *id) { +void* NSPasteboard_inst_PasteboardItems(void *id) { return [(NSPasteboard*)id pasteboardItems]; } -void* NSPasteboard_inst_types(void *id) { +void* NSPasteboard_inst_Types(void *id) { return [(NSPasteboard*)id types]; } -long NSPasteboard_inst_changeCount(void *id) { +long NSPasteboard_inst_ChangeCount(void *id) { return [(NSPasteboard*)id changeCount]; } -void* NSLayoutManager_inst_init(void *id) { - return [(NSLayoutManager*)id - init]; -} - -void NSLayoutManager_inst_addTextContainer_(void *id, void* container) { +void NSLayoutManager_inst_AddTextContainer(void *id, void* container) { [(NSLayoutManager*)id addTextContainer: container]; } -void NSLayoutManager_inst_insertTextContainer_atIndex_(void *id, void* container, unsigned long index) { - [(NSLayoutManager*)id - insertTextContainer: container - atIndex: index]; +NSSize NSLayoutManager_inst_AttachmentSizeForGlyphAtIndex(void *id, unsigned long glyphIndex) { + return [(NSLayoutManager*)id + attachmentSizeForGlyphAtIndex: glyphIndex]; } -void NSLayoutManager_inst_removeTextContainerAtIndex_(void *id, unsigned long index) { - [(NSLayoutManager*)id - removeTextContainerAtIndex: index]; +unsigned long NSLayoutManager_inst_CharacterIndexForGlyphAtIndex(void *id, unsigned long glyphIndex) { + return [(NSLayoutManager*)id + characterIndexForGlyphAtIndex: glyphIndex]; } -void NSLayoutManager_inst_textContainerChangedGeometry_(void *id, void* container) { - [(NSLayoutManager*)id - textContainerChangedGeometry: container]; +double NSLayoutManager_inst_DefaultBaselineOffsetForFont(void *id, void* theFont) { + return [(NSLayoutManager*)id + defaultBaselineOffsetForFont: theFont]; } -void NSLayoutManager_inst_textContainerChangedTextView_(void *id, void* container) { - [(NSLayoutManager*)id - textContainerChangedTextView: container]; +double NSLayoutManager_inst_DefaultLineHeightForFont(void *id, void* theFont) { + return [(NSLayoutManager*)id + defaultLineHeightForFont: theFont]; } -NSRect NSLayoutManager_inst_usedRectForTextContainer_(void *id, void* container) { +BOOL NSLayoutManager_inst_DrawsOutsideLineFragmentForGlyphAtIndex(void *id, unsigned long glyphIndex) { return [(NSLayoutManager*)id - usedRectForTextContainer: container]; + drawsOutsideLineFragmentForGlyphAtIndex: glyphIndex]; } -void NSLayoutManager_inst_ensureLayoutForBoundingRect_inTextContainer_(void *id, NSRect bounds, void* container) { +void NSLayoutManager_inst_EnsureLayoutForBoundingRectInTextContainer(void *id, NSRect bounds, void* container) { [(NSLayoutManager*)id ensureLayoutForBoundingRect: bounds inTextContainer: container]; } -void NSLayoutManager_inst_ensureLayoutForTextContainer_(void *id, void* container) { +void NSLayoutManager_inst_EnsureLayoutForTextContainer(void *id, void* container) { [(NSLayoutManager*)id ensureLayoutForTextContainer: container]; } -unsigned long NSLayoutManager_inst_characterIndexForGlyphAtIndex_(void *id, unsigned long glyphIndex) { +unsigned long NSLayoutManager_inst_FirstUnlaidCharacterIndex(void *id) { return [(NSLayoutManager*)id - characterIndexForGlyphAtIndex: glyphIndex]; + firstUnlaidCharacterIndex]; } -unsigned long NSLayoutManager_inst_glyphIndexForCharacterAtIndex_(void *id, unsigned long charIndex) { +unsigned long NSLayoutManager_inst_FirstUnlaidGlyphIndex(void *id) { return [(NSLayoutManager*)id - glyphIndexForCharacterAtIndex: charIndex]; + firstUnlaidGlyphIndex]; } -BOOL NSLayoutManager_inst_isValidGlyphIndex_(void *id, unsigned long glyphIndex) { +unsigned long NSLayoutManager_inst_GlyphIndexForCharacterAtIndex(void *id, unsigned long charIndex) { return [(NSLayoutManager*)id - isValidGlyphIndex: glyphIndex]; + glyphIndexForCharacterAtIndex: charIndex]; } -void NSLayoutManager_inst_setDrawsOutsideLineFragment_forGlyphAtIndex_(void *id, BOOL flag, unsigned long glyphIndex) { - [(NSLayoutManager*)id - setDrawsOutsideLineFragment: flag - forGlyphAtIndex: glyphIndex]; +void* NSLayoutManager_inst_Init(void *id) { + return [(NSLayoutManager*)id + init]; } -void NSLayoutManager_inst_setExtraLineFragmentRect_usedRect_textContainer_(void *id, NSRect fragmentRect, NSRect usedRect, void* container) { +void NSLayoutManager_inst_InsertTextContainerAtIndex(void *id, void* container, unsigned long index) { [(NSLayoutManager*)id - setExtraLineFragmentRect: fragmentRect - usedRect: usedRect - textContainer: container]; + insertTextContainer: container + atIndex: index]; } -void NSLayoutManager_inst_setNotShownAttribute_forGlyphAtIndex_(void *id, BOOL flag, unsigned long glyphIndex) { - [(NSLayoutManager*)id - setNotShownAttribute: flag - forGlyphAtIndex: glyphIndex]; +BOOL NSLayoutManager_inst_IsValidGlyphIndex(void *id, unsigned long glyphIndex) { + return [(NSLayoutManager*)id + isValidGlyphIndex: glyphIndex]; } -NSSize NSLayoutManager_inst_attachmentSizeForGlyphAtIndex_(void *id, unsigned long glyphIndex) { +BOOL NSLayoutManager_inst_LayoutManagerOwnsFirstResponderInWindow(void *id, void* window) { return [(NSLayoutManager*)id - attachmentSizeForGlyphAtIndex: glyphIndex]; + layoutManagerOwnsFirstResponderInWindow: window]; } -BOOL NSLayoutManager_inst_drawsOutsideLineFragmentForGlyphAtIndex_(void *id, unsigned long glyphIndex) { +BOOL NSLayoutManager_inst_NotShownAttributeForGlyphAtIndex(void *id, unsigned long glyphIndex) { return [(NSLayoutManager*)id - drawsOutsideLineFragmentForGlyphAtIndex: glyphIndex]; + notShownAttributeForGlyphAtIndex: glyphIndex]; } -unsigned long NSLayoutManager_inst_firstUnlaidCharacterIndex(void *id) { - return [(NSLayoutManager*)id - firstUnlaidCharacterIndex]; +void NSLayoutManager_inst_RemoveTextContainerAtIndex(void *id, unsigned long index) { + [(NSLayoutManager*)id + removeTextContainerAtIndex: index]; } -unsigned long NSLayoutManager_inst_firstUnlaidGlyphIndex(void *id) { - return [(NSLayoutManager*)id - firstUnlaidGlyphIndex]; +void NSLayoutManager_inst_SetDrawsOutsideLineFragmentForGlyphAtIndex(void *id, BOOL flag, unsigned long glyphIndex) { + [(NSLayoutManager*)id + setDrawsOutsideLineFragment: flag + forGlyphAtIndex: glyphIndex]; } -BOOL NSLayoutManager_inst_notShownAttributeForGlyphAtIndex_(void *id, unsigned long glyphIndex) { - return [(NSLayoutManager*)id - notShownAttributeForGlyphAtIndex: glyphIndex]; +void NSLayoutManager_inst_SetExtraLineFragmentRectUsedRectTextContainer(void *id, NSRect fragmentRect, NSRect usedRect, void* container) { + [(NSLayoutManager*)id + setExtraLineFragmentRect: fragmentRect + usedRect: usedRect + textContainer: container]; } -BOOL NSLayoutManager_inst_layoutManagerOwnsFirstResponderInWindow_(void *id, void* window) { - return [(NSLayoutManager*)id - layoutManagerOwnsFirstResponderInWindow: window]; +void NSLayoutManager_inst_SetNotShownAttributeForGlyphAtIndex(void *id, BOOL flag, unsigned long glyphIndex) { + [(NSLayoutManager*)id + setNotShownAttribute: flag + forGlyphAtIndex: glyphIndex]; } -double NSLayoutManager_inst_defaultLineHeightForFont_(void *id, void* theFont) { - return [(NSLayoutManager*)id - defaultLineHeightForFont: theFont]; +void NSLayoutManager_inst_TextContainerChangedGeometry(void *id, void* container) { + [(NSLayoutManager*)id + textContainerChangedGeometry: container]; +} + +void NSLayoutManager_inst_TextContainerChangedTextView(void *id, void* container) { + [(NSLayoutManager*)id + textContainerChangedTextView: container]; } -double NSLayoutManager_inst_defaultBaselineOffsetForFont_(void *id, void* theFont) { +NSRect NSLayoutManager_inst_UsedRectForTextContainer(void *id, void* container) { return [(NSLayoutManager*)id - defaultBaselineOffsetForFont: theFont]; + usedRectForTextContainer: container]; } -void* NSLayoutManager_inst_delegate(void *id) { +void* NSLayoutManager_inst_Delegate(void *id) { return [(NSLayoutManager*)id delegate]; } -void NSLayoutManager_inst_setDelegate_(void *id, void* value) { +void NSLayoutManager_inst_SetDelegate(void *id, void* value) { [(NSLayoutManager*)id setDelegate: value]; } -BOOL NSLayoutManager_inst_allowsNonContiguousLayout(void *id) { +BOOL NSLayoutManager_inst_AllowsNonContiguousLayout(void *id) { return [(NSLayoutManager*)id allowsNonContiguousLayout]; } -void NSLayoutManager_inst_setAllowsNonContiguousLayout_(void *id, BOOL value) { +void NSLayoutManager_inst_SetAllowsNonContiguousLayout(void *id, BOOL value) { [(NSLayoutManager*)id setAllowsNonContiguousLayout: value]; } -BOOL NSLayoutManager_inst_hasNonContiguousLayout(void *id) { +BOOL NSLayoutManager_inst_HasNonContiguousLayout(void *id) { return [(NSLayoutManager*)id hasNonContiguousLayout]; } -BOOL NSLayoutManager_inst_showsInvisibleCharacters(void *id) { +BOOL NSLayoutManager_inst_ShowsInvisibleCharacters(void *id) { return [(NSLayoutManager*)id showsInvisibleCharacters]; } -void NSLayoutManager_inst_setShowsInvisibleCharacters_(void *id, BOOL value) { +void NSLayoutManager_inst_SetShowsInvisibleCharacters(void *id, BOOL value) { [(NSLayoutManager*)id setShowsInvisibleCharacters: value]; } -BOOL NSLayoutManager_inst_showsControlCharacters(void *id) { +BOOL NSLayoutManager_inst_ShowsControlCharacters(void *id) { return [(NSLayoutManager*)id showsControlCharacters]; } -void NSLayoutManager_inst_setShowsControlCharacters_(void *id, BOOL value) { +void NSLayoutManager_inst_SetShowsControlCharacters(void *id, BOOL value) { [(NSLayoutManager*)id setShowsControlCharacters: value]; } -BOOL NSLayoutManager_inst_usesFontLeading(void *id) { +BOOL NSLayoutManager_inst_UsesFontLeading(void *id) { return [(NSLayoutManager*)id usesFontLeading]; } -void NSLayoutManager_inst_setUsesFontLeading_(void *id, BOOL value) { +void NSLayoutManager_inst_SetUsesFontLeading(void *id, BOOL value) { [(NSLayoutManager*)id setUsesFontLeading: value]; } -BOOL NSLayoutManager_inst_backgroundLayoutEnabled(void *id) { +BOOL NSLayoutManager_inst_BackgroundLayoutEnabled(void *id) { return [(NSLayoutManager*)id backgroundLayoutEnabled]; } -void NSLayoutManager_inst_setBackgroundLayoutEnabled_(void *id, BOOL value) { +void NSLayoutManager_inst_SetBackgroundLayoutEnabled(void *id, BOOL value) { [(NSLayoutManager*)id setBackgroundLayoutEnabled: value]; } -BOOL NSLayoutManager_inst_limitsLayoutForSuspiciousContents(void *id) { +BOOL NSLayoutManager_inst_LimitsLayoutForSuspiciousContents(void *id) { return [(NSLayoutManager*)id limitsLayoutForSuspiciousContents]; } -void NSLayoutManager_inst_setLimitsLayoutForSuspiciousContents_(void *id, BOOL value) { +void NSLayoutManager_inst_SetLimitsLayoutForSuspiciousContents(void *id, BOOL value) { [(NSLayoutManager*)id setLimitsLayoutForSuspiciousContents: value]; } -BOOL NSLayoutManager_inst_usesDefaultHyphenation(void *id) { +BOOL NSLayoutManager_inst_UsesDefaultHyphenation(void *id) { return [(NSLayoutManager*)id usesDefaultHyphenation]; } -void NSLayoutManager_inst_setUsesDefaultHyphenation_(void *id, BOOL value) { +void NSLayoutManager_inst_SetUsesDefaultHyphenation(void *id, BOOL value) { [(NSLayoutManager*)id setUsesDefaultHyphenation: value]; } -void* NSLayoutManager_inst_textContainers(void *id) { +void* NSLayoutManager_inst_TextContainers(void *id) { return [(NSLayoutManager*)id textContainers]; } -unsigned long NSLayoutManager_inst_numberOfGlyphs(void *id) { +unsigned long NSLayoutManager_inst_NumberOfGlyphs(void *id) { return [(NSLayoutManager*)id numberOfGlyphs]; } -NSRect NSLayoutManager_inst_extraLineFragmentRect(void *id) { +NSRect NSLayoutManager_inst_ExtraLineFragmentRect(void *id) { return [(NSLayoutManager*)id extraLineFragmentRect]; } -void* NSLayoutManager_inst_extraLineFragmentTextContainer(void *id) { +void* NSLayoutManager_inst_ExtraLineFragmentTextContainer(void *id) { return [(NSLayoutManager*)id extraLineFragmentTextContainer]; } -NSRect NSLayoutManager_inst_extraLineFragmentUsedRect(void *id) { +NSRect NSLayoutManager_inst_ExtraLineFragmentUsedRect(void *id) { return [(NSLayoutManager*)id extraLineFragmentUsedRect]; } -void* NSLayoutManager_inst_firstTextView(void *id) { +void* NSLayoutManager_inst_FirstTextView(void *id) { return [(NSLayoutManager*)id firstTextView]; } -void* NSLayoutManager_inst_textViewForBeginningOfSelection(void *id) { +void* NSLayoutManager_inst_TextViewForBeginningOfSelection(void *id) { return [(NSLayoutManager*)id textViewForBeginningOfSelection]; } -void* NSMenu_inst_initWithTitle_(void *id, void* title) { - return [(NSMenu*)id - initWithTitle: title]; -} - -void NSMenu_inst_insertItem_atIndex_(void *id, void* newItem, long index) { - [(NSMenu*)id - insertItem: newItem - atIndex: index]; -} - -void* NSMenu_inst_insertItemWithTitle_action_keyEquivalent_atIndex_(void *id, void* string, void* selector, void* charCode, long index) { - return [(NSMenu*)id - insertItemWithTitle: string - action: selector - keyEquivalent: charCode - atIndex: index]; -} - -void NSMenu_inst_addItem_(void *id, void* newItem) { +void NSMenu_inst_AddItem(void *id, void* newItem) { [(NSMenu*)id addItem: newItem]; } -void* NSMenu_inst_addItemWithTitle_action_keyEquivalent_(void *id, void* string, void* selector, void* charCode) { +void* NSMenu_inst_AddItemWithTitleActionKeyEquivalent(void *id, void* string, void* selector, void* charCode) { return [(NSMenu*)id addItemWithTitle: string action: selector keyEquivalent: charCode]; } -void NSMenu_inst_removeItem_(void *id, void* item) { - [(NSMenu*)id - removeItem: item]; -} - -void NSMenu_inst_removeItemAtIndex_(void *id, long index) { +void NSMenu_inst_CancelTracking(void *id) { [(NSMenu*)id - removeItemAtIndex: index]; + cancelTracking]; } -void NSMenu_inst_itemChanged_(void *id, void* item) { +void NSMenu_inst_CancelTrackingWithoutAnimation(void *id) { [(NSMenu*)id - itemChanged: item]; + cancelTrackingWithoutAnimation]; } -void NSMenu_inst_removeAllItems(void *id) { - [(NSMenu*)id - removeAllItems]; +long NSMenu_inst_IndexOfItem(void *id, void* item) { + return [(NSMenu*)id + indexOfItem: item]; } -void* NSMenu_inst_itemWithTag_(void *id, long tag) { +long NSMenu_inst_IndexOfItemWithRepresentedObject(void *id, void* object) { return [(NSMenu*)id - itemWithTag: tag]; + indexOfItemWithRepresentedObject: object]; } -void* NSMenu_inst_itemWithTitle_(void *id, void* title) { +long NSMenu_inst_IndexOfItemWithSubmenu(void *id, void* submenu) { return [(NSMenu*)id - itemWithTitle: title]; + indexOfItemWithSubmenu: submenu]; } -void* NSMenu_inst_itemAtIndex_(void *id, long index) { +long NSMenu_inst_IndexOfItemWithTag(void *id, long tag) { return [(NSMenu*)id - itemAtIndex: index]; + indexOfItemWithTag: tag]; } -long NSMenu_inst_indexOfItem_(void *id, void* item) { +long NSMenu_inst_IndexOfItemWithTargetAndAction(void *id, void* target, void* actionSelector) { return [(NSMenu*)id - indexOfItem: item]; + indexOfItemWithTarget: target + andAction: actionSelector]; } -long NSMenu_inst_indexOfItemWithTitle_(void *id, void* title) { +long NSMenu_inst_IndexOfItemWithTitle(void *id, void* title) { return [(NSMenu*)id indexOfItemWithTitle: title]; } -long NSMenu_inst_indexOfItemWithTag_(void *id, long tag) { +void* NSMenu_inst_InitWithTitle(void *id, void* title) { return [(NSMenu*)id - indexOfItemWithTag: tag]; + initWithTitle: title]; } -long NSMenu_inst_indexOfItemWithTarget_andAction_(void *id, void* target, void* actionSelector) { - return [(NSMenu*)id - indexOfItemWithTarget: target - andAction: actionSelector]; +void NSMenu_inst_InsertItemAtIndex(void *id, void* newItem, long index) { + [(NSMenu*)id + insertItem: newItem + atIndex: index]; } -long NSMenu_inst_indexOfItemWithRepresentedObject_(void *id, void* object) { +void* NSMenu_inst_InsertItemWithTitleActionKeyEquivalentAtIndex(void *id, void* string, void* selector, void* charCode, long index) { return [(NSMenu*)id - indexOfItemWithRepresentedObject: object]; + insertItemWithTitle: string + action: selector + keyEquivalent: charCode + atIndex: index]; } -long NSMenu_inst_indexOfItemWithSubmenu_(void *id, void* submenu) { +void* NSMenu_inst_ItemAtIndex(void *id, long index) { return [(NSMenu*)id - indexOfItemWithSubmenu: submenu]; -} - -void NSMenu_inst_setSubmenu_forItem_(void *id, void* menu, void* item) { - [(NSMenu*)id - setSubmenu: menu - forItem: item]; + itemAtIndex: index]; } -void NSMenu_inst_submenuAction_(void *id, void* sender) { +void NSMenu_inst_ItemChanged(void *id, void* item) { [(NSMenu*)id - submenuAction: sender]; + itemChanged: item]; } -void NSMenu_inst_update(void *id) { - [(NSMenu*)id - update]; +void* NSMenu_inst_ItemWithTag(void *id, long tag) { + return [(NSMenu*)id + itemWithTag: tag]; } -BOOL NSMenu_inst_performKeyEquivalent_(void *id, void* event) { +void* NSMenu_inst_ItemWithTitle(void *id, void* title) { return [(NSMenu*)id - performKeyEquivalent: event]; + itemWithTitle: title]; } -void NSMenu_inst_performActionForItemAtIndex_(void *id, long index) { +void NSMenu_inst_PerformActionForItemAtIndex(void *id, long index) { [(NSMenu*)id performActionForItemAtIndex: index]; } -BOOL NSMenu_inst_popUpMenuPositioningItem_atLocation_inView_(void *id, void* item, NSPoint location, void* view) { +BOOL NSMenu_inst_PerformKeyEquivalent(void *id, void* event) { + return [(NSMenu*)id + performKeyEquivalent: event]; +} + +BOOL NSMenu_inst_PopUpMenuPositioningItemAtLocationInView(void *id, void* item, NSPoint location, void* view) { return [(NSMenu*)id popUpMenuPositioningItem: item atLocation: location inView: view]; } -void NSMenu_inst_cancelTracking(void *id) { +void NSMenu_inst_RemoveAllItems(void *id) { [(NSMenu*)id - cancelTracking]; + removeAllItems]; } -void NSMenu_inst_cancelTrackingWithoutAnimation(void *id) { +void NSMenu_inst_RemoveItem(void *id, void* item) { [(NSMenu*)id - cancelTrackingWithoutAnimation]; + removeItem: item]; +} + +void NSMenu_inst_RemoveItemAtIndex(void *id, long index) { + [(NSMenu*)id + removeItemAtIndex: index]; +} + +void NSMenu_inst_SetSubmenuForItem(void *id, void* menu, void* item) { + [(NSMenu*)id + setSubmenu: menu + forItem: item]; +} + +void NSMenu_inst_SubmenuAction(void *id, void* sender) { + [(NSMenu*)id + submenuAction: sender]; +} + +void NSMenu_inst_Update(void *id) { + [(NSMenu*)id + update]; } -void* NSMenu_inst_init(void *id) { +void* NSMenu_inst_Init(void *id) { return [(NSMenu*)id init]; } -double NSMenu_inst_menuBarHeight(void *id) { +double NSMenu_inst_MenuBarHeight(void *id) { return [(NSMenu*)id menuBarHeight]; } -long NSMenu_inst_numberOfItems(void *id) { +long NSMenu_inst_NumberOfItems(void *id) { return [(NSMenu*)id numberOfItems]; } -void* NSMenu_inst_itemArray(void *id) { +void* NSMenu_inst_ItemArray(void *id) { return [(NSMenu*)id itemArray]; } -void NSMenu_inst_setItemArray_(void *id, void* value) { +void NSMenu_inst_SetItemArray(void *id, void* value) { [(NSMenu*)id setItemArray: value]; } -void* NSMenu_inst_supermenu(void *id) { +void* NSMenu_inst_Supermenu(void *id) { return [(NSMenu*)id supermenu]; } -void NSMenu_inst_setSupermenu_(void *id, void* value) { +void NSMenu_inst_SetSupermenu(void *id, void* value) { [(NSMenu*)id setSupermenu: value]; } -BOOL NSMenu_inst_autoenablesItems(void *id) { +BOOL NSMenu_inst_AutoenablesItems(void *id) { return [(NSMenu*)id autoenablesItems]; } -void NSMenu_inst_setAutoenablesItems_(void *id, BOOL value) { +void NSMenu_inst_SetAutoenablesItems(void *id, BOOL value) { [(NSMenu*)id setAutoenablesItems: value]; } -void* NSMenu_inst_font(void *id) { +void* NSMenu_inst_Font(void *id) { return [(NSMenu*)id font]; } -void NSMenu_inst_setFont_(void *id, void* value) { +void NSMenu_inst_SetFont(void *id, void* value) { [(NSMenu*)id setFont: value]; } -void* NSMenu_inst_title(void *id) { +void* NSMenu_inst_Title(void *id) { return [(NSMenu*)id title]; } -void NSMenu_inst_setTitle_(void *id, void* value) { +void NSMenu_inst_SetTitle(void *id, void* value) { [(NSMenu*)id setTitle: value]; } -double NSMenu_inst_minimumWidth(void *id) { +double NSMenu_inst_MinimumWidth(void *id) { return [(NSMenu*)id minimumWidth]; } -void NSMenu_inst_setMinimumWidth_(void *id, double value) { +void NSMenu_inst_SetMinimumWidth(void *id, double value) { [(NSMenu*)id setMinimumWidth: value]; } -NSSize NSMenu_inst_size(void *id) { +NSSize NSMenu_inst_Size(void *id) { return [(NSMenu*)id size]; } -BOOL NSMenu_inst_allowsContextMenuPlugIns(void *id) { +BOOL NSMenu_inst_AllowsContextMenuPlugIns(void *id) { return [(NSMenu*)id allowsContextMenuPlugIns]; } -void NSMenu_inst_setAllowsContextMenuPlugIns_(void *id, BOOL value) { +void NSMenu_inst_SetAllowsContextMenuPlugIns(void *id, BOOL value) { [(NSMenu*)id setAllowsContextMenuPlugIns: value]; } -BOOL NSMenu_inst_showsStateColumn(void *id) { +BOOL NSMenu_inst_ShowsStateColumn(void *id) { return [(NSMenu*)id showsStateColumn]; } -void NSMenu_inst_setShowsStateColumn_(void *id, BOOL value) { +void NSMenu_inst_SetShowsStateColumn(void *id, BOOL value) { [(NSMenu*)id setShowsStateColumn: value]; } -void* NSMenu_inst_highlightedItem(void *id) { +void* NSMenu_inst_HighlightedItem(void *id) { return [(NSMenu*)id highlightedItem]; } -void* NSMenu_inst_delegate(void *id) { +void* NSMenu_inst_Delegate(void *id) { return [(NSMenu*)id delegate]; } -void NSMenu_inst_setDelegate_(void *id, void* value) { +void NSMenu_inst_SetDelegate(void *id, void* value) { [(NSMenu*)id setDelegate: value]; } -void NSPopover_inst_performClose_(void *id, void* sender) { - [(NSPopover*)id - performClose: sender]; -} - -void NSPopover_inst_close(void *id) { +void NSPopover_inst_Close(void *id) { [(NSPopover*)id close]; } -void* NSPopover_inst_init(void *id) { +void* NSPopover_inst_Init(void *id) { return [(NSPopover*)id init]; } -long NSPopover_inst_behavior(void *id) { +void NSPopover_inst_PerformClose(void *id, void* sender) { + [(NSPopover*)id + performClose: sender]; +} + +long NSPopover_inst_Behavior(void *id) { return [(NSPopover*)id behavior]; } -void NSPopover_inst_setBehavior_(void *id, long value) { +void NSPopover_inst_SetBehavior(void *id, long value) { [(NSPopover*)id setBehavior: value]; } -NSRect NSPopover_inst_positioningRect(void *id) { +NSRect NSPopover_inst_PositioningRect(void *id) { return [(NSPopover*)id positioningRect]; } -void NSPopover_inst_setPositioningRect_(void *id, NSRect value) { +void NSPopover_inst_SetPositioningRect(void *id, NSRect value) { [(NSPopover*)id setPositioningRect: value]; } -BOOL NSPopover_inst_animates(void *id) { +BOOL NSPopover_inst_Animates(void *id) { return [(NSPopover*)id animates]; } -void NSPopover_inst_setAnimates_(void *id, BOOL value) { +void NSPopover_inst_SetAnimates(void *id, BOOL value) { [(NSPopover*)id setAnimates: value]; } -NSSize NSPopover_inst_contentSize(void *id) { +NSSize NSPopover_inst_ContentSize(void *id) { return [(NSPopover*)id contentSize]; } -void NSPopover_inst_setContentSize_(void *id, NSSize value) { +void NSPopover_inst_SetContentSize(void *id, NSSize value) { [(NSPopover*)id setContentSize: value]; } -BOOL NSPopover_inst_isShown(void *id) { +BOOL NSPopover_inst_IsShown(void *id) { return [(NSPopover*)id isShown]; } -BOOL NSPopover_inst_isDetached(void *id) { +BOOL NSPopover_inst_IsDetached(void *id) { return [(NSPopover*)id isDetached]; } -void* NSMenuItem_inst_initWithTitle_action_keyEquivalent_(void *id, void* string, void* selector, void* charCode) { +void* NSMenuItem_inst_InitWithTitleActionKeyEquivalent(void *id, void* string, void* selector, void* charCode) { return [(NSMenuItem*)id initWithTitle: string action: selector keyEquivalent: charCode]; } -void* NSMenuItem_inst_init(void *id) { +void* NSMenuItem_inst_Init(void *id) { return [(NSMenuItem*)id init]; } -BOOL NSMenuItem_inst_isEnabled(void *id) { +BOOL NSMenuItem_inst_IsEnabled(void *id) { return [(NSMenuItem*)id isEnabled]; } -void NSMenuItem_inst_setEnabled_(void *id, BOOL value) { +void NSMenuItem_inst_SetEnabled(void *id, BOOL value) { [(NSMenuItem*)id setEnabled: value]; } -BOOL NSMenuItem_inst_isHidden(void *id) { +BOOL NSMenuItem_inst_IsHidden(void *id) { return [(NSMenuItem*)id isHidden]; } -void NSMenuItem_inst_setHidden_(void *id, BOOL value) { +void NSMenuItem_inst_SetHidden(void *id, BOOL value) { [(NSMenuItem*)id setHidden: value]; } -BOOL NSMenuItem_inst_isHiddenOrHasHiddenAncestor(void *id) { +BOOL NSMenuItem_inst_IsHiddenOrHasHiddenAncestor(void *id) { return [(NSMenuItem*)id isHiddenOrHasHiddenAncestor]; } -void* NSMenuItem_inst_target(void *id) { +void* NSMenuItem_inst_Target(void *id) { return [(NSMenuItem*)id target]; } -void NSMenuItem_inst_setTarget_(void *id, void* value) { +void NSMenuItem_inst_SetTarget(void *id, void* value) { [(NSMenuItem*)id setTarget: value]; } -void* NSMenuItem_inst_action(void *id) { +void* NSMenuItem_inst_Action(void *id) { return [(NSMenuItem*)id action]; } -void NSMenuItem_inst_setAction_(void *id, void* value) { +void NSMenuItem_inst_SetAction(void *id, void* value) { [(NSMenuItem*)id setAction: value]; } -void* NSMenuItem_inst_title(void *id) { +void* NSMenuItem_inst_Title(void *id) { return [(NSMenuItem*)id title]; } -void NSMenuItem_inst_setTitle_(void *id, void* value) { +void NSMenuItem_inst_SetTitle(void *id, void* value) { [(NSMenuItem*)id setTitle: value]; } -void* NSMenuItem_inst_attributedTitle(void *id) { +void* NSMenuItem_inst_AttributedTitle(void *id) { return [(NSMenuItem*)id attributedTitle]; } -void NSMenuItem_inst_setAttributedTitle_(void *id, void* value) { +void NSMenuItem_inst_SetAttributedTitle(void *id, void* value) { [(NSMenuItem*)id setAttributedTitle: value]; } -long NSMenuItem_inst_tag(void *id) { +long NSMenuItem_inst_Tag(void *id) { return [(NSMenuItem*)id tag]; } -void NSMenuItem_inst_setTag_(void *id, long value) { +void NSMenuItem_inst_SetTag(void *id, long value) { [(NSMenuItem*)id setTag: value]; } -long NSMenuItem_inst_state(void *id) { +long NSMenuItem_inst_State(void *id) { return [(NSMenuItem*)id state]; } -void NSMenuItem_inst_setState_(void *id, long value) { +void NSMenuItem_inst_SetState(void *id, long value) { [(NSMenuItem*)id setState: value]; } -void* NSMenuItem_inst_image(void *id) { +void* NSMenuItem_inst_Image(void *id) { return [(NSMenuItem*)id image]; } -void NSMenuItem_inst_setImage_(void *id, void* value) { +void NSMenuItem_inst_SetImage(void *id, void* value) { [(NSMenuItem*)id setImage: value]; } -void* NSMenuItem_inst_onStateImage(void *id) { +void* NSMenuItem_inst_OnStateImage(void *id) { return [(NSMenuItem*)id onStateImage]; } -void NSMenuItem_inst_setOnStateImage_(void *id, void* value) { +void NSMenuItem_inst_SetOnStateImage(void *id, void* value) { [(NSMenuItem*)id setOnStateImage: value]; } -void* NSMenuItem_inst_offStateImage(void *id) { +void* NSMenuItem_inst_OffStateImage(void *id) { return [(NSMenuItem*)id offStateImage]; } -void NSMenuItem_inst_setOffStateImage_(void *id, void* value) { +void NSMenuItem_inst_SetOffStateImage(void *id, void* value) { [(NSMenuItem*)id setOffStateImage: value]; } -void* NSMenuItem_inst_mixedStateImage(void *id) { +void* NSMenuItem_inst_MixedStateImage(void *id) { return [(NSMenuItem*)id mixedStateImage]; } -void NSMenuItem_inst_setMixedStateImage_(void *id, void* value) { +void NSMenuItem_inst_SetMixedStateImage(void *id, void* value) { [(NSMenuItem*)id setMixedStateImage: value]; } -void* NSMenuItem_inst_submenu(void *id) { +void* NSMenuItem_inst_Submenu(void *id) { return [(NSMenuItem*)id submenu]; } -void NSMenuItem_inst_setSubmenu_(void *id, void* value) { +void NSMenuItem_inst_SetSubmenu(void *id, void* value) { [(NSMenuItem*)id setSubmenu: value]; } -BOOL NSMenuItem_inst_hasSubmenu(void *id) { +BOOL NSMenuItem_inst_HasSubmenu(void *id) { return [(NSMenuItem*)id hasSubmenu]; } -void* NSMenuItem_inst_parentItem(void *id) { +void* NSMenuItem_inst_ParentItem(void *id) { return [(NSMenuItem*)id parentItem]; } -BOOL NSMenuItem_inst_isSeparatorItem(void *id) { +BOOL NSMenuItem_inst_IsSeparatorItem(void *id) { return [(NSMenuItem*)id isSeparatorItem]; } -void* NSMenuItem_inst_menu(void *id) { +void* NSMenuItem_inst_Menu(void *id) { return [(NSMenuItem*)id menu]; } -void NSMenuItem_inst_setMenu_(void *id, void* value) { +void NSMenuItem_inst_SetMenu(void *id, void* value) { [(NSMenuItem*)id setMenu: value]; } -void* NSMenuItem_inst_keyEquivalent(void *id) { +void* NSMenuItem_inst_KeyEquivalent(void *id) { return [(NSMenuItem*)id keyEquivalent]; } -void NSMenuItem_inst_setKeyEquivalent_(void *id, void* value) { +void NSMenuItem_inst_SetKeyEquivalent(void *id, void* value) { [(NSMenuItem*)id setKeyEquivalent: value]; } -void* NSMenuItem_inst_userKeyEquivalent(void *id) { +void* NSMenuItem_inst_UserKeyEquivalent(void *id) { return [(NSMenuItem*)id userKeyEquivalent]; } -BOOL NSMenuItem_inst_isAlternate(void *id) { +BOOL NSMenuItem_inst_IsAlternate(void *id) { return [(NSMenuItem*)id isAlternate]; } -void NSMenuItem_inst_setAlternate_(void *id, BOOL value) { +void NSMenuItem_inst_SetAlternate(void *id, BOOL value) { [(NSMenuItem*)id setAlternate: value]; } -long NSMenuItem_inst_indentationLevel(void *id) { +long NSMenuItem_inst_IndentationLevel(void *id) { return [(NSMenuItem*)id indentationLevel]; } -void NSMenuItem_inst_setIndentationLevel_(void *id, long value) { +void NSMenuItem_inst_SetIndentationLevel(void *id, long value) { [(NSMenuItem*)id setIndentationLevel: value]; } -void* NSMenuItem_inst_toolTip(void *id) { +void* NSMenuItem_inst_ToolTip(void *id) { return [(NSMenuItem*)id toolTip]; } -void NSMenuItem_inst_setToolTip_(void *id, void* value) { +void NSMenuItem_inst_SetToolTip(void *id, void* value) { [(NSMenuItem*)id setToolTip: value]; } -void* NSMenuItem_inst_representedObject(void *id) { +void* NSMenuItem_inst_RepresentedObject(void *id) { return [(NSMenuItem*)id representedObject]; } -void NSMenuItem_inst_setRepresentedObject_(void *id, void* value) { +void NSMenuItem_inst_SetRepresentedObject(void *id, void* value) { [(NSMenuItem*)id setRepresentedObject: value]; } -void* NSMenuItem_inst_view(void *id) { +void* NSMenuItem_inst_View(void *id) { return [(NSMenuItem*)id view]; } -void NSMenuItem_inst_setView_(void *id, void* value) { +void NSMenuItem_inst_SetView(void *id, void* value) { [(NSMenuItem*)id setView: value]; } -BOOL NSMenuItem_inst_isHighlighted(void *id) { +BOOL NSMenuItem_inst_IsHighlighted(void *id) { return [(NSMenuItem*)id isHighlighted]; } -BOOL NSMenuItem_inst_allowsAutomaticKeyEquivalentLocalization(void *id) { +BOOL NSMenuItem_inst_AllowsAutomaticKeyEquivalentLocalization(void *id) { return [(NSMenuItem*)id allowsAutomaticKeyEquivalentLocalization]; } -void NSMenuItem_inst_setAllowsAutomaticKeyEquivalentLocalization_(void *id, BOOL value) { +void NSMenuItem_inst_SetAllowsAutomaticKeyEquivalentLocalization(void *id, BOOL value) { [(NSMenuItem*)id setAllowsAutomaticKeyEquivalentLocalization: value]; } -BOOL NSMenuItem_inst_allowsAutomaticKeyEquivalentMirroring(void *id) { +BOOL NSMenuItem_inst_AllowsAutomaticKeyEquivalentMirroring(void *id) { return [(NSMenuItem*)id allowsAutomaticKeyEquivalentMirroring]; } -void NSMenuItem_inst_setAllowsAutomaticKeyEquivalentMirroring_(void *id, BOOL value) { +void NSMenuItem_inst_SetAllowsAutomaticKeyEquivalentMirroring(void *id, BOOL value) { [(NSMenuItem*)id setAllowsAutomaticKeyEquivalentMirroring: value]; } -BOOL NSMenuItem_inst_allowsKeyEquivalentWhenHidden(void *id) { +BOOL NSMenuItem_inst_AllowsKeyEquivalentWhenHidden(void *id) { return [(NSMenuItem*)id allowsKeyEquivalentWhenHidden]; } -void NSMenuItem_inst_setAllowsKeyEquivalentWhenHidden_(void *id, BOOL value) { +void NSMenuItem_inst_SetAllowsKeyEquivalentWhenHidden(void *id, BOOL value) { [(NSMenuItem*)id setAllowsKeyEquivalentWhenHidden: value]; } -BOOL NSRunningApplication_inst_hide(void *id) { +BOOL NSRunningApplication_inst_ForceTerminate(void *id) { return [(NSRunningApplication*)id - hide]; + forceTerminate]; } -BOOL NSRunningApplication_inst_unhide(void *id) { +BOOL NSRunningApplication_inst_Hide(void *id) { return [(NSRunningApplication*)id - unhide]; + hide]; } -BOOL NSRunningApplication_inst_forceTerminate(void *id) { +BOOL NSRunningApplication_inst_Terminate(void *id) { return [(NSRunningApplication*)id - forceTerminate]; + terminate]; } -BOOL NSRunningApplication_inst_terminate(void *id) { +BOOL NSRunningApplication_inst_Unhide(void *id) { return [(NSRunningApplication*)id - terminate]; + unhide]; } -void* NSRunningApplication_inst_init(void *id) { +void* NSRunningApplication_inst_Init(void *id) { return [(NSRunningApplication*)id init]; } -BOOL NSRunningApplication_inst_isActive(void *id) { +BOOL NSRunningApplication_inst_IsActive(void *id) { return [(NSRunningApplication*)id isActive]; } -long NSRunningApplication_inst_activationPolicy(void *id) { +long NSRunningApplication_inst_ActivationPolicy(void *id) { return [(NSRunningApplication*)id activationPolicy]; } -BOOL NSRunningApplication_inst_isHidden(void *id) { +BOOL NSRunningApplication_inst_IsHidden(void *id) { return [(NSRunningApplication*)id isHidden]; } -void* NSRunningApplication_inst_localizedName(void *id) { +void* NSRunningApplication_inst_LocalizedName(void *id) { return [(NSRunningApplication*)id localizedName]; } -void* NSRunningApplication_inst_icon(void *id) { +void* NSRunningApplication_inst_Icon(void *id) { return [(NSRunningApplication*)id icon]; } -void* NSRunningApplication_inst_bundleIdentifier(void *id) { +void* NSRunningApplication_inst_BundleIdentifier(void *id) { return [(NSRunningApplication*)id bundleIdentifier]; } -void* NSRunningApplication_inst_bundleURL(void *id) { +void* NSRunningApplication_inst_BundleURL(void *id) { return [(NSRunningApplication*)id bundleURL]; } -long NSRunningApplication_inst_executableArchitecture(void *id) { +long NSRunningApplication_inst_ExecutableArchitecture(void *id) { return [(NSRunningApplication*)id executableArchitecture]; } -void* NSRunningApplication_inst_executableURL(void *id) { +void* NSRunningApplication_inst_ExecutableURL(void *id) { return [(NSRunningApplication*)id executableURL]; } -BOOL NSRunningApplication_inst_isFinishedLaunching(void *id) { +BOOL NSRunningApplication_inst_IsFinishedLaunching(void *id) { return [(NSRunningApplication*)id isFinishedLaunching]; } -BOOL NSRunningApplication_inst_ownsMenuBar(void *id) { +BOOL NSRunningApplication_inst_OwnsMenuBar(void *id) { return [(NSRunningApplication*)id ownsMenuBar]; } -BOOL NSRunningApplication_inst_isTerminated(void *id) { +BOOL NSRunningApplication_inst_IsTerminated(void *id) { return [(NSRunningApplication*)id isTerminated]; } -NSRect NSScreen_inst_convertRectFromBacking_(void *id, NSRect rect) { +NSRect NSScreen_inst_ConvertRectFromBacking(void *id, NSRect rect) { return [(NSScreen*)id convertRectFromBacking: rect]; } -NSRect NSScreen_inst_convertRectToBacking_(void *id, NSRect rect) { +NSRect NSScreen_inst_ConvertRectToBacking(void *id, NSRect rect) { return [(NSScreen*)id convertRectToBacking: rect]; } -void* NSScreen_inst_init(void *id) { +void* NSScreen_inst_Init(void *id) { return [(NSScreen*)id init]; } -NSRect NSScreen_inst_frame(void *id) { +NSRect NSScreen_inst_Frame(void *id) { return [(NSScreen*)id frame]; } -void* NSScreen_inst_deviceDescription(void *id) { +void* NSScreen_inst_DeviceDescription(void *id) { return [(NSScreen*)id deviceDescription]; } -NSRect NSScreen_inst_visibleFrame(void *id) { +NSRect NSScreen_inst_VisibleFrame(void *id) { return [(NSScreen*)id visibleFrame]; } -double NSScreen_inst_backingScaleFactor(void *id) { +double NSScreen_inst_BackingScaleFactor(void *id) { return [(NSScreen*)id backingScaleFactor]; } -double NSScreen_inst_maximumPotentialExtendedDynamicRangeColorComponentValue(void *id) { +double NSScreen_inst_MaximumPotentialExtendedDynamicRangeColorComponentValue(void *id) { return [(NSScreen*)id maximumPotentialExtendedDynamicRangeColorComponentValue]; } -double NSScreen_inst_maximumExtendedDynamicRangeColorComponentValue(void *id) { +double NSScreen_inst_MaximumExtendedDynamicRangeColorComponentValue(void *id) { return [(NSScreen*)id maximumExtendedDynamicRangeColorComponentValue]; } -double NSScreen_inst_maximumReferenceExtendedDynamicRangeColorComponentValue(void *id) { +double NSScreen_inst_MaximumReferenceExtendedDynamicRangeColorComponentValue(void *id) { return [(NSScreen*)id maximumReferenceExtendedDynamicRangeColorComponentValue]; } -void* NSScreen_inst_localizedName(void *id) { +void* NSScreen_inst_LocalizedName(void *id) { return [(NSScreen*)id localizedName]; } -long NSScreen_inst_maximumFramesPerSecond(void *id) { +long NSScreen_inst_MaximumFramesPerSecond(void *id) { return [(NSScreen*)id maximumFramesPerSecond]; } -void* NSStatusBar_inst_statusItemWithLength_(void *id, double length) { - return [(NSStatusBar*)id - statusItemWithLength: length]; -} - -void NSStatusBar_inst_removeStatusItem_(void *id, void* item) { +void NSStatusBar_inst_RemoveStatusItem(void *id, void* item) { [(NSStatusBar*)id removeStatusItem: item]; } -void* NSStatusBar_inst_init(void *id) { +void* NSStatusBar_inst_StatusItemWithLength(void *id, double length) { + return [(NSStatusBar*)id + statusItemWithLength: length]; +} + +void* NSStatusBar_inst_Init(void *id) { return [(NSStatusBar*)id init]; } -BOOL NSStatusBar_inst_isVertical(void *id) { +BOOL NSStatusBar_inst_IsVertical(void *id) { return [(NSStatusBar*)id isVertical]; } -double NSStatusBar_inst_thickness(void *id) { +double NSStatusBar_inst_Thickness(void *id) { return [(NSStatusBar*)id thickness]; } -void* NSStatusBarButton_inst_init(void *id) { +void* NSStatusBarButton_inst_Init(void *id) { return [(NSStatusBarButton*)id init]; } -BOOL NSStatusBarButton_inst_appearsDisabled(void *id) { +BOOL NSStatusBarButton_inst_AppearsDisabled(void *id) { return [(NSStatusBarButton*)id appearsDisabled]; } -void NSStatusBarButton_inst_setAppearsDisabled_(void *id, BOOL value) { +void NSStatusBarButton_inst_SetAppearsDisabled(void *id, BOOL value) { [(NSStatusBarButton*)id setAppearsDisabled: value]; } -void* NSStatusItem_inst_init(void *id) { +void* NSStatusItem_inst_Init(void *id) { return [(NSStatusItem*)id init]; } -void* NSStatusItem_inst_statusBar(void *id) { +void* NSStatusItem_inst_StatusBar(void *id) { return [(NSStatusItem*)id statusBar]; } -void* NSStatusItem_inst_button(void *id) { +void* NSStatusItem_inst_Button(void *id) { return [(NSStatusItem*)id button]; } -void* NSStatusItem_inst_menu(void *id) { +void* NSStatusItem_inst_Menu(void *id) { return [(NSStatusItem*)id menu]; } -void NSStatusItem_inst_setMenu_(void *id, void* value) { +void NSStatusItem_inst_SetMenu(void *id, void* value) { [(NSStatusItem*)id setMenu: value]; } -BOOL NSStatusItem_inst_isVisible(void *id) { +BOOL NSStatusItem_inst_IsVisible(void *id) { return [(NSStatusItem*)id isVisible]; } -void NSStatusItem_inst_setVisible_(void *id, BOOL value) { +void NSStatusItem_inst_SetVisible(void *id, BOOL value) { [(NSStatusItem*)id setVisible: value]; } -double NSStatusItem_inst_length(void *id) { +double NSStatusItem_inst_Length(void *id) { return [(NSStatusItem*)id length]; } -void NSStatusItem_inst_setLength_(void *id, double value) { +void NSStatusItem_inst_SetLength(void *id, double value) { [(NSStatusItem*)id setLength: value]; } -void* NSText_inst_initWithFrame_(void *id, NSRect frameRect) { - return [(NSText*)id - initWithFrame: frameRect]; -} - -void NSText_inst_toggleRuler_(void *id, void* sender) { +void NSText_inst_AlignCenter(void *id, void* sender) { [(NSText*)id - toggleRuler: sender]; + alignCenter: sender]; } -void NSText_inst_selectAll_(void *id, void* sender) { +void NSText_inst_AlignLeft(void *id, void* sender) { [(NSText*)id - selectAll: sender]; + alignLeft: sender]; } -void NSText_inst_copy_(void *id, void* sender) { +void NSText_inst_AlignRight(void *id, void* sender) { [(NSText*)id - copy: sender]; + alignRight: sender]; } -void NSText_inst_cut_(void *id, void* sender) { +void NSText_inst_ChangeFont(void *id, void* sender) { [(NSText*)id - cut: sender]; + changeFont: sender]; } -void NSText_inst_paste_(void *id, void* sender) { +void NSText_inst_CheckSpelling(void *id, void* sender) { [(NSText*)id - paste: sender]; + checkSpelling: sender]; } -void NSText_inst_copyFont_(void *id, void* sender) { +void NSText_inst_Copy(void *id, void* sender) { [(NSText*)id - copyFont: sender]; + copy: sender]; } -void NSText_inst_pasteFont_(void *id, void* sender) { +void NSText_inst_CopyFont(void *id, void* sender) { [(NSText*)id - pasteFont: sender]; + copyFont: sender]; } -void NSText_inst_copyRuler_(void *id, void* sender) { +void NSText_inst_CopyRuler(void *id, void* sender) { [(NSText*)id copyRuler: sender]; } -void NSText_inst_pasteRuler_(void *id, void* sender) { +void NSText_inst_Cut(void *id, void* sender) { [(NSText*)id - pasteRuler: sender]; + cut: sender]; } -void NSText_inst_delete_(void *id, void* sender) { +void NSText_inst_Delete(void *id, void* sender) { [(NSText*)id delete: sender]; } -void NSText_inst_changeFont_(void *id, void* sender) { - [(NSText*)id - changeFont: sender]; +void* NSText_inst_InitWithFrame(void *id, NSRect frameRect) { + return [(NSText*)id + initWithFrame: frameRect]; } -void NSText_inst_alignCenter_(void *id, void* sender) { +void NSText_inst_Paste(void *id, void* sender) { [(NSText*)id - alignCenter: sender]; + paste: sender]; } -void NSText_inst_alignLeft_(void *id, void* sender) { +void NSText_inst_PasteFont(void *id, void* sender) { [(NSText*)id - alignLeft: sender]; + pasteFont: sender]; } -void NSText_inst_alignRight_(void *id, void* sender) { +void NSText_inst_PasteRuler(void *id, void* sender) { [(NSText*)id - alignRight: sender]; + pasteRuler: sender]; } -void NSText_inst_superscript_(void *id, void* sender) { - [(NSText*)id - superscript: sender]; +BOOL NSText_inst_ReadRTFDFromFile(void *id, void* path) { + return [(NSText*)id + readRTFDFromFile: path]; } -void NSText_inst_subscript_(void *id, void* sender) { +void NSText_inst_SelectAll(void *id, void* sender) { [(NSText*)id - subscript: sender]; + selectAll: sender]; } -void NSText_inst_unscript_(void *id, void* sender) { +void NSText_inst_ShowGuessPanel(void *id, void* sender) { [(NSText*)id - unscript: sender]; + showGuessPanel: sender]; } -void NSText_inst_underline_(void *id, void* sender) { +void NSText_inst_SizeToFit(void *id) { [(NSText*)id - underline: sender]; + sizeToFit]; } -BOOL NSText_inst_readRTFDFromFile_(void *id, void* path) { - return [(NSText*)id - readRTFDFromFile: path]; +void NSText_inst_Subscript(void *id, void* sender) { + [(NSText*)id + subscript: sender]; } -BOOL NSText_inst_writeRTFDToFile_atomically_(void *id, void* path, BOOL flag) { - return [(NSText*)id - writeRTFDToFile: path - atomically: flag]; +void NSText_inst_Superscript(void *id, void* sender) { + [(NSText*)id + superscript: sender]; } -void NSText_inst_checkSpelling_(void *id, void* sender) { +void NSText_inst_ToggleRuler(void *id, void* sender) { [(NSText*)id - checkSpelling: sender]; + toggleRuler: sender]; } -void NSText_inst_showGuessPanel_(void *id, void* sender) { +void NSText_inst_Underline(void *id, void* sender) { [(NSText*)id - showGuessPanel: sender]; + underline: sender]; } -void NSText_inst_sizeToFit(void *id) { +void NSText_inst_Unscript(void *id, void* sender) { [(NSText*)id - sizeToFit]; + unscript: sender]; +} + +BOOL NSText_inst_WriteRTFDToFileAtomically(void *id, void* path, BOOL flag) { + return [(NSText*)id + writeRTFDToFile: path + atomically: flag]; } -void* NSText_inst_init(void *id) { +void* NSText_inst_Init(void *id) { return [(NSText*)id init]; } -void* NSText_inst_string(void *id) { +void* NSText_inst_String(void *id) { return [(NSText*)id string]; } -void NSText_inst_setString_(void *id, void* value) { +void NSText_inst_SetString(void *id, void* value) { [(NSText*)id setString: value]; } -void* NSText_inst_backgroundColor(void *id) { +void* NSText_inst_BackgroundColor(void *id) { return [(NSText*)id backgroundColor]; } -void NSText_inst_setBackgroundColor_(void *id, void* value) { +void NSText_inst_SetBackgroundColor(void *id, void* value) { [(NSText*)id setBackgroundColor: value]; } -BOOL NSText_inst_drawsBackground(void *id) { +BOOL NSText_inst_DrawsBackground(void *id) { return [(NSText*)id drawsBackground]; } -void NSText_inst_setDrawsBackground_(void *id, BOOL value) { +void NSText_inst_SetDrawsBackground(void *id, BOOL value) { [(NSText*)id setDrawsBackground: value]; } -BOOL NSText_inst_isEditable(void *id) { +BOOL NSText_inst_IsEditable(void *id) { return [(NSText*)id isEditable]; } -void NSText_inst_setEditable_(void *id, BOOL value) { +void NSText_inst_SetEditable(void *id, BOOL value) { [(NSText*)id setEditable: value]; } -BOOL NSText_inst_isSelectable(void *id) { +BOOL NSText_inst_IsSelectable(void *id) { return [(NSText*)id isSelectable]; } -void NSText_inst_setSelectable_(void *id, BOOL value) { +void NSText_inst_SetSelectable(void *id, BOOL value) { [(NSText*)id setSelectable: value]; } -BOOL NSText_inst_isFieldEditor(void *id) { +BOOL NSText_inst_IsFieldEditor(void *id) { return [(NSText*)id isFieldEditor]; } -void NSText_inst_setFieldEditor_(void *id, BOOL value) { +void NSText_inst_SetFieldEditor(void *id, BOOL value) { [(NSText*)id setFieldEditor: value]; } -BOOL NSText_inst_isRichText(void *id) { +BOOL NSText_inst_IsRichText(void *id) { return [(NSText*)id isRichText]; } -void NSText_inst_setRichText_(void *id, BOOL value) { +void NSText_inst_SetRichText(void *id, BOOL value) { [(NSText*)id setRichText: value]; } -BOOL NSText_inst_importsGraphics(void *id) { +BOOL NSText_inst_ImportsGraphics(void *id) { return [(NSText*)id importsGraphics]; } -void NSText_inst_setImportsGraphics_(void *id, BOOL value) { +void NSText_inst_SetImportsGraphics(void *id, BOOL value) { [(NSText*)id setImportsGraphics: value]; } -BOOL NSText_inst_usesFontPanel(void *id) { +BOOL NSText_inst_UsesFontPanel(void *id) { return [(NSText*)id usesFontPanel]; } -void NSText_inst_setUsesFontPanel_(void *id, BOOL value) { +void NSText_inst_SetUsesFontPanel(void *id, BOOL value) { [(NSText*)id setUsesFontPanel: value]; } -BOOL NSText_inst_isRulerVisible(void *id) { +BOOL NSText_inst_IsRulerVisible(void *id) { return [(NSText*)id isRulerVisible]; } -void* NSText_inst_font(void *id) { +void* NSText_inst_Font(void *id) { return [(NSText*)id font]; } -void NSText_inst_setFont_(void *id, void* value) { +void NSText_inst_SetFont(void *id, void* value) { [(NSText*)id setFont: value]; } -void* NSText_inst_textColor(void *id) { +void* NSText_inst_TextColor(void *id) { return [(NSText*)id textColor]; } -void NSText_inst_setTextColor_(void *id, void* value) { +void NSText_inst_SetTextColor(void *id, void* value) { [(NSText*)id setTextColor: value]; } -NSSize NSText_inst_maxSize(void *id) { +NSSize NSText_inst_MaxSize(void *id) { return [(NSText*)id maxSize]; } -void NSText_inst_setMaxSize_(void *id, NSSize value) { +void NSText_inst_SetMaxSize(void *id, NSSize value) { [(NSText*)id setMaxSize: value]; } -NSSize NSText_inst_minSize(void *id) { +NSSize NSText_inst_MinSize(void *id) { return [(NSText*)id minSize]; } -void NSText_inst_setMinSize_(void *id, NSSize value) { +void NSText_inst_SetMinSize(void *id, NSSize value) { [(NSText*)id setMinSize: value]; } -BOOL NSText_inst_isVerticallyResizable(void *id) { +BOOL NSText_inst_IsVerticallyResizable(void *id) { return [(NSText*)id isVerticallyResizable]; } -void NSText_inst_setVerticallyResizable_(void *id, BOOL value) { +void NSText_inst_SetVerticallyResizable(void *id, BOOL value) { [(NSText*)id setVerticallyResizable: value]; } -BOOL NSText_inst_isHorizontallyResizable(void *id) { +BOOL NSText_inst_IsHorizontallyResizable(void *id) { return [(NSText*)id isHorizontallyResizable]; } -void NSText_inst_setHorizontallyResizable_(void *id, BOOL value) { +void NSText_inst_SetHorizontallyResizable(void *id, BOOL value) { [(NSText*)id setHorizontallyResizable: value]; } -void* NSText_inst_delegate(void *id) { +void* NSText_inst_Delegate(void *id) { return [(NSText*)id delegate]; } -void NSText_inst_setDelegate_(void *id, void* value) { +void NSText_inst_SetDelegate(void *id, void* value) { [(NSText*)id setDelegate: value]; } -void NSTextField_inst_selectText_(void *id, void* sender) { +void NSTextField_inst_SelectText(void *id, void* sender) { [(NSTextField*)id selectText: sender]; } -BOOL NSTextField_inst_textShouldBeginEditing_(void *id, void* textObject) { +BOOL NSTextField_inst_TextShouldBeginEditing(void *id, void* textObject) { return [(NSTextField*)id textShouldBeginEditing: textObject]; } -BOOL NSTextField_inst_textShouldEndEditing_(void *id, void* textObject) { +BOOL NSTextField_inst_TextShouldEndEditing(void *id, void* textObject) { return [(NSTextField*)id textShouldEndEditing: textObject]; } -void* NSTextField_inst_init(void *id) { +void* NSTextField_inst_Init(void *id) { return [(NSTextField*)id init]; } -BOOL NSTextField_inst_isSelectable(void *id) { +BOOL NSTextField_inst_IsSelectable(void *id) { return [(NSTextField*)id isSelectable]; } -void NSTextField_inst_setSelectable_(void *id, BOOL value) { +void NSTextField_inst_SetSelectable(void *id, BOOL value) { [(NSTextField*)id setSelectable: value]; } -BOOL NSTextField_inst_isEditable(void *id) { +BOOL NSTextField_inst_IsEditable(void *id) { return [(NSTextField*)id isEditable]; } -void NSTextField_inst_setEditable_(void *id, BOOL value) { +void NSTextField_inst_SetEditable(void *id, BOOL value) { [(NSTextField*)id setEditable: value]; } -BOOL NSTextField_inst_allowsEditingTextAttributes(void *id) { +BOOL NSTextField_inst_AllowsEditingTextAttributes(void *id) { return [(NSTextField*)id allowsEditingTextAttributes]; } -void NSTextField_inst_setAllowsEditingTextAttributes_(void *id, BOOL value) { +void NSTextField_inst_SetAllowsEditingTextAttributes(void *id, BOOL value) { [(NSTextField*)id setAllowsEditingTextAttributes: value]; } -BOOL NSTextField_inst_importsGraphics(void *id) { +BOOL NSTextField_inst_ImportsGraphics(void *id) { return [(NSTextField*)id importsGraphics]; } -void NSTextField_inst_setImportsGraphics_(void *id, BOOL value) { +void NSTextField_inst_SetImportsGraphics(void *id, BOOL value) { [(NSTextField*)id setImportsGraphics: value]; } -void* NSTextField_inst_placeholderString(void *id) { +void* NSTextField_inst_PlaceholderString(void *id) { return [(NSTextField*)id placeholderString]; } -void NSTextField_inst_setPlaceholderString_(void *id, void* value) { +void NSTextField_inst_SetPlaceholderString(void *id, void* value) { [(NSTextField*)id setPlaceholderString: value]; } -void* NSTextField_inst_placeholderAttributedString(void *id) { +void* NSTextField_inst_PlaceholderAttributedString(void *id) { return [(NSTextField*)id placeholderAttributedString]; } -void NSTextField_inst_setPlaceholderAttributedString_(void *id, void* value) { +void NSTextField_inst_SetPlaceholderAttributedString(void *id, void* value) { [(NSTextField*)id setPlaceholderAttributedString: value]; } -BOOL NSTextField_inst_allowsDefaultTighteningForTruncation(void *id) { +BOOL NSTextField_inst_AllowsDefaultTighteningForTruncation(void *id) { return [(NSTextField*)id allowsDefaultTighteningForTruncation]; } -void NSTextField_inst_setAllowsDefaultTighteningForTruncation_(void *id, BOOL value) { +void NSTextField_inst_SetAllowsDefaultTighteningForTruncation(void *id, BOOL value) { [(NSTextField*)id setAllowsDefaultTighteningForTruncation: value]; } -long NSTextField_inst_maximumNumberOfLines(void *id) { +long NSTextField_inst_MaximumNumberOfLines(void *id) { return [(NSTextField*)id maximumNumberOfLines]; } -void NSTextField_inst_setMaximumNumberOfLines_(void *id, long value) { +void NSTextField_inst_SetMaximumNumberOfLines(void *id, long value) { [(NSTextField*)id setMaximumNumberOfLines: value]; } -double NSTextField_inst_preferredMaxLayoutWidth(void *id) { +double NSTextField_inst_PreferredMaxLayoutWidth(void *id) { return [(NSTextField*)id preferredMaxLayoutWidth]; } -void NSTextField_inst_setPreferredMaxLayoutWidth_(void *id, double value) { +void NSTextField_inst_SetPreferredMaxLayoutWidth(void *id, double value) { [(NSTextField*)id setPreferredMaxLayoutWidth: value]; } -void* NSTextField_inst_textColor(void *id) { +void* NSTextField_inst_TextColor(void *id) { return [(NSTextField*)id textColor]; } -void NSTextField_inst_setTextColor_(void *id, void* value) { +void NSTextField_inst_SetTextColor(void *id, void* value) { [(NSTextField*)id setTextColor: value]; } -void* NSTextField_inst_backgroundColor(void *id) { +void* NSTextField_inst_BackgroundColor(void *id) { return [(NSTextField*)id backgroundColor]; } -void NSTextField_inst_setBackgroundColor_(void *id, void* value) { +void NSTextField_inst_SetBackgroundColor(void *id, void* value) { [(NSTextField*)id setBackgroundColor: value]; } -BOOL NSTextField_inst_drawsBackground(void *id) { +BOOL NSTextField_inst_DrawsBackground(void *id) { return [(NSTextField*)id drawsBackground]; } -void NSTextField_inst_setDrawsBackground_(void *id, BOOL value) { +void NSTextField_inst_SetDrawsBackground(void *id, BOOL value) { [(NSTextField*)id setDrawsBackground: value]; } -BOOL NSTextField_inst_isBezeled(void *id) { +BOOL NSTextField_inst_IsBezeled(void *id) { return [(NSTextField*)id isBezeled]; } -void NSTextField_inst_setBezeled_(void *id, BOOL value) { +void NSTextField_inst_SetBezeled(void *id, BOOL value) { [(NSTextField*)id setBezeled: value]; } -BOOL NSTextField_inst_isBordered(void *id) { +BOOL NSTextField_inst_IsBordered(void *id) { return [(NSTextField*)id isBordered]; } -void NSTextField_inst_setBordered_(void *id, BOOL value) { +void NSTextField_inst_SetBordered(void *id, BOOL value) { [(NSTextField*)id setBordered: value]; } -BOOL NSTextField_inst_acceptsFirstResponder(void *id) { +BOOL NSTextField_inst_AcceptsFirstResponder(void *id) { return [(NSTextField*)id acceptsFirstResponder]; } -BOOL NSTextField_inst_allowsCharacterPickerTouchBarItem(void *id) { +BOOL NSTextField_inst_AllowsCharacterPickerTouchBarItem(void *id) { return [(NSTextField*)id allowsCharacterPickerTouchBarItem]; } -void NSTextField_inst_setAllowsCharacterPickerTouchBarItem_(void *id, BOOL value) { +void NSTextField_inst_SetAllowsCharacterPickerTouchBarItem(void *id, BOOL value) { [(NSTextField*)id setAllowsCharacterPickerTouchBarItem: value]; } -BOOL NSTextField_inst_isAutomaticTextCompletionEnabled(void *id) { +BOOL NSTextField_inst_IsAutomaticTextCompletionEnabled(void *id) { return [(NSTextField*)id isAutomaticTextCompletionEnabled]; } -void NSTextField_inst_setAutomaticTextCompletionEnabled_(void *id, BOOL value) { +void NSTextField_inst_SetAutomaticTextCompletionEnabled(void *id, BOOL value) { [(NSTextField*)id setAutomaticTextCompletionEnabled: value]; } -void* NSTextField_inst_delegate(void *id) { +void* NSTextField_inst_Delegate(void *id) { return [(NSTextField*)id delegate]; } -void NSTextField_inst_setDelegate_(void *id, void* value) { +void NSTextField_inst_SetDelegate(void *id, void* value) { [(NSTextField*)id setDelegate: value]; } -void* NSTextContainer_inst_initWithSize_(void *id, NSSize size) { +void* NSTextContainer_inst_InitWithSize(void *id, NSSize size) { return [(NSTextContainer*)id initWithSize: size]; } -void NSTextContainer_inst_replaceLayoutManager_(void *id, void* newLayoutManager) { +void NSTextContainer_inst_ReplaceLayoutManager(void *id, void* newLayoutManager) { [(NSTextContainer*)id replaceLayoutManager: newLayoutManager]; } -void* NSTextContainer_inst_init(void *id) { +void* NSTextContainer_inst_Init(void *id) { return [(NSTextContainer*)id init]; } -void* NSTextContainer_inst_layoutManager(void *id) { +void* NSTextContainer_inst_LayoutManager(void *id) { return [(NSTextContainer*)id layoutManager]; } -void NSTextContainer_inst_setLayoutManager_(void *id, void* value) { +void NSTextContainer_inst_SetLayoutManager(void *id, void* value) { [(NSTextContainer*)id setLayoutManager: value]; } -void* NSTextContainer_inst_textView(void *id) { +void* NSTextContainer_inst_TextView(void *id) { return [(NSTextContainer*)id textView]; } -void NSTextContainer_inst_setTextView_(void *id, void* value) { +void NSTextContainer_inst_SetTextView(void *id, void* value) { [(NSTextContainer*)id setTextView: value]; } -NSSize NSTextContainer_inst_size(void *id) { +NSSize NSTextContainer_inst_Size(void *id) { return [(NSTextContainer*)id size]; } -void NSTextContainer_inst_setSize_(void *id, NSSize value) { +void NSTextContainer_inst_SetSize(void *id, NSSize value) { [(NSTextContainer*)id setSize: value]; } -void* NSTextContainer_inst_exclusionPaths(void *id) { +void* NSTextContainer_inst_ExclusionPaths(void *id) { return [(NSTextContainer*)id exclusionPaths]; } -void NSTextContainer_inst_setExclusionPaths_(void *id, void* value) { +void NSTextContainer_inst_SetExclusionPaths(void *id, void* value) { [(NSTextContainer*)id setExclusionPaths: value]; } -BOOL NSTextContainer_inst_widthTracksTextView(void *id) { +BOOL NSTextContainer_inst_WidthTracksTextView(void *id) { return [(NSTextContainer*)id widthTracksTextView]; } -void NSTextContainer_inst_setWidthTracksTextView_(void *id, BOOL value) { +void NSTextContainer_inst_SetWidthTracksTextView(void *id, BOOL value) { [(NSTextContainer*)id setWidthTracksTextView: value]; } -BOOL NSTextContainer_inst_heightTracksTextView(void *id) { +BOOL NSTextContainer_inst_HeightTracksTextView(void *id) { return [(NSTextContainer*)id heightTracksTextView]; } -void NSTextContainer_inst_setHeightTracksTextView_(void *id, BOOL value) { +void NSTextContainer_inst_SetHeightTracksTextView(void *id, BOOL value) { [(NSTextContainer*)id setHeightTracksTextView: value]; } -unsigned long NSTextContainer_inst_maximumNumberOfLines(void *id) { +unsigned long NSTextContainer_inst_MaximumNumberOfLines(void *id) { return [(NSTextContainer*)id maximumNumberOfLines]; } -void NSTextContainer_inst_setMaximumNumberOfLines_(void *id, unsigned long value) { +void NSTextContainer_inst_SetMaximumNumberOfLines(void *id, unsigned long value) { [(NSTextContainer*)id setMaximumNumberOfLines: value]; } -double NSTextContainer_inst_lineFragmentPadding(void *id) { +double NSTextContainer_inst_LineFragmentPadding(void *id) { return [(NSTextContainer*)id lineFragmentPadding]; } -void NSTextContainer_inst_setLineFragmentPadding_(void *id, double value) { +void NSTextContainer_inst_SetLineFragmentPadding(void *id, double value) { [(NSTextContainer*)id setLineFragmentPadding: value]; } -BOOL NSTextContainer_inst_isSimpleRectangularTextContainer(void *id) { +BOOL NSTextContainer_inst_IsSimpleRectangularTextContainer(void *id) { return [(NSTextContainer*)id isSimpleRectangularTextContainer]; } -void NSViewController_inst_loadView(void *id) { +void NSViewController_inst_AddChildViewController(void *id, void* childViewController) { [(NSViewController*)id - loadView]; + addChildViewController: childViewController]; +} + +BOOL NSViewController_inst_CommitEditing(void *id) { + return [(NSViewController*)id + commitEditing]; } -void NSViewController_inst_commitEditingWithDelegate_didCommitSelector_contextInfo_(void *id, void* delegate, void* didCommitSelector, void* contextInfo) { +void NSViewController_inst_CommitEditingWithDelegateDidCommitSelectorContextInfo(void *id, void* delegate, void* didCommitSelector, void* contextInfo) { [(NSViewController*)id commitEditingWithDelegate: delegate didCommitSelector: didCommitSelector contextInfo: contextInfo]; } -BOOL NSViewController_inst_commitEditing(void *id) { - return [(NSViewController*)id - commitEditing]; -} - -void NSViewController_inst_discardEditing(void *id) { +void NSViewController_inst_DiscardEditing(void *id) { [(NSViewController*)id discardEditing]; } -void NSViewController_inst_dismissController_(void *id, void* sender) { +void NSViewController_inst_DismissController(void *id, void* sender) { [(NSViewController*)id dismissController: sender]; } -void NSViewController_inst_viewDidLoad(void *id) { +void NSViewController_inst_DismissViewController(void *id, void* viewController) { [(NSViewController*)id - viewDidLoad]; + dismissViewController: viewController]; } -void NSViewController_inst_viewWillAppear(void *id) { +void NSViewController_inst_InsertChildViewControllerAtIndex(void *id, void* childViewController, long index) { [(NSViewController*)id - viewWillAppear]; + insertChildViewController: childViewController + atIndex: index]; } -void NSViewController_inst_viewDidAppear(void *id) { +void NSViewController_inst_LoadView(void *id) { [(NSViewController*)id - viewDidAppear]; + loadView]; } -void NSViewController_inst_viewWillDisappear(void *id) { +void NSViewController_inst_PreferredContentSizeDidChangeForViewController(void *id, void* viewController) { [(NSViewController*)id - viewWillDisappear]; + preferredContentSizeDidChangeForViewController: viewController]; } -void NSViewController_inst_viewDidDisappear(void *id) { +void NSViewController_inst_PresentViewControllerAnimator(void *id, void* viewController, void* animator) { [(NSViewController*)id - viewDidDisappear]; + presentViewController: viewController + animator: animator]; } -void NSViewController_inst_updateViewConstraints(void *id) { +void NSViewController_inst_PresentViewControllerAsModalWindow(void *id, void* viewController) { [(NSViewController*)id - updateViewConstraints]; + presentViewControllerAsModalWindow: viewController]; } -void NSViewController_inst_viewWillLayout(void *id) { +void NSViewController_inst_PresentViewControllerAsSheet(void *id, void* viewController) { [(NSViewController*)id - viewWillLayout]; + presentViewControllerAsSheet: viewController]; } -void NSViewController_inst_viewDidLayout(void *id) { +void NSViewController_inst_RemoveChildViewControllerAtIndex(void *id, long index) { [(NSViewController*)id - viewDidLayout]; + removeChildViewControllerAtIndex: index]; } -void NSViewController_inst_addChildViewController_(void *id, void* childViewController) { +void NSViewController_inst_RemoveFromParentViewController(void *id) { [(NSViewController*)id - addChildViewController: childViewController]; + removeFromParentViewController]; } -void NSViewController_inst_insertChildViewController_atIndex_(void *id, void* childViewController, long index) { +void NSViewController_inst_UpdateViewConstraints(void *id) { [(NSViewController*)id - insertChildViewController: childViewController - atIndex: index]; + updateViewConstraints]; } -void NSViewController_inst_removeChildViewControllerAtIndex_(void *id, long index) { +void NSViewController_inst_ViewDidAppear(void *id) { [(NSViewController*)id - removeChildViewControllerAtIndex: index]; + viewDidAppear]; } -void NSViewController_inst_removeFromParentViewController(void *id) { +void NSViewController_inst_ViewDidDisappear(void *id) { [(NSViewController*)id - removeFromParentViewController]; + viewDidDisappear]; } -void NSViewController_inst_preferredContentSizeDidChangeForViewController_(void *id, void* viewController) { +void NSViewController_inst_ViewDidLayout(void *id) { [(NSViewController*)id - preferredContentSizeDidChangeForViewController: viewController]; + viewDidLayout]; } -void NSViewController_inst_presentViewController_animator_(void *id, void* viewController, void* animator) { +void NSViewController_inst_ViewDidLoad(void *id) { [(NSViewController*)id - presentViewController: viewController - animator: animator]; + viewDidLoad]; } -void NSViewController_inst_dismissViewController_(void *id, void* viewController) { +void NSViewController_inst_ViewWillAppear(void *id) { [(NSViewController*)id - dismissViewController: viewController]; + viewWillAppear]; } -void NSViewController_inst_presentViewControllerAsModalWindow_(void *id, void* viewController) { +void NSViewController_inst_ViewWillDisappear(void *id) { [(NSViewController*)id - presentViewControllerAsModalWindow: viewController]; + viewWillDisappear]; } -void NSViewController_inst_presentViewControllerAsSheet_(void *id, void* viewController) { +void NSViewController_inst_ViewWillLayout(void *id) { [(NSViewController*)id - presentViewControllerAsSheet: viewController]; + viewWillLayout]; } -void NSViewController_inst_viewWillTransitionToSize_(void *id, NSSize newSize) { +void NSViewController_inst_ViewWillTransitionToSize(void *id, NSSize newSize) { [(NSViewController*)id viewWillTransitionToSize: newSize]; } -void* NSViewController_inst_init(void *id) { +void* NSViewController_inst_Init(void *id) { return [(NSViewController*)id init]; } -void* NSViewController_inst_representedObject(void *id) { +void* NSViewController_inst_RepresentedObject(void *id) { return [(NSViewController*)id representedObject]; } -void NSViewController_inst_setRepresentedObject_(void *id, void* value) { +void NSViewController_inst_SetRepresentedObject(void *id, void* value) { [(NSViewController*)id setRepresentedObject: value]; } -void* NSViewController_inst_nibBundle(void *id) { +void* NSViewController_inst_NibBundle(void *id) { return [(NSViewController*)id nibBundle]; } -void* NSViewController_inst_view(void *id) { +void* NSViewController_inst_View(void *id) { return [(NSViewController*)id view]; } -void NSViewController_inst_setView_(void *id, void* value) { +void NSViewController_inst_SetView(void *id, void* value) { [(NSViewController*)id setView: value]; } -void* NSViewController_inst_title(void *id) { +void* NSViewController_inst_Title(void *id) { return [(NSViewController*)id title]; } -void NSViewController_inst_setTitle_(void *id, void* value) { +void NSViewController_inst_SetTitle(void *id, void* value) { [(NSViewController*)id setTitle: value]; } -BOOL NSViewController_inst_isViewLoaded(void *id) { +BOOL NSViewController_inst_IsViewLoaded(void *id) { return [(NSViewController*)id isViewLoaded]; } -NSSize NSViewController_inst_preferredContentSize(void *id) { +NSSize NSViewController_inst_PreferredContentSize(void *id) { return [(NSViewController*)id preferredContentSize]; } -void NSViewController_inst_setPreferredContentSize_(void *id, NSSize value) { +void NSViewController_inst_SetPreferredContentSize(void *id, NSSize value) { [(NSViewController*)id setPreferredContentSize: value]; } -void* NSViewController_inst_childViewControllers(void *id) { +void* NSViewController_inst_ChildViewControllers(void *id) { return [(NSViewController*)id childViewControllers]; } -void NSViewController_inst_setChildViewControllers_(void *id, void* value) { +void NSViewController_inst_SetChildViewControllers(void *id, void* value) { [(NSViewController*)id setChildViewControllers: value]; } -void* NSViewController_inst_parentViewController(void *id) { +void* NSViewController_inst_ParentViewController(void *id) { return [(NSViewController*)id parentViewController]; } -void* NSViewController_inst_presentedViewControllers(void *id) { +void* NSViewController_inst_PresentedViewControllers(void *id) { return [(NSViewController*)id presentedViewControllers]; } -void* NSViewController_inst_presentingViewController(void *id) { +void* NSViewController_inst_PresentingViewController(void *id) { return [(NSViewController*)id presentingViewController]; } -NSPoint NSViewController_inst_preferredScreenOrigin(void *id) { +NSPoint NSViewController_inst_PreferredScreenOrigin(void *id) { return [(NSViewController*)id preferredScreenOrigin]; } -void NSViewController_inst_setPreferredScreenOrigin_(void *id, NSPoint value) { +void NSViewController_inst_SetPreferredScreenOrigin(void *id, NSPoint value) { [(NSViewController*)id setPreferredScreenOrigin: value]; } -NSSize NSViewController_inst_preferredMaximumSize(void *id) { +NSSize NSViewController_inst_PreferredMaximumSize(void *id) { return [(NSViewController*)id preferredMaximumSize]; } -NSSize NSViewController_inst_preferredMinimumSize(void *id) { +NSSize NSViewController_inst_PreferredMinimumSize(void *id) { return [(NSViewController*)id preferredMinimumSize]; } -void* NSViewController_inst_sourceItemView(void *id) { +void* NSViewController_inst_SourceItemView(void *id) { return [(NSViewController*)id sourceItemView]; } -void NSViewController_inst_setSourceItemView_(void *id, void* value) { +void NSViewController_inst_SetSourceItemView(void *id, void* value) { [(NSViewController*)id setSourceItemView: value]; } -void NSVisualEffectView_inst_viewDidMoveToWindow(void *id) { +void NSVisualEffectView_inst_ViewDidMoveToWindow(void *id) { [(NSVisualEffectView*)id viewDidMoveToWindow]; } -void NSVisualEffectView_inst_viewWillMoveToWindow_(void *id, void* newWindow) { +void NSVisualEffectView_inst_ViewWillMoveToWindow(void *id, void* newWindow) { [(NSVisualEffectView*)id viewWillMoveToWindow: newWindow]; } -void* NSVisualEffectView_inst_init(void *id) { +void* NSVisualEffectView_inst_Init(void *id) { return [(NSVisualEffectView*)id init]; } -BOOL NSVisualEffectView_inst_isEmphasized(void *id) { +BOOL NSVisualEffectView_inst_IsEmphasized(void *id) { return [(NSVisualEffectView*)id isEmphasized]; } -void NSVisualEffectView_inst_setEmphasized_(void *id, BOOL value) { +void NSVisualEffectView_inst_SetEmphasized(void *id, BOOL value) { [(NSVisualEffectView*)id setEmphasized: value]; } -void* NSVisualEffectView_inst_maskImage(void *id) { +void* NSVisualEffectView_inst_MaskImage(void *id) { return [(NSVisualEffectView*)id maskImage]; } -void NSVisualEffectView_inst_setMaskImage_(void *id, void* value) { +void NSVisualEffectView_inst_SetMaskImage(void *id, void* value) { [(NSVisualEffectView*)id setMaskImage: value]; } -void* NSWindow_inst_initWithContentRect_styleMask_backing_defer_(void *id, NSRect contentRect, unsigned long style, unsigned long backingStoreType, BOOL flag) { - return [(NSWindow*)id - initWithContentRect: contentRect - styleMask: style - backing: backingStoreType - defer: flag]; -} - -void* NSWindow_inst_initWithContentRect_styleMask_backing_defer_screen_(void *id, NSRect contentRect, unsigned long style, unsigned long backingStoreType, BOOL flag, void* screen) { - return [(NSWindow*)id - initWithContentRect: contentRect - styleMask: style - backing: backingStoreType - defer: flag - screen: screen]; -} - -void NSWindow_inst_toggleFullScreen_(void *id, void* sender) { +void NSWindow_inst_AddChildWindowOrdered(void *id, void* childWin, unsigned long place) { [(NSWindow*)id - toggleFullScreen: sender]; + addChildWindow: childWin + ordered: place]; } -void NSWindow_inst_setDynamicDepthLimit_(void *id, BOOL flag) { +void NSWindow_inst_AddTabbedWindowOrdered(void *id, void* window, unsigned long ordered) { [(NSWindow*)id - setDynamicDepthLimit: flag]; + addTabbedWindow: window + ordered: ordered]; } -void NSWindow_inst_invalidateShadow(void *id) { +void NSWindow_inst_BecomeKeyWindow(void *id) { [(NSWindow*)id - invalidateShadow]; + becomeKeyWindow]; } -NSRect NSWindow_inst_contentRectForFrameRect_(void *id, NSRect frameRect) { - return [(NSWindow*)id - contentRectForFrameRect: frameRect]; +void NSWindow_inst_BecomeMainWindow(void *id) { + [(NSWindow*)id + becomeMainWindow]; } -NSRect NSWindow_inst_frameRectForContentRect_(void *id, NSRect contentRect) { +NSPoint NSWindow_inst_CascadeTopLeftFromPoint(void *id, NSPoint topLeftPoint) { return [(NSWindow*)id - frameRectForContentRect: contentRect]; -} - -void NSWindow_inst_endSheet_(void *id, void* sheetWindow) { - [(NSWindow*)id - endSheet: sheetWindow]; + cascadeTopLeftFromPoint: topLeftPoint]; } -void NSWindow_inst_setFrameOrigin_(void *id, NSPoint point) { +void NSWindow_inst_Center(void *id) { [(NSWindow*)id - setFrameOrigin: point]; + center]; } -void NSWindow_inst_setFrameTopLeftPoint_(void *id, NSPoint point) { +void NSWindow_inst_Close(void *id) { [(NSWindow*)id - setFrameTopLeftPoint: point]; + close]; } -NSRect NSWindow_inst_constrainFrameRect_toScreen_(void *id, NSRect frameRect, void* screen) { +NSRect NSWindow_inst_ConstrainFrameRectToScreen(void *id, NSRect frameRect, void* screen) { return [(NSWindow*)id constrainFrameRect: frameRect toScreen: screen]; } -NSPoint NSWindow_inst_cascadeTopLeftFromPoint_(void *id, NSPoint topLeftPoint) { +NSRect NSWindow_inst_ContentRectForFrameRect(void *id, NSRect frameRect) { return [(NSWindow*)id - cascadeTopLeftFromPoint: topLeftPoint]; + contentRectForFrameRect: frameRect]; } -void NSWindow_inst_setFrame_display_(void *id, NSRect frameRect, BOOL flag) { - [(NSWindow*)id - setFrame: frameRect - display: flag]; +NSPoint NSWindow_inst_ConvertPointFromBacking(void *id, NSPoint point) { + return [(NSWindow*)id + convertPointFromBacking: point]; } -void NSWindow_inst_setFrame_display_animate_(void *id, NSRect frameRect, BOOL displayFlag, BOOL animateFlag) { - [(NSWindow*)id - setFrame: frameRect - display: displayFlag - animate: animateFlag]; +NSPoint NSWindow_inst_ConvertPointFromScreen(void *id, NSPoint point) { + return [(NSWindow*)id + convertPointFromScreen: point]; } -void NSWindow_inst_performZoom_(void *id, void* sender) { - [(NSWindow*)id - performZoom: sender]; +NSPoint NSWindow_inst_ConvertPointToBacking(void *id, NSPoint point) { + return [(NSWindow*)id + convertPointToBacking: point]; } -void NSWindow_inst_zoom_(void *id, void* sender) { - [(NSWindow*)id - zoom: sender]; +NSPoint NSWindow_inst_ConvertPointToScreen(void *id, NSPoint point) { + return [(NSWindow*)id + convertPointToScreen: point]; } -void NSWindow_inst_setContentSize_(void *id, NSSize size) { - [(NSWindow*)id - setContentSize: size]; +NSRect NSWindow_inst_ConvertRectFromBacking(void *id, NSRect rect) { + return [(NSWindow*)id + convertRectFromBacking: rect]; } -void NSWindow_inst_orderOut_(void *id, void* sender) { - [(NSWindow*)id - orderOut: sender]; +NSRect NSWindow_inst_ConvertRectFromScreen(void *id, NSRect rect) { + return [(NSWindow*)id + convertRectFromScreen: rect]; } -void NSWindow_inst_orderBack_(void *id, void* sender) { - [(NSWindow*)id - orderBack: sender]; +NSRect NSWindow_inst_ConvertRectToBacking(void *id, NSRect rect) { + return [(NSWindow*)id + convertRectToBacking: rect]; } -void NSWindow_inst_orderFront_(void *id, void* sender) { - [(NSWindow*)id - orderFront: sender]; +NSRect NSWindow_inst_ConvertRectToScreen(void *id, NSRect rect) { + return [(NSWindow*)id + convertRectToScreen: rect]; } -void NSWindow_inst_orderFrontRegardless(void *id) { - [(NSWindow*)id - orderFrontRegardless]; +void* NSWindow_inst_DataWithEPSInsideRect(void *id, NSRect rect) { + return [(NSWindow*)id + dataWithEPSInsideRect: rect]; } -void NSWindow_inst_orderWindow_relativeTo_(void *id, unsigned long place, long otherWin) { +void* NSWindow_inst_DataWithPDFInsideRect(void *id, NSRect rect) { + return [(NSWindow*)id + dataWithPDFInsideRect: rect]; +} + +void NSWindow_inst_Deminiaturize(void *id, void* sender) { [(NSWindow*)id - orderWindow: place - relativeTo: otherWin]; + deminiaturize: sender]; } -void NSWindow_inst_makeKeyWindow(void *id) { +void NSWindow_inst_DisableCursorRects(void *id) { [(NSWindow*)id - makeKeyWindow]; + disableCursorRects]; } -void NSWindow_inst_makeKeyAndOrderFront_(void *id, void* sender) { +void NSWindow_inst_DisableKeyEquivalentForDefaultButtonCell(void *id) { [(NSWindow*)id - makeKeyAndOrderFront: sender]; + disableKeyEquivalentForDefaultButtonCell]; } -void NSWindow_inst_becomeKeyWindow(void *id) { +void NSWindow_inst_DisableScreenUpdatesUntilFlush(void *id) { [(NSWindow*)id - becomeKeyWindow]; + disableScreenUpdatesUntilFlush]; } -void NSWindow_inst_resignKeyWindow(void *id) { +void NSWindow_inst_DisableSnapshotRestoration(void *id) { [(NSWindow*)id - resignKeyWindow]; + disableSnapshotRestoration]; } -void NSWindow_inst_makeMainWindow(void *id) { +void NSWindow_inst_DiscardCursorRects(void *id) { [(NSWindow*)id - makeMainWindow]; + discardCursorRects]; } -void NSWindow_inst_becomeMainWindow(void *id) { +void NSWindow_inst_Display(void *id) { [(NSWindow*)id - becomeMainWindow]; + display]; } -void NSWindow_inst_resignMainWindow(void *id) { +void NSWindow_inst_DisplayIfNeeded(void *id) { [(NSWindow*)id - resignMainWindow]; + displayIfNeeded]; } -void NSWindow_inst_toggleToolbarShown_(void *id, void* sender) { +void NSWindow_inst_DragImageAtOffsetEventPasteboardSourceSlideBack(void *id, void* image, NSPoint baseLocation, NSSize initialOffset, void* event, void* pboard, void* sourceObj, BOOL slideFlag) { [(NSWindow*)id - toggleToolbarShown: sender]; + dragImage: image + at: baseLocation + offset: initialOffset + event: event + pasteboard: pboard + source: sourceObj + slideBack: slideFlag]; } -void NSWindow_inst_runToolbarCustomizationPalette_(void *id, void* sender) { +void NSWindow_inst_EnableCursorRects(void *id) { [(NSWindow*)id - runToolbarCustomizationPalette: sender]; + enableCursorRects]; } -void NSWindow_inst_addChildWindow_ordered_(void *id, void* childWin, unsigned long place) { +void NSWindow_inst_EnableKeyEquivalentForDefaultButtonCell(void *id) { [(NSWindow*)id - addChildWindow: childWin - ordered: place]; + enableKeyEquivalentForDefaultButtonCell]; } -void NSWindow_inst_removeChildWindow_(void *id, void* childWin) { +void NSWindow_inst_EnableSnapshotRestoration(void *id) { [(NSWindow*)id - removeChildWindow: childWin]; + enableSnapshotRestoration]; } -void NSWindow_inst_enableKeyEquivalentForDefaultButtonCell(void *id) { +void NSWindow_inst_EndEditingFor(void *id, void* object) { [(NSWindow*)id - enableKeyEquivalentForDefaultButtonCell]; + endEditingFor: object]; } -void NSWindow_inst_disableKeyEquivalentForDefaultButtonCell(void *id) { +void NSWindow_inst_EndSheet(void *id, void* sheetWindow) { [(NSWindow*)id - disableKeyEquivalentForDefaultButtonCell]; + endSheet: sheetWindow]; } -void* NSWindow_inst_fieldEditor_forObject_(void *id, BOOL createFlag, void* object) { +void* NSWindow_inst_FieldEditorForObject(void *id, BOOL createFlag, void* object) { return [(NSWindow*)id fieldEditor: createFlag forObject: object]; } -void NSWindow_inst_endEditingFor_(void *id, void* object) { - [(NSWindow*)id - endEditingFor: object]; +NSRect NSWindow_inst_FrameRectForContentRect(void *id, NSRect contentRect) { + return [(NSWindow*)id + frameRectForContentRect: contentRect]; } -void NSWindow_inst_enableCursorRects(void *id) { - [(NSWindow*)id - enableCursorRects]; +void* NSWindow_inst_InitWithContentRectStyleMaskBackingDefer(void *id, NSRect contentRect, unsigned long style, unsigned long backingStoreType, BOOL flag) { + return [(NSWindow*)id + initWithContentRect: contentRect + styleMask: style + backing: backingStoreType + defer: flag]; +} + +void* NSWindow_inst_InitWithContentRectStyleMaskBackingDeferScreen(void *id, NSRect contentRect, unsigned long style, unsigned long backingStoreType, BOOL flag, void* screen) { + return [(NSWindow*)id + initWithContentRect: contentRect + styleMask: style + backing: backingStoreType + defer: flag + screen: screen]; } -void NSWindow_inst_disableCursorRects(void *id) { +void NSWindow_inst_InvalidateCursorRectsForView(void *id, void* view) { [(NSWindow*)id - disableCursorRects]; + invalidateCursorRectsForView: view]; } -void NSWindow_inst_discardCursorRects(void *id) { +void NSWindow_inst_InvalidateShadow(void *id) { [(NSWindow*)id - discardCursorRects]; + invalidateShadow]; } -void NSWindow_inst_invalidateCursorRectsForView_(void *id, void* view) { +void NSWindow_inst_LayoutIfNeeded(void *id) { [(NSWindow*)id - invalidateCursorRectsForView: view]; + layoutIfNeeded]; } -void NSWindow_inst_resetCursorRects(void *id) { +void NSWindow_inst_MakeKeyAndOrderFront(void *id, void* sender) { [(NSWindow*)id - resetCursorRects]; + makeKeyAndOrderFront: sender]; } -void NSWindow_inst_removeTitlebarAccessoryViewControllerAtIndex_(void *id, long index) { +void NSWindow_inst_MakeKeyWindow(void *id) { [(NSWindow*)id - removeTitlebarAccessoryViewControllerAtIndex: index]; + makeKeyWindow]; } -void NSWindow_inst_addTabbedWindow_ordered_(void *id, void* window, unsigned long ordered) { +void NSWindow_inst_MakeMainWindow(void *id) { [(NSWindow*)id - addTabbedWindow: window - ordered: ordered]; + makeMainWindow]; } -void NSWindow_inst_mergeAllWindows_(void *id, void* sender) { +void NSWindow_inst_MergeAllWindows(void *id, void* sender) { [(NSWindow*)id mergeAllWindows: sender]; } -void NSWindow_inst_selectNextTab_(void *id, void* sender) { +void NSWindow_inst_Miniaturize(void *id, void* sender) { [(NSWindow*)id - selectNextTab: sender]; + miniaturize: sender]; } -void NSWindow_inst_selectPreviousTab_(void *id, void* sender) { +void NSWindow_inst_MoveTabToNewWindow(void *id, void* sender) { [(NSWindow*)id - selectPreviousTab: sender]; + moveTabToNewWindow: sender]; } -void NSWindow_inst_moveTabToNewWindow_(void *id, void* sender) { +void NSWindow_inst_OrderBack(void *id, void* sender) { [(NSWindow*)id - moveTabToNewWindow: sender]; + orderBack: sender]; } -void NSWindow_inst_toggleTabBar_(void *id, void* sender) { +void NSWindow_inst_OrderFront(void *id, void* sender) { [(NSWindow*)id - toggleTabBar: sender]; + orderFront: sender]; } -void NSWindow_inst_toggleTabOverview_(void *id, void* sender) { +void NSWindow_inst_OrderFrontRegardless(void *id) { [(NSWindow*)id - toggleTabOverview: sender]; + orderFrontRegardless]; } -void NSWindow_inst_postEvent_atStart_(void *id, void* event, BOOL flag) { +void NSWindow_inst_OrderOut(void *id, void* sender) { [(NSWindow*)id - postEvent: event - atStart: flag]; + orderOut: sender]; } -void NSWindow_inst_sendEvent_(void *id, void* event) { +void NSWindow_inst_OrderWindowRelativeTo(void *id, unsigned long place, long otherWin) { [(NSWindow*)id - sendEvent: event]; + orderWindow: place + relativeTo: otherWin]; } -BOOL NSWindow_inst_tryToPerform_with_(void *id, void* action, void* object) { - return [(NSWindow*)id - tryToPerform: action - with: object]; +void NSWindow_inst_PerformClose(void *id, void* sender) { + [(NSWindow*)id + performClose: sender]; } -void NSWindow_inst_selectKeyViewPrecedingView_(void *id, void* view) { +void NSWindow_inst_PerformMiniaturize(void *id, void* sender) { [(NSWindow*)id - selectKeyViewPrecedingView: view]; + performMiniaturize: sender]; } -void NSWindow_inst_selectKeyViewFollowingView_(void *id, void* view) { +void NSWindow_inst_PerformWindowDragWithEvent(void *id, void* event) { [(NSWindow*)id - selectKeyViewFollowingView: view]; + performWindowDragWithEvent: event]; } -void NSWindow_inst_selectPreviousKeyView_(void *id, void* sender) { +void NSWindow_inst_PerformZoom(void *id, void* sender) { [(NSWindow*)id - selectPreviousKeyView: sender]; + performZoom: sender]; } -void NSWindow_inst_selectNextKeyView_(void *id, void* sender) { +void NSWindow_inst_PostEventAtStart(void *id, void* event, BOOL flag) { [(NSWindow*)id - selectNextKeyView: sender]; + postEvent: event + atStart: flag]; } -void NSWindow_inst_recalculateKeyViewLoop(void *id) { +void NSWindow_inst_Print(void *id, void* sender) { [(NSWindow*)id - recalculateKeyViewLoop]; + print: sender]; } -void NSWindow_inst_performWindowDragWithEvent_(void *id, void* event) { +void NSWindow_inst_RecalculateKeyViewLoop(void *id) { [(NSWindow*)id - performWindowDragWithEvent: event]; + recalculateKeyViewLoop]; } -void NSWindow_inst_disableSnapshotRestoration(void *id) { +void NSWindow_inst_RegisterForDraggedTypes(void *id, void* newTypes) { [(NSWindow*)id - disableSnapshotRestoration]; + registerForDraggedTypes: newTypes]; } -void NSWindow_inst_enableSnapshotRestoration(void *id) { +void NSWindow_inst_RemoveChildWindow(void *id, void* childWin) { [(NSWindow*)id - enableSnapshotRestoration]; + removeChildWindow: childWin]; } -void NSWindow_inst_display(void *id) { +void NSWindow_inst_RemoveTitlebarAccessoryViewControllerAtIndex(void *id, long index) { [(NSWindow*)id - display]; + removeTitlebarAccessoryViewControllerAtIndex: index]; } -void NSWindow_inst_displayIfNeeded(void *id) { +void NSWindow_inst_ResetCursorRects(void *id) { [(NSWindow*)id - displayIfNeeded]; + resetCursorRects]; } -void NSWindow_inst_disableScreenUpdatesUntilFlush(void *id) { +void NSWindow_inst_ResignKeyWindow(void *id) { [(NSWindow*)id - disableScreenUpdatesUntilFlush]; + resignKeyWindow]; } -void NSWindow_inst_update(void *id) { +void NSWindow_inst_ResignMainWindow(void *id) { [(NSWindow*)id - update]; + resignMainWindow]; } -void NSWindow_inst_dragImage_at_offset_event_pasteboard_source_slideBack_(void *id, void* image, NSPoint baseLocation, NSSize initialOffset, void* event, void* pboard, void* sourceObj, BOOL slideFlag) { +void NSWindow_inst_RunToolbarCustomizationPalette(void *id, void* sender) { [(NSWindow*)id - dragImage: image - at: baseLocation - offset: initialOffset - event: event - pasteboard: pboard - source: sourceObj - slideBack: slideFlag]; + runToolbarCustomizationPalette: sender]; } -void NSWindow_inst_registerForDraggedTypes_(void *id, void* newTypes) { +void NSWindow_inst_SelectKeyViewFollowingView(void *id, void* view) { [(NSWindow*)id - registerForDraggedTypes: newTypes]; + selectKeyViewFollowingView: view]; } -void NSWindow_inst_unregisterDraggedTypes(void *id) { +void NSWindow_inst_SelectKeyViewPrecedingView(void *id, void* view) { [(NSWindow*)id - unregisterDraggedTypes]; + selectKeyViewPrecedingView: view]; } -NSRect NSWindow_inst_convertRectFromBacking_(void *id, NSRect rect) { - return [(NSWindow*)id - convertRectFromBacking: rect]; +void NSWindow_inst_SelectNextKeyView(void *id, void* sender) { + [(NSWindow*)id + selectNextKeyView: sender]; } -NSRect NSWindow_inst_convertRectFromScreen_(void *id, NSRect rect) { - return [(NSWindow*)id - convertRectFromScreen: rect]; +void NSWindow_inst_SelectNextTab(void *id, void* sender) { + [(NSWindow*)id + selectNextTab: sender]; } -NSPoint NSWindow_inst_convertPointFromBacking_(void *id, NSPoint point) { - return [(NSWindow*)id - convertPointFromBacking: point]; +void NSWindow_inst_SelectPreviousKeyView(void *id, void* sender) { + [(NSWindow*)id + selectPreviousKeyView: sender]; } -NSPoint NSWindow_inst_convertPointFromScreen_(void *id, NSPoint point) { - return [(NSWindow*)id - convertPointFromScreen: point]; +void NSWindow_inst_SelectPreviousTab(void *id, void* sender) { + [(NSWindow*)id + selectPreviousTab: sender]; } -NSRect NSWindow_inst_convertRectToBacking_(void *id, NSRect rect) { - return [(NSWindow*)id - convertRectToBacking: rect]; +void NSWindow_inst_SendEvent(void *id, void* event) { + [(NSWindow*)id + sendEvent: event]; } -NSRect NSWindow_inst_convertRectToScreen_(void *id, NSRect rect) { - return [(NSWindow*)id - convertRectToScreen: rect]; +void NSWindow_inst_SetContentSize(void *id, NSSize size) { + [(NSWindow*)id + setContentSize: size]; } -NSPoint NSWindow_inst_convertPointToBacking_(void *id, NSPoint point) { - return [(NSWindow*)id - convertPointToBacking: point]; +void NSWindow_inst_SetDynamicDepthLimit(void *id, BOOL flag) { + [(NSWindow*)id + setDynamicDepthLimit: flag]; } -NSPoint NSWindow_inst_convertPointToScreen_(void *id, NSPoint point) { - return [(NSWindow*)id - convertPointToScreen: point]; +void NSWindow_inst_SetFrameDisplay(void *id, NSRect frameRect, BOOL flag) { + [(NSWindow*)id + setFrame: frameRect + display: flag]; } -void NSWindow_inst_setTitleWithRepresentedFilename_(void *id, void* filename) { +void NSWindow_inst_SetFrameDisplayAnimate(void *id, NSRect frameRect, BOOL displayFlag, BOOL animateFlag) { [(NSWindow*)id - setTitleWithRepresentedFilename: filename]; + setFrame: frameRect + display: displayFlag + animate: animateFlag]; } -void NSWindow_inst_center(void *id) { +void NSWindow_inst_SetFrameOrigin(void *id, NSPoint point) { [(NSWindow*)id - center]; + setFrameOrigin: point]; } -void NSWindow_inst_performClose_(void *id, void* sender) { +void NSWindow_inst_SetFrameTopLeftPoint(void *id, NSPoint point) { [(NSWindow*)id - performClose: sender]; + setFrameTopLeftPoint: point]; } -void NSWindow_inst_close(void *id) { +void NSWindow_inst_SetIsMiniaturized(void *id, BOOL flag) { [(NSWindow*)id - close]; + setIsMiniaturized: flag]; } -void NSWindow_inst_performMiniaturize_(void *id, void* sender) { +void NSWindow_inst_SetIsVisible(void *id, BOOL flag) { [(NSWindow*)id - performMiniaturize: sender]; + setIsVisible: flag]; } -void NSWindow_inst_miniaturize_(void *id, void* sender) { +void NSWindow_inst_SetIsZoomed(void *id, BOOL flag) { [(NSWindow*)id - miniaturize: sender]; + setIsZoomed: flag]; } -void NSWindow_inst_deminiaturize_(void *id, void* sender) { +void NSWindow_inst_SetTitleWithRepresentedFilename(void *id, void* filename) { [(NSWindow*)id - deminiaturize: sender]; + setTitleWithRepresentedFilename: filename]; } -void NSWindow_inst_print_(void *id, void* sender) { +void NSWindow_inst_ToggleFullScreen(void *id, void* sender) { [(NSWindow*)id - print: sender]; + toggleFullScreen: sender]; } -void* NSWindow_inst_dataWithEPSInsideRect_(void *id, NSRect rect) { - return [(NSWindow*)id - dataWithEPSInsideRect: rect]; +void NSWindow_inst_ToggleTabBar(void *id, void* sender) { + [(NSWindow*)id + toggleTabBar: sender]; } -void* NSWindow_inst_dataWithPDFInsideRect_(void *id, NSRect rect) { - return [(NSWindow*)id - dataWithPDFInsideRect: rect]; +void NSWindow_inst_ToggleTabOverview(void *id, void* sender) { + [(NSWindow*)id + toggleTabOverview: sender]; } -void NSWindow_inst_updateConstraintsIfNeeded(void *id) { +void NSWindow_inst_ToggleToolbarShown(void *id, void* sender) { [(NSWindow*)id - updateConstraintsIfNeeded]; + toggleToolbarShown: sender]; +} + +BOOL NSWindow_inst_TryToPerformWith(void *id, void* action, void* object) { + return [(NSWindow*)id + tryToPerform: action + with: object]; } -void NSWindow_inst_layoutIfNeeded(void *id) { +void NSWindow_inst_UnregisterDraggedTypes(void *id) { [(NSWindow*)id - layoutIfNeeded]; + unregisterDraggedTypes]; } -void NSWindow_inst_visualizeConstraints_(void *id, void* constraints) { +void NSWindow_inst_Update(void *id) { [(NSWindow*)id - visualizeConstraints: constraints]; + update]; } -void NSWindow_inst_setIsMiniaturized_(void *id, BOOL flag) { +void NSWindow_inst_UpdateConstraintsIfNeeded(void *id) { [(NSWindow*)id - setIsMiniaturized: flag]; + updateConstraintsIfNeeded]; } -void NSWindow_inst_setIsVisible_(void *id, BOOL flag) { +void NSWindow_inst_VisualizeConstraints(void *id, void* constraints) { [(NSWindow*)id - setIsVisible: flag]; + visualizeConstraints: constraints]; } -void NSWindow_inst_setIsZoomed_(void *id, BOOL flag) { +void NSWindow_inst_Zoom(void *id, void* sender) { [(NSWindow*)id - setIsZoomed: flag]; + zoom: sender]; } -void* NSWindow_inst_init(void *id) { +void* NSWindow_inst_Init(void *id) { return [(NSWindow*)id init]; } -void* NSWindow_inst_delegate(void *id) { +void* NSWindow_inst_Delegate(void *id) { return [(NSWindow*)id delegate]; } -void NSWindow_inst_setDelegate_(void *id, void* value) { +void NSWindow_inst_SetDelegate(void *id, void* value) { [(NSWindow*)id setDelegate: value]; } -void* NSWindow_inst_contentViewController(void *id) { +void* NSWindow_inst_ContentViewController(void *id) { return [(NSWindow*)id contentViewController]; } -void NSWindow_inst_setContentViewController_(void *id, void* value) { +void NSWindow_inst_SetContentViewController(void *id, void* value) { [(NSWindow*)id setContentViewController: value]; } -void* NSWindow_inst_contentView(void *id) { +void* NSWindow_inst_ContentView(void *id) { return [(NSWindow*)id contentView]; } -void NSWindow_inst_setContentView_(void *id, void* value) { +void NSWindow_inst_SetContentView(void *id, void* value) { [(NSWindow*)id setContentView: value]; } -unsigned long NSWindow_inst_styleMask(void *id) { +unsigned long NSWindow_inst_StyleMask(void *id) { return [(NSWindow*)id styleMask]; } -void NSWindow_inst_setStyleMask_(void *id, unsigned long value) { +void NSWindow_inst_SetStyleMask(void *id, unsigned long value) { [(NSWindow*)id setStyleMask: value]; } -BOOL NSWindow_inst_worksWhenModal(void *id) { +BOOL NSWindow_inst_WorksWhenModal(void *id) { return [(NSWindow*)id worksWhenModal]; } -double NSWindow_inst_alphaValue(void *id) { +double NSWindow_inst_AlphaValue(void *id) { return [(NSWindow*)id alphaValue]; } -void NSWindow_inst_setAlphaValue_(void *id, double value) { +void NSWindow_inst_SetAlphaValue(void *id, double value) { [(NSWindow*)id setAlphaValue: value]; } -void* NSWindow_inst_backgroundColor(void *id) { +void* NSWindow_inst_BackgroundColor(void *id) { return [(NSWindow*)id backgroundColor]; } -void NSWindow_inst_setBackgroundColor_(void *id, void* value) { +void NSWindow_inst_SetBackgroundColor(void *id, void* value) { [(NSWindow*)id setBackgroundColor: value]; } -BOOL NSWindow_inst_canHide(void *id) { +BOOL NSWindow_inst_CanHide(void *id) { return [(NSWindow*)id canHide]; } -void NSWindow_inst_setCanHide_(void *id, BOOL value) { +void NSWindow_inst_SetCanHide(void *id, BOOL value) { [(NSWindow*)id setCanHide: value]; } -BOOL NSWindow_inst_isOnActiveSpace(void *id) { +BOOL NSWindow_inst_IsOnActiveSpace(void *id) { return [(NSWindow*)id isOnActiveSpace]; } -BOOL NSWindow_inst_hidesOnDeactivate(void *id) { +BOOL NSWindow_inst_HidesOnDeactivate(void *id) { return [(NSWindow*)id hidesOnDeactivate]; } -void NSWindow_inst_setHidesOnDeactivate_(void *id, BOOL value) { +void NSWindow_inst_SetHidesOnDeactivate(void *id, BOOL value) { [(NSWindow*)id setHidesOnDeactivate: value]; } -unsigned long NSWindow_inst_collectionBehavior(void *id) { +unsigned long NSWindow_inst_CollectionBehavior(void *id) { return [(NSWindow*)id collectionBehavior]; } -void NSWindow_inst_setCollectionBehavior_(void *id, unsigned long value) { +void NSWindow_inst_SetCollectionBehavior(void *id, unsigned long value) { [(NSWindow*)id setCollectionBehavior: value]; } -BOOL NSWindow_inst_isOpaque(void *id) { +BOOL NSWindow_inst_IsOpaque(void *id) { return [(NSWindow*)id isOpaque]; } -void NSWindow_inst_setOpaque_(void *id, BOOL value) { +void NSWindow_inst_SetOpaque(void *id, BOOL value) { [(NSWindow*)id setOpaque: value]; } -BOOL NSWindow_inst_hasShadow(void *id) { +BOOL NSWindow_inst_HasShadow(void *id) { return [(NSWindow*)id hasShadow]; } -void NSWindow_inst_setHasShadow_(void *id, BOOL value) { +void NSWindow_inst_SetHasShadow(void *id, BOOL value) { [(NSWindow*)id setHasShadow: value]; } -BOOL NSWindow_inst_preventsApplicationTerminationWhenModal(void *id) { +BOOL NSWindow_inst_PreventsApplicationTerminationWhenModal(void *id) { return [(NSWindow*)id preventsApplicationTerminationWhenModal]; } -void NSWindow_inst_setPreventsApplicationTerminationWhenModal_(void *id, BOOL value) { +void NSWindow_inst_SetPreventsApplicationTerminationWhenModal(void *id, BOOL value) { [(NSWindow*)id setPreventsApplicationTerminationWhenModal: value]; } -BOOL NSWindow_inst_hasDynamicDepthLimit(void *id) { +BOOL NSWindow_inst_HasDynamicDepthLimit(void *id) { return [(NSWindow*)id hasDynamicDepthLimit]; } -long NSWindow_inst_windowNumber(void *id) { +long NSWindow_inst_WindowNumber(void *id) { return [(NSWindow*)id windowNumber]; } -void* NSWindow_inst_deviceDescription(void *id) { +void* NSWindow_inst_DeviceDescription(void *id) { return [(NSWindow*)id deviceDescription]; } -BOOL NSWindow_inst_canBecomeVisibleWithoutLogin(void *id) { +BOOL NSWindow_inst_CanBecomeVisibleWithoutLogin(void *id) { return [(NSWindow*)id canBecomeVisibleWithoutLogin]; } -void NSWindow_inst_setCanBecomeVisibleWithoutLogin_(void *id, BOOL value) { +void NSWindow_inst_SetCanBecomeVisibleWithoutLogin(void *id, BOOL value) { [(NSWindow*)id setCanBecomeVisibleWithoutLogin: value]; } -unsigned long NSWindow_inst_backingType(void *id) { +unsigned long NSWindow_inst_BackingType(void *id) { return [(NSWindow*)id backingType]; } -void NSWindow_inst_setBackingType_(void *id, unsigned long value) { +void NSWindow_inst_SetBackingType(void *id, unsigned long value) { [(NSWindow*)id setBackingType: value]; } -void* NSWindow_inst_attachedSheet(void *id) { +void* NSWindow_inst_AttachedSheet(void *id) { return [(NSWindow*)id attachedSheet]; } -BOOL NSWindow_inst_isSheet(void *id) { +BOOL NSWindow_inst_IsSheet(void *id) { return [(NSWindow*)id isSheet]; } -void* NSWindow_inst_sheetParent(void *id) { +void* NSWindow_inst_SheetParent(void *id) { return [(NSWindow*)id sheetParent]; } -void* NSWindow_inst_sheets(void *id) { +void* NSWindow_inst_Sheets(void *id) { return [(NSWindow*)id sheets]; } -NSRect NSWindow_inst_frame(void *id) { +NSRect NSWindow_inst_Frame(void *id) { return [(NSWindow*)id frame]; } -NSSize NSWindow_inst_aspectRatio(void *id) { +NSSize NSWindow_inst_AspectRatio(void *id) { return [(NSWindow*)id aspectRatio]; } -void NSWindow_inst_setAspectRatio_(void *id, NSSize value) { +void NSWindow_inst_SetAspectRatio(void *id, NSSize value) { [(NSWindow*)id setAspectRatio: value]; } -NSSize NSWindow_inst_minSize(void *id) { +NSSize NSWindow_inst_MinSize(void *id) { return [(NSWindow*)id minSize]; } -void NSWindow_inst_setMinSize_(void *id, NSSize value) { +void NSWindow_inst_SetMinSize(void *id, NSSize value) { [(NSWindow*)id setMinSize: value]; } -NSSize NSWindow_inst_maxSize(void *id) { +NSSize NSWindow_inst_MaxSize(void *id) { return [(NSWindow*)id maxSize]; } -void NSWindow_inst_setMaxSize_(void *id, NSSize value) { +void NSWindow_inst_SetMaxSize(void *id, NSSize value) { [(NSWindow*)id setMaxSize: value]; } -BOOL NSWindow_inst_isZoomed(void *id) { +BOOL NSWindow_inst_IsZoomed(void *id) { return [(NSWindow*)id isZoomed]; } -NSSize NSWindow_inst_resizeIncrements(void *id) { +NSSize NSWindow_inst_ResizeIncrements(void *id) { return [(NSWindow*)id resizeIncrements]; } -void NSWindow_inst_setResizeIncrements_(void *id, NSSize value) { +void NSWindow_inst_SetResizeIncrements(void *id, NSSize value) { [(NSWindow*)id setResizeIncrements: value]; } -BOOL NSWindow_inst_preservesContentDuringLiveResize(void *id) { +BOOL NSWindow_inst_PreservesContentDuringLiveResize(void *id) { return [(NSWindow*)id preservesContentDuringLiveResize]; } -void NSWindow_inst_setPreservesContentDuringLiveResize_(void *id, BOOL value) { +void NSWindow_inst_SetPreservesContentDuringLiveResize(void *id, BOOL value) { [(NSWindow*)id setPreservesContentDuringLiveResize: value]; } -BOOL NSWindow_inst_inLiveResize(void *id) { +BOOL NSWindow_inst_InLiveResize(void *id) { return [(NSWindow*)id inLiveResize]; } -NSSize NSWindow_inst_contentAspectRatio(void *id) { +NSSize NSWindow_inst_ContentAspectRatio(void *id) { return [(NSWindow*)id contentAspectRatio]; } -void NSWindow_inst_setContentAspectRatio_(void *id, NSSize value) { +void NSWindow_inst_SetContentAspectRatio(void *id, NSSize value) { [(NSWindow*)id setContentAspectRatio: value]; } -NSSize NSWindow_inst_contentMinSize(void *id) { +NSSize NSWindow_inst_ContentMinSize(void *id) { return [(NSWindow*)id contentMinSize]; } -void NSWindow_inst_setContentMinSize_(void *id, NSSize value) { +void NSWindow_inst_SetContentMinSize(void *id, NSSize value) { [(NSWindow*)id setContentMinSize: value]; } -NSSize NSWindow_inst_contentMaxSize(void *id) { +NSSize NSWindow_inst_ContentMaxSize(void *id) { return [(NSWindow*)id contentMaxSize]; } -void NSWindow_inst_setContentMaxSize_(void *id, NSSize value) { +void NSWindow_inst_SetContentMaxSize(void *id, NSSize value) { [(NSWindow*)id setContentMaxSize: value]; } -NSSize NSWindow_inst_contentResizeIncrements(void *id) { +NSSize NSWindow_inst_ContentResizeIncrements(void *id) { return [(NSWindow*)id contentResizeIncrements]; } -void NSWindow_inst_setContentResizeIncrements_(void *id, NSSize value) { +void NSWindow_inst_SetContentResizeIncrements(void *id, NSSize value) { [(NSWindow*)id setContentResizeIncrements: value]; } -void* NSWindow_inst_contentLayoutGuide(void *id) { +void* NSWindow_inst_ContentLayoutGuide(void *id) { return [(NSWindow*)id contentLayoutGuide]; } -NSRect NSWindow_inst_contentLayoutRect(void *id) { +NSRect NSWindow_inst_ContentLayoutRect(void *id) { return [(NSWindow*)id contentLayoutRect]; } -NSSize NSWindow_inst_maxFullScreenContentSize(void *id) { +NSSize NSWindow_inst_MaxFullScreenContentSize(void *id) { return [(NSWindow*)id maxFullScreenContentSize]; } -void NSWindow_inst_setMaxFullScreenContentSize_(void *id, NSSize value) { +void NSWindow_inst_SetMaxFullScreenContentSize(void *id, NSSize value) { [(NSWindow*)id setMaxFullScreenContentSize: value]; } -NSSize NSWindow_inst_minFullScreenContentSize(void *id) { +NSSize NSWindow_inst_MinFullScreenContentSize(void *id) { return [(NSWindow*)id minFullScreenContentSize]; } -void NSWindow_inst_setMinFullScreenContentSize_(void *id, NSSize value) { +void NSWindow_inst_SetMinFullScreenContentSize(void *id, NSSize value) { [(NSWindow*)id setMinFullScreenContentSize: value]; } -long NSWindow_inst_level(void *id) { +long NSWindow_inst_Level(void *id) { return [(NSWindow*)id level]; } -void NSWindow_inst_setLevel_(void *id, long value) { +void NSWindow_inst_SetLevel(void *id, long value) { [(NSWindow*)id setLevel: value]; } -BOOL NSWindow_inst_isVisible(void *id) { +BOOL NSWindow_inst_IsVisible(void *id) { return [(NSWindow*)id isVisible]; } -BOOL NSWindow_inst_isKeyWindow(void *id) { +BOOL NSWindow_inst_IsKeyWindow(void *id) { return [(NSWindow*)id isKeyWindow]; } -BOOL NSWindow_inst_canBecomeKeyWindow(void *id) { +BOOL NSWindow_inst_CanBecomeKeyWindow(void *id) { return [(NSWindow*)id canBecomeKeyWindow]; } -BOOL NSWindow_inst_isMainWindow(void *id) { +BOOL NSWindow_inst_IsMainWindow(void *id) { return [(NSWindow*)id isMainWindow]; } -BOOL NSWindow_inst_canBecomeMainWindow(void *id) { +BOOL NSWindow_inst_CanBecomeMainWindow(void *id) { return [(NSWindow*)id canBecomeMainWindow]; } -void* NSWindow_inst_childWindows(void *id) { +void* NSWindow_inst_ChildWindows(void *id) { return [(NSWindow*)id childWindows]; } -void* NSWindow_inst_parentWindow(void *id) { +void* NSWindow_inst_ParentWindow(void *id) { return [(NSWindow*)id parentWindow]; } -void NSWindow_inst_setParentWindow_(void *id, void* value) { +void NSWindow_inst_SetParentWindow(void *id, void* value) { [(NSWindow*)id setParentWindow: value]; } -BOOL NSWindow_inst_isExcludedFromWindowsMenu(void *id) { +BOOL NSWindow_inst_IsExcludedFromWindowsMenu(void *id) { return [(NSWindow*)id isExcludedFromWindowsMenu]; } -void NSWindow_inst_setExcludedFromWindowsMenu_(void *id, BOOL value) { +void NSWindow_inst_SetExcludedFromWindowsMenu(void *id, BOOL value) { [(NSWindow*)id setExcludedFromWindowsMenu: value]; } -BOOL NSWindow_inst_areCursorRectsEnabled(void *id) { +BOOL NSWindow_inst_AreCursorRectsEnabled(void *id) { return [(NSWindow*)id areCursorRectsEnabled]; } -BOOL NSWindow_inst_showsToolbarButton(void *id) { +BOOL NSWindow_inst_ShowsToolbarButton(void *id) { return [(NSWindow*)id showsToolbarButton]; } -void NSWindow_inst_setShowsToolbarButton_(void *id, BOOL value) { +void NSWindow_inst_SetShowsToolbarButton(void *id, BOOL value) { [(NSWindow*)id setShowsToolbarButton: value]; } -BOOL NSWindow_inst_titlebarAppearsTransparent(void *id) { +BOOL NSWindow_inst_TitlebarAppearsTransparent(void *id) { return [(NSWindow*)id titlebarAppearsTransparent]; } -void NSWindow_inst_setTitlebarAppearsTransparent_(void *id, BOOL value) { +void NSWindow_inst_SetTitlebarAppearsTransparent(void *id, BOOL value) { [(NSWindow*)id setTitlebarAppearsTransparent: value]; } -void* NSWindow_inst_titlebarAccessoryViewControllers(void *id) { +void* NSWindow_inst_TitlebarAccessoryViewControllers(void *id) { return [(NSWindow*)id titlebarAccessoryViewControllers]; } -void NSWindow_inst_setTitlebarAccessoryViewControllers_(void *id, void* value) { +void NSWindow_inst_SetTitlebarAccessoryViewControllers(void *id, void* value) { [(NSWindow*)id setTitlebarAccessoryViewControllers: value]; } -void* NSWindow_inst_tabbedWindows(void *id) { +void* NSWindow_inst_TabbedWindows(void *id) { return [(NSWindow*)id tabbedWindows]; } -BOOL NSWindow_inst_allowsToolTipsWhenApplicationIsInactive(void *id) { +BOOL NSWindow_inst_AllowsToolTipsWhenApplicationIsInactive(void *id) { return [(NSWindow*)id allowsToolTipsWhenApplicationIsInactive]; } -void NSWindow_inst_setAllowsToolTipsWhenApplicationIsInactive_(void *id, BOOL value) { +void NSWindow_inst_SetAllowsToolTipsWhenApplicationIsInactive(void *id, BOOL value) { [(NSWindow*)id setAllowsToolTipsWhenApplicationIsInactive: value]; } -void* NSWindow_inst_currentEvent(void *id) { +void* NSWindow_inst_CurrentEvent(void *id) { return [(NSWindow*)id currentEvent]; } -void* NSWindow_inst_initialFirstResponder(void *id) { +void* NSWindow_inst_InitialFirstResponder(void *id) { return [(NSWindow*)id initialFirstResponder]; } -void NSWindow_inst_setInitialFirstResponder_(void *id, void* value) { +void NSWindow_inst_SetInitialFirstResponder(void *id, void* value) { [(NSWindow*)id setInitialFirstResponder: value]; } -BOOL NSWindow_inst_autorecalculatesKeyViewLoop(void *id) { +BOOL NSWindow_inst_AutorecalculatesKeyViewLoop(void *id) { return [(NSWindow*)id autorecalculatesKeyViewLoop]; } -void NSWindow_inst_setAutorecalculatesKeyViewLoop_(void *id, BOOL value) { +void NSWindow_inst_SetAutorecalculatesKeyViewLoop(void *id, BOOL value) { [(NSWindow*)id setAutorecalculatesKeyViewLoop: value]; } -BOOL NSWindow_inst_acceptsMouseMovedEvents(void *id) { +BOOL NSWindow_inst_AcceptsMouseMovedEvents(void *id) { return [(NSWindow*)id acceptsMouseMovedEvents]; } -void NSWindow_inst_setAcceptsMouseMovedEvents_(void *id, BOOL value) { +void NSWindow_inst_SetAcceptsMouseMovedEvents(void *id, BOOL value) { [(NSWindow*)id setAcceptsMouseMovedEvents: value]; } -BOOL NSWindow_inst_ignoresMouseEvents(void *id) { +BOOL NSWindow_inst_IgnoresMouseEvents(void *id) { return [(NSWindow*)id ignoresMouseEvents]; } -void NSWindow_inst_setIgnoresMouseEvents_(void *id, BOOL value) { +void NSWindow_inst_SetIgnoresMouseEvents(void *id, BOOL value) { [(NSWindow*)id setIgnoresMouseEvents: value]; } -NSPoint NSWindow_inst_mouseLocationOutsideOfEventStream(void *id) { +NSPoint NSWindow_inst_MouseLocationOutsideOfEventStream(void *id) { return [(NSWindow*)id mouseLocationOutsideOfEventStream]; } -BOOL NSWindow_inst_isRestorable(void *id) { +BOOL NSWindow_inst_IsRestorable(void *id) { return [(NSWindow*)id isRestorable]; } -void NSWindow_inst_setRestorable_(void *id, BOOL value) { +void NSWindow_inst_SetRestorable(void *id, BOOL value) { [(NSWindow*)id setRestorable: value]; } -BOOL NSWindow_inst_viewsNeedDisplay(void *id) { +BOOL NSWindow_inst_ViewsNeedDisplay(void *id) { return [(NSWindow*)id viewsNeedDisplay]; } -void NSWindow_inst_setViewsNeedDisplay_(void *id, BOOL value) { +void NSWindow_inst_SetViewsNeedDisplay(void *id, BOOL value) { [(NSWindow*)id setViewsNeedDisplay: value]; } -BOOL NSWindow_inst_allowsConcurrentViewDrawing(void *id) { +BOOL NSWindow_inst_AllowsConcurrentViewDrawing(void *id) { return [(NSWindow*)id allowsConcurrentViewDrawing]; } -void NSWindow_inst_setAllowsConcurrentViewDrawing_(void *id, BOOL value) { +void NSWindow_inst_SetAllowsConcurrentViewDrawing(void *id, BOOL value) { [(NSWindow*)id setAllowsConcurrentViewDrawing: value]; } -BOOL NSWindow_inst_isDocumentEdited(void *id) { +BOOL NSWindow_inst_IsDocumentEdited(void *id) { return [(NSWindow*)id isDocumentEdited]; } -void NSWindow_inst_setDocumentEdited_(void *id, BOOL value) { +void NSWindow_inst_SetDocumentEdited(void *id, BOOL value) { [(NSWindow*)id setDocumentEdited: value]; } -double NSWindow_inst_backingScaleFactor(void *id) { +double NSWindow_inst_BackingScaleFactor(void *id) { return [(NSWindow*)id backingScaleFactor]; } -void* NSWindow_inst_title(void *id) { +void* NSWindow_inst_Title(void *id) { return [(NSWindow*)id title]; } -void NSWindow_inst_setTitle_(void *id, void* value) { +void NSWindow_inst_SetTitle(void *id, void* value) { [(NSWindow*)id setTitle: value]; } -void* NSWindow_inst_subtitle(void *id) { +void* NSWindow_inst_Subtitle(void *id) { return [(NSWindow*)id subtitle]; } -void NSWindow_inst_setSubtitle_(void *id, void* value) { +void NSWindow_inst_SetSubtitle(void *id, void* value) { [(NSWindow*)id setSubtitle: value]; } -long NSWindow_inst_titleVisibility(void *id) { +long NSWindow_inst_TitleVisibility(void *id) { return [(NSWindow*)id titleVisibility]; } -void NSWindow_inst_setTitleVisibility_(void *id, long value) { +void NSWindow_inst_SetTitleVisibility(void *id, long value) { [(NSWindow*)id setTitleVisibility: value]; } -void* NSWindow_inst_representedFilename(void *id) { +void* NSWindow_inst_RepresentedFilename(void *id) { return [(NSWindow*)id representedFilename]; } -void NSWindow_inst_setRepresentedFilename_(void *id, void* value) { +void NSWindow_inst_SetRepresentedFilename(void *id, void* value) { [(NSWindow*)id setRepresentedFilename: value]; } -void* NSWindow_inst_representedURL(void *id) { +void* NSWindow_inst_RepresentedURL(void *id) { return [(NSWindow*)id representedURL]; } -void NSWindow_inst_setRepresentedURL_(void *id, void* value) { +void NSWindow_inst_SetRepresentedURL(void *id, void* value) { [(NSWindow*)id setRepresentedURL: value]; } -void* NSWindow_inst_screen(void *id) { +void* NSWindow_inst_Screen(void *id) { return [(NSWindow*)id screen]; } -void* NSWindow_inst_deepestScreen(void *id) { +void* NSWindow_inst_DeepestScreen(void *id) { return [(NSWindow*)id deepestScreen]; } -BOOL NSWindow_inst_displaysWhenScreenProfileChanges(void *id) { +BOOL NSWindow_inst_DisplaysWhenScreenProfileChanges(void *id) { return [(NSWindow*)id displaysWhenScreenProfileChanges]; } -void NSWindow_inst_setDisplaysWhenScreenProfileChanges_(void *id, BOOL value) { +void NSWindow_inst_SetDisplaysWhenScreenProfileChanges(void *id, BOOL value) { [(NSWindow*)id setDisplaysWhenScreenProfileChanges: value]; } -BOOL NSWindow_inst_isMovableByWindowBackground(void *id) { +BOOL NSWindow_inst_IsMovableByWindowBackground(void *id) { return [(NSWindow*)id isMovableByWindowBackground]; } -void NSWindow_inst_setMovableByWindowBackground_(void *id, BOOL value) { +void NSWindow_inst_SetMovableByWindowBackground(void *id, BOOL value) { [(NSWindow*)id setMovableByWindowBackground: value]; } -BOOL NSWindow_inst_isMovable(void *id) { +BOOL NSWindow_inst_IsMovable(void *id) { return [(NSWindow*)id isMovable]; } -void NSWindow_inst_setMovable_(void *id, BOOL value) { +void NSWindow_inst_SetMovable(void *id, BOOL value) { [(NSWindow*)id setMovable: value]; } -BOOL NSWindow_inst_isReleasedWhenClosed(void *id) { +BOOL NSWindow_inst_IsReleasedWhenClosed(void *id) { return [(NSWindow*)id isReleasedWhenClosed]; } -void NSWindow_inst_setReleasedWhenClosed_(void *id, BOOL value) { +void NSWindow_inst_SetReleasedWhenClosed(void *id, BOOL value) { [(NSWindow*)id setReleasedWhenClosed: value]; } -BOOL NSWindow_inst_isMiniaturized(void *id) { +BOOL NSWindow_inst_IsMiniaturized(void *id) { return [(NSWindow*)id isMiniaturized]; } -void* NSWindow_inst_miniwindowImage(void *id) { +void* NSWindow_inst_MiniwindowImage(void *id) { return [(NSWindow*)id miniwindowImage]; } -void NSWindow_inst_setMiniwindowImage_(void *id, void* value) { +void NSWindow_inst_SetMiniwindowImage(void *id, void* value) { [(NSWindow*)id setMiniwindowImage: value]; } -void* NSWindow_inst_miniwindowTitle(void *id) { +void* NSWindow_inst_MiniwindowTitle(void *id) { return [(NSWindow*)id miniwindowTitle]; } -void NSWindow_inst_setMiniwindowTitle_(void *id, void* value) { +void NSWindow_inst_SetMiniwindowTitle(void *id, void* value) { [(NSWindow*)id setMiniwindowTitle: value]; } -BOOL NSWindow_inst_hasCloseBox(void *id) { +BOOL NSWindow_inst_HasCloseBox(void *id) { return [(NSWindow*)id hasCloseBox]; } -BOOL NSWindow_inst_hasTitleBar(void *id) { +BOOL NSWindow_inst_HasTitleBar(void *id) { return [(NSWindow*)id hasTitleBar]; } -BOOL NSWindow_inst_isModalPanel(void *id) { +BOOL NSWindow_inst_IsModalPanel(void *id) { return [(NSWindow*)id isModalPanel]; } -BOOL NSWindow_inst_isFloatingPanel(void *id) { +BOOL NSWindow_inst_IsFloatingPanel(void *id) { return [(NSWindow*)id isFloatingPanel]; } -BOOL NSWindow_inst_isZoomable(void *id) { +BOOL NSWindow_inst_IsZoomable(void *id) { return [(NSWindow*)id isZoomable]; } -BOOL NSWindow_inst_isResizable(void *id) { +BOOL NSWindow_inst_IsResizable(void *id) { return [(NSWindow*)id isResizable]; } -BOOL NSWindow_inst_isMiniaturizable(void *id) { +BOOL NSWindow_inst_IsMiniaturizable(void *id) { return [(NSWindow*)id isMiniaturizable]; } -long NSWindow_inst_orderedIndex(void *id) { +long NSWindow_inst_OrderedIndex(void *id) { return [(NSWindow*)id orderedIndex]; } -void NSWindow_inst_setOrderedIndex_(void *id, long value) { +void NSWindow_inst_SetOrderedIndex(void *id, long value) { [(NSWindow*)id setOrderedIndex: value]; } -BOOL NSWorkspace_inst_openURL_(void *id, void* url) { +void* NSWorkspace_inst_URLForApplicationToOpenURL(void *id, void* url) { return [(NSWorkspace*)id - openURL: url]; -} - -void NSWorkspace_inst_hideOtherApplications(void *id) { - [(NSWorkspace*)id - hideOtherApplications]; + URLForApplicationToOpenURL: url]; } -void NSWorkspace_inst_activateFileViewerSelectingURLs_(void *id, void* fileURLs) { - [(NSWorkspace*)id - activateFileViewerSelectingURLs: fileURLs]; +void* NSWorkspace_inst_URLForApplicationWithBundleIdentifier(void *id, void* bundleIdentifier) { + return [(NSWorkspace*)id + URLForApplicationWithBundleIdentifier: bundleIdentifier]; } -BOOL NSWorkspace_inst_selectFile_inFileViewerRootedAtPath_(void *id, void* fullPath, void* rootFullPath) { +void* NSWorkspace_inst_URLsForApplicationsToOpenURL(void *id, void* url) { return [(NSWorkspace*)id - selectFile: fullPath - inFileViewerRootedAtPath: rootFullPath]; + URLsForApplicationsToOpenURL: url]; } -void* NSWorkspace_inst_URLForApplicationWithBundleIdentifier_(void *id, void* bundleIdentifier) { +void* NSWorkspace_inst_URLsForApplicationsWithBundleIdentifier(void *id, void* bundleIdentifier) { return [(NSWorkspace*)id - URLForApplicationWithBundleIdentifier: bundleIdentifier]; + URLsForApplicationsWithBundleIdentifier: bundleIdentifier]; } -void* NSWorkspace_inst_URLForApplicationToOpenURL_(void *id, void* url) { - return [(NSWorkspace*)id - URLForApplicationToOpenURL: url]; +void NSWorkspace_inst_ActivateFileViewerSelectingURLs(void *id, void* fileURLs) { + [(NSWorkspace*)id + activateFileViewerSelectingURLs: fileURLs]; } -BOOL NSWorkspace_inst_isFilePackageAtPath_(void *id, void* fullPath) { +void* NSWorkspace_inst_DesktopImageOptionsForScreen(void *id, void* screen) { return [(NSWorkspace*)id - isFilePackageAtPath: fullPath]; + desktopImageOptionsForScreen: screen]; } -void* NSWorkspace_inst_iconForFile_(void *id, void* fullPath) { +void* NSWorkspace_inst_DesktopImageURLForScreen(void *id, void* screen) { return [(NSWorkspace*)id - iconForFile: fullPath]; + desktopImageURLForScreen: screen]; } -void* NSWorkspace_inst_iconForFiles_(void *id, void* fullPaths) { +long NSWorkspace_inst_ExtendPowerOffBy(void *id, long requested) { return [(NSWorkspace*)id - iconForFiles: fullPaths]; + extendPowerOffBy: requested]; } -BOOL NSWorkspace_inst_unmountAndEjectDeviceAtPath_(void *id, void* path) { - return [(NSWorkspace*)id - unmountAndEjectDeviceAtPath: path]; +void NSWorkspace_inst_HideOtherApplications(void *id) { + [(NSWorkspace*)id + hideOtherApplications]; } -void* NSWorkspace_inst_desktopImageURLForScreen_(void *id, void* screen) { +void* NSWorkspace_inst_IconForFile(void *id, void* fullPath) { return [(NSWorkspace*)id - desktopImageURLForScreen: screen]; + iconForFile: fullPath]; } -void* NSWorkspace_inst_desktopImageOptionsForScreen_(void *id, void* screen) { +void* NSWorkspace_inst_IconForFiles(void *id, void* fullPaths) { return [(NSWorkspace*)id - desktopImageOptionsForScreen: screen]; + iconForFiles: fullPaths]; } -BOOL NSWorkspace_inst_showSearchResultsForQueryString_(void *id, void* queryString) { +BOOL NSWorkspace_inst_IsFilePackageAtPath(void *id, void* fullPath) { return [(NSWorkspace*)id - showSearchResultsForQueryString: queryString]; + isFilePackageAtPath: fullPath]; } -void NSWorkspace_inst_noteFileSystemChanged_(void *id, void* path) { +void NSWorkspace_inst_NoteFileSystemChanged(void *id, void* path) { [(NSWorkspace*)id noteFileSystemChanged: path]; } -long NSWorkspace_inst_extendPowerOffBy_(void *id, long requested) { +BOOL NSWorkspace_inst_OpenURL(void *id, void* url) { return [(NSWorkspace*)id - extendPowerOffBy: requested]; + openURL: url]; } -void* NSWorkspace_inst_URLsForApplicationsToOpenURL_(void *id, void* url) { +BOOL NSWorkspace_inst_SelectFileInFileViewerRootedAtPath(void *id, void* fullPath, void* rootFullPath) { return [(NSWorkspace*)id - URLsForApplicationsToOpenURL: url]; + selectFile: fullPath + inFileViewerRootedAtPath: rootFullPath]; } -void* NSWorkspace_inst_URLsForApplicationsWithBundleIdentifier_(void *id, void* bundleIdentifier) { +BOOL NSWorkspace_inst_ShowSearchResultsForQueryString(void *id, void* queryString) { return [(NSWorkspace*)id - URLsForApplicationsWithBundleIdentifier: bundleIdentifier]; + showSearchResultsForQueryString: queryString]; } -void* NSWorkspace_inst_init(void *id) { +BOOL NSWorkspace_inst_UnmountAndEjectDeviceAtPath(void *id, void* path) { + return [(NSWorkspace*)id + unmountAndEjectDeviceAtPath: path]; +} + +void* NSWorkspace_inst_Init(void *id) { return [(NSWorkspace*)id init]; } -void* NSWorkspace_inst_frontmostApplication(void *id) { +void* NSWorkspace_inst_FrontmostApplication(void *id) { return [(NSWorkspace*)id frontmostApplication]; } -void* NSWorkspace_inst_runningApplications(void *id) { +void* NSWorkspace_inst_RunningApplications(void *id) { return [(NSWorkspace*)id runningApplications]; } -void* NSWorkspace_inst_menuBarOwningApplication(void *id) { +void* NSWorkspace_inst_MenuBarOwningApplication(void *id) { return [(NSWorkspace*)id menuBarOwningApplication]; } -void* NSWorkspace_inst_fileLabels(void *id) { +void* NSWorkspace_inst_FileLabels(void *id) { return [(NSWorkspace*)id fileLabels]; } -void* NSWorkspace_inst_fileLabelColors(void *id) { +void* NSWorkspace_inst_FileLabelColors(void *id) { return [(NSWorkspace*)id fileLabelColors]; } -BOOL NSWorkspace_inst_accessibilityDisplayShouldDifferentiateWithoutColor(void *id) { +BOOL NSWorkspace_inst_AccessibilityDisplayShouldDifferentiateWithoutColor(void *id) { return [(NSWorkspace*)id accessibilityDisplayShouldDifferentiateWithoutColor]; } -BOOL NSWorkspace_inst_accessibilityDisplayShouldIncreaseContrast(void *id) { +BOOL NSWorkspace_inst_AccessibilityDisplayShouldIncreaseContrast(void *id) { return [(NSWorkspace*)id accessibilityDisplayShouldIncreaseContrast]; } -BOOL NSWorkspace_inst_accessibilityDisplayShouldReduceTransparency(void *id) { +BOOL NSWorkspace_inst_AccessibilityDisplayShouldReduceTransparency(void *id) { return [(NSWorkspace*)id accessibilityDisplayShouldReduceTransparency]; } -BOOL NSWorkspace_inst_accessibilityDisplayShouldInvertColors(void *id) { +BOOL NSWorkspace_inst_AccessibilityDisplayShouldInvertColors(void *id) { return [(NSWorkspace*)id accessibilityDisplayShouldInvertColors]; } -BOOL NSWorkspace_inst_accessibilityDisplayShouldReduceMotion(void *id) { +BOOL NSWorkspace_inst_AccessibilityDisplayShouldReduceMotion(void *id) { return [(NSWorkspace*)id accessibilityDisplayShouldReduceMotion]; } -BOOL NSWorkspace_inst_isSwitchControlEnabled(void *id) { +BOOL NSWorkspace_inst_IsSwitchControlEnabled(void *id) { return [(NSWorkspace*)id isSwitchControlEnabled]; } -BOOL NSWorkspace_inst_isVoiceOverEnabled(void *id) { +BOOL NSWorkspace_inst_IsVoiceOverEnabled(void *id) { return [(NSWorkspace*)id isVoiceOverEnabled]; } -void* NSColor_inst_blendedColorWithFraction_ofColor_(void *id, double fraction, void* color) { +void* NSColor_inst_BlendedColorWithFractionOfColor(void *id, double fraction, void* color) { return [(NSColor*)id blendedColorWithFraction: fraction ofColor: color]; } -void* NSColor_inst_colorWithAlphaComponent_(void *id, double alpha) { +void* NSColor_inst_ColorWithAlphaComponent(void *id, double alpha) { return [(NSColor*)id colorWithAlphaComponent: alpha]; } -void* NSColor_inst_highlightWithLevel_(void *id, double val) { - return [(NSColor*)id - highlightWithLevel: val]; +void NSColor_inst_DrawSwatchInRect(void *id, NSRect rect) { + [(NSColor*)id + drawSwatchInRect: rect]; } -void* NSColor_inst_shadowWithLevel_(void *id, double val) { +void* NSColor_inst_HighlightWithLevel(void *id, double val) { return [(NSColor*)id - shadowWithLevel: val]; + highlightWithLevel: val]; } -void NSColor_inst_writeToPasteboard_(void *id, void* pasteBoard) { +void NSColor_inst_Set(void *id) { [(NSColor*)id - writeToPasteboard: pasteBoard]; + set]; } -void NSColor_inst_drawSwatchInRect_(void *id, NSRect rect) { +void NSColor_inst_SetFill(void *id) { [(NSColor*)id - drawSwatchInRect: rect]; + setFill]; } -void NSColor_inst_set(void *id) { +void NSColor_inst_SetStroke(void *id) { [(NSColor*)id - set]; + setStroke]; } -void NSColor_inst_setFill(void *id) { - [(NSColor*)id - setFill]; +void* NSColor_inst_ShadowWithLevel(void *id, double val) { + return [(NSColor*)id + shadowWithLevel: val]; } -void NSColor_inst_setStroke(void *id) { +void NSColor_inst_WriteToPasteboard(void *id, void* pasteBoard) { [(NSColor*)id - setStroke]; + writeToPasteboard: pasteBoard]; } -void* NSColor_inst_init(void *id) { +void* NSColor_inst_Init(void *id) { return [(NSColor*)id init]; } -long NSColor_inst_numberOfComponents(void *id) { +long NSColor_inst_NumberOfComponents(void *id) { return [(NSColor*)id numberOfComponents]; } -double NSColor_inst_alphaComponent(void *id) { +double NSColor_inst_AlphaComponent(void *id) { return [(NSColor*)id alphaComponent]; } -double NSColor_inst_whiteComponent(void *id) { +double NSColor_inst_WhiteComponent(void *id) { return [(NSColor*)id whiteComponent]; } -double NSColor_inst_redComponent(void *id) { +double NSColor_inst_RedComponent(void *id) { return [(NSColor*)id redComponent]; } -double NSColor_inst_greenComponent(void *id) { +double NSColor_inst_GreenComponent(void *id) { return [(NSColor*)id greenComponent]; } -double NSColor_inst_blueComponent(void *id) { +double NSColor_inst_BlueComponent(void *id) { return [(NSColor*)id blueComponent]; } -double NSColor_inst_cyanComponent(void *id) { +double NSColor_inst_CyanComponent(void *id) { return [(NSColor*)id cyanComponent]; } -double NSColor_inst_magentaComponent(void *id) { +double NSColor_inst_MagentaComponent(void *id) { return [(NSColor*)id magentaComponent]; } -double NSColor_inst_yellowComponent(void *id) { +double NSColor_inst_YellowComponent(void *id) { return [(NSColor*)id yellowComponent]; } -double NSColor_inst_blackComponent(void *id) { +double NSColor_inst_BlackComponent(void *id) { return [(NSColor*)id blackComponent]; } -double NSColor_inst_hueComponent(void *id) { +double NSColor_inst_HueComponent(void *id) { return [(NSColor*)id hueComponent]; } -double NSColor_inst_saturationComponent(void *id) { +double NSColor_inst_SaturationComponent(void *id) { return [(NSColor*)id saturationComponent]; } -double NSColor_inst_brightnessComponent(void *id) { +double NSColor_inst_BrightnessComponent(void *id) { return [(NSColor*)id brightnessComponent]; } -void* NSColor_inst_localizedCatalogNameComponent(void *id) { +void* NSColor_inst_LocalizedCatalogNameComponent(void *id) { return [(NSColor*)id localizedCatalogNameComponent]; } -void* NSColor_inst_localizedColorNameComponent(void *id) { +void* NSColor_inst_LocalizedColorNameComponent(void *id) { return [(NSColor*)id localizedColorNameComponent]; } -void* NSTextView_inst_initWithFrame_textContainer_(void *id, NSRect frameRect, void* container) { - return [(NSTextView*)id - initWithFrame: frameRect - textContainer: container]; +void NSTextView_inst_AlignJustified(void *id, void* sender) { + [(NSTextView*)id + alignJustified: sender]; } -void* NSTextView_inst_initWithFrame_(void *id, NSRect frameRect) { - return [(NSTextView*)id - initWithFrame: frameRect]; +void NSTextView_inst_BreakUndoCoalescing(void *id) { + [(NSTextView*)id + breakUndoCoalescing]; } -void NSTextView_inst_replaceTextContainer_(void *id, void* newContainer) { +void NSTextView_inst_ChangeAttributes(void *id, void* sender) { [(NSTextView*)id - replaceTextContainer: newContainer]; + changeAttributes: sender]; } -void NSTextView_inst_invalidateTextContainerOrigin(void *id) { +void NSTextView_inst_ChangeColor(void *id, void* sender) { [(NSTextView*)id - invalidateTextContainerOrigin]; + changeColor: sender]; } -void NSTextView_inst_changeDocumentBackgroundColor_(void *id, void* sender) { +void NSTextView_inst_ChangeDocumentBackgroundColor(void *id, void* sender) { [(NSTextView*)id changeDocumentBackgroundColor: sender]; } -void NSTextView_inst_setNeedsDisplayInRect_avoidAdditionalLayout_(void *id, NSRect rect, BOOL flag) { +void NSTextView_inst_ChangeLayoutOrientation(void *id, void* sender) { [(NSTextView*)id - setNeedsDisplayInRect: rect - avoidAdditionalLayout: flag]; + changeLayoutOrientation: sender]; } -void NSTextView_inst_drawInsertionPointInRect_color_turnedOn_(void *id, NSRect rect, void* color, BOOL flag) { - [(NSTextView*)id - drawInsertionPointInRect: rect - color: color - turnedOn: flag]; +unsigned long NSTextView_inst_CharacterIndexForInsertionAtPoint(void *id, NSPoint point) { + return [(NSTextView*)id + characterIndexForInsertionAtPoint: point]; } -void NSTextView_inst_drawViewBackgroundInRect_(void *id, NSRect rect) { +void NSTextView_inst_CheckTextInDocument(void *id, void* sender) { [(NSTextView*)id - drawViewBackgroundInRect: rect]; + checkTextInDocument: sender]; } -void NSTextView_inst_setConstrainedFrameSize_(void *id, NSSize desiredSize) { +void NSTextView_inst_CheckTextInSelection(void *id, void* sender) { [(NSTextView*)id - setConstrainedFrameSize: desiredSize]; + checkTextInSelection: sender]; } -void NSTextView_inst_cleanUpAfterDragOperation(void *id) { +void NSTextView_inst_CleanUpAfterDragOperation(void *id) { [(NSTextView*)id cleanUpAfterDragOperation]; } -void NSTextView_inst_outline_(void *id, void* sender) { +void NSTextView_inst_ClickedOnLinkAtIndex(void *id, void* link, unsigned long charIndex) { [(NSTextView*)id - outline: sender]; + clickedOnLink: link + atIndex: charIndex]; } -void NSTextView_inst_toggleAutomaticQuoteSubstitution_(void *id, void* sender) { +void NSTextView_inst_Complete(void *id, void* sender) { [(NSTextView*)id - toggleAutomaticQuoteSubstitution: sender]; + complete: sender]; } -void NSTextView_inst_toggleAutomaticLinkDetection_(void *id, void* sender) { +void NSTextView_inst_DidChangeText(void *id) { [(NSTextView*)id - toggleAutomaticLinkDetection: sender]; + didChangeText]; } -void NSTextView_inst_toggleAutomaticTextCompletion_(void *id, void* sender) { - [(NSTextView*)id - toggleAutomaticTextCompletion: sender]; +BOOL NSTextView_inst_DragSelectionWithEventOffsetSlideBack(void *id, void* event, NSSize mouseOffset, BOOL slideBack) { + return [(NSTextView*)id + dragSelectionWithEvent: event + offset: mouseOffset + slideBack: slideBack]; } -void NSTextView_inst_updateInsertionPointStateAndRestartTimer_(void *id, BOOL restartFlag) { +void NSTextView_inst_DrawInsertionPointInRectColorTurnedOn(void *id, NSRect rect, void* color, BOOL flag) { [(NSTextView*)id - updateInsertionPointStateAndRestartTimer: restartFlag]; -} - -unsigned long NSTextView_inst_characterIndexForInsertionAtPoint_(void *id, NSPoint point) { - return [(NSTextView*)id - characterIndexForInsertionAtPoint: point]; + drawInsertionPointInRect: rect + color: color + turnedOn: flag]; } -void NSTextView_inst_updateCandidates(void *id) { +void NSTextView_inst_DrawViewBackgroundInRect(void *id, NSRect rect) { [(NSTextView*)id - updateCandidates]; + drawViewBackgroundInRect: rect]; } -BOOL NSTextView_inst_readSelectionFromPasteboard_(void *id, void* pboard) { +void* NSTextView_inst_InitWithFrame(void *id, NSRect frameRect) { return [(NSTextView*)id - readSelectionFromPasteboard: pboard]; + initWithFrame: frameRect]; } -BOOL NSTextView_inst_writeSelectionToPasteboard_types_(void *id, void* pboard, void* types) { +void* NSTextView_inst_InitWithFrameTextContainer(void *id, NSRect frameRect, void* container) { return [(NSTextView*)id - writeSelectionToPasteboard: pboard - types: types]; + initWithFrame: frameRect + textContainer: container]; } -void NSTextView_inst_alignJustified_(void *id, void* sender) { +void NSTextView_inst_InvalidateTextContainerOrigin(void *id) { [(NSTextView*)id - alignJustified: sender]; + invalidateTextContainerOrigin]; } -void NSTextView_inst_changeAttributes_(void *id, void* sender) { +void NSTextView_inst_LoosenKerning(void *id, void* sender) { [(NSTextView*)id - changeAttributes: sender]; + loosenKerning: sender]; } -void NSTextView_inst_changeColor_(void *id, void* sender) { +void NSTextView_inst_LowerBaseline(void *id, void* sender) { [(NSTextView*)id - changeColor: sender]; + lowerBaseline: sender]; } -void NSTextView_inst_useStandardKerning_(void *id, void* sender) { +void NSTextView_inst_OrderFrontLinkPanel(void *id, void* sender) { [(NSTextView*)id - useStandardKerning: sender]; + orderFrontLinkPanel: sender]; } -void NSTextView_inst_lowerBaseline_(void *id, void* sender) { +void NSTextView_inst_OrderFrontListPanel(void *id, void* sender) { [(NSTextView*)id - lowerBaseline: sender]; + orderFrontListPanel: sender]; } -void NSTextView_inst_raiseBaseline_(void *id, void* sender) { +void NSTextView_inst_OrderFrontSharingServicePicker(void *id, void* sender) { [(NSTextView*)id - raiseBaseline: sender]; + orderFrontSharingServicePicker: sender]; } -void NSTextView_inst_turnOffKerning_(void *id, void* sender) { +void NSTextView_inst_OrderFrontSpacingPanel(void *id, void* sender) { [(NSTextView*)id - turnOffKerning: sender]; + orderFrontSpacingPanel: sender]; } -void NSTextView_inst_loosenKerning_(void *id, void* sender) { +void NSTextView_inst_OrderFrontSubstitutionsPanel(void *id, void* sender) { [(NSTextView*)id - loosenKerning: sender]; + orderFrontSubstitutionsPanel: sender]; } -void NSTextView_inst_tightenKerning_(void *id, void* sender) { +void NSTextView_inst_OrderFrontTablePanel(void *id, void* sender) { [(NSTextView*)id - tightenKerning: sender]; + orderFrontTablePanel: sender]; } -void NSTextView_inst_useStandardLigatures_(void *id, void* sender) { +void NSTextView_inst_Outline(void *id, void* sender) { [(NSTextView*)id - useStandardLigatures: sender]; + outline: sender]; } -void NSTextView_inst_turnOffLigatures_(void *id, void* sender) { +void NSTextView_inst_PasteAsPlainText(void *id, void* sender) { [(NSTextView*)id - turnOffLigatures: sender]; + pasteAsPlainText: sender]; } -void NSTextView_inst_useAllLigatures_(void *id, void* sender) { +void NSTextView_inst_PasteAsRichText(void *id, void* sender) { [(NSTextView*)id - useAllLigatures: sender]; + pasteAsRichText: sender]; } -void NSTextView_inst_clickedOnLink_atIndex_(void *id, void* link, unsigned long charIndex) { +void NSTextView_inst_PerformFindPanelAction(void *id, void* sender) { [(NSTextView*)id - clickedOnLink: link - atIndex: charIndex]; + performFindPanelAction: sender]; } -void NSTextView_inst_pasteAsPlainText_(void *id, void* sender) { - [(NSTextView*)id - pasteAsPlainText: sender]; +void* NSTextView_inst_QuickLookPreviewableItemsInRanges(void *id, void* ranges) { + return [(NSTextView*)id + quickLookPreviewableItemsInRanges: ranges]; } -void NSTextView_inst_pasteAsRichText_(void *id, void* sender) { +void NSTextView_inst_RaiseBaseline(void *id, void* sender) { [(NSTextView*)id - pasteAsRichText: sender]; + raiseBaseline: sender]; } -void NSTextView_inst_breakUndoCoalescing(void *id) { - [(NSTextView*)id - breakUndoCoalescing]; +BOOL NSTextView_inst_ReadSelectionFromPasteboard(void *id, void* pboard) { + return [(NSTextView*)id + readSelectionFromPasteboard: pboard]; } -void NSTextView_inst_updateFontPanel(void *id) { +void NSTextView_inst_ReplaceTextContainer(void *id, void* newContainer) { [(NSTextView*)id - updateFontPanel]; + replaceTextContainer: newContainer]; } -void NSTextView_inst_updateRuler(void *id) { +void NSTextView_inst_SetConstrainedFrameSize(void *id, NSSize desiredSize) { [(NSTextView*)id - updateRuler]; + setConstrainedFrameSize: desiredSize]; } -void NSTextView_inst_updateDragTypeRegistration(void *id) { +void NSTextView_inst_SetNeedsDisplayInRectAvoidAdditionalLayout(void *id, NSRect rect, BOOL flag) { [(NSTextView*)id - updateDragTypeRegistration]; + setNeedsDisplayInRect: rect + avoidAdditionalLayout: flag]; } -BOOL NSTextView_inst_shouldChangeTextInRanges_replacementStrings_(void *id, void* affectedRanges, void* replacementStrings) { +BOOL NSTextView_inst_ShouldChangeTextInRangesReplacementStrings(void *id, void* affectedRanges, void* replacementStrings) { return [(NSTextView*)id shouldChangeTextInRanges: affectedRanges replacementStrings: replacementStrings]; } -void NSTextView_inst_didChangeText(void *id) { +void NSTextView_inst_StartSpeaking(void *id, void* sender) { [(NSTextView*)id - didChangeText]; + startSpeaking: sender]; } -void NSTextView_inst_toggleSmartInsertDelete_(void *id, void* sender) { +void NSTextView_inst_StopSpeaking(void *id, void* sender) { [(NSTextView*)id - toggleSmartInsertDelete: sender]; + stopSpeaking: sender]; } -void NSTextView_inst_toggleContinuousSpellChecking_(void *id, void* sender) { +void NSTextView_inst_TightenKerning(void *id, void* sender) { [(NSTextView*)id - toggleContinuousSpellChecking: sender]; + tightenKerning: sender]; } -void NSTextView_inst_toggleGrammarChecking_(void *id, void* sender) { +void NSTextView_inst_ToggleAutomaticDashSubstitution(void *id, void* sender) { [(NSTextView*)id - toggleGrammarChecking: sender]; + toggleAutomaticDashSubstitution: sender]; } -void NSTextView_inst_orderFrontSharingServicePicker_(void *id, void* sender) { +void NSTextView_inst_ToggleAutomaticDataDetection(void *id, void* sender) { [(NSTextView*)id - orderFrontSharingServicePicker: sender]; + toggleAutomaticDataDetection: sender]; } -BOOL NSTextView_inst_dragSelectionWithEvent_offset_slideBack_(void *id, void* event, NSSize mouseOffset, BOOL slideBack) { - return [(NSTextView*)id - dragSelectionWithEvent: event - offset: mouseOffset - slideBack: slideBack]; +void NSTextView_inst_ToggleAutomaticLinkDetection(void *id, void* sender) { + [(NSTextView*)id + toggleAutomaticLinkDetection: sender]; } -void NSTextView_inst_startSpeaking_(void *id, void* sender) { +void NSTextView_inst_ToggleAutomaticQuoteSubstitution(void *id, void* sender) { [(NSTextView*)id - startSpeaking: sender]; + toggleAutomaticQuoteSubstitution: sender]; } -void NSTextView_inst_stopSpeaking_(void *id, void* sender) { +void NSTextView_inst_ToggleAutomaticSpellingCorrection(void *id, void* sender) { [(NSTextView*)id - stopSpeaking: sender]; + toggleAutomaticSpellingCorrection: sender]; } -void NSTextView_inst_performFindPanelAction_(void *id, void* sender) { +void NSTextView_inst_ToggleAutomaticTextCompletion(void *id, void* sender) { [(NSTextView*)id - performFindPanelAction: sender]; + toggleAutomaticTextCompletion: sender]; } -void NSTextView_inst_orderFrontLinkPanel_(void *id, void* sender) { +void NSTextView_inst_ToggleAutomaticTextReplacement(void *id, void* sender) { [(NSTextView*)id - orderFrontLinkPanel: sender]; + toggleAutomaticTextReplacement: sender]; } -void NSTextView_inst_orderFrontListPanel_(void *id, void* sender) { +void NSTextView_inst_ToggleContinuousSpellChecking(void *id, void* sender) { [(NSTextView*)id - orderFrontListPanel: sender]; + toggleContinuousSpellChecking: sender]; } -void NSTextView_inst_orderFrontSpacingPanel_(void *id, void* sender) { +void NSTextView_inst_ToggleGrammarChecking(void *id, void* sender) { [(NSTextView*)id - orderFrontSpacingPanel: sender]; + toggleGrammarChecking: sender]; } -void NSTextView_inst_orderFrontTablePanel_(void *id, void* sender) { +void NSTextView_inst_ToggleQuickLookPreviewPanel(void *id, void* sender) { [(NSTextView*)id - orderFrontTablePanel: sender]; + toggleQuickLookPreviewPanel: sender]; } -void NSTextView_inst_orderFrontSubstitutionsPanel_(void *id, void* sender) { +void NSTextView_inst_ToggleSmartInsertDelete(void *id, void* sender) { [(NSTextView*)id - orderFrontSubstitutionsPanel: sender]; + toggleSmartInsertDelete: sender]; } -void NSTextView_inst_complete_(void *id, void* sender) { +void NSTextView_inst_TurnOffKerning(void *id, void* sender) { [(NSTextView*)id - complete: sender]; + turnOffKerning: sender]; } -void NSTextView_inst_checkTextInDocument_(void *id, void* sender) { +void NSTextView_inst_TurnOffLigatures(void *id, void* sender) { [(NSTextView*)id - checkTextInDocument: sender]; + turnOffLigatures: sender]; } -void NSTextView_inst_checkTextInSelection_(void *id, void* sender) { +void NSTextView_inst_UpdateCandidates(void *id) { [(NSTextView*)id - checkTextInSelection: sender]; + updateCandidates]; } -void NSTextView_inst_toggleAutomaticDashSubstitution_(void *id, void* sender) { +void NSTextView_inst_UpdateDragTypeRegistration(void *id) { [(NSTextView*)id - toggleAutomaticDashSubstitution: sender]; + updateDragTypeRegistration]; } -void NSTextView_inst_toggleAutomaticDataDetection_(void *id, void* sender) { +void NSTextView_inst_UpdateFontPanel(void *id) { [(NSTextView*)id - toggleAutomaticDataDetection: sender]; + updateFontPanel]; } -void NSTextView_inst_toggleAutomaticSpellingCorrection_(void *id, void* sender) { +void NSTextView_inst_UpdateInsertionPointStateAndRestartTimer(void *id, BOOL restartFlag) { [(NSTextView*)id - toggleAutomaticSpellingCorrection: sender]; + updateInsertionPointStateAndRestartTimer: restartFlag]; } -void NSTextView_inst_toggleAutomaticTextReplacement_(void *id, void* sender) { +void NSTextView_inst_UpdateQuickLookPreviewPanel(void *id) { [(NSTextView*)id - toggleAutomaticTextReplacement: sender]; + updateQuickLookPreviewPanel]; } -void NSTextView_inst_updateQuickLookPreviewPanel(void *id) { +void NSTextView_inst_UpdateRuler(void *id) { [(NSTextView*)id - updateQuickLookPreviewPanel]; + updateRuler]; } -void NSTextView_inst_toggleQuickLookPreviewPanel_(void *id, void* sender) { +void NSTextView_inst_UpdateTextTouchBarItems(void *id) { [(NSTextView*)id - toggleQuickLookPreviewPanel: sender]; + updateTextTouchBarItems]; } -void* NSTextView_inst_quickLookPreviewableItemsInRanges_(void *id, void* ranges) { - return [(NSTextView*)id - quickLookPreviewableItemsInRanges: ranges]; +void NSTextView_inst_UpdateTouchBarItemIdentifiers(void *id) { + [(NSTextView*)id + updateTouchBarItemIdentifiers]; } -void NSTextView_inst_changeLayoutOrientation_(void *id, void* sender) { +void NSTextView_inst_UseAllLigatures(void *id, void* sender) { [(NSTextView*)id - changeLayoutOrientation: sender]; + useAllLigatures: sender]; } -void NSTextView_inst_updateTextTouchBarItems(void *id) { +void NSTextView_inst_UseStandardKerning(void *id, void* sender) { [(NSTextView*)id - updateTextTouchBarItems]; + useStandardKerning: sender]; } -void NSTextView_inst_updateTouchBarItemIdentifiers(void *id) { +void NSTextView_inst_UseStandardLigatures(void *id, void* sender) { [(NSTextView*)id - updateTouchBarItemIdentifiers]; + useStandardLigatures: sender]; +} + +BOOL NSTextView_inst_WriteSelectionToPasteboardTypes(void *id, void* pboard, void* types) { + return [(NSTextView*)id + writeSelectionToPasteboard: pboard + types: types]; } -void* NSTextView_inst_init(void *id) { +void* NSTextView_inst_Init(void *id) { return [(NSTextView*)id init]; } -void* NSTextView_inst_delegate(void *id) { +void* NSTextView_inst_Delegate(void *id) { return [(NSTextView*)id delegate]; } -void NSTextView_inst_setDelegate_(void *id, void* value) { +void NSTextView_inst_SetDelegate(void *id, void* value) { [(NSTextView*)id setDelegate: value]; } -void* NSTextView_inst_textContainer(void *id) { +void* NSTextView_inst_TextContainer(void *id) { return [(NSTextView*)id textContainer]; } -void NSTextView_inst_setTextContainer_(void *id, void* value) { +void NSTextView_inst_SetTextContainer(void *id, void* value) { [(NSTextView*)id setTextContainer: value]; } -NSSize NSTextView_inst_textContainerInset(void *id) { +NSSize NSTextView_inst_TextContainerInset(void *id) { return [(NSTextView*)id textContainerInset]; } -void NSTextView_inst_setTextContainerInset_(void *id, NSSize value) { +void NSTextView_inst_SetTextContainerInset(void *id, NSSize value) { [(NSTextView*)id setTextContainerInset: value]; } -NSPoint NSTextView_inst_textContainerOrigin(void *id) { +NSPoint NSTextView_inst_TextContainerOrigin(void *id) { return [(NSTextView*)id textContainerOrigin]; } -void* NSTextView_inst_layoutManager(void *id) { +void* NSTextView_inst_LayoutManager(void *id) { return [(NSTextView*)id layoutManager]; } -void* NSTextView_inst_backgroundColor(void *id) { +void* NSTextView_inst_BackgroundColor(void *id) { return [(NSTextView*)id backgroundColor]; } -void NSTextView_inst_setBackgroundColor_(void *id, void* value) { +void NSTextView_inst_SetBackgroundColor(void *id, void* value) { [(NSTextView*)id setBackgroundColor: value]; } -BOOL NSTextView_inst_drawsBackground(void *id) { +BOOL NSTextView_inst_DrawsBackground(void *id) { return [(NSTextView*)id drawsBackground]; } -void NSTextView_inst_setDrawsBackground_(void *id, BOOL value) { +void NSTextView_inst_SetDrawsBackground(void *id, BOOL value) { [(NSTextView*)id setDrawsBackground: value]; } -BOOL NSTextView_inst_allowsDocumentBackgroundColorChange(void *id) { +BOOL NSTextView_inst_AllowsDocumentBackgroundColorChange(void *id) { return [(NSTextView*)id allowsDocumentBackgroundColorChange]; } -void NSTextView_inst_setAllowsDocumentBackgroundColorChange_(void *id, BOOL value) { +void NSTextView_inst_SetAllowsDocumentBackgroundColorChange(void *id, BOOL value) { [(NSTextView*)id setAllowsDocumentBackgroundColorChange: value]; } -BOOL NSTextView_inst_shouldDrawInsertionPoint(void *id) { +BOOL NSTextView_inst_ShouldDrawInsertionPoint(void *id) { return [(NSTextView*)id shouldDrawInsertionPoint]; } -void* NSTextView_inst_allowedInputSourceLocales(void *id) { +void* NSTextView_inst_AllowedInputSourceLocales(void *id) { return [(NSTextView*)id allowedInputSourceLocales]; } -void NSTextView_inst_setAllowedInputSourceLocales_(void *id, void* value) { +void NSTextView_inst_SetAllowedInputSourceLocales(void *id, void* value) { [(NSTextView*)id setAllowedInputSourceLocales: value]; } -BOOL NSTextView_inst_allowsUndo(void *id) { +BOOL NSTextView_inst_AllowsUndo(void *id) { return [(NSTextView*)id allowsUndo]; } -void NSTextView_inst_setAllowsUndo_(void *id, BOOL value) { +void NSTextView_inst_SetAllowsUndo(void *id, BOOL value) { [(NSTextView*)id setAllowsUndo: value]; } -BOOL NSTextView_inst_isEditable(void *id) { +BOOL NSTextView_inst_IsEditable(void *id) { return [(NSTextView*)id isEditable]; } -void NSTextView_inst_setEditable_(void *id, BOOL value) { +void NSTextView_inst_SetEditable(void *id, BOOL value) { [(NSTextView*)id setEditable: value]; } -BOOL NSTextView_inst_isSelectable(void *id) { +BOOL NSTextView_inst_IsSelectable(void *id) { return [(NSTextView*)id isSelectable]; } -void NSTextView_inst_setSelectable_(void *id, BOOL value) { +void NSTextView_inst_SetSelectable(void *id, BOOL value) { [(NSTextView*)id setSelectable: value]; } -BOOL NSTextView_inst_isFieldEditor(void *id) { +BOOL NSTextView_inst_IsFieldEditor(void *id) { return [(NSTextView*)id isFieldEditor]; } -void NSTextView_inst_setFieldEditor_(void *id, BOOL value) { +void NSTextView_inst_SetFieldEditor(void *id, BOOL value) { [(NSTextView*)id setFieldEditor: value]; } -BOOL NSTextView_inst_isRichText(void *id) { +BOOL NSTextView_inst_IsRichText(void *id) { return [(NSTextView*)id isRichText]; } -void NSTextView_inst_setRichText_(void *id, BOOL value) { +void NSTextView_inst_SetRichText(void *id, BOOL value) { [(NSTextView*)id setRichText: value]; } -BOOL NSTextView_inst_importsGraphics(void *id) { +BOOL NSTextView_inst_ImportsGraphics(void *id) { return [(NSTextView*)id importsGraphics]; } -void NSTextView_inst_setImportsGraphics_(void *id, BOOL value) { +void NSTextView_inst_SetImportsGraphics(void *id, BOOL value) { [(NSTextView*)id setImportsGraphics: value]; } -BOOL NSTextView_inst_allowsImageEditing(void *id) { +BOOL NSTextView_inst_AllowsImageEditing(void *id) { return [(NSTextView*)id allowsImageEditing]; } -void NSTextView_inst_setAllowsImageEditing_(void *id, BOOL value) { +void NSTextView_inst_SetAllowsImageEditing(void *id, BOOL value) { [(NSTextView*)id setAllowsImageEditing: value]; } -BOOL NSTextView_inst_isAutomaticQuoteSubstitutionEnabled(void *id) { +BOOL NSTextView_inst_IsAutomaticQuoteSubstitutionEnabled(void *id) { return [(NSTextView*)id isAutomaticQuoteSubstitutionEnabled]; } -void NSTextView_inst_setAutomaticQuoteSubstitutionEnabled_(void *id, BOOL value) { +void NSTextView_inst_SetAutomaticQuoteSubstitutionEnabled(void *id, BOOL value) { [(NSTextView*)id setAutomaticQuoteSubstitutionEnabled: value]; } -BOOL NSTextView_inst_isAutomaticLinkDetectionEnabled(void *id) { +BOOL NSTextView_inst_IsAutomaticLinkDetectionEnabled(void *id) { return [(NSTextView*)id isAutomaticLinkDetectionEnabled]; } -void NSTextView_inst_setAutomaticLinkDetectionEnabled_(void *id, BOOL value) { +void NSTextView_inst_SetAutomaticLinkDetectionEnabled(void *id, BOOL value) { [(NSTextView*)id setAutomaticLinkDetectionEnabled: value]; } -BOOL NSTextView_inst_displaysLinkToolTips(void *id) { +BOOL NSTextView_inst_DisplaysLinkToolTips(void *id) { return [(NSTextView*)id displaysLinkToolTips]; } -void NSTextView_inst_setDisplaysLinkToolTips_(void *id, BOOL value) { +void NSTextView_inst_SetDisplaysLinkToolTips(void *id, BOOL value) { [(NSTextView*)id setDisplaysLinkToolTips: value]; } -BOOL NSTextView_inst_isAutomaticTextCompletionEnabled(void *id) { +BOOL NSTextView_inst_IsAutomaticTextCompletionEnabled(void *id) { return [(NSTextView*)id isAutomaticTextCompletionEnabled]; } -void NSTextView_inst_setAutomaticTextCompletionEnabled_(void *id, BOOL value) { +void NSTextView_inst_SetAutomaticTextCompletionEnabled(void *id, BOOL value) { [(NSTextView*)id setAutomaticTextCompletionEnabled: value]; } -BOOL NSTextView_inst_usesAdaptiveColorMappingForDarkAppearance(void *id) { +BOOL NSTextView_inst_UsesAdaptiveColorMappingForDarkAppearance(void *id) { return [(NSTextView*)id usesAdaptiveColorMappingForDarkAppearance]; } -void NSTextView_inst_setUsesAdaptiveColorMappingForDarkAppearance_(void *id, BOOL value) { +void NSTextView_inst_SetUsesAdaptiveColorMappingForDarkAppearance(void *id, BOOL value) { [(NSTextView*)id setUsesAdaptiveColorMappingForDarkAppearance: value]; } -BOOL NSTextView_inst_usesRolloverButtonForSelection(void *id) { +BOOL NSTextView_inst_UsesRolloverButtonForSelection(void *id) { return [(NSTextView*)id usesRolloverButtonForSelection]; } -void NSTextView_inst_setUsesRolloverButtonForSelection_(void *id, BOOL value) { +void NSTextView_inst_SetUsesRolloverButtonForSelection(void *id, BOOL value) { [(NSTextView*)id setUsesRolloverButtonForSelection: value]; } -BOOL NSTextView_inst_usesRuler(void *id) { +BOOL NSTextView_inst_UsesRuler(void *id) { return [(NSTextView*)id usesRuler]; } -void NSTextView_inst_setUsesRuler_(void *id, BOOL value) { +void NSTextView_inst_SetUsesRuler(void *id, BOOL value) { [(NSTextView*)id setUsesRuler: value]; } -BOOL NSTextView_inst_isRulerVisible(void *id) { +BOOL NSTextView_inst_IsRulerVisible(void *id) { return [(NSTextView*)id isRulerVisible]; } -void NSTextView_inst_setRulerVisible_(void *id, BOOL value) { +void NSTextView_inst_SetRulerVisible(void *id, BOOL value) { [(NSTextView*)id setRulerVisible: value]; } -BOOL NSTextView_inst_usesInspectorBar(void *id) { +BOOL NSTextView_inst_UsesInspectorBar(void *id) { return [(NSTextView*)id usesInspectorBar]; } -void NSTextView_inst_setUsesInspectorBar_(void *id, BOOL value) { +void NSTextView_inst_SetUsesInspectorBar(void *id, BOOL value) { [(NSTextView*)id setUsesInspectorBar: value]; } -void* NSTextView_inst_selectedRanges(void *id) { +void* NSTextView_inst_SelectedRanges(void *id) { return [(NSTextView*)id selectedRanges]; } -void NSTextView_inst_setSelectedRanges_(void *id, void* value) { +void NSTextView_inst_SetSelectedRanges(void *id, void* value) { [(NSTextView*)id setSelectedRanges: value]; } -void* NSTextView_inst_insertionPointColor(void *id) { +void* NSTextView_inst_InsertionPointColor(void *id) { return [(NSTextView*)id insertionPointColor]; } -void NSTextView_inst_setInsertionPointColor_(void *id, void* value) { +void NSTextView_inst_SetInsertionPointColor(void *id, void* value) { [(NSTextView*)id setInsertionPointColor: value]; } -void* NSTextView_inst_selectedTextAttributes(void *id) { +void* NSTextView_inst_SelectedTextAttributes(void *id) { return [(NSTextView*)id selectedTextAttributes]; } -void NSTextView_inst_setSelectedTextAttributes_(void *id, void* value) { +void NSTextView_inst_SetSelectedTextAttributes(void *id, void* value) { [(NSTextView*)id setSelectedTextAttributes: value]; } -void* NSTextView_inst_markedTextAttributes(void *id) { +void* NSTextView_inst_MarkedTextAttributes(void *id) { return [(NSTextView*)id markedTextAttributes]; } -void NSTextView_inst_setMarkedTextAttributes_(void *id, void* value) { +void NSTextView_inst_SetMarkedTextAttributes(void *id, void* value) { [(NSTextView*)id setMarkedTextAttributes: value]; } -void* NSTextView_inst_linkTextAttributes(void *id) { +void* NSTextView_inst_LinkTextAttributes(void *id) { return [(NSTextView*)id linkTextAttributes]; } -void NSTextView_inst_setLinkTextAttributes_(void *id, void* value) { +void NSTextView_inst_SetLinkTextAttributes(void *id, void* value) { [(NSTextView*)id setLinkTextAttributes: value]; } -void* NSTextView_inst_readablePasteboardTypes(void *id) { +void* NSTextView_inst_ReadablePasteboardTypes(void *id) { return [(NSTextView*)id readablePasteboardTypes]; } -void* NSTextView_inst_writablePasteboardTypes(void *id) { +void* NSTextView_inst_WritablePasteboardTypes(void *id) { return [(NSTextView*)id writablePasteboardTypes]; } -void* NSTextView_inst_typingAttributes(void *id) { +void* NSTextView_inst_TypingAttributes(void *id) { return [(NSTextView*)id typingAttributes]; } -void NSTextView_inst_setTypingAttributes_(void *id, void* value) { +void NSTextView_inst_SetTypingAttributes(void *id, void* value) { [(NSTextView*)id setTypingAttributes: value]; } -BOOL NSTextView_inst_isCoalescingUndo(void *id) { +BOOL NSTextView_inst_IsCoalescingUndo(void *id) { return [(NSTextView*)id isCoalescingUndo]; } -void* NSTextView_inst_acceptableDragTypes(void *id) { +void* NSTextView_inst_AcceptableDragTypes(void *id) { return [(NSTextView*)id acceptableDragTypes]; } -void* NSTextView_inst_rangesForUserCharacterAttributeChange(void *id) { +void* NSTextView_inst_RangesForUserCharacterAttributeChange(void *id) { return [(NSTextView*)id rangesForUserCharacterAttributeChange]; } -void* NSTextView_inst_rangesForUserParagraphAttributeChange(void *id) { +void* NSTextView_inst_RangesForUserParagraphAttributeChange(void *id) { return [(NSTextView*)id rangesForUserParagraphAttributeChange]; } -void* NSTextView_inst_rangesForUserTextChange(void *id) { +void* NSTextView_inst_RangesForUserTextChange(void *id) { return [(NSTextView*)id rangesForUserTextChange]; } -BOOL NSTextView_inst_smartInsertDeleteEnabled(void *id) { +BOOL NSTextView_inst_SmartInsertDeleteEnabled(void *id) { return [(NSTextView*)id smartInsertDeleteEnabled]; } -void NSTextView_inst_setSmartInsertDeleteEnabled_(void *id, BOOL value) { +void NSTextView_inst_SetSmartInsertDeleteEnabled(void *id, BOOL value) { [(NSTextView*)id setSmartInsertDeleteEnabled: value]; } -BOOL NSTextView_inst_isContinuousSpellCheckingEnabled(void *id) { +BOOL NSTextView_inst_IsContinuousSpellCheckingEnabled(void *id) { return [(NSTextView*)id isContinuousSpellCheckingEnabled]; } -void NSTextView_inst_setContinuousSpellCheckingEnabled_(void *id, BOOL value) { +void NSTextView_inst_SetContinuousSpellCheckingEnabled(void *id, BOOL value) { [(NSTextView*)id setContinuousSpellCheckingEnabled: value]; } -long NSTextView_inst_spellCheckerDocumentTag(void *id) { +long NSTextView_inst_SpellCheckerDocumentTag(void *id) { return [(NSTextView*)id spellCheckerDocumentTag]; } -BOOL NSTextView_inst_isGrammarCheckingEnabled(void *id) { +BOOL NSTextView_inst_IsGrammarCheckingEnabled(void *id) { return [(NSTextView*)id isGrammarCheckingEnabled]; } -void NSTextView_inst_setGrammarCheckingEnabled_(void *id, BOOL value) { +void NSTextView_inst_SetGrammarCheckingEnabled(void *id, BOOL value) { [(NSTextView*)id setGrammarCheckingEnabled: value]; } -BOOL NSTextView_inst_acceptsGlyphInfo(void *id) { +BOOL NSTextView_inst_AcceptsGlyphInfo(void *id) { return [(NSTextView*)id acceptsGlyphInfo]; } -void NSTextView_inst_setAcceptsGlyphInfo_(void *id, BOOL value) { +void NSTextView_inst_SetAcceptsGlyphInfo(void *id, BOOL value) { [(NSTextView*)id setAcceptsGlyphInfo: value]; } -BOOL NSTextView_inst_usesFontPanel(void *id) { +BOOL NSTextView_inst_UsesFontPanel(void *id) { return [(NSTextView*)id usesFontPanel]; } -void NSTextView_inst_setUsesFontPanel_(void *id, BOOL value) { +void NSTextView_inst_SetUsesFontPanel(void *id, BOOL value) { [(NSTextView*)id setUsesFontPanel: value]; } -BOOL NSTextView_inst_usesFindPanel(void *id) { +BOOL NSTextView_inst_UsesFindPanel(void *id) { return [(NSTextView*)id usesFindPanel]; } -void NSTextView_inst_setUsesFindPanel_(void *id, BOOL value) { +void NSTextView_inst_SetUsesFindPanel(void *id, BOOL value) { [(NSTextView*)id setUsesFindPanel: value]; } -BOOL NSTextView_inst_isAutomaticDashSubstitutionEnabled(void *id) { +BOOL NSTextView_inst_IsAutomaticDashSubstitutionEnabled(void *id) { return [(NSTextView*)id isAutomaticDashSubstitutionEnabled]; } -void NSTextView_inst_setAutomaticDashSubstitutionEnabled_(void *id, BOOL value) { +void NSTextView_inst_SetAutomaticDashSubstitutionEnabled(void *id, BOOL value) { [(NSTextView*)id setAutomaticDashSubstitutionEnabled: value]; } -BOOL NSTextView_inst_isAutomaticDataDetectionEnabled(void *id) { +BOOL NSTextView_inst_IsAutomaticDataDetectionEnabled(void *id) { return [(NSTextView*)id isAutomaticDataDetectionEnabled]; } -void NSTextView_inst_setAutomaticDataDetectionEnabled_(void *id, BOOL value) { +void NSTextView_inst_SetAutomaticDataDetectionEnabled(void *id, BOOL value) { [(NSTextView*)id setAutomaticDataDetectionEnabled: value]; } -BOOL NSTextView_inst_isAutomaticSpellingCorrectionEnabled(void *id) { +BOOL NSTextView_inst_IsAutomaticSpellingCorrectionEnabled(void *id) { return [(NSTextView*)id isAutomaticSpellingCorrectionEnabled]; } -void NSTextView_inst_setAutomaticSpellingCorrectionEnabled_(void *id, BOOL value) { +void NSTextView_inst_SetAutomaticSpellingCorrectionEnabled(void *id, BOOL value) { [(NSTextView*)id setAutomaticSpellingCorrectionEnabled: value]; } -BOOL NSTextView_inst_isAutomaticTextReplacementEnabled(void *id) { +BOOL NSTextView_inst_IsAutomaticTextReplacementEnabled(void *id) { return [(NSTextView*)id isAutomaticTextReplacementEnabled]; } -void NSTextView_inst_setAutomaticTextReplacementEnabled_(void *id, BOOL value) { +void NSTextView_inst_SetAutomaticTextReplacementEnabled(void *id, BOOL value) { [(NSTextView*)id setAutomaticTextReplacementEnabled: value]; } -BOOL NSTextView_inst_usesFindBar(void *id) { +BOOL NSTextView_inst_UsesFindBar(void *id) { return [(NSTextView*)id usesFindBar]; } -void NSTextView_inst_setUsesFindBar_(void *id, BOOL value) { +void NSTextView_inst_SetUsesFindBar(void *id, BOOL value) { [(NSTextView*)id setUsesFindBar: value]; } -BOOL NSTextView_inst_isIncrementalSearchingEnabled(void *id) { +BOOL NSTextView_inst_IsIncrementalSearchingEnabled(void *id) { return [(NSTextView*)id isIncrementalSearchingEnabled]; } -void NSTextView_inst_setIncrementalSearchingEnabled_(void *id, BOOL value) { +void NSTextView_inst_SetIncrementalSearchingEnabled(void *id, BOOL value) { [(NSTextView*)id setIncrementalSearchingEnabled: value]; } -BOOL NSTextView_inst_allowsCharacterPickerTouchBarItem(void *id) { +BOOL NSTextView_inst_AllowsCharacterPickerTouchBarItem(void *id) { return [(NSTextView*)id allowsCharacterPickerTouchBarItem]; } -void NSTextView_inst_setAllowsCharacterPickerTouchBarItem_(void *id, BOOL value) { +void NSTextView_inst_SetAllowsCharacterPickerTouchBarItem(void *id, BOOL value) { [(NSTextView*)id setAllowsCharacterPickerTouchBarItem: value]; } -void* NSTextView_inst_font(void *id) { +void* NSTextView_inst_Font(void *id) { return [(NSTextView*)id font]; } -void NSTextView_inst_setFont_(void *id, void* value) { +void NSTextView_inst_SetFont(void *id, void* value) { [(NSTextView*)id setFont: value]; } -void* NSView_inst_initWithFrame_(void *id, NSRect frameRect) { +BOOL NSView_inst_AcceptsFirstMouse(void *id, void* event) { return [(NSView*)id - initWithFrame: frameRect]; + acceptsFirstMouse: event]; } -void NSView_inst_prepareForReuse(void *id) { +void NSView_inst_AddConstraints(void *id, void* constraints) { [(NSView*)id - prepareForReuse]; + addConstraints: constraints]; } -void NSView_inst_addSubview_(void *id, void* view) { +void NSView_inst_AddSubview(void *id, void* view) { [(NSView*)id addSubview: view]; } -void NSView_inst_addSubview_positioned_relativeTo_(void *id, void* view, unsigned long place, void* otherView) { +void NSView_inst_AddSubviewPositionedRelativeTo(void *id, void* view, unsigned long place, void* otherView) { [(NSView*)id addSubview: view positioned: place relativeTo: otherView]; } -void NSView_inst_didAddSubview_(void *id, void* subview) { - [(NSView*)id - didAddSubview: subview]; +NSRect NSView_inst_AdjustScroll(void *id, NSRect newVisible) { + return [(NSView*)id + adjustScroll: newVisible]; } -void NSView_inst_removeFromSuperview(void *id) { - [(NSView*)id - removeFromSuperview]; +NSRect NSView_inst_AlignmentRectForFrame(void *id, NSRect frame) { + return [(NSView*)id + alignmentRectForFrame: frame]; +} + +void* NSView_inst_AncestorSharedWithView(void *id, void* view) { + return [(NSView*)id + ancestorSharedWithView: view]; +} + +BOOL NSView_inst_Autoscroll(void *id, void* event) { + return [(NSView*)id + autoscroll: event]; } -void NSView_inst_removeFromSuperviewWithoutNeedingDisplay(void *id) { +void NSView_inst_BeginDocument(void *id) { [(NSView*)id - removeFromSuperviewWithoutNeedingDisplay]; + beginDocument]; } -void NSView_inst_replaceSubview_with_(void *id, void* oldView, void* newView) { +void NSView_inst_BeginPageInRectAtPlacement(void *id, NSRect rect, NSPoint location) { [(NSView*)id - replaceSubview: oldView - with: newView]; + beginPageInRect: rect + atPlacement: location]; } -BOOL NSView_inst_isDescendantOf_(void *id, void* view) { +NSRect NSView_inst_CenterScanRect(void *id, NSRect rect) { return [(NSView*)id - isDescendantOf: view]; + centerScanRect: rect]; } -void* NSView_inst_ancestorSharedWithView_(void *id, void* view) { +NSPoint NSView_inst_ConvertPointFromView(void *id, NSPoint point, void* view) { return [(NSView*)id - ancestorSharedWithView: view]; + convertPoint: point + fromView: view]; } -void NSView_inst_viewDidMoveToSuperview(void *id) { - [(NSView*)id - viewDidMoveToSuperview]; +NSPoint NSView_inst_ConvertPointToView(void *id, NSPoint point, void* view) { + return [(NSView*)id + convertPoint: point + toView: view]; } -void NSView_inst_viewDidMoveToWindow(void *id) { - [(NSView*)id - viewDidMoveToWindow]; +NSPoint NSView_inst_ConvertPointFromBacking(void *id, NSPoint point) { + return [(NSView*)id + convertPointFromBacking: point]; } -void NSView_inst_viewWillMoveToSuperview_(void *id, void* newSuperview) { - [(NSView*)id - viewWillMoveToSuperview: newSuperview]; +NSPoint NSView_inst_ConvertPointFromLayer(void *id, NSPoint point) { + return [(NSView*)id + convertPointFromLayer: point]; } -void NSView_inst_viewWillMoveToWindow_(void *id, void* newWindow) { - [(NSView*)id - viewWillMoveToWindow: newWindow]; +NSPoint NSView_inst_ConvertPointToBacking(void *id, NSPoint point) { + return [(NSView*)id + convertPointToBacking: point]; } -void NSView_inst_willRemoveSubview_(void *id, void* subview) { - [(NSView*)id - willRemoveSubview: subview]; +NSPoint NSView_inst_ConvertPointToLayer(void *id, NSPoint point) { + return [(NSView*)id + convertPointToLayer: point]; } -void NSView_inst_setFrameOrigin_(void *id, NSPoint newOrigin) { - [(NSView*)id - setFrameOrigin: newOrigin]; +NSRect NSView_inst_ConvertRectFromView(void *id, NSRect rect, void* view) { + return [(NSView*)id + convertRect: rect + fromView: view]; } -void NSView_inst_setFrameSize_(void *id, NSSize newSize) { - [(NSView*)id - setFrameSize: newSize]; +NSRect NSView_inst_ConvertRectToView(void *id, NSRect rect, void* view) { + return [(NSView*)id + convertRect: rect + toView: view]; } -void NSView_inst_setBoundsOrigin_(void *id, NSPoint newOrigin) { - [(NSView*)id - setBoundsOrigin: newOrigin]; +NSRect NSView_inst_ConvertRectFromBacking(void *id, NSRect rect) { + return [(NSView*)id + convertRectFromBacking: rect]; } -void NSView_inst_setBoundsSize_(void *id, NSSize newSize) { - [(NSView*)id - setBoundsSize: newSize]; +NSRect NSView_inst_ConvertRectFromLayer(void *id, NSRect rect) { + return [(NSView*)id + convertRectFromLayer: rect]; } -void* NSView_inst_makeBackingLayer(void *id) { +NSRect NSView_inst_ConvertRectToBacking(void *id, NSRect rect) { return [(NSView*)id - makeBackingLayer]; + convertRectToBacking: rect]; } -void NSView_inst_updateLayer(void *id) { - [(NSView*)id - updateLayer]; +NSRect NSView_inst_ConvertRectToLayer(void *id, NSRect rect) { + return [(NSView*)id + convertRectToLayer: rect]; } -void NSView_inst_drawRect_(void *id, NSRect dirtyRect) { - [(NSView*)id - drawRect: dirtyRect]; +NSSize NSView_inst_ConvertSizeFromView(void *id, NSSize size, void* view) { + return [(NSView*)id + convertSize: size + fromView: view]; } -BOOL NSView_inst_needsToDrawRect_(void *id, NSRect rect) { +NSSize NSView_inst_ConvertSizeToView(void *id, NSSize size, void* view) { return [(NSView*)id - needsToDrawRect: rect]; + convertSize: size + toView: view]; } -void NSView_inst_print_(void *id, void* sender) { - [(NSView*)id - print: sender]; +NSSize NSView_inst_ConvertSizeFromBacking(void *id, NSSize size) { + return [(NSView*)id + convertSizeFromBacking: size]; } -void NSView_inst_beginPageInRect_atPlacement_(void *id, NSRect rect, NSPoint location) { - [(NSView*)id - beginPageInRect: rect - atPlacement: location]; +NSSize NSView_inst_ConvertSizeFromLayer(void *id, NSSize size) { + return [(NSView*)id + convertSizeFromLayer: size]; +} + +NSSize NSView_inst_ConvertSizeToBacking(void *id, NSSize size) { + return [(NSView*)id + convertSizeToBacking: size]; +} + +NSSize NSView_inst_ConvertSizeToLayer(void *id, NSSize size) { + return [(NSView*)id + convertSizeToLayer: size]; } -void* NSView_inst_dataWithEPSInsideRect_(void *id, NSRect rect) { +void* NSView_inst_DataWithEPSInsideRect(void *id, NSRect rect) { return [(NSView*)id dataWithEPSInsideRect: rect]; } -void* NSView_inst_dataWithPDFInsideRect_(void *id, NSRect rect) { +void* NSView_inst_DataWithPDFInsideRect(void *id, NSRect rect) { return [(NSView*)id dataWithPDFInsideRect: rect]; } -void NSView_inst_writeEPSInsideRect_toPasteboard_(void *id, NSRect rect, void* pasteboard) { +void NSView_inst_DidAddSubview(void *id, void* subview) { [(NSView*)id - writeEPSInsideRect: rect - toPasteboard: pasteboard]; + didAddSubview: subview]; } -void NSView_inst_writePDFInsideRect_toPasteboard_(void *id, NSRect rect, void* pasteboard) { +void NSView_inst_DidCloseMenuWithEvent(void *id, void* menu, void* event) { [(NSView*)id - writePDFInsideRect: rect - toPasteboard: pasteboard]; + didCloseMenu: menu + withEvent: event]; } -void NSView_inst_drawPageBorderWithSize_(void *id, NSSize borderSize) { +void NSView_inst_DiscardCursorRects(void *id) { [(NSView*)id - drawPageBorderWithSize: borderSize]; + discardCursorRects]; } -NSRect NSView_inst_rectForPage_(void *id, long page) { - return [(NSView*)id - rectForPage: page]; +void NSView_inst_Display(void *id) { + [(NSView*)id + display]; } -NSPoint NSView_inst_locationOfPrintRect_(void *id, NSRect rect) { - return [(NSView*)id - locationOfPrintRect: rect]; +void NSView_inst_DisplayIfNeeded(void *id) { + [(NSView*)id + displayIfNeeded]; } -void NSView_inst_setNeedsDisplayInRect_(void *id, NSRect invalidRect) { +void NSView_inst_DisplayIfNeededIgnoringOpacity(void *id) { [(NSView*)id - setNeedsDisplayInRect: invalidRect]; + displayIfNeededIgnoringOpacity]; } -void NSView_inst_display(void *id) { +void NSView_inst_DisplayIfNeededInRect(void *id, NSRect rect) { [(NSView*)id - display]; + displayIfNeededInRect: rect]; } -void NSView_inst_displayRect_(void *id, NSRect rect) { +void NSView_inst_DisplayIfNeededInRectIgnoringOpacity(void *id, NSRect rect) { [(NSView*)id - displayRect: rect]; + displayIfNeededInRectIgnoringOpacity: rect]; } -void NSView_inst_displayRectIgnoringOpacity_(void *id, NSRect rect) { +void NSView_inst_DisplayRect(void *id, NSRect rect) { [(NSView*)id - displayRectIgnoringOpacity: rect]; + displayRect: rect]; } -void NSView_inst_displayIfNeeded(void *id) { +void NSView_inst_DisplayRectIgnoringOpacity(void *id, NSRect rect) { [(NSView*)id - displayIfNeeded]; + displayRectIgnoringOpacity: rect]; } -void NSView_inst_displayIfNeededInRect_(void *id, NSRect rect) { +void NSView_inst_DrawFocusRingMask(void *id) { [(NSView*)id - displayIfNeededInRect: rect]; + drawFocusRingMask]; } -void NSView_inst_displayIfNeededIgnoringOpacity(void *id) { +void NSView_inst_DrawPageBorderWithSize(void *id, NSSize borderSize) { [(NSView*)id - displayIfNeededIgnoringOpacity]; + drawPageBorderWithSize: borderSize]; } -void NSView_inst_displayIfNeededInRectIgnoringOpacity_(void *id, NSRect rect) { +void NSView_inst_DrawRect(void *id, NSRect dirtyRect) { [(NSView*)id - displayIfNeededInRectIgnoringOpacity: rect]; + drawRect: dirtyRect]; } -void NSView_inst_translateRectsNeedingDisplayInRect_by_(void *id, NSRect clipRect, NSSize delta) { +void NSView_inst_EndDocument(void *id) { [(NSView*)id - translateRectsNeedingDisplayInRect: clipRect - by: delta]; + endDocument]; } -void NSView_inst_viewWillDraw(void *id) { +void NSView_inst_EndPage(void *id) { [(NSView*)id - viewWillDraw]; + endPage]; } -NSPoint NSView_inst_convertPointFromBacking_(void *id, NSPoint point) { +BOOL NSView_inst_EnterFullScreenModeWithOptions(void *id, void* screen, void* options) { return [(NSView*)id - convertPointFromBacking: point]; + enterFullScreenMode: screen + withOptions: options]; } -NSPoint NSView_inst_convertPointToBacking_(void *id, NSPoint point) { - return [(NSView*)id - convertPointToBacking: point]; +void NSView_inst_ExerciseAmbiguityInLayout(void *id) { + [(NSView*)id + exerciseAmbiguityInLayout]; } -NSPoint NSView_inst_convertPointFromLayer_(void *id, NSPoint point) { - return [(NSView*)id - convertPointFromLayer: point]; +void NSView_inst_ExitFullScreenModeWithOptions(void *id, void* options) { + [(NSView*)id + exitFullScreenModeWithOptions: options]; } -NSPoint NSView_inst_convertPointToLayer_(void *id, NSPoint point) { +NSRect NSView_inst_FrameForAlignmentRect(void *id, NSRect alignmentRect) { return [(NSView*)id - convertPointToLayer: point]; -} - -NSRect NSView_inst_convertRectFromBacking_(void *id, NSRect rect) { - return [(NSView*)id - convertRectFromBacking: rect]; + frameForAlignmentRect: alignmentRect]; } -NSRect NSView_inst_convertRectToBacking_(void *id, NSRect rect) { +void* NSView_inst_HitTest(void *id, NSPoint point) { return [(NSView*)id - convertRectToBacking: rect]; + hitTest: point]; } -NSRect NSView_inst_convertRectFromLayer_(void *id, NSRect rect) { +void* NSView_inst_InitWithFrame(void *id, NSRect frameRect) { return [(NSView*)id - convertRectFromLayer: rect]; + initWithFrame: frameRect]; } -NSRect NSView_inst_convertRectToLayer_(void *id, NSRect rect) { - return [(NSView*)id - convertRectToLayer: rect]; +void NSView_inst_InvalidateIntrinsicContentSize(void *id) { + [(NSView*)id + invalidateIntrinsicContentSize]; } -NSSize NSView_inst_convertSizeFromBacking_(void *id, NSSize size) { +BOOL NSView_inst_IsDescendantOf(void *id, void* view) { return [(NSView*)id - convertSizeFromBacking: size]; + isDescendantOf: view]; } -NSSize NSView_inst_convertSizeToBacking_(void *id, NSSize size) { - return [(NSView*)id - convertSizeToBacking: size]; +void NSView_inst_Layout(void *id) { + [(NSView*)id + layout]; } -NSSize NSView_inst_convertSizeFromLayer_(void *id, NSSize size) { - return [(NSView*)id - convertSizeFromLayer: size]; +void NSView_inst_LayoutSubtreeIfNeeded(void *id) { + [(NSView*)id + layoutSubtreeIfNeeded]; } -NSSize NSView_inst_convertSizeToLayer_(void *id, NSSize size) { +NSPoint NSView_inst_LocationOfPrintRect(void *id, NSRect rect) { return [(NSView*)id - convertSizeToLayer: size]; + locationOfPrintRect: rect]; } -NSPoint NSView_inst_convertPoint_fromView_(void *id, NSPoint point, void* view) { +void* NSView_inst_MakeBackingLayer(void *id) { return [(NSView*)id - convertPoint: point - fromView: view]; + makeBackingLayer]; } -NSPoint NSView_inst_convertPoint_toView_(void *id, NSPoint point, void* view) { +void* NSView_inst_MenuForEvent(void *id, void* event) { return [(NSView*)id - convertPoint: point - toView: view]; + menuForEvent: event]; } -NSSize NSView_inst_convertSize_fromView_(void *id, NSSize size, void* view) { +BOOL NSView_inst_MouseInRect(void *id, NSPoint point, NSRect rect) { return [(NSView*)id - convertSize: size - fromView: view]; + mouse: point + inRect: rect]; } -NSSize NSView_inst_convertSize_toView_(void *id, NSSize size, void* view) { +BOOL NSView_inst_NeedsToDrawRect(void *id, NSRect rect) { return [(NSView*)id - convertSize: size - toView: view]; + needsToDrawRect: rect]; } -NSRect NSView_inst_convertRect_fromView_(void *id, NSRect rect, void* view) { - return [(NSView*)id - convertRect: rect - fromView: view]; +void NSView_inst_NoteFocusRingMaskChanged(void *id) { + [(NSView*)id + noteFocusRingMaskChanged]; } -NSRect NSView_inst_convertRect_toView_(void *id, NSRect rect, void* view) { +BOOL NSView_inst_PerformKeyEquivalent(void *id, void* event) { return [(NSView*)id - convertRect: rect - toView: view]; + performKeyEquivalent: event]; } -NSRect NSView_inst_centerScanRect_(void *id, NSRect rect) { - return [(NSView*)id - centerScanRect: rect]; +void NSView_inst_PrepareContentInRect(void *id, NSRect rect) { + [(NSView*)id + prepareContentInRect: rect]; } -void NSView_inst_translateOriginToPoint_(void *id, NSPoint translation) { +void NSView_inst_PrepareForReuse(void *id) { [(NSView*)id - translateOriginToPoint: translation]; + prepareForReuse]; } -void NSView_inst_scaleUnitSquareToSize_(void *id, NSSize newUnitSize) { +void NSView_inst_Print(void *id, void* sender) { [(NSView*)id - scaleUnitSquareToSize: newUnitSize]; + print: sender]; } -void NSView_inst_rotateByAngle_(void *id, double angle) { - [(NSView*)id - rotateByAngle: angle]; +NSRect NSView_inst_RectForPage(void *id, long page) { + return [(NSView*)id + rectForPage: page]; } -void NSView_inst_resizeSubviewsWithOldSize_(void *id, NSSize oldSize) { - [(NSView*)id - resizeSubviewsWithOldSize: oldSize]; +NSRect NSView_inst_RectForSmartMagnificationAtPointInRect(void *id, NSPoint location, NSRect visibleRect) { + return [(NSView*)id + rectForSmartMagnificationAtPoint: location + inRect: visibleRect]; } -void NSView_inst_resizeWithOldSuperviewSize_(void *id, NSSize oldSize) { +void NSView_inst_RegisterForDraggedTypes(void *id, void* newTypes) { [(NSView*)id - resizeWithOldSuperviewSize: oldSize]; + registerForDraggedTypes: newTypes]; } -void NSView_inst_addConstraints_(void *id, void* constraints) { +void NSView_inst_RemoveAllToolTips(void *id) { [(NSView*)id - addConstraints: constraints]; + removeAllToolTips]; } -void NSView_inst_removeConstraints_(void *id, void* constraints) { +void NSView_inst_RemoveConstraints(void *id, void* constraints) { [(NSView*)id removeConstraints: constraints]; } -void NSView_inst_invalidateIntrinsicContentSize(void *id) { +void NSView_inst_RemoveFromSuperview(void *id) { [(NSView*)id - invalidateIntrinsicContentSize]; -} - -NSRect NSView_inst_alignmentRectForFrame_(void *id, NSRect frame) { - return [(NSView*)id - alignmentRectForFrame: frame]; -} - -NSRect NSView_inst_frameForAlignmentRect_(void *id, NSRect alignmentRect) { - return [(NSView*)id - frameForAlignmentRect: alignmentRect]; + removeFromSuperview]; } -void NSView_inst_layout(void *id) { +void NSView_inst_RemoveFromSuperviewWithoutNeedingDisplay(void *id) { [(NSView*)id - layout]; + removeFromSuperviewWithoutNeedingDisplay]; } -void NSView_inst_layoutSubtreeIfNeeded(void *id) { +void NSView_inst_ReplaceSubviewWith(void *id, void* oldView, void* newView) { [(NSView*)id - layoutSubtreeIfNeeded]; + replaceSubview: oldView + with: newView]; } -void NSView_inst_updateConstraints(void *id) { +void NSView_inst_ResetCursorRects(void *id) { [(NSView*)id - updateConstraints]; + resetCursorRects]; } -void NSView_inst_updateConstraintsForSubtreeIfNeeded(void *id) { +void NSView_inst_ResizeSubviewsWithOldSize(void *id, NSSize oldSize) { [(NSView*)id - updateConstraintsForSubtreeIfNeeded]; + resizeSubviewsWithOldSize: oldSize]; } -void NSView_inst_exerciseAmbiguityInLayout(void *id) { +void NSView_inst_ResizeWithOldSuperviewSize(void *id, NSSize oldSize) { [(NSView*)id - exerciseAmbiguityInLayout]; + resizeWithOldSuperviewSize: oldSize]; } -void NSView_inst_drawFocusRingMask(void *id) { +void NSView_inst_RotateByAngle(void *id, double angle) { [(NSView*)id - drawFocusRingMask]; + rotateByAngle: angle]; } -void NSView_inst_noteFocusRingMaskChanged(void *id) { +void NSView_inst_ScaleUnitSquareToSize(void *id, NSSize newUnitSize) { [(NSView*)id - noteFocusRingMaskChanged]; + scaleUnitSquareToSize: newUnitSize]; } -void NSView_inst_setKeyboardFocusRingNeedsDisplayInRect_(void *id, NSRect rect) { +void NSView_inst_ScrollPoint(void *id, NSPoint point) { [(NSView*)id - setKeyboardFocusRingNeedsDisplayInRect: rect]; + scrollPoint: point]; } -BOOL NSView_inst_enterFullScreenMode_withOptions_(void *id, void* screen, void* options) { +BOOL NSView_inst_ScrollRectToVisible(void *id, NSRect rect) { return [(NSView*)id - enterFullScreenMode: screen - withOptions: options]; + scrollRectToVisible: rect]; } -void NSView_inst_exitFullScreenModeWithOptions_(void *id, void* options) { +void NSView_inst_SetBoundsOrigin(void *id, NSPoint newOrigin) { [(NSView*)id - exitFullScreenModeWithOptions: options]; + setBoundsOrigin: newOrigin]; } -void NSView_inst_viewDidHide(void *id) { +void NSView_inst_SetBoundsSize(void *id, NSSize newSize) { [(NSView*)id - viewDidHide]; + setBoundsSize: newSize]; } -void NSView_inst_viewDidUnhide(void *id) { +void NSView_inst_SetFrameOrigin(void *id, NSPoint newOrigin) { [(NSView*)id - viewDidUnhide]; + setFrameOrigin: newOrigin]; } -void NSView_inst_viewWillStartLiveResize(void *id) { +void NSView_inst_SetFrameSize(void *id, NSSize newSize) { [(NSView*)id - viewWillStartLiveResize]; + setFrameSize: newSize]; } -void NSView_inst_viewDidEndLiveResize(void *id) { +void NSView_inst_SetKeyboardFocusRingNeedsDisplayInRect(void *id, NSRect rect) { [(NSView*)id - viewDidEndLiveResize]; -} - -BOOL NSView_inst_acceptsFirstMouse_(void *id, void* event) { - return [(NSView*)id - acceptsFirstMouse: event]; + setKeyboardFocusRingNeedsDisplayInRect: rect]; } -void* NSView_inst_hitTest_(void *id, NSPoint point) { - return [(NSView*)id - hitTest: point]; +void NSView_inst_SetNeedsDisplayInRect(void *id, NSRect invalidRect) { + [(NSView*)id + setNeedsDisplayInRect: invalidRect]; } -BOOL NSView_inst_mouse_inRect_(void *id, NSPoint point, NSRect rect) { +BOOL NSView_inst_ShouldDelayWindowOrderingForEvent(void *id, void* event) { return [(NSView*)id - mouse: point - inRect: rect]; + shouldDelayWindowOrderingForEvent: event]; } -BOOL NSView_inst_performKeyEquivalent_(void *id, void* event) { - return [(NSView*)id - performKeyEquivalent: event]; +void NSView_inst_ShowDefinitionForAttributedStringAtPoint(void *id, void* attrString, NSPoint textBaselineOrigin) { + [(NSView*)id + showDefinitionForAttributedString: attrString + atPoint: textBaselineOrigin]; } -void NSView_inst_prepareContentInRect_(void *id, NSRect rect) { +void NSView_inst_TranslateOriginToPoint(void *id, NSPoint translation) { [(NSView*)id - prepareContentInRect: rect]; + translateOriginToPoint: translation]; } -void NSView_inst_scrollPoint_(void *id, NSPoint point) { +void NSView_inst_TranslateRectsNeedingDisplayInRectBy(void *id, NSRect clipRect, NSSize delta) { [(NSView*)id - scrollPoint: point]; + translateRectsNeedingDisplayInRect: clipRect + by: delta]; } -BOOL NSView_inst_scrollRectToVisible_(void *id, NSRect rect) { - return [(NSView*)id - scrollRectToVisible: rect]; +void NSView_inst_UnregisterDraggedTypes(void *id) { + [(NSView*)id + unregisterDraggedTypes]; } -BOOL NSView_inst_autoscroll_(void *id, void* event) { - return [(NSView*)id - autoscroll: event]; +void NSView_inst_UpdateConstraints(void *id) { + [(NSView*)id + updateConstraints]; } -NSRect NSView_inst_adjustScroll_(void *id, NSRect newVisible) { - return [(NSView*)id - adjustScroll: newVisible]; +void NSView_inst_UpdateConstraintsForSubtreeIfNeeded(void *id) { + [(NSView*)id + updateConstraintsForSubtreeIfNeeded]; } -void NSView_inst_registerForDraggedTypes_(void *id, void* newTypes) { +void NSView_inst_UpdateLayer(void *id) { [(NSView*)id - registerForDraggedTypes: newTypes]; + updateLayer]; } -void NSView_inst_unregisterDraggedTypes(void *id) { +void NSView_inst_UpdateTrackingAreas(void *id) { [(NSView*)id - unregisterDraggedTypes]; + updateTrackingAreas]; } -BOOL NSView_inst_shouldDelayWindowOrderingForEvent_(void *id, void* event) { - return [(NSView*)id - shouldDelayWindowOrderingForEvent: event]; +void NSView_inst_ViewDidChangeBackingProperties(void *id) { + [(NSView*)id + viewDidChangeBackingProperties]; } -NSRect NSView_inst_rectForSmartMagnificationAtPoint_inRect_(void *id, NSPoint location, NSRect visibleRect) { - return [(NSView*)id - rectForSmartMagnificationAtPoint: location - inRect: visibleRect]; +void NSView_inst_ViewDidChangeEffectiveAppearance(void *id) { + [(NSView*)id + viewDidChangeEffectiveAppearance]; } -void NSView_inst_viewDidChangeBackingProperties(void *id) { +void NSView_inst_ViewDidEndLiveResize(void *id) { [(NSView*)id - viewDidChangeBackingProperties]; + viewDidEndLiveResize]; } -void* NSView_inst_viewWithTag_(void *id, long tag) { - return [(NSView*)id - viewWithTag: tag]; +void NSView_inst_ViewDidHide(void *id) { + [(NSView*)id + viewDidHide]; } -void NSView_inst_removeAllToolTips(void *id) { +void NSView_inst_ViewDidMoveToSuperview(void *id) { [(NSView*)id - removeAllToolTips]; + viewDidMoveToSuperview]; } -void NSView_inst_updateTrackingAreas(void *id) { +void NSView_inst_ViewDidMoveToWindow(void *id) { [(NSView*)id - updateTrackingAreas]; + viewDidMoveToWindow]; } -void NSView_inst_discardCursorRects(void *id) { +void NSView_inst_ViewDidUnhide(void *id) { [(NSView*)id - discardCursorRects]; + viewDidUnhide]; } -void NSView_inst_resetCursorRects(void *id) { +void NSView_inst_ViewWillDraw(void *id) { [(NSView*)id - resetCursorRects]; + viewWillDraw]; } -void* NSView_inst_menuForEvent_(void *id, void* event) { - return [(NSView*)id - menuForEvent: event]; +void NSView_inst_ViewWillMoveToSuperview(void *id, void* newSuperview) { + [(NSView*)id + viewWillMoveToSuperview: newSuperview]; } -void NSView_inst_willOpenMenu_withEvent_(void *id, void* menu, void* event) { +void NSView_inst_ViewWillMoveToWindow(void *id, void* newWindow) { [(NSView*)id - willOpenMenu: menu - withEvent: event]; + viewWillMoveToWindow: newWindow]; } -void NSView_inst_didCloseMenu_withEvent_(void *id, void* menu, void* event) { +void NSView_inst_ViewWillStartLiveResize(void *id) { [(NSView*)id - didCloseMenu: menu - withEvent: event]; + viewWillStartLiveResize]; } -void NSView_inst_beginDocument(void *id) { - [(NSView*)id - beginDocument]; +void* NSView_inst_ViewWithTag(void *id, long tag) { + return [(NSView*)id + viewWithTag: tag]; } -void NSView_inst_endDocument(void *id) { +void NSView_inst_WillOpenMenuWithEvent(void *id, void* menu, void* event) { [(NSView*)id - endDocument]; + willOpenMenu: menu + withEvent: event]; } -void NSView_inst_endPage(void *id) { +void NSView_inst_WillRemoveSubview(void *id, void* subview) { [(NSView*)id - endPage]; + willRemoveSubview: subview]; } -void NSView_inst_showDefinitionForAttributedString_atPoint_(void *id, void* attrString, NSPoint textBaselineOrigin) { +void NSView_inst_WriteEPSInsideRectToPasteboard(void *id, NSRect rect, void* pasteboard) { [(NSView*)id - showDefinitionForAttributedString: attrString - atPoint: textBaselineOrigin]; + writeEPSInsideRect: rect + toPasteboard: pasteboard]; } -void NSView_inst_viewDidChangeEffectiveAppearance(void *id) { +void NSView_inst_WritePDFInsideRectToPasteboard(void *id, NSRect rect, void* pasteboard) { [(NSView*)id - viewDidChangeEffectiveAppearance]; + writePDFInsideRect: rect + toPasteboard: pasteboard]; } -void* NSView_inst_init(void *id) { +void* NSView_inst_Init(void *id) { return [(NSView*)id init]; } -void* NSView_inst_superview(void *id) { +void* NSView_inst_Superview(void *id) { return [(NSView*)id superview]; } -void* NSView_inst_subviews(void *id) { +void* NSView_inst_Subviews(void *id) { return [(NSView*)id subviews]; } -void NSView_inst_setSubviews_(void *id, void* value) { +void NSView_inst_SetSubviews(void *id, void* value) { [(NSView*)id setSubviews: value]; } -void* NSView_inst_window(void *id) { +void* NSView_inst_Window(void *id) { return [(NSView*)id window]; } -void* NSView_inst_opaqueAncestor(void *id) { +void* NSView_inst_OpaqueAncestor(void *id) { return [(NSView*)id opaqueAncestor]; } -void* NSView_inst_enclosingMenuItem(void *id) { +void* NSView_inst_EnclosingMenuItem(void *id) { return [(NSView*)id enclosingMenuItem]; } -NSRect NSView_inst_frame(void *id) { +NSRect NSView_inst_Frame(void *id) { return [(NSView*)id frame]; } -void NSView_inst_setFrame_(void *id, NSRect value) { +void NSView_inst_SetFrame(void *id, NSRect value) { [(NSView*)id setFrame: value]; } -double NSView_inst_frameRotation(void *id) { +double NSView_inst_FrameRotation(void *id) { return [(NSView*)id frameRotation]; } -void NSView_inst_setFrameRotation_(void *id, double value) { +void NSView_inst_SetFrameRotation(void *id, double value) { [(NSView*)id setFrameRotation: value]; } -NSRect NSView_inst_bounds(void *id) { +NSRect NSView_inst_Bounds(void *id) { return [(NSView*)id bounds]; } -void NSView_inst_setBounds_(void *id, NSRect value) { +void NSView_inst_SetBounds(void *id, NSRect value) { [(NSView*)id setBounds: value]; } -double NSView_inst_boundsRotation(void *id) { +double NSView_inst_BoundsRotation(void *id) { return [(NSView*)id boundsRotation]; } -void NSView_inst_setBoundsRotation_(void *id, double value) { +void NSView_inst_SetBoundsRotation(void *id, double value) { [(NSView*)id setBoundsRotation: value]; } -BOOL NSView_inst_wantsLayer(void *id) { +BOOL NSView_inst_WantsLayer(void *id) { return [(NSView*)id wantsLayer]; } -void NSView_inst_setWantsLayer_(void *id, BOOL value) { +void NSView_inst_SetWantsLayer(void *id, BOOL value) { [(NSView*)id setWantsLayer: value]; } -BOOL NSView_inst_wantsUpdateLayer(void *id) { +BOOL NSView_inst_WantsUpdateLayer(void *id) { return [(NSView*)id wantsUpdateLayer]; } -void* NSView_inst_layer(void *id) { +void* NSView_inst_Layer(void *id) { return [(NSView*)id layer]; } -void NSView_inst_setLayer_(void *id, void* value) { +void NSView_inst_SetLayer(void *id, void* value) { [(NSView*)id setLayer: value]; } -BOOL NSView_inst_canDrawSubviewsIntoLayer(void *id) { +BOOL NSView_inst_CanDrawSubviewsIntoLayer(void *id) { return [(NSView*)id canDrawSubviewsIntoLayer]; } -void NSView_inst_setCanDrawSubviewsIntoLayer_(void *id, BOOL value) { +void NSView_inst_SetCanDrawSubviewsIntoLayer(void *id, BOOL value) { [(NSView*)id setCanDrawSubviewsIntoLayer: value]; } -BOOL NSView_inst_layerUsesCoreImageFilters(void *id) { +BOOL NSView_inst_LayerUsesCoreImageFilters(void *id) { return [(NSView*)id layerUsesCoreImageFilters]; } -void NSView_inst_setLayerUsesCoreImageFilters_(void *id, BOOL value) { +void NSView_inst_SetLayerUsesCoreImageFilters(void *id, BOOL value) { [(NSView*)id setLayerUsesCoreImageFilters: value]; } -double NSView_inst_alphaValue(void *id) { +double NSView_inst_AlphaValue(void *id) { return [(NSView*)id alphaValue]; } -void NSView_inst_setAlphaValue_(void *id, double value) { +void NSView_inst_SetAlphaValue(void *id, double value) { [(NSView*)id setAlphaValue: value]; } -double NSView_inst_frameCenterRotation(void *id) { +double NSView_inst_FrameCenterRotation(void *id) { return [(NSView*)id frameCenterRotation]; } -void NSView_inst_setFrameCenterRotation_(void *id, double value) { +void NSView_inst_SetFrameCenterRotation(void *id, double value) { [(NSView*)id setFrameCenterRotation: value]; } -void* NSView_inst_backgroundFilters(void *id) { +void* NSView_inst_BackgroundFilters(void *id) { return [(NSView*)id backgroundFilters]; } -void NSView_inst_setBackgroundFilters_(void *id, void* value) { +void NSView_inst_SetBackgroundFilters(void *id, void* value) { [(NSView*)id setBackgroundFilters: value]; } -void* NSView_inst_contentFilters(void *id) { +void* NSView_inst_ContentFilters(void *id) { return [(NSView*)id contentFilters]; } -void NSView_inst_setContentFilters_(void *id, void* value) { +void NSView_inst_SetContentFilters(void *id, void* value) { [(NSView*)id setContentFilters: value]; } -BOOL NSView_inst_canDrawConcurrently(void *id) { +BOOL NSView_inst_CanDrawConcurrently(void *id) { return [(NSView*)id canDrawConcurrently]; } -void NSView_inst_setCanDrawConcurrently_(void *id, BOOL value) { +void NSView_inst_SetCanDrawConcurrently(void *id, BOOL value) { [(NSView*)id setCanDrawConcurrently: value]; } -NSRect NSView_inst_visibleRect(void *id) { +NSRect NSView_inst_VisibleRect(void *id) { return [(NSView*)id visibleRect]; } -BOOL NSView_inst_wantsDefaultClipping(void *id) { +BOOL NSView_inst_WantsDefaultClipping(void *id) { return [(NSView*)id wantsDefaultClipping]; } -void* NSView_inst_printJobTitle(void *id) { +void* NSView_inst_PrintJobTitle(void *id) { return [(NSView*)id printJobTitle]; } -void* NSView_inst_pageHeader(void *id) { +void* NSView_inst_PageHeader(void *id) { return [(NSView*)id pageHeader]; } -void* NSView_inst_pageFooter(void *id) { +void* NSView_inst_PageFooter(void *id) { return [(NSView*)id pageFooter]; } -double NSView_inst_heightAdjustLimit(void *id) { +double NSView_inst_HeightAdjustLimit(void *id) { return [(NSView*)id heightAdjustLimit]; } -double NSView_inst_widthAdjustLimit(void *id) { +double NSView_inst_WidthAdjustLimit(void *id) { return [(NSView*)id widthAdjustLimit]; } -BOOL NSView_inst_needsDisplay(void *id) { +BOOL NSView_inst_NeedsDisplay(void *id) { return [(NSView*)id needsDisplay]; } -void NSView_inst_setNeedsDisplay_(void *id, BOOL value) { +void NSView_inst_SetNeedsDisplay(void *id, BOOL value) { [(NSView*)id setNeedsDisplay: value]; } -BOOL NSView_inst_isOpaque(void *id) { +BOOL NSView_inst_IsOpaque(void *id) { return [(NSView*)id isOpaque]; } -BOOL NSView_inst_isFlipped(void *id) { +BOOL NSView_inst_IsFlipped(void *id) { return [(NSView*)id isFlipped]; } -BOOL NSView_inst_isRotatedFromBase(void *id) { +BOOL NSView_inst_IsRotatedFromBase(void *id) { return [(NSView*)id isRotatedFromBase]; } -BOOL NSView_inst_isRotatedOrScaledFromBase(void *id) { +BOOL NSView_inst_IsRotatedOrScaledFromBase(void *id) { return [(NSView*)id isRotatedOrScaledFromBase]; } -BOOL NSView_inst_autoresizesSubviews(void *id) { +BOOL NSView_inst_AutoresizesSubviews(void *id) { return [(NSView*)id autoresizesSubviews]; } -void NSView_inst_setAutoresizesSubviews_(void *id, BOOL value) { +void NSView_inst_SetAutoresizesSubviews(void *id, BOOL value) { [(NSView*)id setAutoresizesSubviews: value]; } -void* NSView_inst_constraints(void *id) { +void* NSView_inst_Constraints(void *id) { return [(NSView*)id constraints]; } -void* NSView_inst_layoutGuides(void *id) { +void* NSView_inst_LayoutGuides(void *id) { return [(NSView*)id layoutGuides]; } -NSSize NSView_inst_fittingSize(void *id) { +NSSize NSView_inst_FittingSize(void *id) { return [(NSView*)id fittingSize]; } -NSSize NSView_inst_intrinsicContentSize(void *id) { +NSSize NSView_inst_IntrinsicContentSize(void *id) { return [(NSView*)id intrinsicContentSize]; } -double NSView_inst_baselineOffsetFromBottom(void *id) { +double NSView_inst_BaselineOffsetFromBottom(void *id) { return [(NSView*)id baselineOffsetFromBottom]; } -double NSView_inst_firstBaselineOffsetFromTop(void *id) { +double NSView_inst_FirstBaselineOffsetFromTop(void *id) { return [(NSView*)id firstBaselineOffsetFromTop]; } -double NSView_inst_lastBaselineOffsetFromBottom(void *id) { +double NSView_inst_LastBaselineOffsetFromBottom(void *id) { return [(NSView*)id lastBaselineOffsetFromBottom]; } -BOOL NSView_inst_needsLayout(void *id) { +BOOL NSView_inst_NeedsLayout(void *id) { return [(NSView*)id needsLayout]; } -void NSView_inst_setNeedsLayout_(void *id, BOOL value) { +void NSView_inst_SetNeedsLayout(void *id, BOOL value) { [(NSView*)id setNeedsLayout: value]; } -BOOL NSView_inst_needsUpdateConstraints(void *id) { +BOOL NSView_inst_NeedsUpdateConstraints(void *id) { return [(NSView*)id needsUpdateConstraints]; } -void NSView_inst_setNeedsUpdateConstraints_(void *id, BOOL value) { +void NSView_inst_SetNeedsUpdateConstraints(void *id, BOOL value) { [(NSView*)id setNeedsUpdateConstraints: value]; } -BOOL NSView_inst_translatesAutoresizingMaskIntoConstraints(void *id) { +BOOL NSView_inst_TranslatesAutoresizingMaskIntoConstraints(void *id) { return [(NSView*)id translatesAutoresizingMaskIntoConstraints]; } -void NSView_inst_setTranslatesAutoresizingMaskIntoConstraints_(void *id, BOOL value) { +void NSView_inst_SetTranslatesAutoresizingMaskIntoConstraints(void *id, BOOL value) { [(NSView*)id setTranslatesAutoresizingMaskIntoConstraints: value]; } -BOOL NSView_inst_hasAmbiguousLayout(void *id) { +BOOL NSView_inst_HasAmbiguousLayout(void *id) { return [(NSView*)id hasAmbiguousLayout]; } -NSRect NSView_inst_focusRingMaskBounds(void *id) { +NSRect NSView_inst_FocusRingMaskBounds(void *id) { return [(NSView*)id focusRingMaskBounds]; } -BOOL NSView_inst_allowsVibrancy(void *id) { +BOOL NSView_inst_AllowsVibrancy(void *id) { return [(NSView*)id allowsVibrancy]; } -BOOL NSView_inst_isInFullScreenMode(void *id) { +BOOL NSView_inst_IsInFullScreenMode(void *id) { return [(NSView*)id isInFullScreenMode]; } -BOOL NSView_inst_isHidden(void *id) { +BOOL NSView_inst_IsHidden(void *id) { return [(NSView*)id isHidden]; } -void NSView_inst_setHidden_(void *id, BOOL value) { +void NSView_inst_SetHidden(void *id, BOOL value) { [(NSView*)id setHidden: value]; } -BOOL NSView_inst_isHiddenOrHasHiddenAncestor(void *id) { +BOOL NSView_inst_IsHiddenOrHasHiddenAncestor(void *id) { return [(NSView*)id isHiddenOrHasHiddenAncestor]; } -BOOL NSView_inst_inLiveResize(void *id) { +BOOL NSView_inst_InLiveResize(void *id) { return [(NSView*)id inLiveResize]; } -BOOL NSView_inst_preservesContentDuringLiveResize(void *id) { +BOOL NSView_inst_PreservesContentDuringLiveResize(void *id) { return [(NSView*)id preservesContentDuringLiveResize]; } -NSRect NSView_inst_rectPreservedDuringLiveResize(void *id) { +NSRect NSView_inst_RectPreservedDuringLiveResize(void *id) { return [(NSView*)id rectPreservedDuringLiveResize]; } -void* NSView_inst_gestureRecognizers(void *id) { +void* NSView_inst_GestureRecognizers(void *id) { return [(NSView*)id gestureRecognizers]; } -void NSView_inst_setGestureRecognizers_(void *id, void* value) { +void NSView_inst_SetGestureRecognizers(void *id, void* value) { [(NSView*)id setGestureRecognizers: value]; } -BOOL NSView_inst_mouseDownCanMoveWindow(void *id) { +BOOL NSView_inst_MouseDownCanMoveWindow(void *id) { return [(NSView*)id mouseDownCanMoveWindow]; } -BOOL NSView_inst_wantsRestingTouches(void *id) { +BOOL NSView_inst_WantsRestingTouches(void *id) { return [(NSView*)id wantsRestingTouches]; } -void NSView_inst_setWantsRestingTouches_(void *id, BOOL value) { +void NSView_inst_SetWantsRestingTouches(void *id, BOOL value) { [(NSView*)id setWantsRestingTouches: value]; } -BOOL NSView_inst_canBecomeKeyView(void *id) { +BOOL NSView_inst_CanBecomeKeyView(void *id) { return [(NSView*)id canBecomeKeyView]; } -BOOL NSView_inst_needsPanelToBecomeKey(void *id) { +BOOL NSView_inst_NeedsPanelToBecomeKey(void *id) { return [(NSView*)id needsPanelToBecomeKey]; } -void* NSView_inst_nextKeyView(void *id) { +void* NSView_inst_NextKeyView(void *id) { return [(NSView*)id nextKeyView]; } -void NSView_inst_setNextKeyView_(void *id, void* value) { +void NSView_inst_SetNextKeyView(void *id, void* value) { [(NSView*)id setNextKeyView: value]; } -void* NSView_inst_nextValidKeyView(void *id) { +void* NSView_inst_NextValidKeyView(void *id) { return [(NSView*)id nextValidKeyView]; } -void* NSView_inst_previousKeyView(void *id) { +void* NSView_inst_PreviousKeyView(void *id) { return [(NSView*)id previousKeyView]; } -void* NSView_inst_previousValidKeyView(void *id) { +void* NSView_inst_PreviousValidKeyView(void *id) { return [(NSView*)id previousValidKeyView]; } -NSRect NSView_inst_preparedContentRect(void *id) { +NSRect NSView_inst_PreparedContentRect(void *id) { return [(NSView*)id preparedContentRect]; } -void NSView_inst_setPreparedContentRect_(void *id, NSRect value) { +void NSView_inst_SetPreparedContentRect(void *id, NSRect value) { [(NSView*)id setPreparedContentRect: value]; } -void* NSView_inst_registeredDraggedTypes(void *id) { +void* NSView_inst_RegisteredDraggedTypes(void *id) { return [(NSView*)id registeredDraggedTypes]; } -BOOL NSView_inst_postsFrameChangedNotifications(void *id) { +BOOL NSView_inst_PostsFrameChangedNotifications(void *id) { return [(NSView*)id postsFrameChangedNotifications]; } -void NSView_inst_setPostsFrameChangedNotifications_(void *id, BOOL value) { +void NSView_inst_SetPostsFrameChangedNotifications(void *id, BOOL value) { [(NSView*)id setPostsFrameChangedNotifications: value]; } -BOOL NSView_inst_postsBoundsChangedNotifications(void *id) { +BOOL NSView_inst_PostsBoundsChangedNotifications(void *id) { return [(NSView*)id postsBoundsChangedNotifications]; } -void NSView_inst_setPostsBoundsChangedNotifications_(void *id, BOOL value) { +void NSView_inst_SetPostsBoundsChangedNotifications(void *id, BOOL value) { [(NSView*)id setPostsBoundsChangedNotifications: value]; } -long NSView_inst_tag(void *id) { +long NSView_inst_Tag(void *id) { return [(NSView*)id tag]; } -void* NSView_inst_toolTip(void *id) { +void* NSView_inst_ToolTip(void *id) { return [(NSView*)id toolTip]; } -void NSView_inst_setToolTip_(void *id, void* value) { +void NSView_inst_SetToolTip(void *id, void* value) { [(NSView*)id setToolTip: value]; } -void* NSView_inst_trackingAreas(void *id) { +void* NSView_inst_TrackingAreas(void *id) { return [(NSView*)id trackingAreas]; } -BOOL NSView_inst_isDrawingFindIndicator(void *id) { +BOOL NSView_inst_IsDrawingFindIndicator(void *id) { return [(NSView*)id isDrawingFindIndicator]; } -BOOL NSView_inst_isHorizontalContentSizeConstraintActive(void *id) { +BOOL NSView_inst_IsHorizontalContentSizeConstraintActive(void *id) { return [(NSView*)id isHorizontalContentSizeConstraintActive]; } -void NSView_inst_setHorizontalContentSizeConstraintActive_(void *id, BOOL value) { +void NSView_inst_SetHorizontalContentSizeConstraintActive(void *id, BOOL value) { [(NSView*)id setHorizontalContentSizeConstraintActive: value]; } -BOOL NSView_inst_isVerticalContentSizeConstraintActive(void *id) { +BOOL NSView_inst_IsVerticalContentSizeConstraintActive(void *id) { return [(NSView*)id isVerticalContentSizeConstraintActive]; } -void NSView_inst_setVerticalContentSizeConstraintActive_(void *id, BOOL value) { +void NSView_inst_SetVerticalContentSizeConstraintActive(void *id, BOOL value) { [(NSView*)id setVerticalContentSizeConstraintActive: value]; } -void* NSView_inst_backgroundColor(void *id) { +void* NSView_inst_BackgroundColor(void *id) { return [(NSView*)id backgroundColor]; } -void NSView_inst_setBackgroundColor_(void *id, void* value) { +void NSView_inst_SetBackgroundColor(void *id, void* value) { [(NSView*)id setBackgroundColor: value]; } @@ -7527,2679 +7527,2869 @@ func convertToObjCBool(b bool) C.BOOL { return C.cocoa_objc_bool_false } -func NSBundle_alloc() ( - r0 NSBundle, -) { - ret := C.NSBundle_type_alloc() - r0 = NSBundle_fromPointer(ret) - return +// NSBundle_Alloc +// +// See for details. +func NSBundle_Alloc() NSBundle { + ret := C.NSBundle_type_Alloc() + + return NSBundle_FromPointer(ret) } -func NSBundle_bundleWithURL_( - url core.NSURLRef, -) ( - r0 NSBundle, -) { - ret := C.NSBundle_type_bundleWithURL_( +// NSBundle_BundleWithURL returns an nsbundle object that corresponds to the specified file url. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1494992-bundlewithurl?language=objc for details. +func NSBundle_BundleWithURL(url core.NSURLRef) NSBundle { + ret := C.NSBundle_type_BundleWithURL( objc.RefPointer(url), ) - r0 = NSBundle_fromPointer(ret) - return + + return NSBundle_FromPointer(ret) } -func NSBundle_bundleWithPath_( - path core.NSStringRef, -) ( - r0 NSBundle, -) { - ret := C.NSBundle_type_bundleWithPath_( +// NSBundle_BundleWithPath returns an nsbundle object that corresponds to the specified directory. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1495012-bundlewithpath?language=objc for details. +func NSBundle_BundleWithPath(path core.NSStringRef) NSBundle { + ret := C.NSBundle_type_BundleWithPath( objc.RefPointer(path), ) - r0 = NSBundle_fromPointer(ret) - return + + return NSBundle_FromPointer(ret) } -func NSBundle_bundleWithIdentifier_( - identifier core.NSStringRef, -) ( - r0 NSBundle, -) { - ret := C.NSBundle_type_bundleWithIdentifier_( +// NSBundle_BundleWithIdentifier returns the nsbundle instance that has the specified bundle identifier. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1411929-bundlewithidentifier?language=objc for details. +func NSBundle_BundleWithIdentifier(identifier core.NSStringRef) NSBundle { + ret := C.NSBundle_type_BundleWithIdentifier( objc.RefPointer(identifier), ) - r0 = NSBundle_fromPointer(ret) - return + + return NSBundle_FromPointer(ret) } -func NSBundle_URLForResource_withExtension_subdirectory_inBundleWithURL_( - name core.NSStringRef, - ext core.NSStringRef, - subpath core.NSStringRef, - bundleURL core.NSURLRef, -) ( - r0 core.NSURL, -) { - ret := C.NSBundle_type_URLForResource_withExtension_subdirectory_inBundleWithURL_( +// NSBundle_URLForResourceWithExtensionSubdirectoryInBundleWithURL creates and returns a file url for the resource with the specified name and extension in the specified bundle. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1416361-urlforresource?language=objc for details. +func NSBundle_URLForResourceWithExtensionSubdirectoryInBundleWithURL(name core.NSStringRef, ext core.NSStringRef, subpath core.NSStringRef, bundleURL core.NSURLRef) core.NSURL { + ret := C.NSBundle_type_URLForResourceWithExtensionSubdirectoryInBundleWithURL( objc.RefPointer(name), objc.RefPointer(ext), objc.RefPointer(subpath), objc.RefPointer(bundleURL), ) - r0 = core.NSURL_fromPointer(ret) - return + + return core.NSURL_FromPointer(ret) } -func NSBundle_URLsForResourcesWithExtension_subdirectory_inBundleWithURL_( - ext core.NSStringRef, - subpath core.NSStringRef, - bundleURL core.NSURLRef, -) ( - r0 core.NSArray, -) { - ret := C.NSBundle_type_URLsForResourcesWithExtension_subdirectory_inBundleWithURL_( +// NSBundle_URLsForResourcesWithExtensionSubdirectoryInBundleWithURL returns an array containing the file urls for all bundle resources having the specified filename extension, residing in the specified resource subdirectory, within the specified bundle. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1409807-urlsforresourceswithextension?language=objc for details. +func NSBundle_URLsForResourcesWithExtensionSubdirectoryInBundleWithURL(ext core.NSStringRef, subpath core.NSStringRef, bundleURL core.NSURLRef) core.NSArray { + ret := C.NSBundle_type_URLsForResourcesWithExtensionSubdirectoryInBundleWithURL( objc.RefPointer(ext), objc.RefPointer(subpath), objc.RefPointer(bundleURL), ) - r0 = core.NSArray_fromPointer(ret) - return + + return core.NSArray_FromPointer(ret) } -func NSBundle_pathForResource_ofType_inDirectory_( - name core.NSStringRef, - ext core.NSStringRef, - bundlePath core.NSStringRef, -) ( - r0 core.NSString, -) { - ret := C.NSBundle_type_pathForResource_ofType_inDirectory_( +// NSBundle_PathForResourceOfTypeInDirectory returns the full pathname for the resource file identified by the specified name and extension and residing in a given bundle directory. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1409523-pathforresource?language=objc for details. +func NSBundle_PathForResourceOfTypeInDirectory(name core.NSStringRef, ext core.NSStringRef, bundlePath core.NSStringRef) core.NSString { + ret := C.NSBundle_type_PathForResourceOfTypeInDirectory( objc.RefPointer(name), objc.RefPointer(ext), objc.RefPointer(bundlePath), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func NSBundle_pathsForResourcesOfType_inDirectory_( - ext core.NSStringRef, - bundlePath core.NSStringRef, -) ( - r0 core.NSArray, -) { - ret := C.NSBundle_type_pathsForResourcesOfType_inDirectory_( +// NSBundle_PathsForResourcesOfTypeInDirectory returns an array containing the pathnames for all bundle resources having the specified extension and residing in the bundle directory at the specified path. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1415876-pathsforresourcesoftype?language=objc for details. +func NSBundle_PathsForResourcesOfTypeInDirectory(ext core.NSStringRef, bundlePath core.NSStringRef) core.NSArray { + ret := C.NSBundle_type_PathsForResourcesOfTypeInDirectory( objc.RefPointer(ext), objc.RefPointer(bundlePath), ) - r0 = core.NSArray_fromPointer(ret) - return + + return core.NSArray_FromPointer(ret) } -func NSBundle_preferredLocalizationsFromArray_( - localizationsArray core.NSArrayRef, -) ( - r0 core.NSArray, -) { - ret := C.NSBundle_type_preferredLocalizationsFromArray_( +// NSBundle_PreferredLocalizationsFromArray returns one or more localizations from the specified list that a bundle object would use to locate resources for the current user. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1417249-preferredlocalizationsfromarray?language=objc for details. +func NSBundle_PreferredLocalizationsFromArray(localizationsArray core.NSArrayRef) core.NSArray { + ret := C.NSBundle_type_PreferredLocalizationsFromArray( objc.RefPointer(localizationsArray), ) - r0 = core.NSArray_fromPointer(ret) - return + + return core.NSArray_FromPointer(ret) } -func NSBundle_preferredLocalizationsFromArray_forPreferences_( - localizationsArray core.NSArrayRef, - preferencesArray core.NSArrayRef, -) ( - r0 core.NSArray, -) { - ret := C.NSBundle_type_preferredLocalizationsFromArray_forPreferences_( +// NSBundle_PreferredLocalizationsFromArrayForPreferences returns locale identifiers for which a bundle would provide localized content, given a specified list of candidates for a user's language preferences. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1409418-preferredlocalizationsfromarray?language=objc for details. +func NSBundle_PreferredLocalizationsFromArrayForPreferences(localizationsArray core.NSArrayRef, preferencesArray core.NSArrayRef) core.NSArray { + ret := C.NSBundle_type_PreferredLocalizationsFromArrayForPreferences( objc.RefPointer(localizationsArray), objc.RefPointer(preferencesArray), ) - r0 = core.NSArray_fromPointer(ret) - return + + return core.NSArray_FromPointer(ret) } -func NSBundle_mainBundle() ( - r0 NSBundle, -) { - ret := C.NSBundle_type_mainBundle() - r0 = NSBundle_fromPointer(ret) - return +// NSBundle_MainBundle returns the bundle object that contains the current executable. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1410786-mainbundle?language=objc for details. +func NSBundle_MainBundle() NSBundle { + ret := C.NSBundle_type_MainBundle() + + return NSBundle_FromPointer(ret) } -func NSBundle_allFrameworks() ( - r0 core.NSArray, -) { - ret := C.NSBundle_type_allFrameworks() - r0 = core.NSArray_fromPointer(ret) - return +// NSBundle_AllFrameworks returns an array of all of the application’s bundles that represent frameworks. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1408056-allframeworks?language=objc for details. +func NSBundle_AllFrameworks() core.NSArray { + ret := C.NSBundle_type_AllFrameworks() + + return core.NSArray_FromPointer(ret) } -func NSBundle_allBundles() ( - r0 core.NSArray, -) { - ret := C.NSBundle_type_allBundles() - r0 = core.NSArray_fromPointer(ret) - return +// NSBundle_AllBundles returns an array of all the application’s non-framework bundles. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1413705-allbundles?language=objc for details. +func NSBundle_AllBundles() core.NSArray { + ret := C.NSBundle_type_AllBundles() + + return core.NSArray_FromPointer(ret) } -func NSSound_alloc() ( - r0 NSSound, -) { - ret := C.NSSound_type_alloc() - r0 = NSSound_fromPointer(ret) - return +// NSSound_Alloc +// +// See for details. +func NSSound_Alloc() NSSound { + ret := C.NSSound_type_Alloc() + + return NSSound_FromPointer(ret) } -func NSSound_canInitWithPasteboard_( - pasteboard NSPasteboardRef, -) ( - r0 bool, -) { - ret := C.NSSound_type_canInitWithPasteboard_( +// NSSound_CanInitWithPasteboard indicates whether the receiver can create an instance of itself from the data in a pasteboard. +// +// See https://developer.apple.com/documentation/appkit/nssound/1477276-caninitwithpasteboard?language=objc for details. +func NSSound_CanInitWithPasteboard(pasteboard NSPasteboardRef) bool { + ret := C.NSSound_type_CanInitWithPasteboard( objc.RefPointer(pasteboard), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func NSSound_soundUnfilteredTypes() ( - r0 core.NSArray, -) { - ret := C.NSSound_type_soundUnfilteredTypes() - r0 = core.NSArray_fromPointer(ret) - return +// NSSound_SoundUnfilteredTypes provides the file types the nssound class understands. +// +// See https://developer.apple.com/documentation/appkit/nssound/1477290-soundunfilteredtypes?language=objc for details. +func NSSound_SoundUnfilteredTypes() core.NSArray { + ret := C.NSSound_type_SoundUnfilteredTypes() + + return core.NSArray_FromPointer(ret) } -func NSApplication_alloc() ( - r0 NSApplication, -) { - ret := C.NSApplication_type_alloc() - r0 = NSApplication_fromPointer(ret) - return +// NSApplication_Alloc +// +// See for details. +func NSApplication_Alloc() NSApplication { + ret := C.NSApplication_type_Alloc() + + return NSApplication_FromPointer(ret) } -func NSApplication_detachDrawingThread_toTarget_withObject_( - selector objc.Selector, - target objc.Ref, - argument objc.Ref, -) { - C.NSApplication_type_detachDrawingThread_toTarget_withObject_( +// NSApplication_DetachDrawingThreadToTargetWithObject creates and executes a new thread based on the specified target and selector. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/1428374-detachdrawingthread?language=objc for details. +func NSApplication_DetachDrawingThreadToTargetWithObject(selector objc.Selector, target objc.Ref, argument objc.Ref) { + C.NSApplication_type_DetachDrawingThreadToTargetWithObject( selector.SelectorAddress(), objc.RefPointer(target), objc.RefPointer(argument), ) + return } -func NSApplication_sharedApplication() ( - r0 NSApplication, -) { - ret := C.NSApplication_type_sharedApplication() - r0 = NSApplication_fromPointer(ret) - return +// NSApplication_SharedApplication returns the application instance, creating it if it doesn’t exist yet. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/1428360-sharedapplication?language=objc for details. +func NSApplication_SharedApplication() NSApplication { + ret := C.NSApplication_type_SharedApplication() + + return NSApplication_FromPointer(ret) } -func NSControl_alloc() ( - r0 NSControl, -) { - ret := C.NSControl_type_alloc() - r0 = NSControl_fromPointer(ret) - return +// NSControl_Alloc +// +// See for details. +func NSControl_Alloc() NSControl { + ret := C.NSControl_type_Alloc() + + return NSControl_FromPointer(ret) } -func NSButton_alloc() ( - r0 NSButton, -) { - ret := C.NSButton_type_alloc() - r0 = NSButton_fromPointer(ret) - return +// NSButton_Alloc +// +// See for details. +func NSButton_Alloc() NSButton { + ret := C.NSButton_type_Alloc() + + return NSButton_FromPointer(ret) } -func NSButton_checkboxWithTitle_target_action_( - title core.NSStringRef, - target objc.Ref, - action objc.Selector, -) ( - r0 NSButton, -) { - ret := C.NSButton_type_checkboxWithTitle_target_action_( +// NSButton_CheckboxWithTitleTargetAction creates a standard checkbox with the title you specify. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/1644525-checkboxwithtitle?language=objc for details. +func NSButton_CheckboxWithTitleTargetAction(title core.NSStringRef, target objc.Ref, action objc.Selector) NSButton { + ret := C.NSButton_type_CheckboxWithTitleTargetAction( objc.RefPointer(title), objc.RefPointer(target), action.SelectorAddress(), ) - r0 = NSButton_fromPointer(ret) - return + + return NSButton_FromPointer(ret) } -func NSButton_buttonWithImage_target_action_( - image NSImageRef, - target objc.Ref, - action objc.Selector, -) ( - r0 NSButton, -) { - ret := C.NSButton_type_buttonWithImage_target_action_( +// NSButton_ButtonWithImageTargetAction creates a standard push button with the image you specify. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/1644659-buttonwithimage?language=objc for details. +func NSButton_ButtonWithImageTargetAction(image NSImageRef, target objc.Ref, action objc.Selector) NSButton { + ret := C.NSButton_type_ButtonWithImageTargetAction( objc.RefPointer(image), objc.RefPointer(target), action.SelectorAddress(), ) - r0 = NSButton_fromPointer(ret) - return + + return NSButton_FromPointer(ret) } -func NSButton_radioButtonWithTitle_target_action_( - title core.NSStringRef, - target objc.Ref, - action objc.Selector, -) ( - r0 NSButton, -) { - ret := C.NSButton_type_radioButtonWithTitle_target_action_( +// NSButton_RadioButtonWithTitleTargetAction creates a standard radio button with the title you specify. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/1644340-radiobuttonwithtitle?language=objc for details. +func NSButton_RadioButtonWithTitleTargetAction(title core.NSStringRef, target objc.Ref, action objc.Selector) NSButton { + ret := C.NSButton_type_RadioButtonWithTitleTargetAction( objc.RefPointer(title), objc.RefPointer(target), action.SelectorAddress(), ) - r0 = NSButton_fromPointer(ret) - return + + return NSButton_FromPointer(ret) } -func NSButton_buttonWithTitle_image_target_action_( - title core.NSStringRef, - image NSImageRef, - target objc.Ref, - action objc.Selector, -) ( - r0 NSButton, -) { - ret := C.NSButton_type_buttonWithTitle_image_target_action_( +// NSButton_ButtonWithTitleImageTargetAction creates a standard push button with a title and image. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/1644719-buttonwithtitle?language=objc for details. +func NSButton_ButtonWithTitleImageTargetAction(title core.NSStringRef, image NSImageRef, target objc.Ref, action objc.Selector) NSButton { + ret := C.NSButton_type_ButtonWithTitleImageTargetAction( objc.RefPointer(title), objc.RefPointer(image), objc.RefPointer(target), action.SelectorAddress(), ) - r0 = NSButton_fromPointer(ret) - return + + return NSButton_FromPointer(ret) } -func NSButton_buttonWithTitle_target_action_( - title core.NSStringRef, - target objc.Ref, - action objc.Selector, -) ( - r0 NSButton, -) { - ret := C.NSButton_type_buttonWithTitle_target_action_( +// NSButton_ButtonWithTitleTargetAction creates a standard push button with the title you specify. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/1644256-buttonwithtitle?language=objc for details. +func NSButton_ButtonWithTitleTargetAction(title core.NSStringRef, target objc.Ref, action objc.Selector) NSButton { + ret := C.NSButton_type_ButtonWithTitleTargetAction( objc.RefPointer(title), objc.RefPointer(target), action.SelectorAddress(), ) - r0 = NSButton_fromPointer(ret) - return + + return NSButton_FromPointer(ret) } -func NSEvent_alloc() ( - r0 NSEvent, -) { - ret := C.NSEvent_type_alloc() - r0 = NSEvent_fromPointer(ret) - return +// NSEvent_Alloc +// +// See for details. +func NSEvent_Alloc() NSEvent { + ret := C.NSEvent_type_Alloc() + + return NSEvent_FromPointer(ret) } -func NSEvent_eventWithEventRef_( - eventRef unsafe.Pointer, -) ( - r0 NSEvent, -) { - ret := C.NSEvent_type_eventWithEventRef_( +// NSEvent_EventWithEventRef creates an event object that is based on a carbon type of event. +// +// See https://developer.apple.com/documentation/appkit/nsevent/1528021-eventwitheventref?language=objc for details. +func NSEvent_EventWithEventRef(eventRef unsafe.Pointer) NSEvent { + ret := C.NSEvent_type_EventWithEventRef( eventRef, ) - r0 = NSEvent_fromPointer(ret) - return + + return NSEvent_FromPointer(ret) } -func NSEvent_stopPeriodicEvents() { - C.NSEvent_type_stopPeriodicEvents() +// NSEvent_StopPeriodicEvents stops generating periodic events for the current thread and discards any periodic events remaining in the queue. +// +// See https://developer.apple.com/documentation/appkit/nsevent/1533746-stopperiodicevents?language=objc for details. +func NSEvent_StopPeriodicEvents() { + C.NSEvent_type_StopPeriodicEvents() + return } -func NSEvent_removeMonitor_( - eventMonitor objc.Ref, -) { - C.NSEvent_type_removeMonitor_( +// NSEvent_RemoveMonitor remove the specified event monitor. +// +// See https://developer.apple.com/documentation/appkit/nsevent/1533709-removemonitor?language=objc for details. +func NSEvent_RemoveMonitor(eventMonitor objc.Ref) { + C.NSEvent_type_RemoveMonitor( objc.RefPointer(eventMonitor), ) + return } -func NSEvent_pressedMouseButtons() ( - r0 core.NSUInteger, -) { - ret := C.NSEvent_type_pressedMouseButtons() - r0 = core.NSUInteger(ret) - return +// NSEvent_PressedMouseButtons returns the indices of the currently depressed mouse buttons. +// +// See https://developer.apple.com/documentation/appkit/nsevent/1527943-pressedmousebuttons?language=objc for details. +func NSEvent_PressedMouseButtons() core.NSUInteger { + ret := C.NSEvent_type_PressedMouseButtons() + + return core.NSUInteger(ret) } -func NSEvent_mouseLocation() ( - r0 core.NSPoint, -) { - ret := C.NSEvent_type_mouseLocation() - r0 = *(*core.NSPoint)(unsafe.Pointer(&ret)) - return +// NSEvent_MouseLocation reports the current mouse position in screen coordinates. +// +// See https://developer.apple.com/documentation/appkit/nsevent/1533380-mouselocation?language=objc for details. +func NSEvent_MouseLocation() core.NSPoint { + ret := C.NSEvent_type_MouseLocation() + + return *(*core.NSPoint)(unsafe.Pointer(&ret)) } -func NSEvent_mouseCoalescingEnabled() ( - r0 bool, -) { - ret := C.NSEvent_type_mouseCoalescingEnabled() - r0 = convertObjCBoolToGo(ret) - return +// NSEvent_MouseCoalescingEnabled +// +// See https://developer.apple.com/documentation/appkit/nsevent/2870068-mousecoalescingenabled?language=objc for details. +func NSEvent_MouseCoalescingEnabled() bool { + ret := C.NSEvent_type_MouseCoalescingEnabled() + + return convertObjCBoolToGo(ret) } -func NSEvent_setMouseCoalescingEnabled_( - value bool, -) { - C.NSEvent_type_setMouseCoalescingEnabled_( +// NSEvent_SetMouseCoalescingEnabled +// +// See https://developer.apple.com/documentation/appkit/nsevent/2870068-mousecoalescingenabled?language=objc for details. +func NSEvent_SetMouseCoalescingEnabled(value bool) { + C.NSEvent_type_SetMouseCoalescingEnabled( convertToObjCBool(value), ) + return } -func NSEvent_swipeTrackingFromScrollEventsEnabled() ( - r0 bool, -) { - ret := C.NSEvent_type_swipeTrackingFromScrollEventsEnabled() - r0 = convertObjCBoolToGo(ret) - return +// NSEvent_SwipeTrackingFromScrollEventsEnabled +// +// See https://developer.apple.com/documentation/appkit/nsevent/2870067-swipetrackingfromscrolleventsena?language=objc for details. +func NSEvent_SwipeTrackingFromScrollEventsEnabled() bool { + ret := C.NSEvent_type_SwipeTrackingFromScrollEventsEnabled() + + return convertObjCBoolToGo(ret) } -func NSFont_alloc() ( - r0 NSFont, -) { - ret := C.NSFont_type_alloc() - r0 = NSFont_fromPointer(ret) - return +// NSFont_Alloc +// +// See for details. +func NSFont_Alloc() NSFont { + ret := C.NSFont_type_Alloc() + + return NSFont_FromPointer(ret) } -func NSFont_fontWithName_size_( - fontName core.NSStringRef, - fontSize core.CGFloat, -) ( - r0 NSFont, -) { - ret := C.NSFont_type_fontWithName_size_( +// NSFont_FontWithNameSize creates a font object for the specified font name and font size. +// +// See https://developer.apple.com/documentation/appkit/nsfont/1525977-fontwithname?language=objc for details. +func NSFont_FontWithNameSize(fontName core.NSStringRef, fontSize core.CGFloat) NSFont { + ret := C.NSFont_type_FontWithNameSize( objc.RefPointer(fontName), C.double(fontSize), ) - r0 = NSFont_fromPointer(ret) - return + + return NSFont_FromPointer(ret) } -func NSFont_userFontOfSize_( - fontSize core.CGFloat, -) ( - r0 NSFont, -) { - ret := C.NSFont_type_userFontOfSize_( +// NSFont_UserFontOfSize returns the font used by default for documents and other text under the user’s control (that is, text whose font the user can normally change), in the specified size. +// +// See https://developer.apple.com/documentation/appkit/nsfont/1524559-userfontofsize?language=objc for details. +func NSFont_UserFontOfSize(fontSize core.CGFloat) NSFont { + ret := C.NSFont_type_UserFontOfSize( C.double(fontSize), ) - r0 = NSFont_fromPointer(ret) - return + + return NSFont_FromPointer(ret) } -func NSFont_userFixedPitchFontOfSize_( - fontSize core.CGFloat, -) ( - r0 NSFont, -) { - ret := C.NSFont_type_userFixedPitchFontOfSize_( +// NSFont_UserFixedPitchFontOfSize returns the font used by default for documents and other text under the user’s control (that is, text whose font the user can normally change), when that font should be fixed-pitch, in the specified size. +// +// See https://developer.apple.com/documentation/appkit/nsfont/1531381-userfixedpitchfontofsize?language=objc for details. +func NSFont_UserFixedPitchFontOfSize(fontSize core.CGFloat) NSFont { + ret := C.NSFont_type_UserFixedPitchFontOfSize( C.double(fontSize), ) - r0 = NSFont_fromPointer(ret) - return + + return NSFont_FromPointer(ret) } -func NSFont_systemFontOfSize_( - fontSize core.CGFloat, -) ( - r0 NSFont, -) { - ret := C.NSFont_type_systemFontOfSize_( +// NSFont_SystemFontOfSize returns the standard system font with the specified size. +// +// See https://developer.apple.com/documentation/appkit/nsfont/1530094-systemfontofsize?language=objc for details. +func NSFont_SystemFontOfSize(fontSize core.CGFloat) NSFont { + ret := C.NSFont_type_SystemFontOfSize( C.double(fontSize), ) - r0 = NSFont_fromPointer(ret) - return + + return NSFont_FromPointer(ret) } -func NSFont_boldSystemFontOfSize_( - fontSize core.CGFloat, -) ( - r0 NSFont, -) { - ret := C.NSFont_type_boldSystemFontOfSize_( +// NSFont_BoldSystemFontOfSize returns the standard system font in boldface type with the specified size. +// +// See https://developer.apple.com/documentation/appkit/nsfont/1533549-boldsystemfontofsize?language=objc for details. +func NSFont_BoldSystemFontOfSize(fontSize core.CGFloat) NSFont { + ret := C.NSFont_type_BoldSystemFontOfSize( C.double(fontSize), ) - r0 = NSFont_fromPointer(ret) - return + + return NSFont_FromPointer(ret) } -func NSFont_labelFontOfSize_( - fontSize core.CGFloat, -) ( - r0 NSFont, -) { - ret := C.NSFont_type_labelFontOfSize_( +// NSFont_LabelFontOfSize returns the font used for standard interface labels in the specified size. +// +// See https://developer.apple.com/documentation/appkit/nsfont/1528213-labelfontofsize?language=objc for details. +func NSFont_LabelFontOfSize(fontSize core.CGFloat) NSFont { + ret := C.NSFont_type_LabelFontOfSize( C.double(fontSize), ) - r0 = NSFont_fromPointer(ret) - return + + return NSFont_FromPointer(ret) } -func NSFont_messageFontOfSize_( - fontSize core.CGFloat, -) ( - r0 NSFont, -) { - ret := C.NSFont_type_messageFontOfSize_( +// NSFont_MessageFontOfSize returns the font used for standard interface items, such as button labels, menu items, and so on, in the specified size. +// +// See https://developer.apple.com/documentation/appkit/nsfont/1525777-messagefontofsize?language=objc for details. +func NSFont_MessageFontOfSize(fontSize core.CGFloat) NSFont { + ret := C.NSFont_type_MessageFontOfSize( C.double(fontSize), ) - r0 = NSFont_fromPointer(ret) - return + + return NSFont_FromPointer(ret) } -func NSFont_menuBarFontOfSize_( - fontSize core.CGFloat, -) ( - r0 NSFont, -) { - ret := C.NSFont_type_menuBarFontOfSize_( +// NSFont_MenuBarFontOfSize returns the font used for menu bar items, in the specified size. +// +// See https://developer.apple.com/documentation/appkit/nsfont/1534194-menubarfontofsize?language=objc for details. +func NSFont_MenuBarFontOfSize(fontSize core.CGFloat) NSFont { + ret := C.NSFont_type_MenuBarFontOfSize( C.double(fontSize), ) - r0 = NSFont_fromPointer(ret) - return + + return NSFont_FromPointer(ret) } -func NSFont_menuFontOfSize_( - fontSize core.CGFloat, -) ( - r0 NSFont, -) { - ret := C.NSFont_type_menuFontOfSize_( +// NSFont_MenuFontOfSize returns the font used for menu items, in the specified size. +// +// See https://developer.apple.com/documentation/appkit/nsfont/1533068-menufontofsize?language=objc for details. +func NSFont_MenuFontOfSize(fontSize core.CGFloat) NSFont { + ret := C.NSFont_type_MenuFontOfSize( C.double(fontSize), ) - r0 = NSFont_fromPointer(ret) - return + + return NSFont_FromPointer(ret) } -func NSFont_controlContentFontOfSize_( - fontSize core.CGFloat, -) ( - r0 NSFont, -) { - ret := C.NSFont_type_controlContentFontOfSize_( +// NSFont_ControlContentFontOfSize returns the font used for the content of controls in the specified size. +// +// See https://developer.apple.com/documentation/appkit/nsfont/1527070-controlcontentfontofsize?language=objc for details. +func NSFont_ControlContentFontOfSize(fontSize core.CGFloat) NSFont { + ret := C.NSFont_type_ControlContentFontOfSize( C.double(fontSize), ) - r0 = NSFont_fromPointer(ret) - return + + return NSFont_FromPointer(ret) } -func NSFont_titleBarFontOfSize_( - fontSize core.CGFloat, -) ( - r0 NSFont, -) { - ret := C.NSFont_type_titleBarFontOfSize_( +// NSFont_TitleBarFontOfSize returns the font used for window title bars, in the specified size. +// +// See https://developer.apple.com/documentation/appkit/nsfont/1530200-titlebarfontofsize?language=objc for details. +func NSFont_TitleBarFontOfSize(fontSize core.CGFloat) NSFont { + ret := C.NSFont_type_TitleBarFontOfSize( C.double(fontSize), ) - r0 = NSFont_fromPointer(ret) - return + + return NSFont_FromPointer(ret) } -func NSFont_paletteFontOfSize_( - fontSize core.CGFloat, -) ( - r0 NSFont, -) { - ret := C.NSFont_type_paletteFontOfSize_( +// NSFont_PaletteFontOfSize returns the font used for palette window title bars, in the specified size. +// +// See https://developer.apple.com/documentation/appkit/nsfont/1535462-palettefontofsize?language=objc for details. +func NSFont_PaletteFontOfSize(fontSize core.CGFloat) NSFont { + ret := C.NSFont_type_PaletteFontOfSize( C.double(fontSize), ) - r0 = NSFont_fromPointer(ret) - return + + return NSFont_FromPointer(ret) } -func NSFont_toolTipsFontOfSize_( - fontSize core.CGFloat, -) ( - r0 NSFont, -) { - ret := C.NSFont_type_toolTipsFontOfSize_( +// NSFont_ToolTipsFontOfSize returns the font used for tool tips labels, in the specified size. +// +// See https://developer.apple.com/documentation/appkit/nsfont/1527704-tooltipsfontofsize?language=objc for details. +func NSFont_ToolTipsFontOfSize(fontSize core.CGFloat) NSFont { + ret := C.NSFont_type_ToolTipsFontOfSize( C.double(fontSize), ) - r0 = NSFont_fromPointer(ret) - return + + return NSFont_FromPointer(ret) } -func NSFont_setUserFont_( - font NSFontRef, -) { - C.NSFont_type_setUserFont_( +// NSFont_SetUserFont sets the font used by default for documents and other text under the user’s control to the specified font. +// +// See https://developer.apple.com/documentation/appkit/nsfont/1526068-setuserfont?language=objc for details. +func NSFont_SetUserFont(font NSFontRef) { + C.NSFont_type_SetUserFont( objc.RefPointer(font), ) + return } -func NSFont_setUserFixedPitchFont_( - font NSFontRef, -) { - C.NSFont_type_setUserFixedPitchFont_( +// NSFont_SetUserFixedPitchFont sets the font used by default for documents and other text under the user’s control, when that font should be fixed-pitch, to the specified font. +// +// See https://developer.apple.com/documentation/appkit/nsfont/1529050-setuserfixedpitchfont?language=objc for details. +func NSFont_SetUserFixedPitchFont(font NSFontRef) { + C.NSFont_type_SetUserFixedPitchFont( objc.RefPointer(font), ) + return } -func NSFont_systemFontSize() ( - r0 core.CGFloat, -) { - ret := C.NSFont_type_systemFontSize() - r0 = core.CGFloat(ret) - return +// NSFont_SystemFontSize returns the size of the standard system font. +// +// See https://developer.apple.com/documentation/appkit/nsfont/1531931-systemfontsize?language=objc for details. +func NSFont_SystemFontSize() core.CGFloat { + ret := C.NSFont_type_SystemFontSize() + + return core.CGFloat(ret) } -func NSFont_smallSystemFontSize() ( - r0 core.CGFloat, -) { - ret := C.NSFont_type_smallSystemFontSize() - r0 = core.CGFloat(ret) - return +// NSFont_SmallSystemFontSize returns the size of the standard small system font. +// +// See https://developer.apple.com/documentation/appkit/nsfont/1535612-smallsystemfontsize?language=objc for details. +func NSFont_SmallSystemFontSize() core.CGFloat { + ret := C.NSFont_type_SmallSystemFontSize() + + return core.CGFloat(ret) } -func NSFont_labelFontSize() ( - r0 core.CGFloat, -) { - ret := C.NSFont_type_labelFontSize() - r0 = core.CGFloat(ret) - return +// NSFont_LabelFontSize returns the size of the standard label font. +// +// See https://developer.apple.com/documentation/appkit/nsfont/1534629-labelfontsize?language=objc for details. +func NSFont_LabelFontSize() core.CGFloat { + ret := C.NSFont_type_LabelFontSize() + + return core.CGFloat(ret) } -func NSImage_alloc() ( - r0 NSImage, -) { - ret := C.NSImage_type_alloc() - r0 = NSImage_fromPointer(ret) - return +// NSImage_Alloc +// +// See for details. +func NSImage_Alloc() NSImage { + ret := C.NSImage_type_Alloc() + + return NSImage_FromPointer(ret) } -func NSImage_imageWithSystemSymbolName_accessibilityDescription_( - symbolName core.NSStringRef, - description core.NSStringRef, -) ( - r0 NSImage, -) { - ret := C.NSImage_type_imageWithSystemSymbolName_accessibilityDescription_( +// NSImage_ImageWithSystemSymbolNameAccessibilityDescription creates a symbol image with the system symbol name and accessibility description that you specify. +// +// See https://developer.apple.com/documentation/appkit/nsimage/3622472-imagewithsystemsymbolname?language=objc for details. +func NSImage_ImageWithSystemSymbolNameAccessibilityDescription(symbolName core.NSStringRef, description core.NSStringRef) NSImage { + ret := C.NSImage_type_ImageWithSystemSymbolNameAccessibilityDescription( objc.RefPointer(symbolName), objc.RefPointer(description), ) - r0 = NSImage_fromPointer(ret) - return + + return NSImage_FromPointer(ret) } -func NSImage_canInitWithPasteboard_( - pasteboard NSPasteboardRef, -) ( - r0 bool, -) { - ret := C.NSImage_type_canInitWithPasteboard_( +// NSImage_CanInitWithPasteboard tests whether the image can create an instance of itself using pasteboard data. +// +// See https://developer.apple.com/documentation/appkit/nsimage/1520039-caninitwithpasteboard?language=objc for details. +func NSImage_CanInitWithPasteboard(pasteboard NSPasteboardRef) bool { + ret := C.NSImage_type_CanInitWithPasteboard( objc.RefPointer(pasteboard), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func NSImage_imageTypes() ( - r0 core.NSArray, -) { - ret := C.NSImage_type_imageTypes() - r0 = core.NSArray_fromPointer(ret) - return +// NSImage_ImageTypes returns an array of uti strings identifying the image types supported by the registered image representation objects, either directly or through a user-installed filter service. +// +// See https://developer.apple.com/documentation/appkit/nsimage/1519988-imagetypes?language=objc for details. +func NSImage_ImageTypes() core.NSArray { + ret := C.NSImage_type_ImageTypes() + + return core.NSArray_FromPointer(ret) } -func NSImage_imageUnfilteredTypes() ( - r0 core.NSArray, -) { - ret := C.NSImage_type_imageUnfilteredTypes() - r0 = core.NSArray_fromPointer(ret) - return +// NSImage_ImageUnfilteredTypes returns an array of uti strings identifying the image types supported directly by the registered image representation objects. +// +// See https://developer.apple.com/documentation/appkit/nsimage/1519899-imageunfilteredtypes?language=objc for details. +func NSImage_ImageUnfilteredTypes() core.NSArray { + ret := C.NSImage_type_ImageUnfilteredTypes() + + return core.NSArray_FromPointer(ret) } -func NSImageView_alloc() ( - r0 NSImageView, -) { - ret := C.NSImageView_type_alloc() - r0 = NSImageView_fromPointer(ret) - return +// NSImageView_Alloc +// +// See for details. +func NSImageView_Alloc() NSImageView { + ret := C.NSImageView_type_Alloc() + + return NSImageView_FromPointer(ret) } -func NSImageView_imageViewWithImage_( - image NSImageRef, -) ( - r0 NSImageView, -) { - ret := C.NSImageView_type_imageViewWithImage_( +// NSImageView_ImageViewWithImage +// +// See https://developer.apple.com/documentation/appkit/nsimageview/1644708-imageviewwithimage?language=objc for details. +func NSImageView_ImageViewWithImage(image NSImageRef) NSImageView { + ret := C.NSImageView_type_ImageViewWithImage( objc.RefPointer(image), ) - r0 = NSImageView_fromPointer(ret) - return + + return NSImageView_FromPointer(ret) } -func NSNib_alloc() ( - r0 NSNib, -) { - ret := C.NSNib_type_alloc() - r0 = NSNib_fromPointer(ret) - return +// NSNib_Alloc +// +// See for details. +func NSNib_Alloc() NSNib { + ret := C.NSNib_type_Alloc() + + return NSNib_FromPointer(ret) } -func NSPasteboard_alloc() ( - r0 NSPasteboard, -) { - ret := C.NSPasteboard_type_alloc() - r0 = NSPasteboard_fromPointer(ret) - return +// NSPasteboard_Alloc +// +// See for details. +func NSPasteboard_Alloc() NSPasteboard { + ret := C.NSPasteboard_type_Alloc() + + return NSPasteboard_FromPointer(ret) } -func NSPasteboard_pasteboardByFilteringFile_( - filename core.NSStringRef, -) ( - r0 NSPasteboard, -) { - ret := C.NSPasteboard_type_pasteboardByFilteringFile_( +// NSPasteboard_PasteboardByFilteringFile creates a new pasteboard object that supplies the specified file in as many types as possible based on the available filter services. +// +// See https://developer.apple.com/documentation/appkit/nspasteboard/1532744-pasteboardbyfilteringfile?language=objc for details. +func NSPasteboard_PasteboardByFilteringFile(filename core.NSStringRef) NSPasteboard { + ret := C.NSPasteboard_type_PasteboardByFilteringFile( objc.RefPointer(filename), ) - r0 = NSPasteboard_fromPointer(ret) - return + + return NSPasteboard_FromPointer(ret) } -func NSPasteboard_pasteboardByFilteringTypesInPasteboard_( - pboard NSPasteboardRef, -) ( - r0 NSPasteboard, -) { - ret := C.NSPasteboard_type_pasteboardByFilteringTypesInPasteboard_( +// NSPasteboard_PasteboardByFilteringTypesInPasteboard creates a new pasteboard object that supplies the specified pasteboard data in as many types as possible based on the available filter services. +// +// See https://developer.apple.com/documentation/appkit/nspasteboard/1530088-pasteboardbyfilteringtypesinpast?language=objc for details. +func NSPasteboard_PasteboardByFilteringTypesInPasteboard(pboard NSPasteboardRef) NSPasteboard { + ret := C.NSPasteboard_type_PasteboardByFilteringTypesInPasteboard( objc.RefPointer(pboard), ) - r0 = NSPasteboard_fromPointer(ret) - return + + return NSPasteboard_FromPointer(ret) } -func NSPasteboard_pasteboardWithUniqueName() ( - r0 NSPasteboard, -) { - ret := C.NSPasteboard_type_pasteboardWithUniqueName() - r0 = NSPasteboard_fromPointer(ret) - return +// NSPasteboard_PasteboardWithUniqueName creates and returns a new pasteboard with a name that is guaranteed to be unique with respect to other pasteboards in the system. +// +// See https://developer.apple.com/documentation/appkit/nspasteboard/1528936-pasteboardwithuniquename?language=objc for details. +func NSPasteboard_PasteboardWithUniqueName() NSPasteboard { + ret := C.NSPasteboard_type_PasteboardWithUniqueName() + + return NSPasteboard_FromPointer(ret) } -func NSPasteboard_generalPasteboard() ( - r0 NSPasteboard, -) { - ret := C.NSPasteboard_type_generalPasteboard() - r0 = NSPasteboard_fromPointer(ret) - return +// NSPasteboard_GeneralPasteboard returns the shared pasteboard object to use for general content. +// +// See https://developer.apple.com/documentation/appkit/nspasteboard/1530091-generalpasteboard?language=objc for details. +func NSPasteboard_GeneralPasteboard() NSPasteboard { + ret := C.NSPasteboard_type_GeneralPasteboard() + + return NSPasteboard_FromPointer(ret) } -func NSLayoutManager_alloc() ( - r0 NSLayoutManager, -) { - ret := C.NSLayoutManager_type_alloc() - r0 = NSLayoutManager_fromPointer(ret) - return +// NSLayoutManager_Alloc +// +// See for details. +func NSLayoutManager_Alloc() NSLayoutManager { + ret := C.NSLayoutManager_type_Alloc() + + return NSLayoutManager_FromPointer(ret) } -func NSMenu_alloc() ( - r0 NSMenu, -) { - ret := C.NSMenu_type_alloc() - r0 = NSMenu_fromPointer(ret) - return +// NSMenu_Alloc +// +// See for details. +func NSMenu_Alloc() NSMenu { + ret := C.NSMenu_type_Alloc() + + return NSMenu_FromPointer(ret) } -func NSMenu_menuBarVisible() ( - r0 bool, -) { - ret := C.NSMenu_type_menuBarVisible() - r0 = convertObjCBoolToGo(ret) - return +// NSMenu_MenuBarVisible returns a boolean value that indicates whether the menu bar is visible. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518236-menubarvisible?language=objc for details. +func NSMenu_MenuBarVisible() bool { + ret := C.NSMenu_type_MenuBarVisible() + + return convertObjCBoolToGo(ret) } -func NSMenu_setMenuBarVisible_( - visible bool, -) { - C.NSMenu_type_setMenuBarVisible_( +// NSMenu_SetMenuBarVisible sets whether the menu bar is visible and selectable by the user. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518200-setmenubarvisible?language=objc for details. +func NSMenu_SetMenuBarVisible(visible bool) { + C.NSMenu_type_SetMenuBarVisible( convertToObjCBool(visible), ) + return } -func NSMenu_popUpContextMenu_withEvent_forView_( - menu NSMenuRef, - event NSEventRef, - view NSViewRef, -) { - C.NSMenu_type_popUpContextMenu_withEvent_forView_( +// NSMenu_PopUpContextMenuWithEventForView displays a contextual menu over a view for an event. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518170-popupcontextmenu?language=objc for details. +func NSMenu_PopUpContextMenuWithEventForView(menu NSMenuRef, event NSEventRef, view NSViewRef) { + C.NSMenu_type_PopUpContextMenuWithEventForView( objc.RefPointer(menu), objc.RefPointer(event), objc.RefPointer(view), ) + return } -func NSMenu_popUpContextMenu_withEvent_forView_withFont_( - menu NSMenuRef, - event NSEventRef, - view NSViewRef, - font NSFontRef, -) { - C.NSMenu_type_popUpContextMenu_withEvent_forView_withFont_( +// NSMenu_PopUpContextMenuWithEventForViewWithFont displays a contextual menu over a view for an event using a specified font. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518165-popupcontextmenu?language=objc for details. +func NSMenu_PopUpContextMenuWithEventForViewWithFont(menu NSMenuRef, event NSEventRef, view NSViewRef, font NSFontRef) { + C.NSMenu_type_PopUpContextMenuWithEventForViewWithFont( objc.RefPointer(menu), objc.RefPointer(event), objc.RefPointer(view), objc.RefPointer(font), ) + return } -func NSPopover_alloc() ( - r0 NSPopover, -) { - ret := C.NSPopover_type_alloc() - r0 = NSPopover_fromPointer(ret) - return +// NSPopover_Alloc +// +// See for details. +func NSPopover_Alloc() NSPopover { + ret := C.NSPopover_type_Alloc() + + return NSPopover_FromPointer(ret) } -func NSMenuItem_alloc() ( - r0 NSMenuItem, -) { - ret := C.NSMenuItem_type_alloc() - r0 = NSMenuItem_fromPointer(ret) - return +// NSMenuItem_Alloc +// +// See for details. +func NSMenuItem_Alloc() NSMenuItem { + ret := C.NSMenuItem_type_Alloc() + + return NSMenuItem_FromPointer(ret) } -func NSMenuItem_separatorItem() ( - r0 NSMenuItem, -) { - ret := C.NSMenuItem_type_separatorItem() - r0 = NSMenuItem_fromPointer(ret) - return +// NSMenuItem_SeparatorItem returns a menu item that is used to separate logical groups of menu commands. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514838-separatoritem?language=objc for details. +func NSMenuItem_SeparatorItem() NSMenuItem { + ret := C.NSMenuItem_type_SeparatorItem() + + return NSMenuItem_FromPointer(ret) } -func NSMenuItem_usesUserKeyEquivalents() ( - r0 bool, -) { - ret := C.NSMenuItem_type_usesUserKeyEquivalents() - r0 = convertObjCBoolToGo(ret) - return +// NSMenuItem_UsesUserKeyEquivalents returns a boolean value that indicates whether menu items conform to user preferences for key equivalents. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514811-usesuserkeyequivalents?language=objc for details. +func NSMenuItem_UsesUserKeyEquivalents() bool { + ret := C.NSMenuItem_type_UsesUserKeyEquivalents() + + return convertObjCBoolToGo(ret) } -func NSMenuItem_setUsesUserKeyEquivalents_( - value bool, -) { - C.NSMenuItem_type_setUsesUserKeyEquivalents_( +// NSMenuItem_SetUsesUserKeyEquivalents returns a boolean value that indicates whether menu items conform to user preferences for key equivalents. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514811-usesuserkeyequivalents?language=objc for details. +func NSMenuItem_SetUsesUserKeyEquivalents(value bool) { + C.NSMenuItem_type_SetUsesUserKeyEquivalents( convertToObjCBool(value), ) + return } -func NSRunningApplication_alloc() ( - r0 NSRunningApplication, -) { - ret := C.NSRunningApplication_type_alloc() - r0 = NSRunningApplication_fromPointer(ret) - return +// NSRunningApplication_Alloc +// +// See for details. +func NSRunningApplication_Alloc() NSRunningApplication { + ret := C.NSRunningApplication_type_Alloc() + + return NSRunningApplication_FromPointer(ret) } -func NSRunningApplication_runningApplicationsWithBundleIdentifier_( - bundleIdentifier core.NSStringRef, -) ( - r0 core.NSArray, -) { - ret := C.NSRunningApplication_type_runningApplicationsWithBundleIdentifier_( +// NSRunningApplication_RunningApplicationsWithBundleIdentifier returns an array of currently running applications with the specified bundle identifier. +// +// See https://developer.apple.com/documentation/appkit/nsrunningapplication/1530798-runningapplicationswithbundleide?language=objc for details. +func NSRunningApplication_RunningApplicationsWithBundleIdentifier(bundleIdentifier core.NSStringRef) core.NSArray { + ret := C.NSRunningApplication_type_RunningApplicationsWithBundleIdentifier( objc.RefPointer(bundleIdentifier), ) - r0 = core.NSArray_fromPointer(ret) - return + + return core.NSArray_FromPointer(ret) } -func NSRunningApplication_terminateAutomaticallyTerminableApplications() { - C.NSRunningApplication_type_terminateAutomaticallyTerminableApplications() +// NSRunningApplication_TerminateAutomaticallyTerminableApplications terminates invisibly running applications as if triggered by system memory pressure. +// +// See https://developer.apple.com/documentation/appkit/nsrunningapplication/1529538-terminateautomaticallyterminable?language=objc for details. +func NSRunningApplication_TerminateAutomaticallyTerminableApplications() { + C.NSRunningApplication_type_TerminateAutomaticallyTerminableApplications() + return } -func NSRunningApplication_currentApplication() ( - r0 NSRunningApplication, -) { - ret := C.NSRunningApplication_type_currentApplication() - r0 = NSRunningApplication_fromPointer(ret) - return +// NSRunningApplication_CurrentApplication returns an nsrunningapplication representing this application. +// +// See https://developer.apple.com/documentation/appkit/nsrunningapplication/1533604-currentapplication?language=objc for details. +func NSRunningApplication_CurrentApplication() NSRunningApplication { + ret := C.NSRunningApplication_type_CurrentApplication() + + return NSRunningApplication_FromPointer(ret) } -func NSScreen_alloc() ( - r0 NSScreen, -) { - ret := C.NSScreen_type_alloc() - r0 = NSScreen_fromPointer(ret) - return +// NSScreen_Alloc +// +// See for details. +func NSScreen_Alloc() NSScreen { + ret := C.NSScreen_type_Alloc() + + return NSScreen_FromPointer(ret) } -func NSScreen_mainScreen() ( - r0 NSScreen, -) { - ret := C.NSScreen_type_mainScreen() - r0 = NSScreen_fromPointer(ret) - return +// NSScreen_MainScreen returns the screen object containing the window with the keyboard focus. +// +// See https://developer.apple.com/documentation/appkit/nsscreen/1388371-mainscreen?language=objc for details. +func NSScreen_MainScreen() NSScreen { + ret := C.NSScreen_type_MainScreen() + + return NSScreen_FromPointer(ret) } -func NSScreen_deepestScreen() ( - r0 NSScreen, -) { - ret := C.NSScreen_type_deepestScreen() - r0 = NSScreen_fromPointer(ret) - return +// NSScreen_DeepestScreen returns a screen object representing the screen that can best represent color. +// +// See https://developer.apple.com/documentation/appkit/nsscreen/1388374-deepestscreen?language=objc for details. +func NSScreen_DeepestScreen() NSScreen { + ret := C.NSScreen_type_DeepestScreen() + + return NSScreen_FromPointer(ret) } -func NSScreen_screens() ( - r0 core.NSArray, -) { - ret := C.NSScreen_type_screens() - r0 = core.NSArray_fromPointer(ret) - return +// NSScreen_Screens returns an array of screen objects representing all of the screens available on the system. +// +// See https://developer.apple.com/documentation/appkit/nsscreen/1388393-screens?language=objc for details. +func NSScreen_Screens() core.NSArray { + ret := C.NSScreen_type_Screens() + + return core.NSArray_FromPointer(ret) } -func NSScreen_screensHaveSeparateSpaces() ( - r0 bool, -) { - ret := C.NSScreen_type_screensHaveSeparateSpaces() - r0 = convertObjCBoolToGo(ret) - return +// NSScreen_ScreensHaveSeparateSpaces returns a boolean value indicating whether each screen can have its own set of spaces. +// +// See https://developer.apple.com/documentation/appkit/nsscreen/1388365-screenshaveseparatespaces?language=objc for details. +func NSScreen_ScreensHaveSeparateSpaces() bool { + ret := C.NSScreen_type_ScreensHaveSeparateSpaces() + + return convertObjCBoolToGo(ret) } -func NSStatusBar_alloc() ( - r0 NSStatusBar, -) { - ret := C.NSStatusBar_type_alloc() - r0 = NSStatusBar_fromPointer(ret) - return +// NSStatusBar_Alloc +// +// See for details. +func NSStatusBar_Alloc() NSStatusBar { + ret := C.NSStatusBar_type_Alloc() + + return NSStatusBar_FromPointer(ret) } -func NSStatusBar_systemStatusBar() ( - r0 NSStatusBar, -) { - ret := C.NSStatusBar_type_systemStatusBar() - r0 = NSStatusBar_fromPointer(ret) - return +// NSStatusBar_SystemStatusBar returns the system-wide status bar located in the menu bar. +// +// See https://developer.apple.com/documentation/appkit/nsstatusbar/1530619-systemstatusbar?language=objc for details. +func NSStatusBar_SystemStatusBar() NSStatusBar { + ret := C.NSStatusBar_type_SystemStatusBar() + + return NSStatusBar_FromPointer(ret) } -func NSStatusBarButton_alloc() ( - r0 NSStatusBarButton, -) { - ret := C.NSStatusBarButton_type_alloc() - r0 = NSStatusBarButton_fromPointer(ret) - return +// NSStatusBarButton_Alloc +// +// See for details. +func NSStatusBarButton_Alloc() NSStatusBarButton { + ret := C.NSStatusBarButton_type_Alloc() + + return NSStatusBarButton_FromPointer(ret) } -func NSStatusItem_alloc() ( - r0 NSStatusItem, -) { - ret := C.NSStatusItem_type_alloc() - r0 = NSStatusItem_fromPointer(ret) - return +// NSStatusItem_Alloc +// +// See for details. +func NSStatusItem_Alloc() NSStatusItem { + ret := C.NSStatusItem_type_Alloc() + + return NSStatusItem_FromPointer(ret) } -func NSText_alloc() ( - r0 NSText, -) { - ret := C.NSText_type_alloc() - r0 = NSText_fromPointer(ret) - return +// NSText_Alloc +// +// See for details. +func NSText_Alloc() NSText { + ret := C.NSText_type_Alloc() + + return NSText_FromPointer(ret) } -func NSTextField_alloc() ( - r0 NSTextField, -) { - ret := C.NSTextField_type_alloc() - r0 = NSTextField_fromPointer(ret) - return +// NSTextField_Alloc +// +// See for details. +func NSTextField_Alloc() NSTextField { + ret := C.NSTextField_type_Alloc() + + return NSTextField_FromPointer(ret) } -func NSTextField_labelWithAttributedString_( - attributedStringValue core.NSAttributedStringRef, -) ( - r0 NSTextField, -) { - ret := C.NSTextField_type_labelWithAttributedString_( +// NSTextField_LabelWithAttributedString creates a text field for use as a static label that displays styled text, doesn’t wrap, and doesn’t have selectable text. +// +// See https://developer.apple.com/documentation/appkit/nstextfield/1644658-labelwithattributedstring?language=objc for details. +func NSTextField_LabelWithAttributedString(attributedStringValue core.NSAttributedStringRef) NSTextField { + ret := C.NSTextField_type_LabelWithAttributedString( objc.RefPointer(attributedStringValue), ) - r0 = NSTextField_fromPointer(ret) - return + + return NSTextField_FromPointer(ret) } -func NSTextField_labelWithString_( - stringValue core.NSStringRef, -) ( - r0 NSTextField, -) { - ret := C.NSTextField_type_labelWithString_( +// NSTextField_LabelWithString initializes a text field for use as a static label that uses the system default font, doesn’t wrap, and doesn’t have selectable text. +// +// See https://developer.apple.com/documentation/appkit/nstextfield/1644377-labelwithstring?language=objc for details. +func NSTextField_LabelWithString(stringValue core.NSStringRef) NSTextField { + ret := C.NSTextField_type_LabelWithString( objc.RefPointer(stringValue), ) - r0 = NSTextField_fromPointer(ret) - return + + return NSTextField_FromPointer(ret) } -func NSTextField_textFieldWithString_( - stringValue core.NSStringRef, -) ( - r0 NSTextField, -) { - ret := C.NSTextField_type_textFieldWithString_( +// NSTextField_TextFieldWithString initializes a single-line editable text field for user input using the system default font and standard visual appearance. +// +// See https://developer.apple.com/documentation/appkit/nstextfield/1644706-textfieldwithstring?language=objc for details. +func NSTextField_TextFieldWithString(stringValue core.NSStringRef) NSTextField { + ret := C.NSTextField_type_TextFieldWithString( objc.RefPointer(stringValue), ) - r0 = NSTextField_fromPointer(ret) - return + + return NSTextField_FromPointer(ret) } -func NSTextField_wrappingLabelWithString_( - stringValue core.NSStringRef, -) ( - r0 NSTextField, -) { - ret := C.NSTextField_type_wrappingLabelWithString_( +// NSTextField_WrappingLabelWithString initializes a text field for use as a multiline static label with selectable text that uses the system default font. +// +// See https://developer.apple.com/documentation/appkit/nstextfield/1644543-wrappinglabelwithstring?language=objc for details. +func NSTextField_WrappingLabelWithString(stringValue core.NSStringRef) NSTextField { + ret := C.NSTextField_type_WrappingLabelWithString( objc.RefPointer(stringValue), ) - r0 = NSTextField_fromPointer(ret) - return + + return NSTextField_FromPointer(ret) } -func NSTextContainer_alloc() ( - r0 NSTextContainer, -) { - ret := C.NSTextContainer_type_alloc() - r0 = NSTextContainer_fromPointer(ret) - return +// NSTextContainer_Alloc +// +// See for details. +func NSTextContainer_Alloc() NSTextContainer { + ret := C.NSTextContainer_type_Alloc() + + return NSTextContainer_FromPointer(ret) } -func NSViewController_alloc() ( - r0 NSViewController, -) { - ret := C.NSViewController_type_alloc() - r0 = NSViewController_fromPointer(ret) - return +// NSViewController_Alloc +// +// See for details. +func NSViewController_Alloc() NSViewController { + ret := C.NSViewController_type_Alloc() + + return NSViewController_FromPointer(ret) } -func NSVisualEffectView_alloc() ( - r0 NSVisualEffectView, -) { - ret := C.NSVisualEffectView_type_alloc() - r0 = NSVisualEffectView_fromPointer(ret) - return +// NSVisualEffectView_Alloc +// +// See for details. +func NSVisualEffectView_Alloc() NSVisualEffectView { + ret := C.NSVisualEffectView_type_Alloc() + + return NSVisualEffectView_FromPointer(ret) } -func NSWindow_alloc() ( - r0 NSWindow, -) { - ret := C.NSWindow_type_alloc() - r0 = NSWindow_fromPointer(ret) - return +// NSWindow_Alloc +// +// See for details. +func NSWindow_Alloc() NSWindow { + ret := C.NSWindow_type_Alloc() + + return NSWindow_FromPointer(ret) } -func NSWindow_windowWithContentViewController_( - contentViewController NSViewControllerRef, -) ( - r0 NSWindow, -) { - ret := C.NSWindow_type_windowWithContentViewController_( +// NSWindow_WindowWithContentViewController creates a titled window that contains the specified content view controller. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419551-windowwithcontentviewcontroller?language=objc for details. +func NSWindow_WindowWithContentViewController(contentViewController NSViewControllerRef) NSWindow { + ret := C.NSWindow_type_WindowWithContentViewController( objc.RefPointer(contentViewController), ) - r0 = NSWindow_fromPointer(ret) - return + + return NSWindow_FromPointer(ret) } -func NSWindow_contentRectForFrameRect_styleMask_( - fRect core.NSRect, - style core.NSUInteger, -) ( - r0 core.NSRect, -) { - ret := C.NSWindow_type_contentRectForFrameRect_styleMask_( +// NSWindow_ContentRectForFrameRectStyleMask returns the content rectangle used by a window with a given frame rectangle and window style. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419586-contentrectforframerect?language=objc for details. +func NSWindow_ContentRectForFrameRectStyleMask(fRect core.NSRect, style core.NSUInteger) core.NSRect { + ret := C.NSWindow_type_ContentRectForFrameRectStyleMask( *(*C.NSRect)(unsafe.Pointer(&fRect)), C.ulong(style), ) - r0 = *(*core.NSRect)(unsafe.Pointer(&ret)) - return + + return *(*core.NSRect)(unsafe.Pointer(&ret)) } -func NSWindow_frameRectForContentRect_styleMask_( - cRect core.NSRect, - style core.NSUInteger, -) ( - r0 core.NSRect, -) { - ret := C.NSWindow_type_frameRectForContentRect_styleMask_( +// NSWindow_FrameRectForContentRectStyleMask returns the frame rectangle used by a window with a given content rectangle and window style. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419372-framerectforcontentrect?language=objc for details. +func NSWindow_FrameRectForContentRectStyleMask(cRect core.NSRect, style core.NSUInteger) core.NSRect { + ret := C.NSWindow_type_FrameRectForContentRectStyleMask( *(*C.NSRect)(unsafe.Pointer(&cRect)), C.ulong(style), ) - r0 = *(*core.NSRect)(unsafe.Pointer(&ret)) - return + + return *(*core.NSRect)(unsafe.Pointer(&ret)) } -func NSWindow_minFrameWidthWithTitle_styleMask_( - title core.NSStringRef, - style core.NSUInteger, -) ( - r0 core.CGFloat, -) { - ret := C.NSWindow_type_minFrameWidthWithTitle_styleMask_( +// NSWindow_MinFrameWidthWithTitleStyleMask returns the minimum width a window’s frame rectangle must have for it to display a title, with a given window style. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419294-minframewidthwithtitle?language=objc for details. +func NSWindow_MinFrameWidthWithTitleStyleMask(title core.NSStringRef, style core.NSUInteger) core.CGFloat { + ret := C.NSWindow_type_MinFrameWidthWithTitleStyleMask( objc.RefPointer(title), C.ulong(style), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } -func NSWindow_windowNumberAtPoint_belowWindowWithWindowNumber_( - point core.NSPoint, - windowNumber core.NSInteger, -) ( - r0 core.NSInteger, -) { - ret := C.NSWindow_type_windowNumberAtPoint_belowWindowWithWindowNumber_( +// NSWindow_WindowNumberAtPointBelowWindowWithWindowNumber returns the number of the frontmost window that would be hit by a mouse-down at the specified screen location. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419210-windownumberatpoint?language=objc for details. +func NSWindow_WindowNumberAtPointBelowWindowWithWindowNumber(point core.NSPoint, windowNumber core.NSInteger) core.NSInteger { + ret := C.NSWindow_type_WindowNumberAtPointBelowWindowWithWindowNumber( *(*C.NSPoint)(unsafe.Pointer(&point)), C.long(windowNumber), ) - r0 = core.NSInteger(ret) - return + + return core.NSInteger(ret) } -func NSWindow_allowsAutomaticWindowTabbing() ( - r0 bool, -) { - ret := C.NSWindow_type_allowsAutomaticWindowTabbing() - r0 = convertObjCBoolToGo(ret) - return +// NSWindow_AllowsAutomaticWindowTabbing returns a boolean value that indicates whether the app can automatically organize windows into tabs. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1646657-allowsautomaticwindowtabbing?language=objc for details. +func NSWindow_AllowsAutomaticWindowTabbing() bool { + ret := C.NSWindow_type_AllowsAutomaticWindowTabbing() + + return convertObjCBoolToGo(ret) } -func NSWindow_setAllowsAutomaticWindowTabbing_( - value bool, -) { - C.NSWindow_type_setAllowsAutomaticWindowTabbing_( +// NSWindow_SetAllowsAutomaticWindowTabbing returns a boolean value that indicates whether the app can automatically organize windows into tabs. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1646657-allowsautomaticwindowtabbing?language=objc for details. +func NSWindow_SetAllowsAutomaticWindowTabbing(value bool) { + C.NSWindow_type_SetAllowsAutomaticWindowTabbing( convertToObjCBool(value), ) + return } -func NSWorkspace_alloc() ( - r0 NSWorkspace, -) { - ret := C.NSWorkspace_type_alloc() - r0 = NSWorkspace_fromPointer(ret) - return +// NSWorkspace_Alloc +// +// See for details. +func NSWorkspace_Alloc() NSWorkspace { + ret := C.NSWorkspace_type_Alloc() + + return NSWorkspace_FromPointer(ret) } -func NSWorkspace_sharedWorkspace() ( - r0 NSWorkspace, -) { - ret := C.NSWorkspace_type_sharedWorkspace() - r0 = NSWorkspace_fromPointer(ret) - return +// NSWorkspace_SharedWorkspace returns the shared workspace object. +// +// See https://developer.apple.com/documentation/appkit/nsworkspace/1530344-sharedworkspace?language=objc for details. +func NSWorkspace_SharedWorkspace() NSWorkspace { + ret := C.NSWorkspace_type_SharedWorkspace() + + return NSWorkspace_FromPointer(ret) } -func NSColor_alloc() ( - r0 NSColor, -) { - ret := C.NSColor_type_alloc() - r0 = NSColor_fromPointer(ret) - return +// NSColor_Alloc +// +// See for details. +func NSColor_Alloc() NSColor { + ret := C.NSColor_type_Alloc() + + return NSColor_FromPointer(ret) } -func NSColor_colorFromPasteboard_( - pasteBoard NSPasteboardRef, -) ( - r0 NSColor, -) { - ret := C.NSColor_type_colorFromPasteboard_( +// NSColor_ColorFromPasteboard creates a color object from color data currently on the pasteboard. +// +// See https://developer.apple.com/documentation/appkit/nscolor/1535057-colorfrompasteboard?language=objc for details. +func NSColor_ColorFromPasteboard(pasteBoard NSPasteboardRef) NSColor { + ret := C.NSColor_type_ColorFromPasteboard( objc.RefPointer(pasteBoard), ) - r0 = NSColor_fromPointer(ret) - return + + return NSColor_FromPointer(ret) } -func NSColor_colorWithRed_green_blue_alpha_( - red core.CGFloat, - green core.CGFloat, - blue core.CGFloat, - alpha core.CGFloat, -) ( - r0 NSColor, -) { - ret := C.NSColor_type_colorWithRed_green_blue_alpha_( +// NSColor_ColorWithRedGreenBlueAlpha +// +// See for details. +func NSColor_ColorWithRedGreenBlueAlpha(red core.CGFloat, green core.CGFloat, blue core.CGFloat, alpha core.CGFloat) NSColor { + ret := C.NSColor_type_ColorWithRedGreenBlueAlpha( C.double(red), C.double(green), C.double(blue), C.double(alpha), ) - r0 = NSColor_fromPointer(ret) - return + + return NSColor_FromPointer(ret) } -func NSColor_ignoresAlpha() ( - r0 bool, -) { - ret := C.NSColor_type_ignoresAlpha() - r0 = convertObjCBoolToGo(ret) - return +// NSColor_IgnoresAlpha returns a boolean value that indicates whether the app supports alpha. +// +// See https://developer.apple.com/documentation/appkit/nscolor/1533565-ignoresalpha?language=objc for details. +func NSColor_IgnoresAlpha() bool { + ret := C.NSColor_type_IgnoresAlpha() + + return convertObjCBoolToGo(ret) } -func NSColor_setIgnoresAlpha_( - value bool, -) { - C.NSColor_type_setIgnoresAlpha_( +// NSColor_SetIgnoresAlpha returns a boolean value that indicates whether the app supports alpha. +// +// See https://developer.apple.com/documentation/appkit/nscolor/1533565-ignoresalpha?language=objc for details. +func NSColor_SetIgnoresAlpha(value bool) { + C.NSColor_type_SetIgnoresAlpha( convertToObjCBool(value), ) + return } -func NSColor_systemCyanColor() ( - r0 NSColor, -) { - ret := C.NSColor_type_systemCyanColor() - r0 = NSColor_fromPointer(ret) - return +// NSColor_SystemCyanColor +// +// See https://developer.apple.com/documentation/appkit/nscolor/3816005-systemcyancolor?language=objc for details. +func NSColor_SystemCyanColor() NSColor { + ret := C.NSColor_type_SystemCyanColor() + + return NSColor_FromPointer(ret) } -func NSColor_systemMintColor() ( - r0 NSColor, -) { - ret := C.NSColor_type_systemMintColor() - r0 = NSColor_fromPointer(ret) - return +// NSColor_SystemMintColor +// +// See https://developer.apple.com/documentation/appkit/nscolor/3816006-systemmintcolor?language=objc for details. +func NSColor_SystemMintColor() NSColor { + ret := C.NSColor_type_SystemMintColor() + + return NSColor_FromPointer(ret) } -func NSColor_clearColor() ( - r0 NSColor, -) { - ret := C.NSColor_type_clearColor() - r0 = NSColor_fromPointer(ret) - return +// NSColor_ClearColor returns a color object whose grayscale and alpha values are both 0.0. +// +// See https://developer.apple.com/documentation/appkit/nscolor/1527217-clearcolor?language=objc for details. +func NSColor_ClearColor() NSColor { + ret := C.NSColor_type_ClearColor() + + return NSColor_FromPointer(ret) } -func NSTextView_alloc() ( - r0 NSTextView, -) { - ret := C.NSTextView_type_alloc() - r0 = NSTextView_fromPointer(ret) - return +// NSTextView_Alloc +// +// See for details. +func NSTextView_Alloc() NSTextView { + ret := C.NSTextView_type_Alloc() + + return NSTextView_FromPointer(ret) } -func NSTextView_registerForServices() { - C.NSTextView_type_registerForServices() +// NSTextView_RegisterForServices registers send and return types for the services facility. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449507-registerforservices?language=objc for details. +func NSTextView_RegisterForServices() { + C.NSTextView_type_RegisterForServices() + return } -func NSTextView_fieldEditor() ( - r0 NSTextView, -) { - ret := C.NSTextView_type_fieldEditor() - r0 = NSTextView_fromPointer(ret) - return +// NSTextView_FieldEditor +// +// See https://developer.apple.com/documentation/appkit/nstextview/2990525-fieldeditor?language=objc for details. +func NSTextView_FieldEditor() NSTextView { + ret := C.NSTextView_type_FieldEditor() + + return NSTextView_FromPointer(ret) } -func NSTextView_stronglyReferencesTextStorage() ( - r0 bool, -) { - ret := C.NSTextView_type_stronglyReferencesTextStorage() - r0 = convertObjCBoolToGo(ret) - return +// NSTextView_StronglyReferencesTextStorage +// +// See https://developer.apple.com/documentation/appkit/nstextview/2269433-stronglyreferencestextstorage?language=objc for details. +func NSTextView_StronglyReferencesTextStorage() bool { + ret := C.NSTextView_type_StronglyReferencesTextStorage() + + return convertObjCBoolToGo(ret) } -func NSView_alloc() ( - r0 NSView, -) { - ret := C.NSView_type_alloc() - r0 = NSView_fromPointer(ret) - return +// NSView_Alloc +// +// See for details. +func NSView_Alloc() NSView { + ret := C.NSView_type_Alloc() + + return NSView_FromPointer(ret) } -func NSView_requiresConstraintBasedLayout() ( - r0 bool, -) { - ret := C.NSView_type_requiresConstraintBasedLayout() - r0 = convertObjCBoolToGo(ret) - return +// NSView_RequiresConstraintBasedLayout returns a boolean value indicating whether the view depends on the constraint-based layout system. +// +// See https://developer.apple.com/documentation/appkit/nsview/1526926-requiresconstraintbasedlayout?language=objc for details. +func NSView_RequiresConstraintBasedLayout() bool { + ret := C.NSView_type_RequiresConstraintBasedLayout() + + return convertObjCBoolToGo(ret) } -func NSView_focusView() ( - r0 NSView, -) { - ret := C.NSView_type_focusView() - r0 = NSView_fromPointer(ret) - return +// NSView_FocusView returns the currently focused nsview object, or nil if there is none. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483662-focusview?language=objc for details. +func NSView_FocusView() NSView { + ret := C.NSView_type_FocusView() + + return NSView_FromPointer(ret) } -func NSView_defaultMenu() ( - r0 NSMenu, -) { - ret := C.NSView_type_defaultMenu() - r0 = NSMenu_fromPointer(ret) - return +// NSView_DefaultMenu overridden by subclasses to return the default pop-up menu for instances of the receiving class. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483417-defaultmenu?language=objc for details. +func NSView_DefaultMenu() NSMenu { + ret := C.NSView_type_DefaultMenu() + + return NSMenu_FromPointer(ret) } -func NSView_compatibleWithResponsiveScrolling() ( - r0 bool, -) { - ret := C.NSView_type_compatibleWithResponsiveScrolling() - r0 = convertObjCBoolToGo(ret) - return +// NSView_CompatibleWithResponsiveScrolling +// +// See https://developer.apple.com/documentation/appkit/nsview/2870005-compatiblewithresponsivescrollin?language=objc for details. +func NSView_CompatibleWithResponsiveScrolling() bool { + ret := C.NSView_type_CompatibleWithResponsiveScrolling() + + return convertObjCBoolToGo(ret) } type NSBundleRef interface { Pointer() uintptr - Init_asNSBundle() NSBundle + Init_AsNSBundle() NSBundle } type gen_NSBundle struct { objc.Object } -func NSBundle_fromPointer(ptr unsafe.Pointer) NSBundle { +func NSBundle_FromPointer(ptr unsafe.Pointer) NSBundle { return NSBundle{gen_NSBundle{ - objc.Object_fromPointer(ptr), + objc.Object_FromPointer(ptr), }} } -func NSBundle_fromRef(ref objc.Ref) NSBundle { - return NSBundle_fromPointer(unsafe.Pointer(ref.Pointer())) +func NSBundle_FromRef(ref objc.Ref) NSBundle { + return NSBundle_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_NSBundle) InitWithURL__asNSBundle( - url core.NSURLRef, -) ( - r0 NSBundle, -) { - ret := C.NSBundle_inst_initWithURL_( +// URLForAuxiliaryExecutable returns the file url of the executable with the specified name in the receiver’s bundle. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1411412-urlforauxiliaryexecutable?language=objc for details. +func (x gen_NSBundle) URLForAuxiliaryExecutable( + executableName core.NSStringRef, +) core.NSURL { + ret := C.NSBundle_inst_URLForAuxiliaryExecutable( unsafe.Pointer(x.Pointer()), - objc.RefPointer(url), + objc.RefPointer(executableName), ) - r0 = NSBundle_fromPointer(ret) - return -} -func (x gen_NSBundle) InitWithPath__asNSBundle( - path core.NSStringRef, -) ( - r0 NSBundle, -) { - ret := C.NSBundle_inst_initWithPath_( - unsafe.Pointer(x.Pointer()), - objc.RefPointer(path), - ) - r0 = NSBundle_fromPointer(ret) - return + return core.NSURL_FromPointer(ret) } -func (x gen_NSBundle) LoadNibNamed_owner_options_( +// URLForResourceWithExtension returns the file url for the resource identified by the specified name and file extension. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1411540-urlforresource?language=objc for details. +func (x gen_NSBundle) URLForResourceWithExtension( name core.NSStringRef, - owner objc.Ref, - options core.NSDictionaryRef, -) ( - r0 core.NSArray, -) { - ret := C.NSBundle_inst_loadNibNamed_owner_options_( + ext core.NSStringRef, +) core.NSURL { + ret := C.NSBundle_inst_URLForResourceWithExtension( unsafe.Pointer(x.Pointer()), objc.RefPointer(name), - objc.RefPointer(owner), - objc.RefPointer(options), + objc.RefPointer(ext), ) - r0 = core.NSArray_fromPointer(ret) - return + + return core.NSURL_FromPointer(ret) } -func (x gen_NSBundle) URLForResource_withExtension_subdirectory_( +// URLForResourceWithExtensionSubdirectory returns the file url for the resource file identified by the specified name and extension and residing in a given bundle directory. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1416712-urlforresource?language=objc for details. +func (x gen_NSBundle) URLForResourceWithExtensionSubdirectory( name core.NSStringRef, ext core.NSStringRef, subpath core.NSStringRef, -) ( - r0 core.NSURL, -) { - ret := C.NSBundle_inst_URLForResource_withExtension_subdirectory_( +) core.NSURL { + ret := C.NSBundle_inst_URLForResourceWithExtensionSubdirectory( unsafe.Pointer(x.Pointer()), objc.RefPointer(name), objc.RefPointer(ext), objc.RefPointer(subpath), ) - r0 = core.NSURL_fromPointer(ret) - return + + return core.NSURL_FromPointer(ret) } -func (x gen_NSBundle) URLForResource_withExtension_( +// URLForResourceWithExtensionSubdirectoryLocalization returns the file url for the resource identified by the specified name and file extension, located in the specified bundle subdirectory, and limited to global resources and those associated with the specified localization. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1417378-urlforresource?language=objc for details. +func (x gen_NSBundle) URLForResourceWithExtensionSubdirectoryLocalization( name core.NSStringRef, ext core.NSStringRef, -) ( - r0 core.NSURL, -) { - ret := C.NSBundle_inst_URLForResource_withExtension_( + subpath core.NSStringRef, + localizationName core.NSStringRef, +) core.NSURL { + ret := C.NSBundle_inst_URLForResourceWithExtensionSubdirectoryLocalization( unsafe.Pointer(x.Pointer()), objc.RefPointer(name), objc.RefPointer(ext), + objc.RefPointer(subpath), + objc.RefPointer(localizationName), ) - r0 = core.NSURL_fromPointer(ret) - return + + return core.NSURL_FromPointer(ret) } -func (x gen_NSBundle) URLsForResourcesWithExtension_subdirectory_( +// URLsForResourcesWithExtensionSubdirectory returns an array of file urls for all resources identified by the specified file extension and located in the specified bundle subdirectory. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1407424-urlsforresourceswithextension?language=objc for details. +func (x gen_NSBundle) URLsForResourcesWithExtensionSubdirectory( ext core.NSStringRef, subpath core.NSStringRef, -) ( - r0 core.NSArray, -) { - ret := C.NSBundle_inst_URLsForResourcesWithExtension_subdirectory_( +) core.NSArray { + ret := C.NSBundle_inst_URLsForResourcesWithExtensionSubdirectory( unsafe.Pointer(x.Pointer()), objc.RefPointer(ext), objc.RefPointer(subpath), ) - r0 = core.NSArray_fromPointer(ret) - return + + return core.NSArray_FromPointer(ret) } -func (x gen_NSBundle) URLForResource_withExtension_subdirectory_localization_( - name core.NSStringRef, +// URLsForResourcesWithExtensionSubdirectoryLocalization returns an array containing the file urls for all bundle resources having the specified filename extension, residing in the specified resource subdirectory, and limited to global resources and those associated with the specified localization. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1414688-urlsforresourceswithextension?language=objc for details. +func (x gen_NSBundle) URLsForResourcesWithExtensionSubdirectoryLocalization( ext core.NSStringRef, subpath core.NSStringRef, localizationName core.NSStringRef, -) ( - r0 core.NSURL, -) { - ret := C.NSBundle_inst_URLForResource_withExtension_subdirectory_localization_( +) core.NSArray { + ret := C.NSBundle_inst_URLsForResourcesWithExtensionSubdirectoryLocalization( unsafe.Pointer(x.Pointer()), - objc.RefPointer(name), objc.RefPointer(ext), objc.RefPointer(subpath), objc.RefPointer(localizationName), ) - r0 = core.NSURL_fromPointer(ret) - return + + return core.NSArray_FromPointer(ret) } -func (x gen_NSBundle) URLsForResourcesWithExtension_subdirectory_localization_( - ext core.NSStringRef, - subpath core.NSStringRef, - localizationName core.NSStringRef, -) ( - r0 core.NSArray, -) { - ret := C.NSBundle_inst_URLsForResourcesWithExtension_subdirectory_localization_( +// InitWithPath returns an nsbundle object initialized to correspond to the specified directory. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1412741-initwithpath?language=objc for details. +func (x gen_NSBundle) InitWithPath_AsNSBundle( + path core.NSStringRef, +) NSBundle { + ret := C.NSBundle_inst_InitWithPath( unsafe.Pointer(x.Pointer()), - objc.RefPointer(ext), - objc.RefPointer(subpath), - objc.RefPointer(localizationName), + objc.RefPointer(path), ) - r0 = core.NSArray_fromPointer(ret) - return + + return NSBundle_FromPointer(ret) +} + +// InitWithURL returns an nsbundle object initialized to correspond to the specified file url. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1409352-initwithurl?language=objc for details. +func (x gen_NSBundle) InitWithURL_AsNSBundle( + url core.NSURLRef, +) NSBundle { + ret := C.NSBundle_inst_InitWithURL( + unsafe.Pointer(x.Pointer()), + objc.RefPointer(url), + ) + + return NSBundle_FromPointer(ret) +} + +// Load dynamically loads the bundle’s executable code into a running program, if the code has not already been loaded. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1415927-load?language=objc for details. +func (x gen_NSBundle) Load() bool { + ret := C.NSBundle_inst_Load( + unsafe.Pointer(x.Pointer()), + ) + + return convertObjCBoolToGo(ret) +} + +// LoadNibNamedOwnerOptions unarchives the contents of a nib file located in the receiver's bundle. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1618147-loadnibnamed?language=objc for details. +func (x gen_NSBundle) LoadNibNamedOwnerOptions( + name core.NSStringRef, + owner objc.Ref, + options core.NSDictionaryRef, +) core.NSArray { + ret := C.NSBundle_inst_LoadNibNamedOwnerOptions( + unsafe.Pointer(x.Pointer()), + objc.RefPointer(name), + objc.RefPointer(owner), + objc.RefPointer(options), + ) + + return core.NSArray_FromPointer(ret) +} + +// LocalizedAttributedStringForKeyValueTable +// +// See https://developer.apple.com/documentation/foundation/nsbundle/3746904-localizedattributedstringforkey?language=objc for details. +func (x gen_NSBundle) LocalizedAttributedStringForKeyValueTable( + key core.NSStringRef, + value core.NSStringRef, + tableName core.NSStringRef, +) core.NSAttributedString { + ret := C.NSBundle_inst_LocalizedAttributedStringForKeyValueTable( + unsafe.Pointer(x.Pointer()), + objc.RefPointer(key), + objc.RefPointer(value), + objc.RefPointer(tableName), + ) + + return core.NSAttributedString_FromPointer(ret) +} + +// LocalizedStringForKeyValueTable returns a localized version of the string designated by the specified key and residing in the specified table. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1417694-localizedstringforkey?language=objc for details. +func (x gen_NSBundle) LocalizedStringForKeyValueTable( + key core.NSStringRef, + value core.NSStringRef, + tableName core.NSStringRef, +) core.NSString { + ret := C.NSBundle_inst_LocalizedStringForKeyValueTable( + unsafe.Pointer(x.Pointer()), + objc.RefPointer(key), + objc.RefPointer(value), + objc.RefPointer(tableName), + ) + + return core.NSString_FromPointer(ret) +} + +// ObjectForInfoDictionaryKey returns the value associated with the specified key in the receiver's information property list. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1408696-objectforinfodictionarykey?language=objc for details. +func (x gen_NSBundle) ObjectForInfoDictionaryKey( + key core.NSStringRef, +) objc.Object { + ret := C.NSBundle_inst_ObjectForInfoDictionaryKey( + unsafe.Pointer(x.Pointer()), + objc.RefPointer(key), + ) + + return objc.Object_FromPointer(ret) +} + +// PathForAuxiliaryExecutable returns the full pathname of the executable with the specified name in the receiver’s bundle. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1415214-pathforauxiliaryexecutable?language=objc for details. +func (x gen_NSBundle) PathForAuxiliaryExecutable( + executableName core.NSStringRef, +) core.NSString { + ret := C.NSBundle_inst_PathForAuxiliaryExecutable( + unsafe.Pointer(x.Pointer()), + objc.RefPointer(executableName), + ) + + return core.NSString_FromPointer(ret) } -func (x gen_NSBundle) PathForResource_ofType_( +// PathForResourceOfType returns the full pathname for the resource identified by the specified name and file extension. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1410989-pathforresource?language=objc for details. +func (x gen_NSBundle) PathForResourceOfType( name core.NSStringRef, ext core.NSStringRef, -) ( - r0 core.NSString, -) { - ret := C.NSBundle_inst_pathForResource_ofType_( +) core.NSString { + ret := C.NSBundle_inst_PathForResourceOfType( unsafe.Pointer(x.Pointer()), objc.RefPointer(name), objc.RefPointer(ext), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_NSBundle) PathForResource_ofType_inDirectory_( +// PathForResourceOfTypeInDirectory returns the full pathname for the resource identified by the specified name and file extension and located in the specified bundle subdirectory. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1409670-pathforresource?language=objc for details. +func (x gen_NSBundle) PathForResourceOfTypeInDirectory( name core.NSStringRef, ext core.NSStringRef, subpath core.NSStringRef, -) ( - r0 core.NSString, -) { - ret := C.NSBundle_inst_pathForResource_ofType_inDirectory_( +) core.NSString { + ret := C.NSBundle_inst_PathForResourceOfTypeInDirectory( unsafe.Pointer(x.Pointer()), objc.RefPointer(name), objc.RefPointer(ext), objc.RefPointer(subpath), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_NSBundle) PathForResource_ofType_inDirectory_forLocalization_( +// PathForResourceOfTypeInDirectoryForLocalization returns the full pathname for the resource identified by the specified name and file extension, located in the specified bundle subdirectory, and limited to global resources and those associated with the specified localization. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1413471-pathforresource?language=objc for details. +func (x gen_NSBundle) PathForResourceOfTypeInDirectoryForLocalization( name core.NSStringRef, ext core.NSStringRef, subpath core.NSStringRef, localizationName core.NSStringRef, -) ( - r0 core.NSString, -) { - ret := C.NSBundle_inst_pathForResource_ofType_inDirectory_forLocalization_( +) core.NSString { + ret := C.NSBundle_inst_PathForResourceOfTypeInDirectoryForLocalization( unsafe.Pointer(x.Pointer()), objc.RefPointer(name), objc.RefPointer(ext), objc.RefPointer(subpath), objc.RefPointer(localizationName), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_NSBundle) PathsForResourcesOfType_inDirectory_( +// PathsForResourcesOfTypeInDirectory returns an array containing the pathnames for all bundle resources having the specified filename extension and residing in the resource subdirectory. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1413058-pathsforresourcesoftype?language=objc for details. +func (x gen_NSBundle) PathsForResourcesOfTypeInDirectory( ext core.NSStringRef, subpath core.NSStringRef, -) ( - r0 core.NSArray, -) { - ret := C.NSBundle_inst_pathsForResourcesOfType_inDirectory_( +) core.NSArray { + ret := C.NSBundle_inst_PathsForResourcesOfTypeInDirectory( unsafe.Pointer(x.Pointer()), objc.RefPointer(ext), objc.RefPointer(subpath), ) - r0 = core.NSArray_fromPointer(ret) - return + + return core.NSArray_FromPointer(ret) } -func (x gen_NSBundle) PathsForResourcesOfType_inDirectory_forLocalization_( +// PathsForResourcesOfTypeInDirectoryForLocalization returns an array containing the file for all bundle resources having the specified filename extension, residing in the specified resource subdirectory, and limited to global resources and those associated with the specified localization. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1416940-pathsforresourcesoftype?language=objc for details. +func (x gen_NSBundle) PathsForResourcesOfTypeInDirectoryForLocalization( ext core.NSStringRef, subpath core.NSStringRef, localizationName core.NSStringRef, -) ( - r0 core.NSArray, -) { - ret := C.NSBundle_inst_pathsForResourcesOfType_inDirectory_forLocalization_( +) core.NSArray { + ret := C.NSBundle_inst_PathsForResourcesOfTypeInDirectoryForLocalization( unsafe.Pointer(x.Pointer()), objc.RefPointer(ext), objc.RefPointer(subpath), objc.RefPointer(localizationName), ) - r0 = core.NSArray_fromPointer(ret) - return + + return core.NSArray_FromPointer(ret) } -func (x gen_NSBundle) LocalizedStringForKey_value_table_( - key core.NSStringRef, - value core.NSStringRef, - tableName core.NSStringRef, -) ( - r0 core.NSString, -) { - ret := C.NSBundle_inst_localizedStringForKey_value_table_( +// Unload unloads the code associated with the receiver. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1412388-unload?language=objc for details. +func (x gen_NSBundle) Unload() bool { + ret := C.NSBundle_inst_Unload( unsafe.Pointer(x.Pointer()), - objc.RefPointer(key), - objc.RefPointer(value), - objc.RefPointer(tableName), ) - r0 = core.NSString_fromPointer(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSBundle) URLForAuxiliaryExecutable_( - executableName core.NSStringRef, -) ( - r0 core.NSURL, -) { - ret := C.NSBundle_inst_URLForAuxiliaryExecutable_( +// Init +// +// See for details. +func (x gen_NSBundle) Init_AsNSBundle() NSBundle { + ret := C.NSBundle_inst_Init( unsafe.Pointer(x.Pointer()), - objc.RefPointer(executableName), ) - r0 = core.NSURL_fromPointer(ret) - return + + return NSBundle_FromPointer(ret) } -func (x gen_NSBundle) PathForAuxiliaryExecutable_( - executableName core.NSStringRef, -) ( - r0 core.NSString, -) { - ret := C.NSBundle_inst_pathForAuxiliaryExecutable_( +// ResourceURL returns the file url of the bundle’s subdirectory containing resource files. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1414821-resourceurl?language=objc for details. +func (x gen_NSBundle) ResourceURL() core.NSURL { + ret := C.NSBundle_inst_ResourceURL( unsafe.Pointer(x.Pointer()), - objc.RefPointer(executableName), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSURL_FromPointer(ret) } -func (x gen_NSBundle) ObjectForInfoDictionaryKey_( - key core.NSStringRef, -) ( - r0 objc.Object, -) { - ret := C.NSBundle_inst_objectForInfoDictionaryKey_( +// ExecutableURL returns the file url of the receiver's executable file. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1410470-executableurl?language=objc for details. +func (x gen_NSBundle) ExecutableURL() core.NSURL { + ret := C.NSBundle_inst_ExecutableURL( unsafe.Pointer(x.Pointer()), - objc.RefPointer(key), ) - r0 = objc.Object_fromPointer(ret) - return -} -func (x gen_NSBundle) Load() ( - r0 bool, -) { - ret := C.NSBundle_inst_load( - unsafe.Pointer(x.Pointer()), - ) - r0 = convertObjCBoolToGo(ret) - return + return core.NSURL_FromPointer(ret) } -func (x gen_NSBundle) Unload() ( - r0 bool, -) { - ret := C.NSBundle_inst_unload( +// PrivateFrameworksURL returns the file url of the bundle’s subdirectory containing private frameworks. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1417617-privateframeworksurl?language=objc for details. +func (x gen_NSBundle) PrivateFrameworksURL() core.NSURL { + ret := C.NSBundle_inst_PrivateFrameworksURL( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return -} -func (x gen_NSBundle) LocalizedAttributedStringForKey_value_table_( - key core.NSStringRef, - value core.NSStringRef, - tableName core.NSStringRef, -) ( - r0 core.NSAttributedString, -) { - ret := C.NSBundle_inst_localizedAttributedStringForKey_value_table_( - unsafe.Pointer(x.Pointer()), - objc.RefPointer(key), - objc.RefPointer(value), - objc.RefPointer(tableName), - ) - r0 = core.NSAttributedString_fromPointer(ret) - return + return core.NSURL_FromPointer(ret) } -func (x gen_NSBundle) Init_asNSBundle() ( - r0 NSBundle, -) { - ret := C.NSBundle_inst_init( +// SharedFrameworksURL returns the file url of the receiver's subdirectory containing shared frameworks. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1411774-sharedframeworksurl?language=objc for details. +func (x gen_NSBundle) SharedFrameworksURL() core.NSURL { + ret := C.NSBundle_inst_SharedFrameworksURL( unsafe.Pointer(x.Pointer()), ) - r0 = NSBundle_fromPointer(ret) - return -} -func (x gen_NSBundle) ResourceURL() ( - r0 core.NSURL, -) { - ret := C.NSBundle_inst_resourceURL( - unsafe.Pointer(x.Pointer()), - ) - r0 = core.NSURL_fromPointer(ret) - return + return core.NSURL_FromPointer(ret) } -func (x gen_NSBundle) ExecutableURL() ( - r0 core.NSURL, -) { - ret := C.NSBundle_inst_executableURL( +// BuiltInPlugInsURL returns the file url of the receiver's subdirectory containing plug-ins. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1409603-builtinpluginsurl?language=objc for details. +func (x gen_NSBundle) BuiltInPlugInsURL() core.NSURL { + ret := C.NSBundle_inst_BuiltInPlugInsURL( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSURL_fromPointer(ret) - return -} -func (x gen_NSBundle) PrivateFrameworksURL() ( - r0 core.NSURL, -) { - ret := C.NSBundle_inst_privateFrameworksURL( - unsafe.Pointer(x.Pointer()), - ) - r0 = core.NSURL_fromPointer(ret) - return + return core.NSURL_FromPointer(ret) } -func (x gen_NSBundle) SharedFrameworksURL() ( - r0 core.NSURL, -) { - ret := C.NSBundle_inst_sharedFrameworksURL( +// SharedSupportURL returns the file url of the bundle’s subdirectory containing shared support files. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1416823-sharedsupporturl?language=objc for details. +func (x gen_NSBundle) SharedSupportURL() core.NSURL { + ret := C.NSBundle_inst_SharedSupportURL( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSURL_fromPointer(ret) - return -} -func (x gen_NSBundle) BuiltInPlugInsURL() ( - r0 core.NSURL, -) { - ret := C.NSBundle_inst_builtInPlugInsURL( - unsafe.Pointer(x.Pointer()), - ) - r0 = core.NSURL_fromPointer(ret) - return + return core.NSURL_FromPointer(ret) } -func (x gen_NSBundle) SharedSupportURL() ( - r0 core.NSURL, -) { - ret := C.NSBundle_inst_sharedSupportURL( +// AppStoreReceiptURL returns the file url for the bundle’s app store receipt. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1407276-appstorereceipturl?language=objc for details. +func (x gen_NSBundle) AppStoreReceiptURL() core.NSURL { + ret := C.NSBundle_inst_AppStoreReceiptURL( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSURL_fromPointer(ret) - return -} -func (x gen_NSBundle) AppStoreReceiptURL() ( - r0 core.NSURL, -) { - ret := C.NSBundle_inst_appStoreReceiptURL( - unsafe.Pointer(x.Pointer()), - ) - r0 = core.NSURL_fromPointer(ret) - return + return core.NSURL_FromPointer(ret) } -func (x gen_NSBundle) ResourcePath() ( - r0 core.NSString, -) { - ret := C.NSBundle_inst_resourcePath( +// ResourcePath returns the full pathname of the bundle’s subdirectory containing resources. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1417723-resourcepath?language=objc for details. +func (x gen_NSBundle) ResourcePath() core.NSString { + ret := C.NSBundle_inst_ResourcePath( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_NSBundle) ExecutablePath() ( - r0 core.NSString, -) { - ret := C.NSBundle_inst_executablePath( +// ExecutablePath returns the full pathname of the receiver's executable file. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1409078-executablepath?language=objc for details. +func (x gen_NSBundle) ExecutablePath() core.NSString { + ret := C.NSBundle_inst_ExecutablePath( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_NSBundle) PrivateFrameworksPath() ( - r0 core.NSString, -) { - ret := C.NSBundle_inst_privateFrameworksPath( +// PrivateFrameworksPath returns the full pathname of the bundle’s subdirectory containing private frameworks. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1415562-privateframeworkspath?language=objc for details. +func (x gen_NSBundle) PrivateFrameworksPath() core.NSString { + ret := C.NSBundle_inst_PrivateFrameworksPath( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_NSBundle) SharedFrameworksPath() ( - r0 core.NSString, -) { - ret := C.NSBundle_inst_sharedFrameworksPath( +// SharedFrameworksPath returns the full pathname of the bundle’s subdirectory containing shared frameworks. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1417226-sharedframeworkspath?language=objc for details. +func (x gen_NSBundle) SharedFrameworksPath() core.NSString { + ret := C.NSBundle_inst_SharedFrameworksPath( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_NSBundle) BuiltInPlugInsPath() ( - r0 core.NSString, -) { - ret := C.NSBundle_inst_builtInPlugInsPath( +// BuiltInPlugInsPath returns the full pathname of the receiver's subdirectory containing plug-ins. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1408900-builtinpluginspath?language=objc for details. +func (x gen_NSBundle) BuiltInPlugInsPath() core.NSString { + ret := C.NSBundle_inst_BuiltInPlugInsPath( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_NSBundle) SharedSupportPath() ( - r0 core.NSString, -) { - ret := C.NSBundle_inst_sharedSupportPath( +// SharedSupportPath returns the full pathname of the bundle’s subdirectory containing shared support files. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1411609-sharedsupportpath?language=objc for details. +func (x gen_NSBundle) SharedSupportPath() core.NSString { + ret := C.NSBundle_inst_SharedSupportPath( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_NSBundle) BundleURL() ( - r0 core.NSURL, -) { - ret := C.NSBundle_inst_bundleURL( +// BundleURL returns the full url of the receiver’s bundle directory. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1415654-bundleurl?language=objc for details. +func (x gen_NSBundle) BundleURL() core.NSURL { + ret := C.NSBundle_inst_BundleURL( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSURL_fromPointer(ret) - return + + return core.NSURL_FromPointer(ret) } -func (x gen_NSBundle) BundlePath() ( - r0 core.NSString, -) { - ret := C.NSBundle_inst_bundlePath( +// BundlePath returns the full pathname of the receiver’s bundle directory. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1407973-bundlepath?language=objc for details. +func (x gen_NSBundle) BundlePath() core.NSString { + ret := C.NSBundle_inst_BundlePath( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_NSBundle) BundleIdentifier() ( - r0 core.NSString, -) { - ret := C.NSBundle_inst_bundleIdentifier( +// BundleIdentifier returns the receiver’s bundle identifier. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1418023-bundleidentifier?language=objc for details. +func (x gen_NSBundle) BundleIdentifier() core.NSString { + ret := C.NSBundle_inst_BundleIdentifier( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_NSBundle) InfoDictionary() ( - r0 core.NSDictionary, -) { - ret := C.NSBundle_inst_infoDictionary( +// InfoDictionary returns a dictionary, constructed from the bundle’s info.plist file, that contains information about the receiver. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1413477-infodictionary?language=objc for details. +func (x gen_NSBundle) InfoDictionary() core.NSDictionary { + ret := C.NSBundle_inst_InfoDictionary( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSDictionary_fromPointer(ret) - return + + return core.NSDictionary_FromPointer(ret) } -func (x gen_NSBundle) Localizations() ( - r0 core.NSArray, -) { - ret := C.NSBundle_inst_localizations( +// Localizations returns a list of all the localizations contained in the bundle. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1417415-localizations?language=objc for details. +func (x gen_NSBundle) Localizations() core.NSArray { + ret := C.NSBundle_inst_Localizations( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSArray_fromPointer(ret) - return + + return core.NSArray_FromPointer(ret) } -func (x gen_NSBundle) PreferredLocalizations() ( - r0 core.NSArray, -) { - ret := C.NSBundle_inst_preferredLocalizations( +// PreferredLocalizations an ordered list of preferred localizations contained in the bundle. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1413220-preferredlocalizations?language=objc for details. +func (x gen_NSBundle) PreferredLocalizations() core.NSArray { + ret := C.NSBundle_inst_PreferredLocalizations( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSArray_fromPointer(ret) - return + + return core.NSArray_FromPointer(ret) } -func (x gen_NSBundle) DevelopmentLocalization() ( - r0 core.NSString, -) { - ret := C.NSBundle_inst_developmentLocalization( +// DevelopmentLocalization returns the localization for the development language. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1417526-developmentlocalization?language=objc for details. +func (x gen_NSBundle) DevelopmentLocalization() core.NSString { + ret := C.NSBundle_inst_DevelopmentLocalization( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_NSBundle) LocalizedInfoDictionary() ( - r0 core.NSDictionary, -) { - ret := C.NSBundle_inst_localizedInfoDictionary( +// LocalizedInfoDictionary returns a dictionary with the keys from the bundle’s localized property list. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1407645-localizedinfodictionary?language=objc for details. +func (x gen_NSBundle) LocalizedInfoDictionary() core.NSDictionary { + ret := C.NSBundle_inst_LocalizedInfoDictionary( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSDictionary_fromPointer(ret) - return + + return core.NSDictionary_FromPointer(ret) } -func (x gen_NSBundle) ExecutableArchitectures() ( - r0 core.NSArray, -) { - ret := C.NSBundle_inst_executableArchitectures( +// ExecutableArchitectures an array of numbers indicating the architecture types supported by the bundle’s executable. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1415499-executablearchitectures?language=objc for details. +func (x gen_NSBundle) ExecutableArchitectures() core.NSArray { + ret := C.NSBundle_inst_ExecutableArchitectures( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSArray_fromPointer(ret) - return + + return core.NSArray_FromPointer(ret) } -func (x gen_NSBundle) IsLoaded() ( - r0 bool, -) { - ret := C.NSBundle_inst_isLoaded( +// IsLoaded returns the load status of a bundle. +// +// See https://developer.apple.com/documentation/foundation/nsbundle/1413594-loaded?language=objc for details. +func (x gen_NSBundle) IsLoaded() bool { + ret := C.NSBundle_inst_IsLoaded( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } type NSSoundRef interface { Pointer() uintptr - Init_asNSSound() NSSound + Init_AsNSSound() NSSound } type gen_NSSound struct { objc.Object } -func NSSound_fromPointer(ptr unsafe.Pointer) NSSound { +func NSSound_FromPointer(ptr unsafe.Pointer) NSSound { return NSSound{gen_NSSound{ - objc.Object_fromPointer(ptr), + objc.Object_FromPointer(ptr), }} } -func NSSound_fromRef(ref objc.Ref) NSSound { - return NSSound_fromPointer(unsafe.Pointer(ref.Pointer())) +func NSSound_FromRef(ref objc.Ref) NSSound { + return NSSound_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_NSSound) InitWithContentsOfFile_byReference__asNSSound( +// InitWithContentsOfFileByReference initializes the receiver with the audio data located at a given filepath. +// +// See https://developer.apple.com/documentation/appkit/nssound/1477274-initwithcontentsoffile?language=objc for details. +func (x gen_NSSound) InitWithContentsOfFileByReference_AsNSSound( path core.NSStringRef, byRef bool, -) ( - r0 NSSound, -) { - ret := C.NSSound_inst_initWithContentsOfFile_byReference_( +) NSSound { + ret := C.NSSound_inst_InitWithContentsOfFileByReference( unsafe.Pointer(x.Pointer()), objc.RefPointer(path), convertToObjCBool(byRef), ) - r0 = NSSound_fromPointer(ret) - return + + return NSSound_FromPointer(ret) } -func (x gen_NSSound) InitWithContentsOfURL_byReference__asNSSound( +// InitWithContentsOfURLByReference initializes the receiver with the audio data located at a given url. +// +// See https://developer.apple.com/documentation/appkit/nssound/1477288-initwithcontentsofurl?language=objc for details. +func (x gen_NSSound) InitWithContentsOfURLByReference_AsNSSound( url core.NSURLRef, byRef bool, -) ( - r0 NSSound, -) { - ret := C.NSSound_inst_initWithContentsOfURL_byReference_( +) NSSound { + ret := C.NSSound_inst_InitWithContentsOfURLByReference( unsafe.Pointer(x.Pointer()), objc.RefPointer(url), convertToObjCBool(byRef), ) - r0 = NSSound_fromPointer(ret) - return + + return NSSound_FromPointer(ret) } -func (x gen_NSSound) InitWithData__asNSSound( +// InitWithData initializes the receiver with a given audio data. +// +// See https://developer.apple.com/documentation/appkit/nssound/1477292-initwithdata?language=objc for details. +func (x gen_NSSound) InitWithData_AsNSSound( data core.NSDataRef, -) ( - r0 NSSound, -) { - ret := C.NSSound_inst_initWithData_( +) NSSound { + ret := C.NSSound_inst_InitWithData( unsafe.Pointer(x.Pointer()), objc.RefPointer(data), ) - r0 = NSSound_fromPointer(ret) - return + + return NSSound_FromPointer(ret) } -func (x gen_NSSound) InitWithPasteboard__asNSSound( +// InitWithPasteboard initializes the receiver with data from a pasteboard. the pasteboard should contain a type returned by nssound. nssound expects the data to have a proper magic number, sound header, and data for the formats it supports. +// +// See https://developer.apple.com/documentation/appkit/nssound/1477294-initwithpasteboard?language=objc for details. +func (x gen_NSSound) InitWithPasteboard_AsNSSound( pasteboard NSPasteboardRef, -) ( - r0 NSSound, -) { - ret := C.NSSound_inst_initWithPasteboard_( +) NSSound { + ret := C.NSSound_inst_InitWithPasteboard( unsafe.Pointer(x.Pointer()), objc.RefPointer(pasteboard), ) - r0 = NSSound_fromPointer(ret) - return + + return NSSound_FromPointer(ret) } -func (x gen_NSSound) Pause() ( - r0 bool, -) { - ret := C.NSSound_inst_pause( +// Pause pauses audio playback. +// +// See https://developer.apple.com/documentation/appkit/nssound/1477307-pause?language=objc for details. +func (x gen_NSSound) Pause() bool { + ret := C.NSSound_inst_Pause( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSSound) Play() ( - r0 bool, -) { - ret := C.NSSound_inst_play( +// Play initiates audio playback. +// +// See https://developer.apple.com/documentation/appkit/nssound/1477322-play?language=objc for details. +func (x gen_NSSound) Play() bool { + ret := C.NSSound_inst_Play( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSSound) Resume() ( - r0 bool, -) { - ret := C.NSSound_inst_resume( +// Resume resumes audio playback. +// +// See https://developer.apple.com/documentation/appkit/nssound/1477336-resume?language=objc for details. +func (x gen_NSSound) Resume() bool { + ret := C.NSSound_inst_Resume( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSSound) Stop() ( - r0 bool, -) { - ret := C.NSSound_inst_stop( +// Stop concludes audio playback. +// +// See https://developer.apple.com/documentation/appkit/nssound/1477282-stop?language=objc for details. +func (x gen_NSSound) Stop() bool { + ret := C.NSSound_inst_Stop( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSSound) WriteToPasteboard_( +// WriteToPasteboard writes the receiver’s data to a pasteboard. +// +// See https://developer.apple.com/documentation/appkit/nssound/1477338-writetopasteboard?language=objc for details. +func (x gen_NSSound) WriteToPasteboard( pasteboard NSPasteboardRef, ) { - C.NSSound_inst_writeToPasteboard_( + C.NSSound_inst_WriteToPasteboard( unsafe.Pointer(x.Pointer()), objc.RefPointer(pasteboard), ) + return } -func (x gen_NSSound) Init_asNSSound() ( - r0 NSSound, -) { - ret := C.NSSound_inst_init( +// Init +// +// See for details. +func (x gen_NSSound) Init_AsNSSound() NSSound { + ret := C.NSSound_inst_Init( unsafe.Pointer(x.Pointer()), ) - r0 = NSSound_fromPointer(ret) - return + + return NSSound_FromPointer(ret) } -func (x gen_NSSound) Delegate() ( - r0 objc.Object, -) { - ret := C.NSSound_inst_delegate( +// Delegate returns the sound’s delegate. +// +// See https://developer.apple.com/documentation/appkit/nssound/1477300-delegate?language=objc for details. +func (x gen_NSSound) Delegate() objc.Object { + ret := C.NSSound_inst_Delegate( unsafe.Pointer(x.Pointer()), ) - r0 = objc.Object_fromPointer(ret) - return + + return objc.Object_FromPointer(ret) } -func (x gen_NSSound) SetDelegate_( +// SetDelegate returns the sound’s delegate. +// +// See https://developer.apple.com/documentation/appkit/nssound/1477300-delegate?language=objc for details. +func (x gen_NSSound) SetDelegate( value objc.Ref, ) { - C.NSSound_inst_setDelegate_( + C.NSSound_inst_SetDelegate( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSSound) Loops() ( - r0 bool, -) { - ret := C.NSSound_inst_loops( +// Loops returns a boolean that indicates whether the sound restarts playback when it reaches the end of its content. +// +// See https://developer.apple.com/documentation/appkit/nssound/1477311-loops?language=objc for details. +func (x gen_NSSound) Loops() bool { + ret := C.NSSound_inst_Loops( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSSound) SetLoops_( +// SetLoops returns a boolean that indicates whether the sound restarts playback when it reaches the end of its content. +// +// See https://developer.apple.com/documentation/appkit/nssound/1477311-loops?language=objc for details. +func (x gen_NSSound) SetLoops( value bool, ) { - C.NSSound_inst_setLoops_( + C.NSSound_inst_SetLoops( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSSound) IsPlaying() ( - r0 bool, -) { - ret := C.NSSound_inst_isPlaying( +// IsPlaying returns a boolean that indicates whether the sound is playing its audio data. +// +// See https://developer.apple.com/documentation/appkit/nssound/1477302-playing?language=objc for details. +func (x gen_NSSound) IsPlaying() bool { + ret := C.NSSound_inst_IsPlaying( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } type NSApplicationRef interface { Pointer() uintptr - Init_asNSApplication() NSApplication + Init_AsNSApplication() NSApplication } type gen_NSApplication struct { objc.Object } -func NSApplication_fromPointer(ptr unsafe.Pointer) NSApplication { +func NSApplication_FromPointer(ptr unsafe.Pointer) NSApplication { return NSApplication{gen_NSApplication{ - objc.Object_fromPointer(ptr), + objc.Object_FromPointer(ptr), }} } -func NSApplication_fromRef(ref objc.Ref) NSApplication { - return NSApplication_fromPointer(unsafe.Pointer(ref.Pointer())) +func NSApplication_FromRef(ref objc.Ref) NSApplication { + return NSApplication_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_NSApplication) Run() { - C.NSApplication_inst_run( +// ActivateContextHelpMode places the receiver in context-sensitive help mode. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/1500925-activatecontexthelpmode?language=objc for details. +func (x gen_NSApplication) ActivateContextHelpMode( + sender objc.Ref, +) { + C.NSApplication_inst_ActivateContextHelpMode( unsafe.Pointer(x.Pointer()), + objc.RefPointer(sender), ) - return -} -func (x gen_NSApplication) FinishLaunching() { - C.NSApplication_inst_finishLaunching( - unsafe.Pointer(x.Pointer()), - ) return } -func (x gen_NSApplication) Stop_( - sender objc.Ref, +// ActivateIgnoringOtherApps makes the receiver the active app. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/1428468-activateignoringotherapps?language=objc for details. +func (x gen_NSApplication) ActivateIgnoringOtherApps( + flag bool, ) { - C.NSApplication_inst_stop_( + C.NSApplication_inst_ActivateIgnoringOtherApps( unsafe.Pointer(x.Pointer()), - objc.RefPointer(sender), + convertToObjCBool(flag), ) + return } -func (x gen_NSApplication) SendEvent_( - event NSEventRef, -) { - C.NSApplication_inst_sendEvent_( +// ActivationPolicy returns the app’s activation policy. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/1428703-activationpolicy?language=objc for details. +func (x gen_NSApplication) ActivationPolicy() core.NSInteger { + ret := C.NSApplication_inst_ActivationPolicy( unsafe.Pointer(x.Pointer()), - objc.RefPointer(event), ) - return + + return core.NSInteger(ret) } -func (x gen_NSApplication) PostEvent_atStart_( - event NSEventRef, - flag bool, +// CancelUserAttentionRequest cancels a previous user attention request. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/1428683-canceluserattentionrequest?language=objc for details. +func (x gen_NSApplication) CancelUserAttentionRequest( + request core.NSInteger, ) { - C.NSApplication_inst_postEvent_atStart_( + C.NSApplication_inst_CancelUserAttentionRequest( unsafe.Pointer(x.Pointer()), - objc.RefPointer(event), - convertToObjCBool(flag), + C.long(request), ) + return } -func (x gen_NSApplication) TryToPerform_with_( - action objc.Selector, - object objc.Ref, -) ( - r0 bool, -) { - ret := C.NSApplication_inst_tryToPerform_with_( +// Deactivate deactivates the receiver. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/1428428-deactivate?language=objc for details. +func (x gen_NSApplication) Deactivate() { + C.NSApplication_inst_Deactivate( unsafe.Pointer(x.Pointer()), - action.SelectorAddress(), - objc.RefPointer(object), ) - r0 = convertObjCBoolToGo(ret) + return } -func (x gen_NSApplication) SendAction_to_from_( - action objc.Selector, - target objc.Ref, - sender objc.Ref, -) ( - r0 bool, -) { - ret := C.NSApplication_inst_sendAction_to_from_( +// DisableRelaunchOnLogin disables relaunching the app on login. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/1428376-disablerelaunchonlogin?language=objc for details. +func (x gen_NSApplication) DisableRelaunchOnLogin() { + C.NSApplication_inst_DisableRelaunchOnLogin( unsafe.Pointer(x.Pointer()), - action.SelectorAddress(), - objc.RefPointer(target), - objc.RefPointer(sender), ) - r0 = convertObjCBoolToGo(ret) + return } -func (x gen_NSApplication) TargetForAction_( - action objc.Selector, -) ( - r0 objc.Object, -) { - ret := C.NSApplication_inst_targetForAction_( +// EnableRelaunchOnLogin enables relaunching the app on login. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/1428453-enablerelaunchonlogin?language=objc for details. +func (x gen_NSApplication) EnableRelaunchOnLogin() { + C.NSApplication_inst_EnableRelaunchOnLogin( unsafe.Pointer(x.Pointer()), - action.SelectorAddress(), ) - r0 = objc.Object_fromPointer(ret) + return } -func (x gen_NSApplication) TargetForAction_to_from_( - action objc.Selector, - target objc.Ref, - sender objc.Ref, -) ( - r0 objc.Object, -) { - ret := C.NSApplication_inst_targetForAction_to_from_( +// FinishLaunching activates the app, opens any files specified by the nsopen user default, and unhighlights the app’s icon. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/1428771-finishlaunching?language=objc for details. +func (x gen_NSApplication) FinishLaunching() { + C.NSApplication_inst_FinishLaunching( unsafe.Pointer(x.Pointer()), - action.SelectorAddress(), - objc.RefPointer(target), - objc.RefPointer(sender), ) - r0 = objc.Object_fromPointer(ret) + return } -func (x gen_NSApplication) Terminate_( +// HideOtherApplications hides all apps, except the receiver. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/1428746-hideotherapplications?language=objc for details. +func (x gen_NSApplication) HideOtherApplications( sender objc.Ref, ) { - C.NSApplication_inst_terminate_( + C.NSApplication_inst_HideOtherApplications( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) - return -} -func (x gen_NSApplication) ReplyToApplicationShouldTerminate_( - shouldTerminate bool, -) { - C.NSApplication_inst_replyToApplicationShouldTerminate_( - unsafe.Pointer(x.Pointer()), - convertToObjCBool(shouldTerminate), - ) return } -func (x gen_NSApplication) ActivateIgnoringOtherApps_( +// PostEventAtStart adds a given event to the receiver’s event queue. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/1428710-postevent?language=objc for details. +func (x gen_NSApplication) PostEventAtStart( + event NSEventRef, flag bool, ) { - C.NSApplication_inst_activateIgnoringOtherApps_( + C.NSApplication_inst_PostEventAtStart( unsafe.Pointer(x.Pointer()), + objc.RefPointer(event), convertToObjCBool(flag), ) - return -} -func (x gen_NSApplication) Deactivate() { - C.NSApplication_inst_deactivate( - unsafe.Pointer(x.Pointer()), - ) return } -func (x gen_NSApplication) DisableRelaunchOnLogin() { - C.NSApplication_inst_disableRelaunchOnLogin( +// RegisterForRemoteNotifications register for notifications sent by apple push notification service (apns). +// +// See https://developer.apple.com/documentation/appkit/nsapplication/2967172-registerforremotenotifications?language=objc for details. +func (x gen_NSApplication) RegisterForRemoteNotifications() { + C.NSApplication_inst_RegisterForRemoteNotifications( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_NSApplication) EnableRelaunchOnLogin() { - C.NSApplication_inst_enableRelaunchOnLogin( +// RegisterUserInterfaceItemSearchHandler register an object that provides help data to your app. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/1420818-registeruserinterfaceitemsearchh?language=objc for details. +func (x gen_NSApplication) RegisterUserInterfaceItemSearchHandler( + handler objc.Ref, +) { + C.NSApplication_inst_RegisterUserInterfaceItemSearchHandler( unsafe.Pointer(x.Pointer()), + objc.RefPointer(handler), ) + return } -func (x gen_NSApplication) RegisterForRemoteNotifications() { - C.NSApplication_inst_registerForRemoteNotifications( +// ReplyToApplicationShouldTerminate responds to nsterminatelater once the app knows whether it can terminate. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/1428594-replytoapplicationshouldterminat?language=objc for details. +func (x gen_NSApplication) ReplyToApplicationShouldTerminate( + shouldTerminate bool, +) { + C.NSApplication_inst_ReplyToApplicationShouldTerminate( unsafe.Pointer(x.Pointer()), + convertToObjCBool(shouldTerminate), ) + return } -func (x gen_NSApplication) UnregisterForRemoteNotifications() { - C.NSApplication_inst_unregisterForRemoteNotifications( +// Run starts the main event loop. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/1428631-run?language=objc for details. +func (x gen_NSApplication) Run() { + C.NSApplication_inst_Run( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_NSApplication) ToggleTouchBarCustomizationPalette_( +// SendActionToFrom sends the given action message to the given target. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/1428509-sendaction?language=objc for details. +func (x gen_NSApplication) SendActionToFrom( + action objc.Selector, + target objc.Ref, sender objc.Ref, -) { - C.NSApplication_inst_toggleTouchBarCustomizationPalette_( +) bool { + ret := C.NSApplication_inst_SendActionToFrom( unsafe.Pointer(x.Pointer()), + action.SelectorAddress(), + objc.RefPointer(target), objc.RefPointer(sender), ) - return -} -func (x gen_NSApplication) CancelUserAttentionRequest_( - request core.NSInteger, -) { - C.NSApplication_inst_cancelUserAttentionRequest_( - unsafe.Pointer(x.Pointer()), - C.long(request), - ) - return + return convertObjCBoolToGo(ret) } -func (x gen_NSApplication) RegisterUserInterfaceItemSearchHandler_( - handler objc.Ref, +// SendEvent dispatches an event to other objects. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/1428359-sendevent?language=objc for details. +func (x gen_NSApplication) SendEvent( + event NSEventRef, ) { - C.NSApplication_inst_registerUserInterfaceItemSearchHandler_( + C.NSApplication_inst_SendEvent( unsafe.Pointer(x.Pointer()), - objc.RefPointer(handler), + objc.RefPointer(event), ) + return } -func (x gen_NSApplication) UnregisterUserInterfaceItemSearchHandler_( - handler objc.Ref, -) { - C.NSApplication_inst_unregisterUserInterfaceItemSearchHandler_( +// SetActivationPolicy attempts to modify the app’s activation policy. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/1428621-setactivationpolicy?language=objc for details. +func (x gen_NSApplication) SetActivationPolicy( + activationPolicy core.NSInteger, +) bool { + ret := C.NSApplication_inst_SetActivationPolicy( unsafe.Pointer(x.Pointer()), - objc.RefPointer(handler), + C.long(activationPolicy), ) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSApplication) ShowHelp_( +// ShowHelp if your project is properly registered, and the necessary keys have been set in the property list, this method launches help viewer and displays the first page of your app’s help book. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/1500910-showhelp?language=objc for details. +func (x gen_NSApplication) ShowHelp( sender objc.Ref, ) { - C.NSApplication_inst_showHelp_( + C.NSApplication_inst_ShowHelp( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSApplication) ActivateContextHelpMode_( +// Stop stops the main event loop. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/1428473-stop?language=objc for details. +func (x gen_NSApplication) Stop( sender objc.Ref, ) { - C.NSApplication_inst_activateContextHelpMode_( + C.NSApplication_inst_Stop( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSApplication) HideOtherApplications_( - sender objc.Ref, -) { - C.NSApplication_inst_hideOtherApplications_( +// TargetForAction returns the object that receives the action message specified by the given selector. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/1428449-targetforaction?language=objc for details. +func (x gen_NSApplication) TargetForAction( + action objc.Selector, +) objc.Object { + ret := C.NSApplication_inst_TargetForAction( unsafe.Pointer(x.Pointer()), - objc.RefPointer(sender), + action.SelectorAddress(), ) - return + + return objc.Object_FromPointer(ret) } -func (x gen_NSApplication) UnhideAllApplications_( - sender objc.Ref, +// TargetForActionToFrom searches for an object that can receive the message specified by the given selector. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/1428658-targetforaction?language=objc for details. +func (x gen_NSApplication) TargetForActionToFrom( + action objc.Selector, + target objc.Ref, + sender objc.Ref, +) objc.Object { + ret := C.NSApplication_inst_TargetForActionToFrom( + unsafe.Pointer(x.Pointer()), + action.SelectorAddress(), + objc.RefPointer(target), + objc.RefPointer(sender), + ) + + return objc.Object_FromPointer(ret) +} + +// Terminate terminates the receiver. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/1428417-terminate?language=objc for details. +func (x gen_NSApplication) Terminate( + sender objc.Ref, ) { - C.NSApplication_inst_unhideAllApplications_( + C.NSApplication_inst_Terminate( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSApplication) ActivationPolicy() ( - r0 core.NSInteger, +// ToggleTouchBarCustomizationPalette show or hides the interface for customizing the touch bar. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/2646920-toggletouchbarcustomizationpalet?language=objc for details. +func (x gen_NSApplication) ToggleTouchBarCustomizationPalette( + sender objc.Ref, ) { - ret := C.NSApplication_inst_activationPolicy( + C.NSApplication_inst_ToggleTouchBarCustomizationPalette( unsafe.Pointer(x.Pointer()), + objc.RefPointer(sender), ) - r0 = core.NSInteger(ret) + return } -func (x gen_NSApplication) SetActivationPolicy_( - activationPolicy core.NSInteger, -) ( - r0 bool, +// TryToPerformWith dispatches an action message to the specified target. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/1428366-trytoperform?language=objc for details. +func (x gen_NSApplication) TryToPerformWith( + action objc.Selector, + object objc.Ref, +) bool { + ret := C.NSApplication_inst_TryToPerformWith( + unsafe.Pointer(x.Pointer()), + action.SelectorAddress(), + objc.RefPointer(object), + ) + + return convertObjCBoolToGo(ret) +} + +// UnhideAllApplications unhides all apps, including the receiver. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/1428737-unhideallapplications?language=objc for details. +func (x gen_NSApplication) UnhideAllApplications( + sender objc.Ref, ) { - ret := C.NSApplication_inst_setActivationPolicy_( + C.NSApplication_inst_UnhideAllApplications( unsafe.Pointer(x.Pointer()), - C.long(activationPolicy), + objc.RefPointer(sender), ) - r0 = convertObjCBoolToGo(ret) + return } -func (x gen_NSApplication) Init_asNSApplication() ( - r0 NSApplication, -) { - ret := C.NSApplication_inst_init( +// UnregisterForRemoteNotifications unregister for notifications received from apple push notification service. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/1428747-unregisterforremotenotifications?language=objc for details. +func (x gen_NSApplication) UnregisterForRemoteNotifications() { + C.NSApplication_inst_UnregisterForRemoteNotifications( unsafe.Pointer(x.Pointer()), ) - r0 = NSApplication_fromPointer(ret) + return } -func (x gen_NSApplication) Delegate() ( - r0 objc.Object, +// UnregisterUserInterfaceItemSearchHandler unregister an object that provides help data to your app. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/1420820-unregisteruserinterfaceitemsearc?language=objc for details. +func (x gen_NSApplication) UnregisterUserInterfaceItemSearchHandler( + handler objc.Ref, ) { - ret := C.NSApplication_inst_delegate( + C.NSApplication_inst_UnregisterUserInterfaceItemSearchHandler( unsafe.Pointer(x.Pointer()), + objc.RefPointer(handler), ) - r0 = objc.Object_fromPointer(ret) + return } -func (x gen_NSApplication) SetDelegate_( +// Init +// +// See for details. +func (x gen_NSApplication) Init_AsNSApplication() NSApplication { + ret := C.NSApplication_inst_Init( + unsafe.Pointer(x.Pointer()), + ) + + return NSApplication_FromPointer(ret) +} + +// Delegate returns the app delegate object. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/1428705-delegate?language=objc for details. +func (x gen_NSApplication) Delegate() objc.Object { + ret := C.NSApplication_inst_Delegate( + unsafe.Pointer(x.Pointer()), + ) + + return objc.Object_FromPointer(ret) +} + +// SetDelegate returns the app delegate object. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/1428705-delegate?language=objc for details. +func (x gen_NSApplication) SetDelegate( value objc.Ref, ) { - C.NSApplication_inst_setDelegate_( + C.NSApplication_inst_SetDelegate( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSApplication) CurrentEvent() ( - r0 NSEvent, -) { - ret := C.NSApplication_inst_currentEvent( +// CurrentEvent returns the last event object that the app retrieved from the event queue. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/1428668-currentevent?language=objc for details. +func (x gen_NSApplication) CurrentEvent() NSEvent { + ret := C.NSApplication_inst_CurrentEvent( unsafe.Pointer(x.Pointer()), ) - r0 = NSEvent_fromPointer(ret) - return + + return NSEvent_FromPointer(ret) } -func (x gen_NSApplication) IsRunning() ( - r0 bool, -) { - ret := C.NSApplication_inst_isRunning( +// IsRunning returns a boolean value indicating whether the main event loop is running. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/1428759-running?language=objc for details. +func (x gen_NSApplication) IsRunning() bool { + ret := C.NSApplication_inst_IsRunning( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSApplication) IsActive() ( - r0 bool, -) { - ret := C.NSApplication_inst_isActive( +// IsActive returns a boolean value indicating whether this is the active app. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/1428493-active?language=objc for details. +func (x gen_NSApplication) IsActive() bool { + ret := C.NSApplication_inst_IsActive( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSApplication) IsRegisteredForRemoteNotifications() ( - r0 bool, -) { - ret := C.NSApplication_inst_isRegisteredForRemoteNotifications( +// IsRegisteredForRemoteNotifications returns a boolean value indicating whether the app is registered with apple push notification service (apns). +// +// See https://developer.apple.com/documentation/appkit/nsapplication/2967173-registeredforremotenotifications?language=objc for details. +func (x gen_NSApplication) IsRegisteredForRemoteNotifications() bool { + ret := C.NSApplication_inst_IsRegisteredForRemoteNotifications( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSApplication) ApplicationIconImage() ( - r0 NSImage, -) { - ret := C.NSApplication_inst_applicationIconImage( +// ApplicationIconImage returns the image used for the app’s icon. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/1428744-applicationiconimage?language=objc for details. +func (x gen_NSApplication) ApplicationIconImage() NSImage { + ret := C.NSApplication_inst_ApplicationIconImage( unsafe.Pointer(x.Pointer()), ) - r0 = NSImage_fromPointer(ret) - return + + return NSImage_FromPointer(ret) } -func (x gen_NSApplication) SetApplicationIconImage_( +// SetApplicationIconImage returns the image used for the app’s icon. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/1428744-applicationiconimage?language=objc for details. +func (x gen_NSApplication) SetApplicationIconImage( value NSImageRef, ) { - C.NSApplication_inst_setApplicationIconImage_( + C.NSApplication_inst_SetApplicationIconImage( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSApplication) HelpMenu() ( - r0 NSMenu, -) { - ret := C.NSApplication_inst_helpMenu( +// HelpMenu returns the help menu used by the app. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/1428644-helpmenu?language=objc for details. +func (x gen_NSApplication) HelpMenu() NSMenu { + ret := C.NSApplication_inst_HelpMenu( unsafe.Pointer(x.Pointer()), ) - r0 = NSMenu_fromPointer(ret) - return + + return NSMenu_FromPointer(ret) } -func (x gen_NSApplication) SetHelpMenu_( +// SetHelpMenu returns the help menu used by the app. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/1428644-helpmenu?language=objc for details. +func (x gen_NSApplication) SetHelpMenu( value NSMenuRef, ) { - C.NSApplication_inst_setHelpMenu_( + C.NSApplication_inst_SetHelpMenu( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSApplication) ServicesProvider() ( - r0 objc.Object, -) { - ret := C.NSApplication_inst_servicesProvider( +// ServicesProvider returns the object that provides the services the current app advertises in the services menu of other apps. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/1428467-servicesprovider?language=objc for details. +func (x gen_NSApplication) ServicesProvider() objc.Object { + ret := C.NSApplication_inst_ServicesProvider( unsafe.Pointer(x.Pointer()), ) - r0 = objc.Object_fromPointer(ret) - return + + return objc.Object_FromPointer(ret) } -func (x gen_NSApplication) SetServicesProvider_( +// SetServicesProvider returns the object that provides the services the current app advertises in the services menu of other apps. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/1428467-servicesprovider?language=objc for details. +func (x gen_NSApplication) SetServicesProvider( value objc.Ref, ) { - C.NSApplication_inst_setServicesProvider_( + C.NSApplication_inst_SetServicesProvider( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSApplication) IsFullKeyboardAccessEnabled() ( - r0 bool, -) { - ret := C.NSApplication_inst_isFullKeyboardAccessEnabled( +// IsFullKeyboardAccessEnabled returns a boolean value indicating whether full keyboard access is enabled in the keyboard preference pane. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/1428469-fullkeyboardaccessenabled?language=objc for details. +func (x gen_NSApplication) IsFullKeyboardAccessEnabled() bool { + ret := C.NSApplication_inst_IsFullKeyboardAccessEnabled( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSApplication) OrderedDocuments() ( - r0 core.NSArray, -) { - ret := C.NSApplication_inst_orderedDocuments( +// OrderedDocuments an array of document objects arranged according to the front-to-back ordering of their associated windows. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/1494283-ordereddocuments?language=objc for details. +func (x gen_NSApplication) OrderedDocuments() core.NSArray { + ret := C.NSApplication_inst_OrderedDocuments( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSArray_fromPointer(ret) - return + + return core.NSArray_FromPointer(ret) } -func (x gen_NSApplication) OrderedWindows() ( - r0 core.NSArray, -) { - ret := C.NSApplication_inst_orderedWindows( +// OrderedWindows an array of window objects arranged according to their front-to-back ordering on the screen. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/1494287-orderedwindows?language=objc for details. +func (x gen_NSApplication) OrderedWindows() core.NSArray { + ret := C.NSApplication_inst_OrderedWindows( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSArray_fromPointer(ret) - return + + return core.NSArray_FromPointer(ret) } -func (x gen_NSApplication) MainMenu() ( - r0 NSMenu, -) { - ret := C.NSApplication_inst_mainMenu( +// MainMenu returns the app’s main menu bar. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/1428634-mainmenu?language=objc for details. +func (x gen_NSApplication) MainMenu() NSMenu { + ret := C.NSApplication_inst_MainMenu( unsafe.Pointer(x.Pointer()), ) - r0 = NSMenu_fromPointer(ret) - return + + return NSMenu_FromPointer(ret) } -func (x gen_NSApplication) SetMainMenu_( +// SetMainMenu returns the app’s main menu bar. +// +// See https://developer.apple.com/documentation/appkit/nsapplication/1428634-mainmenu?language=objc for details. +func (x gen_NSApplication) SetMainMenu( value NSMenuRef, ) { - C.NSApplication_inst_setMainMenu_( + C.NSApplication_inst_SetMainMenu( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } type NSControlRef interface { Pointer() uintptr - Init_asNSControl() NSControl + Init_AsNSControl() NSControl } type gen_NSControl struct { NSView } -func NSControl_fromPointer(ptr unsafe.Pointer) NSControl { +func NSControl_FromPointer(ptr unsafe.Pointer) NSControl { return NSControl{gen_NSControl{ - NSView_fromPointer(ptr), + NSView_FromPointer(ptr), }} } -func NSControl_fromRef(ref objc.Ref) NSControl { - return NSControl_fromPointer(unsafe.Pointer(ref.Pointer())) +func NSControl_FromRef(ref objc.Ref) NSControl { + return NSControl_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_NSControl) InitWithFrame__asNSControl( - frameRect core.NSRect, -) ( - r0 NSControl, -) { - ret := C.NSControl_inst_initWithFrame_( +// AbortEditing terminates the current editing operation and discards any edited text. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428867-abortediting?language=objc for details. +func (x gen_NSControl) AbortEditing() bool { + ret := C.NSControl_inst_AbortEditing( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&frameRect)), ) - r0 = NSControl_fromPointer(ret) - return -} -func (x gen_NSControl) TakeDoubleValueFrom_( - sender objc.Ref, -) { - C.NSControl_inst_takeDoubleValueFrom_( - unsafe.Pointer(x.Pointer()), - objc.RefPointer(sender), - ) - return + return convertObjCBoolToGo(ret) } -func (x gen_NSControl) TakeFloatValueFrom_( - sender objc.Ref, -) { - C.NSControl_inst_takeFloatValueFrom_( +// CurrentEditor returns the current field editor for the control. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428980-currenteditor?language=objc for details. +func (x gen_NSControl) CurrentEditor() NSText { + ret := C.NSControl_inst_CurrentEditor( unsafe.Pointer(x.Pointer()), - objc.RefPointer(sender), ) - return -} -func (x gen_NSControl) TakeIntValueFrom_( - sender objc.Ref, -) { - C.NSControl_inst_takeIntValueFrom_( - unsafe.Pointer(x.Pointer()), - objc.RefPointer(sender), - ) - return + return NSText_FromPointer(ret) } -func (x gen_NSControl) TakeIntegerValueFrom_( - sender objc.Ref, +// DrawWithExpansionFrameInView performs custom expansion tool tip drawing. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428895-drawwithexpansionframe?language=objc for details. +func (x gen_NSControl) DrawWithExpansionFrameInView( + contentFrame core.NSRect, + view NSViewRef, ) { - C.NSControl_inst_takeIntegerValueFrom_( + C.NSControl_inst_DrawWithExpansionFrameInView( unsafe.Pointer(x.Pointer()), - objc.RefPointer(sender), + *(*C.NSRect)(unsafe.Pointer(&contentFrame)), + objc.RefPointer(view), ) - return -} -func (x gen_NSControl) TakeObjectValueFrom_( - sender objc.Ref, -) { - C.NSControl_inst_takeObjectValueFrom_( - unsafe.Pointer(x.Pointer()), - objc.RefPointer(sender), - ) return } -func (x gen_NSControl) TakeStringValueFrom_( - sender objc.Ref, +// EditWithFrameEditorDelegateEvent begins editing of the receiver’s text using the specified field editor. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428919-editwithframe?language=objc for details. +func (x gen_NSControl) EditWithFrameEditorDelegateEvent( + rect core.NSRect, + textObj NSTextRef, + delegate objc.Ref, + event NSEventRef, ) { - C.NSControl_inst_takeStringValueFrom_( + C.NSControl_inst_EditWithFrameEditorDelegateEvent( unsafe.Pointer(x.Pointer()), - objc.RefPointer(sender), + *(*C.NSRect)(unsafe.Pointer(&rect)), + objc.RefPointer(textObj), + objc.RefPointer(delegate), + objc.RefPointer(event), ) + return } -func (x gen_NSControl) DrawWithExpansionFrame_inView_( - contentFrame core.NSRect, - view NSViewRef, +// EndEditing ends the editing of text in the receiver using the specified field editor. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428936-endediting?language=objc for details. +func (x gen_NSControl) EndEditing( + textObj NSTextRef, ) { - C.NSControl_inst_drawWithExpansionFrame_inView_( + C.NSControl_inst_EndEditing( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&contentFrame)), - objc.RefPointer(view), + objc.RefPointer(textObj), ) + return } -func (x gen_NSControl) ExpansionFrameWithFrame_( +// ExpansionFrameWithFrame returns the frame in which a tool tip can be displayed, if needed. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428932-expansionframewithframe?language=objc for details. +func (x gen_NSControl) ExpansionFrameWithFrame( contentFrame core.NSRect, -) ( - r0 core.NSRect, -) { - ret := C.NSControl_inst_expansionFrameWithFrame_( +) core.NSRect { + ret := C.NSControl_inst_ExpansionFrameWithFrame( unsafe.Pointer(x.Pointer()), *(*C.NSRect)(unsafe.Pointer(&contentFrame)), ) - r0 = *(*core.NSRect)(unsafe.Pointer(&ret)) - return -} -func (x gen_NSControl) AbortEditing() ( - r0 bool, -) { - ret := C.NSControl_inst_abortEditing( - unsafe.Pointer(x.Pointer()), - ) - r0 = convertObjCBoolToGo(ret) - return + return *(*core.NSRect)(unsafe.Pointer(&ret)) } -func (x gen_NSControl) CurrentEditor() ( - r0 NSText, -) { - ret := C.NSControl_inst_currentEditor( +// InitWithFrame initializes a control with the specified frame rectangle. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428900-initwithframe?language=objc for details. +func (x gen_NSControl) InitWithFrame_AsNSControl( + frameRect core.NSRect, +) NSControl { + ret := C.NSControl_inst_InitWithFrame( unsafe.Pointer(x.Pointer()), + *(*C.NSRect)(unsafe.Pointer(&frameRect)), ) - r0 = NSText_fromPointer(ret) - return -} -func (x gen_NSControl) ValidateEditing() { - C.NSControl_inst_validateEditing( - unsafe.Pointer(x.Pointer()), - ) - return + return NSControl_FromPointer(ret) } -func (x gen_NSControl) EditWithFrame_editor_delegate_event_( - rect core.NSRect, - textObj NSTextRef, - delegate objc.Ref, +// MouseDown informs the receiver that the user has pressed the left mouse button. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428918-mousedown?language=objc for details. +func (x gen_NSControl) MouseDown( event NSEventRef, ) { - C.NSControl_inst_editWithFrame_editor_delegate_event_( + C.NSControl_inst_MouseDown( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&rect)), - objc.RefPointer(textObj), - objc.RefPointer(delegate), objc.RefPointer(event), ) + return } -func (x gen_NSControl) EndEditing_( - textObj NSTextRef, +// PerformClick simulates a single mouse click on the receiver. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428974-performclick?language=objc for details. +func (x gen_NSControl) PerformClick( + sender objc.Ref, ) { - C.NSControl_inst_endEditing_( + C.NSControl_inst_PerformClick( unsafe.Pointer(x.Pointer()), - objc.RefPointer(textObj), + objc.RefPointer(sender), ) + return } -func (x gen_NSControl) SelectWithFrame_editor_delegate_start_length_( +// SelectWithFrameEditorDelegateStartLength selects the specified text range in the receiver's field editor. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428968-selectwithframe?language=objc for details. +func (x gen_NSControl) SelectWithFrameEditorDelegateStartLength( rect core.NSRect, textObj NSTextRef, delegate objc.Ref, selStart core.NSInteger, selLength core.NSInteger, ) { - C.NSControl_inst_selectWithFrame_editor_delegate_start_length_( + C.NSControl_inst_SelectWithFrameEditorDelegateStartLength( unsafe.Pointer(x.Pointer()), *(*C.NSRect)(unsafe.Pointer(&rect)), objc.RefPointer(textObj), @@ -10207,13237 +10397,16259 @@ func (x gen_NSControl) SelectWithFrame_editor_delegate_start_length_( C.long(selStart), C.long(selLength), ) + return } -func (x gen_NSControl) SizeThatFits_( +// SendActionTo causes the specified action to be sent to the target. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428851-sendaction?language=objc for details. +func (x gen_NSControl) SendActionTo( + action objc.Selector, + target objc.Ref, +) bool { + ret := C.NSControl_inst_SendActionTo( + unsafe.Pointer(x.Pointer()), + action.SelectorAddress(), + objc.RefPointer(target), + ) + + return convertObjCBoolToGo(ret) +} + +// SizeThatFits asks the control to calculate and return the size that best fits the specified size. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428902-sizethatfits?language=objc for details. +func (x gen_NSControl) SizeThatFits( size core.NSSize, -) ( - r0 core.NSSize, -) { - ret := C.NSControl_inst_sizeThatFits_( +) core.NSSize { + ret := C.NSControl_inst_SizeThatFits( unsafe.Pointer(x.Pointer()), *(*C.NSSize)(unsafe.Pointer(&size)), ) - r0 = *(*core.NSSize)(unsafe.Pointer(&ret)) - return + + return *(*core.NSSize)(unsafe.Pointer(&ret)) } +// SizeToFit resizes the receiver’s frame so that it’s the minimum size needed to contain its cell. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428877-sizetofit?language=objc for details. func (x gen_NSControl) SizeToFit() { - C.NSControl_inst_sizeToFit( + C.NSControl_inst_SizeToFit( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_NSControl) SendAction_to_( - action objc.Selector, - target objc.Ref, -) ( - r0 bool, +// TakeDoubleValueFrom sets the value of the receiver’s cell to a double-precision floating-point value obtained from the specified object. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428958-takedoublevaluefrom?language=objc for details. +func (x gen_NSControl) TakeDoubleValueFrom( + sender objc.Ref, ) { - ret := C.NSControl_inst_sendAction_to_( + C.NSControl_inst_TakeDoubleValueFrom( unsafe.Pointer(x.Pointer()), - action.SelectorAddress(), - objc.RefPointer(target), + objc.RefPointer(sender), ) - r0 = convertObjCBoolToGo(ret) + return } -func (x gen_NSControl) PerformClick_( +// TakeFloatValueFrom sets the value of the receiver’s cell to a single-precision floating-point value obtained from the specified object. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428938-takefloatvaluefrom?language=objc for details. +func (x gen_NSControl) TakeFloatValueFrom( sender objc.Ref, ) { - C.NSControl_inst_performClick_( + C.NSControl_inst_TakeFloatValueFrom( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSControl) MouseDown_( - event NSEventRef, +// TakeIntValueFrom sets the value of the receiver’s cell to an integer value obtained from the specified object. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428859-takeintvaluefrom?language=objc for details. +func (x gen_NSControl) TakeIntValueFrom( + sender objc.Ref, ) { - C.NSControl_inst_mouseDown_( + C.NSControl_inst_TakeIntValueFrom( unsafe.Pointer(x.Pointer()), - objc.RefPointer(event), + objc.RefPointer(sender), + ) + + return +} + +// TakeIntegerValueFrom sets the value of the receiver’s cell to an nsinteger value obtained from the specified object. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428875-takeintegervaluefrom?language=objc for details. +func (x gen_NSControl) TakeIntegerValueFrom( + sender objc.Ref, +) { + C.NSControl_inst_TakeIntegerValueFrom( + unsafe.Pointer(x.Pointer()), + objc.RefPointer(sender), ) + return } -func (x gen_NSControl) Init_asNSControl() ( - r0 NSControl, +// TakeObjectValueFrom sets the value of the receiver’s cell to the object value obtained from the specified object. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428853-takeobjectvaluefrom?language=objc for details. +func (x gen_NSControl) TakeObjectValueFrom( + sender objc.Ref, ) { - ret := C.NSControl_inst_init( + C.NSControl_inst_TakeObjectValueFrom( unsafe.Pointer(x.Pointer()), + objc.RefPointer(sender), ) - r0 = NSControl_fromPointer(ret) + return } -func (x gen_NSControl) IsEnabled() ( - r0 bool, +// TakeStringValueFrom sets the value of the receiver’s cell to the string value obtained from the specified object. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428912-takestringvaluefrom?language=objc for details. +func (x gen_NSControl) TakeStringValueFrom( + sender objc.Ref, ) { - ret := C.NSControl_inst_isEnabled( + C.NSControl_inst_TakeStringValueFrom( + unsafe.Pointer(x.Pointer()), + objc.RefPointer(sender), + ) + + return +} + +// ValidateEditing validates changes to any user-typed text. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428855-validateediting?language=objc for details. +func (x gen_NSControl) ValidateEditing() { + C.NSControl_inst_ValidateEditing( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) + return } -func (x gen_NSControl) SetEnabled_( +// Init +// +// See for details. +func (x gen_NSControl) Init_AsNSControl() NSControl { + ret := C.NSControl_inst_Init( + unsafe.Pointer(x.Pointer()), + ) + + return NSControl_FromPointer(ret) +} + +// IsEnabled returns a boolean value that indicates whether the receiver reacts to mouse events. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428970-enabled?language=objc for details. +func (x gen_NSControl) IsEnabled() bool { + ret := C.NSControl_inst_IsEnabled( + unsafe.Pointer(x.Pointer()), + ) + + return convertObjCBoolToGo(ret) +} + +// SetEnabled returns a boolean value that indicates whether the receiver reacts to mouse events. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428970-enabled?language=objc for details. +func (x gen_NSControl) SetEnabled( value bool, ) { - C.NSControl_inst_setEnabled_( + C.NSControl_inst_SetEnabled( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSControl) IntValue() ( - r0 int32, -) { - ret := C.NSControl_inst_intValue( +// IntValue returns the value of the receiver’s cell as an integer. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428939-intvalue?language=objc for details. +func (x gen_NSControl) IntValue() int32 { + ret := C.NSControl_inst_IntValue( unsafe.Pointer(x.Pointer()), ) - r0 = int32(ret) - return + + return int32(ret) } -func (x gen_NSControl) SetIntValue_( +// SetIntValue returns the value of the receiver’s cell as an integer. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428939-intvalue?language=objc for details. +func (x gen_NSControl) SetIntValue( value int32, ) { - C.NSControl_inst_setIntValue_( + C.NSControl_inst_SetIntValue( unsafe.Pointer(x.Pointer()), C.int(value), ) + return } -func (x gen_NSControl) IntegerValue() ( - r0 core.NSInteger, -) { - ret := C.NSControl_inst_integerValue( +// IntegerValue returns the value of the receiver’s cell as an nsinteger value. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428969-integervalue?language=objc for details. +func (x gen_NSControl) IntegerValue() core.NSInteger { + ret := C.NSControl_inst_IntegerValue( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSInteger(ret) - return + + return core.NSInteger(ret) } -func (x gen_NSControl) SetIntegerValue_( +// SetIntegerValue returns the value of the receiver’s cell as an nsinteger value. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428969-integervalue?language=objc for details. +func (x gen_NSControl) SetIntegerValue( value core.NSInteger, ) { - C.NSControl_inst_setIntegerValue_( + C.NSControl_inst_SetIntegerValue( unsafe.Pointer(x.Pointer()), C.long(value), ) + return } -func (x gen_NSControl) ObjectValue() ( - r0 objc.Object, -) { - ret := C.NSControl_inst_objectValue( +// ObjectValue returns the value of the receiver’s cell as an objective-c object. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428849-objectvalue?language=objc for details. +func (x gen_NSControl) ObjectValue() objc.Object { + ret := C.NSControl_inst_ObjectValue( unsafe.Pointer(x.Pointer()), ) - r0 = objc.Object_fromPointer(ret) - return + + return objc.Object_FromPointer(ret) } -func (x gen_NSControl) SetObjectValue_( +// SetObjectValue returns the value of the receiver’s cell as an objective-c object. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428849-objectvalue?language=objc for details. +func (x gen_NSControl) SetObjectValue( value objc.Ref, ) { - C.NSControl_inst_setObjectValue_( + C.NSControl_inst_SetObjectValue( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSControl) StringValue() ( - r0 core.NSString, -) { - ret := C.NSControl_inst_stringValue( +// StringValue returns the value of the receiver’s cell as an nsstring object. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428950-stringvalue?language=objc for details. +func (x gen_NSControl) StringValue() core.NSString { + ret := C.NSControl_inst_StringValue( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_NSControl) SetStringValue_( +// SetStringValue returns the value of the receiver’s cell as an nsstring object. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428950-stringvalue?language=objc for details. +func (x gen_NSControl) SetStringValue( value core.NSStringRef, ) { - C.NSControl_inst_setStringValue_( + C.NSControl_inst_SetStringValue( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSControl) AttributedStringValue() ( - r0 core.NSAttributedString, -) { - ret := C.NSControl_inst_attributedStringValue( +// AttributedStringValue returns the value of the receiver’s cell as an attributed string. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428916-attributedstringvalue?language=objc for details. +func (x gen_NSControl) AttributedStringValue() core.NSAttributedString { + ret := C.NSControl_inst_AttributedStringValue( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSAttributedString_fromPointer(ret) - return + + return core.NSAttributedString_FromPointer(ret) } -func (x gen_NSControl) SetAttributedStringValue_( +// SetAttributedStringValue returns the value of the receiver’s cell as an attributed string. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428916-attributedstringvalue?language=objc for details. +func (x gen_NSControl) SetAttributedStringValue( value core.NSAttributedStringRef, ) { - C.NSControl_inst_setAttributedStringValue_( + C.NSControl_inst_SetAttributedStringValue( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSControl) Font() ( - r0 NSFont, -) { - ret := C.NSControl_inst_font( +// Font returns the font used to draw text in the receiver’s cell. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428914-font?language=objc for details. +func (x gen_NSControl) Font() NSFont { + ret := C.NSControl_inst_Font( unsafe.Pointer(x.Pointer()), ) - r0 = NSFont_fromPointer(ret) - return + + return NSFont_FromPointer(ret) } -func (x gen_NSControl) SetFont_( +// SetFont returns the font used to draw text in the receiver’s cell. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428914-font?language=objc for details. +func (x gen_NSControl) SetFont( value NSFontRef, ) { - C.NSControl_inst_setFont_( + C.NSControl_inst_SetFont( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSControl) UsesSingleLineMode() ( - r0 bool, -) { - ret := C.NSControl_inst_usesSingleLineMode( +// UsesSingleLineMode returns a boolean value that indicates whether the text in the control’s cell uses single line mode. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428929-usessinglelinemode?language=objc for details. +func (x gen_NSControl) UsesSingleLineMode() bool { + ret := C.NSControl_inst_UsesSingleLineMode( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSControl) SetUsesSingleLineMode_( +// SetUsesSingleLineMode returns a boolean value that indicates whether the text in the control’s cell uses single line mode. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428929-usessinglelinemode?language=objc for details. +func (x gen_NSControl) SetUsesSingleLineMode( value bool, ) { - C.NSControl_inst_setUsesSingleLineMode_( + C.NSControl_inst_SetUsesSingleLineMode( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSControl) AllowsExpansionToolTips() ( - r0 bool, -) { - ret := C.NSControl_inst_allowsExpansionToolTips( +// AllowsExpansionToolTips returns a boolean value that indicates whether expansion tool tips are shown when the control is hovered over. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428962-allowsexpansiontooltips?language=objc for details. +func (x gen_NSControl) AllowsExpansionToolTips() bool { + ret := C.NSControl_inst_AllowsExpansionToolTips( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSControl) SetAllowsExpansionToolTips_( +// SetAllowsExpansionToolTips returns a boolean value that indicates whether expansion tool tips are shown when the control is hovered over. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428962-allowsexpansiontooltips?language=objc for details. +func (x gen_NSControl) SetAllowsExpansionToolTips( value bool, ) { - C.NSControl_inst_setAllowsExpansionToolTips_( + C.NSControl_inst_SetAllowsExpansionToolTips( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSControl) IsHighlighted() ( - r0 bool, -) { - ret := C.NSControl_inst_isHighlighted( +// IsHighlighted returns a boolean value that indicates whether the cell is highlighted. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428927-highlighted?language=objc for details. +func (x gen_NSControl) IsHighlighted() bool { + ret := C.NSControl_inst_IsHighlighted( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSControl) SetHighlighted_( +// SetHighlighted returns a boolean value that indicates whether the cell is highlighted. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428927-highlighted?language=objc for details. +func (x gen_NSControl) SetHighlighted( value bool, ) { - C.NSControl_inst_setHighlighted_( + C.NSControl_inst_SetHighlighted( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSControl) Action() ( - r0 objc.Selector, -) { - ret := C.NSControl_inst_action( +// Action returns the default action-message selector associated with the control. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428956-action?language=objc for details. +func (x gen_NSControl) Action() objc.Selector { + ret := C.NSControl_inst_Action( unsafe.Pointer(x.Pointer()), ) - r0 = objc.SelectorAt(ret) - return + + return objc.SelectorAt(ret) } -func (x gen_NSControl) SetAction_( +// SetAction returns the default action-message selector associated with the control. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428956-action?language=objc for details. +func (x gen_NSControl) SetAction( value objc.Selector, ) { - C.NSControl_inst_setAction_( + C.NSControl_inst_SetAction( unsafe.Pointer(x.Pointer()), value.SelectorAddress(), ) + return } -func (x gen_NSControl) Target() ( - r0 objc.Object, -) { - ret := C.NSControl_inst_target( +// Target returns the target object that receives action messages from the cell. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428885-target?language=objc for details. +func (x gen_NSControl) Target() objc.Object { + ret := C.NSControl_inst_Target( unsafe.Pointer(x.Pointer()), ) - r0 = objc.Object_fromPointer(ret) - return + + return objc.Object_FromPointer(ret) } -func (x gen_NSControl) SetTarget_( +// SetTarget returns the target object that receives action messages from the cell. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428885-target?language=objc for details. +func (x gen_NSControl) SetTarget( value objc.Ref, ) { - C.NSControl_inst_setTarget_( + C.NSControl_inst_SetTarget( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSControl) IsContinuous() ( - r0 bool, -) { - ret := C.NSControl_inst_isContinuous( +// IsContinuous returns a boolean value indicating whether the receiver’s cell sends its action message continuously to its target during mouse tracking. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428952-continuous?language=objc for details. +func (x gen_NSControl) IsContinuous() bool { + ret := C.NSControl_inst_IsContinuous( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSControl) SetContinuous_( +// SetContinuous returns a boolean value indicating whether the receiver’s cell sends its action message continuously to its target during mouse tracking. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428952-continuous?language=objc for details. +func (x gen_NSControl) SetContinuous( value bool, ) { - C.NSControl_inst_setContinuous_( + C.NSControl_inst_SetContinuous( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSControl) Tag() ( - r0 core.NSInteger, -) { - ret := C.NSControl_inst_tag( +// Tag returns the tag identifying the receiver (not the tag of the receiver’s cell). +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428910-tag?language=objc for details. +func (x gen_NSControl) Tag() core.NSInteger { + ret := C.NSControl_inst_Tag( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSInteger(ret) - return + + return core.NSInteger(ret) } -func (x gen_NSControl) SetTag_( +// SetTag returns the tag identifying the receiver (not the tag of the receiver’s cell). +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428910-tag?language=objc for details. +func (x gen_NSControl) SetTag( value core.NSInteger, ) { - C.NSControl_inst_setTag_( + C.NSControl_inst_SetTag( unsafe.Pointer(x.Pointer()), C.long(value), ) + return } -func (x gen_NSControl) RefusesFirstResponder() ( - r0 bool, -) { - ret := C.NSControl_inst_refusesFirstResponder( +// RefusesFirstResponder returns a boolean value indicating whether the receiver refuses the first responder role. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428976-refusesfirstresponder?language=objc for details. +func (x gen_NSControl) RefusesFirstResponder() bool { + ret := C.NSControl_inst_RefusesFirstResponder( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSControl) SetRefusesFirstResponder_( +// SetRefusesFirstResponder returns a boolean value indicating whether the receiver refuses the first responder role. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428976-refusesfirstresponder?language=objc for details. +func (x gen_NSControl) SetRefusesFirstResponder( value bool, ) { - C.NSControl_inst_setRefusesFirstResponder_( + C.NSControl_inst_SetRefusesFirstResponder( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSControl) IgnoresMultiClick() ( - r0 bool, -) { - ret := C.NSControl_inst_ignoresMultiClick( +// IgnoresMultiClick returns a boolean value indicating whether the receiver ignores multiple clicks made in rapid succession. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428863-ignoresmulticlick?language=objc for details. +func (x gen_NSControl) IgnoresMultiClick() bool { + ret := C.NSControl_inst_IgnoresMultiClick( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSControl) SetIgnoresMultiClick_( +// SetIgnoresMultiClick returns a boolean value indicating whether the receiver ignores multiple clicks made in rapid succession. +// +// See https://developer.apple.com/documentation/appkit/nscontrol/1428863-ignoresmulticlick?language=objc for details. +func (x gen_NSControl) SetIgnoresMultiClick( value bool, ) { - C.NSControl_inst_setIgnoresMultiClick_( + C.NSControl_inst_SetIgnoresMultiClick( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } type NSButtonRef interface { Pointer() uintptr - Init_asNSButton() NSButton + Init_AsNSButton() NSButton } type gen_NSButton struct { NSControl } -func NSButton_fromPointer(ptr unsafe.Pointer) NSButton { +func NSButton_FromPointer(ptr unsafe.Pointer) NSButton { return NSButton{gen_NSButton{ - NSControl_fromPointer(ptr), + NSControl_FromPointer(ptr), }} } -func NSButton_fromRef(ref objc.Ref) NSButton { - return NSButton_fromPointer(unsafe.Pointer(ref.Pointer())) +func NSButton_FromRef(ref objc.Ref) NSButton { + return NSButton_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_NSButton) CompressWithPrioritizedCompressionOptions_( +// CompressWithPrioritizedCompressionOptions sets the priority compression options for this button. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/2952060-compresswithprioritizedcompressi?language=objc for details. +func (x gen_NSButton) CompressWithPrioritizedCompressionOptions( prioritizedOptions core.NSArrayRef, ) { - C.NSButton_inst_compressWithPrioritizedCompressionOptions_( + C.NSButton_inst_CompressWithPrioritizedCompressionOptions( unsafe.Pointer(x.Pointer()), objc.RefPointer(prioritizedOptions), ) + return } -func (x gen_NSButton) MinimumSizeWithPrioritizedCompressionOptions_( - prioritizedOptions core.NSArrayRef, -) ( - r0 core.NSSize, +// Highlight highlights (or unhighlights) the button. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/1534156-highlight?language=objc for details. +func (x gen_NSButton) Highlight( + flag bool, ) { - ret := C.NSButton_inst_minimumSizeWithPrioritizedCompressionOptions_( + C.NSButton_inst_Highlight( unsafe.Pointer(x.Pointer()), - objc.RefPointer(prioritizedOptions), + convertToObjCBool(flag), ) - r0 = *(*core.NSSize)(unsafe.Pointer(&ret)) + return } -func (x gen_NSButton) SetNextState() { - C.NSButton_inst_setNextState( +// MinimumSizeWithPrioritizedCompressionOptions returns the minimum size of the button by using the compression options. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/2952059-minimumsizewithprioritizedcompre?language=objc for details. +func (x gen_NSButton) MinimumSizeWithPrioritizedCompressionOptions( + prioritizedOptions core.NSArrayRef, +) core.NSSize { + ret := C.NSButton_inst_MinimumSizeWithPrioritizedCompressionOptions( unsafe.Pointer(x.Pointer()), + objc.RefPointer(prioritizedOptions), ) - return + + return *(*core.NSSize)(unsafe.Pointer(&ret)) } -func (x gen_NSButton) Highlight_( - flag bool, -) { - C.NSButton_inst_highlight_( +// PerformKeyEquivalent checks the button's key equivalent against the specified event and, if they match, simulates the button being clicked. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/1524423-performkeyequivalent?language=objc for details. +func (x gen_NSButton) PerformKeyEquivalent( + key NSEventRef, +) bool { + ret := C.NSButton_inst_PerformKeyEquivalent( unsafe.Pointer(x.Pointer()), - convertToObjCBool(flag), + objc.RefPointer(key), ) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSButton) PerformKeyEquivalent_( - key NSEventRef, -) ( - r0 bool, -) { - ret := C.NSButton_inst_performKeyEquivalent_( +// SetNextState sets the button to its next state. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/1530594-setnextstate?language=objc for details. +func (x gen_NSButton) SetNextState() { + C.NSButton_inst_SetNextState( unsafe.Pointer(x.Pointer()), - objc.RefPointer(key), ) - r0 = convertObjCBoolToGo(ret) + return } -func (x gen_NSButton) Init_asNSButton() ( - r0 NSButton, -) { - ret := C.NSButton_inst_init( +// Init +// +// See for details. +func (x gen_NSButton) Init_AsNSButton() NSButton { + ret := C.NSButton_inst_Init( unsafe.Pointer(x.Pointer()), ) - r0 = NSButton_fromPointer(ret) - return + + return NSButton_FromPointer(ret) } -func (x gen_NSButton) ContentTintColor() ( - r0 NSColor, -) { - ret := C.NSButton_inst_contentTintColor( +// ContentTintColor returns a tint color to use for the template image and text content. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/3000781-contenttintcolor?language=objc for details. +func (x gen_NSButton) ContentTintColor() NSColor { + ret := C.NSButton_inst_ContentTintColor( unsafe.Pointer(x.Pointer()), ) - r0 = NSColor_fromPointer(ret) - return + + return NSColor_FromPointer(ret) } -func (x gen_NSButton) SetContentTintColor_( +// SetContentTintColor returns a tint color to use for the template image and text content. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/3000781-contenttintcolor?language=objc for details. +func (x gen_NSButton) SetContentTintColor( value NSColorRef, ) { - C.NSButton_inst_setContentTintColor_( + C.NSButton_inst_SetContentTintColor( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSButton) HasDestructiveAction() ( - r0 bool, -) { - ret := C.NSButton_inst_hasDestructiveAction( +// HasDestructiveAction returns a boolean value that defines whether a button’s action has a destructive effect. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/3622469-hasdestructiveaction?language=objc for details. +func (x gen_NSButton) HasDestructiveAction() bool { + ret := C.NSButton_inst_HasDestructiveAction( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSButton) SetHasDestructiveAction_( +// SetHasDestructiveAction returns a boolean value that defines whether a button’s action has a destructive effect. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/3622469-hasdestructiveaction?language=objc for details. +func (x gen_NSButton) SetHasDestructiveAction( value bool, ) { - C.NSButton_inst_setHasDestructiveAction_( + C.NSButton_inst_SetHasDestructiveAction( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSButton) AlternateTitle() ( - r0 core.NSString, -) { - ret := C.NSButton_inst_alternateTitle( +// AlternateTitle returns the title that the button displays when the button is in an on state. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/1529588-alternatetitle?language=objc for details. +func (x gen_NSButton) AlternateTitle() core.NSString { + ret := C.NSButton_inst_AlternateTitle( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_NSButton) SetAlternateTitle_( +// SetAlternateTitle returns the title that the button displays when the button is in an on state. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/1529588-alternatetitle?language=objc for details. +func (x gen_NSButton) SetAlternateTitle( value core.NSStringRef, ) { - C.NSButton_inst_setAlternateTitle_( + C.NSButton_inst_SetAlternateTitle( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSButton) AttributedTitle() ( - r0 core.NSAttributedString, -) { - ret := C.NSButton_inst_attributedTitle( +// AttributedTitle returns the title that the button displays in an off state, as an attributed string. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/1524640-attributedtitle?language=objc for details. +func (x gen_NSButton) AttributedTitle() core.NSAttributedString { + ret := C.NSButton_inst_AttributedTitle( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSAttributedString_fromPointer(ret) - return + + return core.NSAttributedString_FromPointer(ret) } -func (x gen_NSButton) SetAttributedTitle_( +// SetAttributedTitle returns the title that the button displays in an off state, as an attributed string. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/1524640-attributedtitle?language=objc for details. +func (x gen_NSButton) SetAttributedTitle( value core.NSAttributedStringRef, ) { - C.NSButton_inst_setAttributedTitle_( + C.NSButton_inst_SetAttributedTitle( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSButton) AttributedAlternateTitle() ( - r0 core.NSAttributedString, -) { - ret := C.NSButton_inst_attributedAlternateTitle( +// AttributedAlternateTitle returns the title that the button displays as an attributed string when the button is in an on state. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/1526723-attributedalternatetitle?language=objc for details. +func (x gen_NSButton) AttributedAlternateTitle() core.NSAttributedString { + ret := C.NSButton_inst_AttributedAlternateTitle( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSAttributedString_fromPointer(ret) - return + + return core.NSAttributedString_FromPointer(ret) } -func (x gen_NSButton) SetAttributedAlternateTitle_( +// SetAttributedAlternateTitle returns the title that the button displays as an attributed string when the button is in an on state. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/1526723-attributedalternatetitle?language=objc for details. +func (x gen_NSButton) SetAttributedAlternateTitle( value core.NSAttributedStringRef, ) { - C.NSButton_inst_setAttributedAlternateTitle_( + C.NSButton_inst_SetAttributedAlternateTitle( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSButton) Title() ( - r0 core.NSString, -) { - ret := C.NSButton_inst_title( +// Title returns the title displayed on the button when it’s in an off state. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/1524430-title?language=objc for details. +func (x gen_NSButton) Title() core.NSString { + ret := C.NSButton_inst_Title( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_NSButton) SetTitle_( +// SetTitle returns the title displayed on the button when it’s in an off state. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/1524430-title?language=objc for details. +func (x gen_NSButton) SetTitle( value core.NSStringRef, ) { - C.NSButton_inst_setTitle_( + C.NSButton_inst_SetTitle( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSButton) Sound() ( - r0 NSSound, -) { - ret := C.NSButton_inst_sound( +// Sound returns the sound that plays when the user clicks the button. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/1530910-sound?language=objc for details. +func (x gen_NSButton) Sound() NSSound { + ret := C.NSButton_inst_Sound( unsafe.Pointer(x.Pointer()), ) - r0 = NSSound_fromPointer(ret) - return + + return NSSound_FromPointer(ret) } -func (x gen_NSButton) SetSound_( +// SetSound returns the sound that plays when the user clicks the button. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/1530910-sound?language=objc for details. +func (x gen_NSButton) SetSound( value NSSoundRef, ) { - C.NSButton_inst_setSound_( + C.NSButton_inst_SetSound( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSButton) IsSpringLoaded() ( - r0 bool, -) { - ret := C.NSButton_inst_isSpringLoaded( +// IsSpringLoaded returns a boolean value that indicates whether spring loading is enabled for the button. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/1532300-springloaded?language=objc for details. +func (x gen_NSButton) IsSpringLoaded() bool { + ret := C.NSButton_inst_IsSpringLoaded( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSButton) SetSpringLoaded_( +// SetSpringLoaded returns a boolean value that indicates whether spring loading is enabled for the button. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/1532300-springloaded?language=objc for details. +func (x gen_NSButton) SetSpringLoaded( value bool, ) { - C.NSButton_inst_setSpringLoaded_( + C.NSButton_inst_SetSpringLoaded( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSButton) MaxAcceleratorLevel() ( - r0 core.NSInteger, -) { - ret := C.NSButton_inst_maxAcceleratorLevel( +// MaxAcceleratorLevel an integer value indicating the maximum pressure level for a button of type nsmultilevelacceleratorbutton. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/1534413-maxacceleratorlevel?language=objc for details. +func (x gen_NSButton) MaxAcceleratorLevel() core.NSInteger { + ret := C.NSButton_inst_MaxAcceleratorLevel( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSInteger(ret) - return + + return core.NSInteger(ret) } -func (x gen_NSButton) SetMaxAcceleratorLevel_( +// SetMaxAcceleratorLevel an integer value indicating the maximum pressure level for a button of type nsmultilevelacceleratorbutton. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/1534413-maxacceleratorlevel?language=objc for details. +func (x gen_NSButton) SetMaxAcceleratorLevel( value core.NSInteger, ) { - C.NSButton_inst_setMaxAcceleratorLevel_( + C.NSButton_inst_SetMaxAcceleratorLevel( unsafe.Pointer(x.Pointer()), C.long(value), ) + return } -func (x gen_NSButton) Image() ( - r0 NSImage, -) { - ret := C.NSButton_inst_image( +// Image returns the image that appears on the button when it’s in an off state, or nil if there is no such image. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/1534221-image?language=objc for details. +func (x gen_NSButton) Image() NSImage { + ret := C.NSButton_inst_Image( unsafe.Pointer(x.Pointer()), ) - r0 = NSImage_fromPointer(ret) - return + + return NSImage_FromPointer(ret) } -func (x gen_NSButton) SetImage_( +// SetImage returns the image that appears on the button when it’s in an off state, or nil if there is no such image. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/1534221-image?language=objc for details. +func (x gen_NSButton) SetImage( value NSImageRef, ) { - C.NSButton_inst_setImage_( + C.NSButton_inst_SetImage( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSButton) AlternateImage() ( - r0 NSImage, -) { - ret := C.NSButton_inst_alternateImage( +// AlternateImage an alternate image that appears on the button when the button is in an on state. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/1533935-alternateimage?language=objc for details. +func (x gen_NSButton) AlternateImage() NSImage { + ret := C.NSButton_inst_AlternateImage( unsafe.Pointer(x.Pointer()), ) - r0 = NSImage_fromPointer(ret) - return + + return NSImage_FromPointer(ret) } -func (x gen_NSButton) SetAlternateImage_( +// SetAlternateImage an alternate image that appears on the button when the button is in an on state. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/1533935-alternateimage?language=objc for details. +func (x gen_NSButton) SetAlternateImage( value NSImageRef, ) { - C.NSButton_inst_setAlternateImage_( + C.NSButton_inst_SetAlternateImage( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSButton) IsBordered() ( - r0 bool, -) { - ret := C.NSButton_inst_isBordered( +// IsBordered returns a boolean value that determines whether the button has a border. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/1525565-bordered?language=objc for details. +func (x gen_NSButton) IsBordered() bool { + ret := C.NSButton_inst_IsBordered( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSButton) SetBordered_( +// SetBordered returns a boolean value that determines whether the button has a border. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/1525565-bordered?language=objc for details. +func (x gen_NSButton) SetBordered( value bool, ) { - C.NSButton_inst_setBordered_( + C.NSButton_inst_SetBordered( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSButton) IsTransparent() ( - r0 bool, -) { - ret := C.NSButton_inst_isTransparent( +// IsTransparent returns a boolean value that indicates whether the button is transparent. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/1529659-transparent?language=objc for details. +func (x gen_NSButton) IsTransparent() bool { + ret := C.NSButton_inst_IsTransparent( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSButton) SetTransparent_( +// SetTransparent returns a boolean value that indicates whether the button is transparent. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/1529659-transparent?language=objc for details. +func (x gen_NSButton) SetTransparent( value bool, ) { - C.NSButton_inst_setTransparent_( + C.NSButton_inst_SetTransparent( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSButton) BezelColor() ( - r0 NSColor, -) { - ret := C.NSButton_inst_bezelColor( +// BezelColor returns the color of the button's bezel, in appearances that support it. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/2561000-bezelcolor?language=objc for details. +func (x gen_NSButton) BezelColor() NSColor { + ret := C.NSButton_inst_BezelColor( unsafe.Pointer(x.Pointer()), ) - r0 = NSColor_fromPointer(ret) - return + + return NSColor_FromPointer(ret) } -func (x gen_NSButton) SetBezelColor_( +// SetBezelColor returns the color of the button's bezel, in appearances that support it. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/2561000-bezelcolor?language=objc for details. +func (x gen_NSButton) SetBezelColor( value NSColorRef, ) { - C.NSButton_inst_setBezelColor_( + C.NSButton_inst_SetBezelColor( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSButton) ShowsBorderOnlyWhileMouseInside() ( - r0 bool, -) { - ret := C.NSButton_inst_showsBorderOnlyWhileMouseInside( +// ShowsBorderOnlyWhileMouseInside returns a boolean value that determines whether the button displays its border only when the pointer is over it. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/1532248-showsborderonlywhilemouseinside?language=objc for details. +func (x gen_NSButton) ShowsBorderOnlyWhileMouseInside() bool { + ret := C.NSButton_inst_ShowsBorderOnlyWhileMouseInside( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSButton) SetShowsBorderOnlyWhileMouseInside_( +// SetShowsBorderOnlyWhileMouseInside returns a boolean value that determines whether the button displays its border only when the pointer is over it. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/1532248-showsborderonlywhilemouseinside?language=objc for details. +func (x gen_NSButton) SetShowsBorderOnlyWhileMouseInside( value bool, ) { - C.NSButton_inst_setShowsBorderOnlyWhileMouseInside_( + C.NSButton_inst_SetShowsBorderOnlyWhileMouseInside( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSButton) ImageHugsTitle() ( - r0 bool, -) { - ret := C.NSButton_inst_imageHugsTitle( +// ImageHugsTitle returns a boolean value that determines how the button’s image and title are positioned together within the button bezel. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/2092414-imagehugstitle?language=objc for details. +func (x gen_NSButton) ImageHugsTitle() bool { + ret := C.NSButton_inst_ImageHugsTitle( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSButton) SetImageHugsTitle_( +// SetImageHugsTitle returns a boolean value that determines how the button’s image and title are positioned together within the button bezel. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/2092414-imagehugstitle?language=objc for details. +func (x gen_NSButton) SetImageHugsTitle( value bool, ) { - C.NSButton_inst_setImageHugsTitle_( + C.NSButton_inst_SetImageHugsTitle( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSButton) AllowsMixedState() ( - r0 bool, -) { - ret := C.NSButton_inst_allowsMixedState( +// AllowsMixedState returns a boolean value that indicates whether the button allows a mixed state. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/1528670-allowsmixedstate?language=objc for details. +func (x gen_NSButton) AllowsMixedState() bool { + ret := C.NSButton_inst_AllowsMixedState( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSButton) SetAllowsMixedState_( +// SetAllowsMixedState returns a boolean value that indicates whether the button allows a mixed state. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/1528670-allowsmixedstate?language=objc for details. +func (x gen_NSButton) SetAllowsMixedState( value bool, ) { - C.NSButton_inst_setAllowsMixedState_( + C.NSButton_inst_SetAllowsMixedState( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSButton) State() ( - r0 core.NSInteger, -) { - ret := C.NSButton_inst_state( +// State returns the button’s state. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/1528907-state?language=objc for details. +func (x gen_NSButton) State() core.NSInteger { + ret := C.NSButton_inst_State( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSInteger(ret) - return + + return core.NSInteger(ret) } -func (x gen_NSButton) SetState_( +// SetState returns the button’s state. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/1528907-state?language=objc for details. +func (x gen_NSButton) SetState( value core.NSInteger, ) { - C.NSButton_inst_setState_( + C.NSButton_inst_SetState( unsafe.Pointer(x.Pointer()), C.long(value), ) + return } -func (x gen_NSButton) KeyEquivalent() ( - r0 core.NSString, -) { - ret := C.NSButton_inst_keyEquivalent( +// KeyEquivalent returns the key-equivalent character of the button. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/1525368-keyequivalent?language=objc for details. +func (x gen_NSButton) KeyEquivalent() core.NSString { + ret := C.NSButton_inst_KeyEquivalent( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_NSButton) SetKeyEquivalent_( +// SetKeyEquivalent returns the key-equivalent character of the button. +// +// See https://developer.apple.com/documentation/appkit/nsbutton/1525368-keyequivalent?language=objc for details. +func (x gen_NSButton) SetKeyEquivalent( value core.NSStringRef, ) { - C.NSButton_inst_setKeyEquivalent_( + C.NSButton_inst_SetKeyEquivalent( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } type NSEventRef interface { Pointer() uintptr - Init_asNSEvent() NSEvent + Init_AsNSEvent() NSEvent } type gen_NSEvent struct { objc.Object } -func NSEvent_fromPointer(ptr unsafe.Pointer) NSEvent { +func NSEvent_FromPointer(ptr unsafe.Pointer) NSEvent { return NSEvent{gen_NSEvent{ - objc.Object_fromPointer(ptr), + objc.Object_FromPointer(ptr), }} } -func NSEvent_fromRef(ref objc.Ref) NSEvent { - return NSEvent_fromPointer(unsafe.Pointer(ref.Pointer())) +func NSEvent_FromRef(ref objc.Ref) NSEvent { + return NSEvent_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_NSEvent) Init_asNSEvent() ( - r0 NSEvent, -) { - ret := C.NSEvent_inst_init( +// Init +// +// See for details. +func (x gen_NSEvent) Init_AsNSEvent() NSEvent { + ret := C.NSEvent_inst_Init( unsafe.Pointer(x.Pointer()), ) - r0 = NSEvent_fromPointer(ret) - return + + return NSEvent_FromPointer(ret) } -func (x gen_NSEvent) LocationInWindow() ( - r0 core.NSPoint, -) { - ret := C.NSEvent_inst_locationInWindow( +// LocationInWindow returns the receiver’s location in the base coordinate system of the associated window. +// +// See https://developer.apple.com/documentation/appkit/nsevent/1529068-locationinwindow?language=objc for details. +func (x gen_NSEvent) LocationInWindow() core.NSPoint { + ret := C.NSEvent_inst_LocationInWindow( unsafe.Pointer(x.Pointer()), ) - r0 = *(*core.NSPoint)(unsafe.Pointer(&ret)) - return + + return *(*core.NSPoint)(unsafe.Pointer(&ret)) } -func (x gen_NSEvent) Window() ( - r0 NSWindow, -) { - ret := C.NSEvent_inst_window( +// Window returns the window object associated with the event. +// +// See https://developer.apple.com/documentation/appkit/nsevent/1530808-window?language=objc for details. +func (x gen_NSEvent) Window() NSWindow { + ret := C.NSEvent_inst_Window( unsafe.Pointer(x.Pointer()), ) - r0 = NSWindow_fromPointer(ret) - return + + return NSWindow_FromPointer(ret) } -func (x gen_NSEvent) WindowNumber() ( - r0 core.NSInteger, -) { - ret := C.NSEvent_inst_windowNumber( +// WindowNumber returns the identifier for the window device associated with the event. +// +// See https://developer.apple.com/documentation/appkit/nsevent/1531361-windownumber?language=objc for details. +func (x gen_NSEvent) WindowNumber() core.NSInteger { + ret := C.NSEvent_inst_WindowNumber( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSInteger(ret) - return + + return core.NSInteger(ret) } -func (x gen_NSEvent) EventRef() ( - r0 unsafe.Pointer, -) { - ret := C.NSEvent_inst_eventRef( +// EventRef an opaque carbon type associated with this event. +// +// See https://developer.apple.com/documentation/appkit/nsevent/1525143-eventref?language=objc for details. +func (x gen_NSEvent) EventRef() unsafe.Pointer { + ret := C.NSEvent_inst_EventRef( unsafe.Pointer(x.Pointer()), ) - r0 = ret - return + + return ret } -func (x gen_NSEvent) Characters() ( - r0 core.NSString, -) { - ret := C.NSEvent_inst_characters( +// Characters returns the characters associated with a key-up or key-down event. +// +// See https://developer.apple.com/documentation/appkit/nsevent/1534183-characters?language=objc for details. +func (x gen_NSEvent) Characters() core.NSString { + ret := C.NSEvent_inst_Characters( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_NSEvent) CharactersIgnoringModifiers() ( - r0 core.NSString, -) { - ret := C.NSEvent_inst_charactersIgnoringModifiers( +// CharactersIgnoringModifiers returns the characters generated by a key event as if no modifier key (except for shift) applies. +// +// See https://developer.apple.com/documentation/appkit/nsevent/1524605-charactersignoringmodifiers?language=objc for details. +func (x gen_NSEvent) CharactersIgnoringModifiers() core.NSString { + ret := C.NSEvent_inst_CharactersIgnoringModifiers( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_NSEvent) IsARepeat() ( - r0 bool, -) { - ret := C.NSEvent_inst_isARepeat( +// IsARepeat returns a boolean value that indicates whether the key event is a repeat. +// +// See https://developer.apple.com/documentation/appkit/nsevent/1528049-arepeat?language=objc for details. +func (x gen_NSEvent) IsARepeat() bool { + ret := C.NSEvent_inst_IsARepeat( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSEvent) ButtonNumber() ( - r0 core.NSInteger, -) { - ret := C.NSEvent_inst_buttonNumber( +// ButtonNumber returns the button number for a mouse event. +// +// See https://developer.apple.com/documentation/appkit/nsevent/1527828-buttonnumber?language=objc for details. +func (x gen_NSEvent) ButtonNumber() core.NSInteger { + ret := C.NSEvent_inst_ButtonNumber( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSInteger(ret) - return + + return core.NSInteger(ret) } -func (x gen_NSEvent) ClickCount() ( - r0 core.NSInteger, -) { - ret := C.NSEvent_inst_clickCount( +// ClickCount returns the number of mouse clicks associated with a mouse-down or mouse-up event. +// +// See https://developer.apple.com/documentation/appkit/nsevent/1528200-clickcount?language=objc for details. +func (x gen_NSEvent) ClickCount() core.NSInteger { + ret := C.NSEvent_inst_ClickCount( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSInteger(ret) - return + + return core.NSInteger(ret) } -func (x gen_NSEvent) EventNumber() ( - r0 core.NSInteger, -) { - ret := C.NSEvent_inst_eventNumber( +// EventNumber returns the counter value of the latest mouse or tracking-rectangle event object; every system-generated mouse and tracking-rectangle event increments this counter. +// +// See https://developer.apple.com/documentation/appkit/nsevent/1535220-eventnumber?language=objc for details. +func (x gen_NSEvent) EventNumber() core.NSInteger { + ret := C.NSEvent_inst_EventNumber( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSInteger(ret) - return + + return core.NSInteger(ret) } -func (x gen_NSEvent) TrackingNumber() ( - r0 core.NSInteger, -) { - ret := C.NSEvent_inst_trackingNumber( +// TrackingNumber returns the identifier of a mouse-tracking event. +// +// See https://developer.apple.com/documentation/appkit/nsevent/1533974-trackingnumber?language=objc for details. +func (x gen_NSEvent) TrackingNumber() core.NSInteger { + ret := C.NSEvent_inst_TrackingNumber( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSInteger(ret) - return + + return core.NSInteger(ret) } -func (x gen_NSEvent) UserData() ( - r0 unsafe.Pointer, -) { - ret := C.NSEvent_inst_userData( +// UserData returns the data associated with a mouse-tracking event. +// +// See https://developer.apple.com/documentation/appkit/nsevent/1526810-userdata?language=objc for details. +func (x gen_NSEvent) UserData() unsafe.Pointer { + ret := C.NSEvent_inst_UserData( unsafe.Pointer(x.Pointer()), ) - r0 = ret - return + + return ret } -func (x gen_NSEvent) Data1() ( - r0 core.NSInteger, -) { - ret := C.NSEvent_inst_data1( +// Data1 additional data associated with this event. +// +// See https://developer.apple.com/documentation/appkit/nsevent/1528289-data1?language=objc for details. +func (x gen_NSEvent) Data1() core.NSInteger { + ret := C.NSEvent_inst_Data1( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSInteger(ret) - return + + return core.NSInteger(ret) } -func (x gen_NSEvent) Data2() ( - r0 core.NSInteger, -) { - ret := C.NSEvent_inst_data2( +// Data2 additional data associated with this event. +// +// See https://developer.apple.com/documentation/appkit/nsevent/1528647-data2?language=objc for details. +func (x gen_NSEvent) Data2() core.NSInteger { + ret := C.NSEvent_inst_Data2( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSInteger(ret) - return + + return core.NSInteger(ret) } -func (x gen_NSEvent) DeltaX() ( - r0 core.CGFloat, -) { - ret := C.NSEvent_inst_deltaX( +// DeltaX returns the x-coordinate change for mouse-move, mouse-drag, and swipe events. +// +// See https://developer.apple.com/documentation/appkit/nsevent/1534871-deltax?language=objc for details. +func (x gen_NSEvent) DeltaX() core.CGFloat { + ret := C.NSEvent_inst_DeltaX( unsafe.Pointer(x.Pointer()), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } -func (x gen_NSEvent) DeltaY() ( - r0 core.CGFloat, -) { - ret := C.NSEvent_inst_deltaY( +// DeltaY returns the y-coordinate change for mouse-move, mouse-drag, and swipe events. +// +// See https://developer.apple.com/documentation/appkit/nsevent/1534158-deltay?language=objc for details. +func (x gen_NSEvent) DeltaY() core.CGFloat { + ret := C.NSEvent_inst_DeltaY( unsafe.Pointer(x.Pointer()), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } -func (x gen_NSEvent) DeltaZ() ( - r0 core.CGFloat, -) { - ret := C.NSEvent_inst_deltaZ( +// DeltaZ returns the z-coordinate change for a scroll wheel, mouse-move, or mouse-drag event. +// +// See https://developer.apple.com/documentation/appkit/nsevent/1531528-deltaz?language=objc for details. +func (x gen_NSEvent) DeltaZ() core.CGFloat { + ret := C.NSEvent_inst_DeltaZ( unsafe.Pointer(x.Pointer()), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } -func (x gen_NSEvent) Stage() ( - r0 core.NSInteger, -) { - ret := C.NSEvent_inst_stage( +// Stage returns a value of 0, 1, or 2, indicating the stage of a gesture event of type nseventtypepressure. +// +// See https://developer.apple.com/documentation/appkit/nsevent/1527242-stage?language=objc for details. +func (x gen_NSEvent) Stage() core.NSInteger { + ret := C.NSEvent_inst_Stage( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSInteger(ret) - return + + return core.NSInteger(ret) } -func (x gen_NSEvent) StageTransition() ( - r0 core.CGFloat, -) { - ret := C.NSEvent_inst_stageTransition( +// StageTransition returns the transition value for the stage of a pressure gesture event of type nseventtypepressure. +// +// See https://developer.apple.com/documentation/appkit/nsevent/1526739-stagetransition?language=objc for details. +func (x gen_NSEvent) StageTransition() core.CGFloat { + ret := C.NSEvent_inst_StageTransition( unsafe.Pointer(x.Pointer()), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } -func (x gen_NSEvent) CapabilityMask() ( - r0 core.NSUInteger, -) { - ret := C.NSEvent_inst_capabilityMask( +// CapabilityMask returns a mask whose set bits indicate the capabilities of the tablet device that generated this event. +// +// See https://developer.apple.com/documentation/appkit/nsevent/1534648-capabilitymask?language=objc for details. +func (x gen_NSEvent) CapabilityMask() core.NSUInteger { + ret := C.NSEvent_inst_CapabilityMask( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSUInteger(ret) - return + + return core.NSUInteger(ret) } -func (x gen_NSEvent) DeviceID() ( - r0 core.NSUInteger, -) { - ret := C.NSEvent_inst_deviceID( +// DeviceID returns a special identifier that is used to match tablet-pointer and tablet-proximity events. +// +// See https://developer.apple.com/documentation/appkit/nsevent/1530014-deviceid?language=objc for details. +func (x gen_NSEvent) DeviceID() core.NSUInteger { + ret := C.NSEvent_inst_DeviceID( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSUInteger(ret) - return + + return core.NSUInteger(ret) } -func (x gen_NSEvent) IsEnteringProximity() ( - r0 bool, -) { - ret := C.NSEvent_inst_isEnteringProximity( +// IsEnteringProximity returns a boolean value that indicates whether a pointing device is entering or leaving the proximity of its tablet. +// +// See https://developer.apple.com/documentation/appkit/nsevent/1531702-enteringproximity?language=objc for details. +func (x gen_NSEvent) IsEnteringProximity() bool { + ret := C.NSEvent_inst_IsEnteringProximity( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSEvent) PointingDeviceID() ( - r0 core.NSUInteger, -) { - ret := C.NSEvent_inst_pointingDeviceID( +// PointingDeviceID returns the index of the pointing device currently in proximity with the tablet. +// +// See https://developer.apple.com/documentation/appkit/nsevent/1528818-pointingdeviceid?language=objc for details. +func (x gen_NSEvent) PointingDeviceID() core.NSUInteger { + ret := C.NSEvent_inst_PointingDeviceID( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSUInteger(ret) - return + + return core.NSUInteger(ret) } -func (x gen_NSEvent) PointingDeviceSerialNumber() ( - r0 core.NSUInteger, -) { - ret := C.NSEvent_inst_pointingDeviceSerialNumber( +// PointingDeviceSerialNumber returns the vendor-assigned serial number of a pointing device. +// +// See https://developer.apple.com/documentation/appkit/nsevent/1533420-pointingdeviceserialnumber?language=objc for details. +func (x gen_NSEvent) PointingDeviceSerialNumber() core.NSUInteger { + ret := C.NSEvent_inst_PointingDeviceSerialNumber( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSUInteger(ret) - return + + return core.NSUInteger(ret) } -func (x gen_NSEvent) SystemTabletID() ( - r0 core.NSUInteger, -) { - ret := C.NSEvent_inst_systemTabletID( +// SystemTabletID returns the index of the tablet device connected to the system. +// +// See https://developer.apple.com/documentation/appkit/nsevent/1528299-systemtabletid?language=objc for details. +func (x gen_NSEvent) SystemTabletID() core.NSUInteger { + ret := C.NSEvent_inst_SystemTabletID( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSUInteger(ret) - return + + return core.NSUInteger(ret) } -func (x gen_NSEvent) TabletID() ( - r0 core.NSUInteger, -) { - ret := C.NSEvent_inst_tabletID( +// TabletID returns the usb model identifier of the tablet device associated with this event. +// +// See https://developer.apple.com/documentation/appkit/nsevent/1527003-tabletid?language=objc for details. +func (x gen_NSEvent) TabletID() core.NSUInteger { + ret := C.NSEvent_inst_TabletID( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSUInteger(ret) - return + + return core.NSUInteger(ret) } -func (x gen_NSEvent) VendorID() ( - r0 core.NSUInteger, -) { - ret := C.NSEvent_inst_vendorID( +// VendorID returns the vendor identifier of the tablet associated with the event. +// +// See https://developer.apple.com/documentation/appkit/nsevent/1525177-vendorid?language=objc for details. +func (x gen_NSEvent) VendorID() core.NSUInteger { + ret := C.NSEvent_inst_VendorID( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSUInteger(ret) - return + + return core.NSUInteger(ret) } -func (x gen_NSEvent) VendorPointingDeviceType() ( - r0 core.NSUInteger, -) { - ret := C.NSEvent_inst_vendorPointingDeviceType( +// VendorPointingDeviceType returns a coded bit field whose set bits indicate the type of pointing device (within a vendor selection) associated with the event. +// +// See https://developer.apple.com/documentation/appkit/nsevent/1527736-vendorpointingdevicetype?language=objc for details. +func (x gen_NSEvent) VendorPointingDeviceType() core.NSUInteger { + ret := C.NSEvent_inst_VendorPointingDeviceType( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSUInteger(ret) - return + + return core.NSUInteger(ret) } -func (x gen_NSEvent) AbsoluteX() ( - r0 core.NSInteger, -) { - ret := C.NSEvent_inst_absoluteX( +// AbsoluteX returns the absolute x coordinate of a pointing device on its tablet at full tablet resolution. +// +// See https://developer.apple.com/documentation/appkit/nsevent/1530617-absolutex?language=objc for details. +func (x gen_NSEvent) AbsoluteX() core.NSInteger { + ret := C.NSEvent_inst_AbsoluteX( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSInteger(ret) - return + + return core.NSInteger(ret) } -func (x gen_NSEvent) AbsoluteY() ( - r0 core.NSInteger, -) { - ret := C.NSEvent_inst_absoluteY( +// AbsoluteY returns the absolute y coordinate of a pointing device on its tablet at full tablet resolution. +// +// See https://developer.apple.com/documentation/appkit/nsevent/1528904-absolutey?language=objc for details. +func (x gen_NSEvent) AbsoluteY() core.NSInteger { + ret := C.NSEvent_inst_AbsoluteY( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSInteger(ret) - return + + return core.NSInteger(ret) } -func (x gen_NSEvent) AbsoluteZ() ( - r0 core.NSInteger, -) { - ret := C.NSEvent_inst_absoluteZ( +// AbsoluteZ returns the absolute z coordinate of pointing device on its tablet at full tablet resolution. +// +// See https://developer.apple.com/documentation/appkit/nsevent/1532154-absolutez?language=objc for details. +func (x gen_NSEvent) AbsoluteZ() core.NSInteger { + ret := C.NSEvent_inst_AbsoluteZ( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSInteger(ret) - return + + return core.NSInteger(ret) } -func (x gen_NSEvent) Tilt() ( - r0 core.NSPoint, -) { - ret := C.NSEvent_inst_tilt( +// Tilt returns the scaled tilt values of the pointing device that generated this event. +// +// See https://developer.apple.com/documentation/appkit/nsevent/1534226-tilt?language=objc for details. +func (x gen_NSEvent) Tilt() core.NSPoint { + ret := C.NSEvent_inst_Tilt( unsafe.Pointer(x.Pointer()), ) - r0 = *(*core.NSPoint)(unsafe.Pointer(&ret)) - return + + return *(*core.NSPoint)(unsafe.Pointer(&ret)) } -func (x gen_NSEvent) VendorDefined() ( - r0 objc.Object, -) { - ret := C.NSEvent_inst_vendorDefined( +// VendorDefined an array of three vendor-defined nsnumber objects associated with a pointing-type event. +// +// See https://developer.apple.com/documentation/appkit/nsevent/1530551-vendordefined?language=objc for details. +func (x gen_NSEvent) VendorDefined() objc.Object { + ret := C.NSEvent_inst_VendorDefined( unsafe.Pointer(x.Pointer()), ) - r0 = objc.Object_fromPointer(ret) - return + + return objc.Object_FromPointer(ret) } -func (x gen_NSEvent) Magnification() ( - r0 core.CGFloat, -) { - ret := C.NSEvent_inst_magnification( +// Magnification returns the change in magnification. +// +// See https://developer.apple.com/documentation/appkit/nsevent/1531642-magnification?language=objc for details. +func (x gen_NSEvent) Magnification() core.CGFloat { + ret := C.NSEvent_inst_Magnification( unsafe.Pointer(x.Pointer()), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } -func (x gen_NSEvent) HasPreciseScrollingDeltas() ( - r0 bool, -) { - ret := C.NSEvent_inst_hasPreciseScrollingDeltas( +// HasPreciseScrollingDeltas returns a boolean value that indicates whether precise scrolling deltas are available. +// +// See https://developer.apple.com/documentation/appkit/nsevent/1525758-hasprecisescrollingdeltas?language=objc for details. +func (x gen_NSEvent) HasPreciseScrollingDeltas() bool { + ret := C.NSEvent_inst_HasPreciseScrollingDeltas( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSEvent) ScrollingDeltaX() ( - r0 core.CGFloat, -) { - ret := C.NSEvent_inst_scrollingDeltaX( +// ScrollingDeltaX returns the scroll wheel’s horizontal delta. +// +// See https://developer.apple.com/documentation/appkit/nsevent/1524505-scrollingdeltax?language=objc for details. +func (x gen_NSEvent) ScrollingDeltaX() core.CGFloat { + ret := C.NSEvent_inst_ScrollingDeltaX( unsafe.Pointer(x.Pointer()), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } -func (x gen_NSEvent) ScrollingDeltaY() ( - r0 core.CGFloat, -) { - ret := C.NSEvent_inst_scrollingDeltaY( +// ScrollingDeltaY returns the scroll wheel’s vertical delta. +// +// See https://developer.apple.com/documentation/appkit/nsevent/1535387-scrollingdeltay?language=objc for details. +func (x gen_NSEvent) ScrollingDeltaY() core.CGFloat { + ret := C.NSEvent_inst_ScrollingDeltaY( unsafe.Pointer(x.Pointer()), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } -func (x gen_NSEvent) IsDirectionInvertedFromDevice() ( - r0 bool, -) { - ret := C.NSEvent_inst_isDirectionInvertedFromDevice( +// IsDirectionInvertedFromDevice returns a boolean value that indicates whether the user has changed the device inversion. +// +// See https://developer.apple.com/documentation/appkit/nsevent/1525151-directioninvertedfromdevice?language=objc for details. +func (x gen_NSEvent) IsDirectionInvertedFromDevice() bool { + ret := C.NSEvent_inst_IsDirectionInvertedFromDevice( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } type NSFontRef interface { Pointer() uintptr - Init_asNSFont() NSFont + Init_AsNSFont() NSFont } type gen_NSFont struct { objc.Object } -func NSFont_fromPointer(ptr unsafe.Pointer) NSFont { +func NSFont_FromPointer(ptr unsafe.Pointer) NSFont { return NSFont{gen_NSFont{ - objc.Object_fromPointer(ptr), + objc.Object_FromPointer(ptr), }} } -func NSFont_fromRef(ref objc.Ref) NSFont { - return NSFont_fromPointer(unsafe.Pointer(ref.Pointer())) +func NSFont_FromRef(ref objc.Ref) NSFont { + return NSFont_FromPointer(unsafe.Pointer(ref.Pointer())) } +// FontWithSize +// +// See https://developer.apple.com/documentation/appkit/nsfont/3667454-fontwithsize?language=objc for details. +func (x gen_NSFont) FontWithSize( + fontSize core.CGFloat, +) NSFont { + ret := C.NSFont_inst_FontWithSize( + unsafe.Pointer(x.Pointer()), + C.double(fontSize), + ) + + return NSFont_FromPointer(ret) +} + +// Set sets this font as the font for the current graphics context. +// +// See https://developer.apple.com/documentation/appkit/nsfont/1531373-set?language=objc for details. func (x gen_NSFont) Set() { - C.NSFont_inst_set( + C.NSFont_inst_Set( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_NSFont) FontWithSize_( - fontSize core.CGFloat, -) ( - r0 NSFont, -) { - ret := C.NSFont_inst_fontWithSize_( +// Init +// +// See for details. +func (x gen_NSFont) Init_AsNSFont() NSFont { + ret := C.NSFont_inst_Init( unsafe.Pointer(x.Pointer()), - C.double(fontSize), ) - r0 = NSFont_fromPointer(ret) - return -} -func (x gen_NSFont) Init_asNSFont() ( - r0 NSFont, -) { - ret := C.NSFont_inst_init( - unsafe.Pointer(x.Pointer()), - ) - r0 = NSFont_fromPointer(ret) - return + return NSFont_FromPointer(ret) } -func (x gen_NSFont) PointSize() ( - r0 core.CGFloat, -) { - ret := C.NSFont_inst_pointSize( +// PointSize returns the point size of the font. +// +// See https://developer.apple.com/documentation/appkit/nsfont/1524511-pointsize?language=objc for details. +func (x gen_NSFont) PointSize() core.CGFloat { + ret := C.NSFont_inst_PointSize( unsafe.Pointer(x.Pointer()), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } -func (x gen_NSFont) IsFixedPitch() ( - r0 bool, -) { - ret := C.NSFont_inst_isFixedPitch( +// IsFixedPitch returns a boolean value indicating whether all glyphs in the font have the same advancement. +// +// See https://developer.apple.com/documentation/appkit/nsfont/1529210-fixedpitch?language=objc for details. +func (x gen_NSFont) IsFixedPitch() bool { + ret := C.NSFont_inst_IsFixedPitch( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSFont) MostCompatibleStringEncoding() ( - r0 core.NSStringEncoding, -) { - ret := C.NSFont_inst_mostCompatibleStringEncoding( +// MostCompatibleStringEncoding returns the string encoding that works best with the font. +// +// See https://developer.apple.com/documentation/appkit/nsfont/1527635-mostcompatiblestringencoding?language=objc for details. +func (x gen_NSFont) MostCompatibleStringEncoding() core.NSStringEncoding { + ret := C.NSFont_inst_MostCompatibleStringEncoding( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSStringEncoding(ret) - return + + return core.NSStringEncoding(ret) } -func (x gen_NSFont) NumberOfGlyphs() ( - r0 core.NSUInteger, -) { - ret := C.NSFont_inst_numberOfGlyphs( +// NumberOfGlyphs returns the number of glyphs in the font. +// +// See https://developer.apple.com/documentation/appkit/nsfont/1533968-numberofglyphs?language=objc for details. +func (x gen_NSFont) NumberOfGlyphs() core.NSUInteger { + ret := C.NSFont_inst_NumberOfGlyphs( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSUInteger(ret) - return + + return core.NSUInteger(ret) } -func (x gen_NSFont) DisplayName() ( - r0 core.NSString, -) { - ret := C.NSFont_inst_displayName( +// DisplayName returns the name of the font, including family and face names, to use when displaying the font information to the user. +// +// See https://developer.apple.com/documentation/appkit/nsfont/1531660-displayname?language=objc for details. +func (x gen_NSFont) DisplayName() core.NSString { + ret := C.NSFont_inst_DisplayName( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_NSFont) FamilyName() ( - r0 core.NSString, -) { - ret := C.NSFont_inst_familyName( +// FamilyName returns the family name of the font—for example, “times” or “helvetica.” +// +// See https://developer.apple.com/documentation/appkit/nsfont/1529585-familyname?language=objc for details. +func (x gen_NSFont) FamilyName() core.NSString { + ret := C.NSFont_inst_FamilyName( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_NSFont) FontName() ( - r0 core.NSString, -) { - ret := C.NSFont_inst_fontName( +// FontName returns the full name of the font, as used in postscript language code—for example, “times-roman” or “helvetica-oblique.” +// +// See https://developer.apple.com/documentation/appkit/nsfont/1526183-fontname?language=objc for details. +func (x gen_NSFont) FontName() core.NSString { + ret := C.NSFont_inst_FontName( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_NSFont) IsVertical() ( - r0 bool, -) { - ret := C.NSFont_inst_isVertical( +// IsVertical returns a boolean value indicating whether the font is a vertical font. +// +// See https://developer.apple.com/documentation/appkit/nsfont/1534644-vertical?language=objc for details. +func (x gen_NSFont) IsVertical() bool { + ret := C.NSFont_inst_IsVertical( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSFont) VerticalFont() ( - r0 NSFont, -) { - ret := C.NSFont_inst_verticalFont( +// VerticalFont returns a vertical version of the font. +// +// See https://developer.apple.com/documentation/appkit/nsfont/1535152-verticalfont?language=objc for details. +func (x gen_NSFont) VerticalFont() NSFont { + ret := C.NSFont_inst_VerticalFont( unsafe.Pointer(x.Pointer()), ) - r0 = NSFont_fromPointer(ret) - return + + return NSFont_FromPointer(ret) } type NSImageRef interface { Pointer() uintptr - Init_asNSImage() NSImage + Init_AsNSImage() NSImage } type gen_NSImage struct { objc.Object } -func NSImage_fromPointer(ptr unsafe.Pointer) NSImage { +func NSImage_FromPointer(ptr unsafe.Pointer) NSImage { return NSImage{gen_NSImage{ - objc.Object_fromPointer(ptr), + objc.Object_FromPointer(ptr), }} } -func NSImage_fromRef(ref objc.Ref) NSImage { - return NSImage_fromPointer(unsafe.Pointer(ref.Pointer())) +func NSImage_FromRef(ref objc.Ref) NSImage { + return NSImage_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_NSImage) InitByReferencingFile__asNSImage( - fileName core.NSStringRef, -) ( - r0 NSImage, +// AddRepresentations adds an array of image representation objects to the image. +// +// See https://developer.apple.com/documentation/appkit/nsimage/1519964-addrepresentations?language=objc for details. +func (x gen_NSImage) AddRepresentations( + imageReps core.NSArrayRef, ) { - ret := C.NSImage_inst_initByReferencingFile_( + C.NSImage_inst_AddRepresentations( unsafe.Pointer(x.Pointer()), - objc.RefPointer(fileName), + objc.RefPointer(imageReps), ) - r0 = NSImage_fromPointer(ret) + return } -func (x gen_NSImage) InitByReferencingURL__asNSImage( - url core.NSURLRef, -) ( - r0 NSImage, +// CancelIncrementalLoad cancels the current download operation, if any, for an incrementally loaded image. +// +// See https://developer.apple.com/documentation/appkit/nsimage/1520041-cancelincrementalload?language=objc for details. +func (x gen_NSImage) CancelIncrementalLoad() { + C.NSImage_inst_CancelIncrementalLoad( + unsafe.Pointer(x.Pointer()), + ) + + return +} + +// DrawInRect draws the image in the specified rectangle. +// +// See https://developer.apple.com/documentation/appkit/nsimage/1519863-drawinrect?language=objc for details. +func (x gen_NSImage) DrawInRect( + rect core.NSRect, ) { - ret := C.NSImage_inst_initByReferencingURL_( + C.NSImage_inst_DrawInRect( unsafe.Pointer(x.Pointer()), - objc.RefPointer(url), + *(*C.NSRect)(unsafe.Pointer(&rect)), ) - r0 = NSImage_fromPointer(ret) + return } -func (x gen_NSImage) InitWithContentsOfFile__asNSImage( +// InitByReferencingFile initializes and returns an image object using the specified file. +// +// See https://developer.apple.com/documentation/appkit/nsimage/1519955-initbyreferencingfile?language=objc for details. +func (x gen_NSImage) InitByReferencingFile_AsNSImage( fileName core.NSStringRef, -) ( - r0 NSImage, -) { - ret := C.NSImage_inst_initWithContentsOfFile_( +) NSImage { + ret := C.NSImage_inst_InitByReferencingFile( unsafe.Pointer(x.Pointer()), objc.RefPointer(fileName), ) - r0 = NSImage_fromPointer(ret) - return + + return NSImage_FromPointer(ret) } -func (x gen_NSImage) InitWithContentsOfURL__asNSImage( +// InitByReferencingURL initializes and returns an image object using the specified url. +// +// See https://developer.apple.com/documentation/appkit/nsimage/1519990-initbyreferencingurl?language=objc for details. +func (x gen_NSImage) InitByReferencingURL_AsNSImage( url core.NSURLRef, -) ( - r0 NSImage, -) { - ret := C.NSImage_inst_initWithContentsOfURL_( +) NSImage { + ret := C.NSImage_inst_InitByReferencingURL( unsafe.Pointer(x.Pointer()), objc.RefPointer(url), ) - r0 = NSImage_fromPointer(ret) - return + + return NSImage_FromPointer(ret) +} + +// InitWithContentsOfFile initializes and returns an image object with the contents of the specified file. +// +// See https://developer.apple.com/documentation/appkit/nsimage/1519918-initwithcontentsoffile?language=objc for details. +func (x gen_NSImage) InitWithContentsOfFile_AsNSImage( + fileName core.NSStringRef, +) NSImage { + ret := C.NSImage_inst_InitWithContentsOfFile( + unsafe.Pointer(x.Pointer()), + objc.RefPointer(fileName), + ) + + return NSImage_FromPointer(ret) +} + +// InitWithContentsOfURL initializes and returns an image object with the contents of the specified url. +// +// See https://developer.apple.com/documentation/appkit/nsimage/1519907-initwithcontentsofurl?language=objc for details. +func (x gen_NSImage) InitWithContentsOfURL_AsNSImage( + url core.NSURLRef, +) NSImage { + ret := C.NSImage_inst_InitWithContentsOfURL( + unsafe.Pointer(x.Pointer()), + objc.RefPointer(url), + ) + + return NSImage_FromPointer(ret) } -func (x gen_NSImage) InitWithData__asNSImage( +// InitWithData initializes and returns an image object using the provided image data. +// +// See https://developer.apple.com/documentation/appkit/nsimage/1519941-initwithdata?language=objc for details. +func (x gen_NSImage) InitWithData_AsNSImage( data core.NSDataRef, -) ( - r0 NSImage, -) { - ret := C.NSImage_inst_initWithData_( +) NSImage { + ret := C.NSImage_inst_InitWithData( unsafe.Pointer(x.Pointer()), objc.RefPointer(data), ) - r0 = NSImage_fromPointer(ret) - return + + return NSImage_FromPointer(ret) } -func (x gen_NSImage) InitWithDataIgnoringOrientation__asNSImage( +// InitWithDataIgnoringOrientation initializes and returns an image object using the provided image data and ignoring the exif orientation tags. +// +// See https://developer.apple.com/documentation/appkit/nsimage/1519915-initwithdataignoringorientation?language=objc for details. +func (x gen_NSImage) InitWithDataIgnoringOrientation_AsNSImage( data core.NSDataRef, -) ( - r0 NSImage, -) { - ret := C.NSImage_inst_initWithDataIgnoringOrientation_( +) NSImage { + ret := C.NSImage_inst_InitWithDataIgnoringOrientation( unsafe.Pointer(x.Pointer()), objc.RefPointer(data), ) - r0 = NSImage_fromPointer(ret) - return + + return NSImage_FromPointer(ret) } -func (x gen_NSImage) InitWithPasteboard__asNSImage( +// InitWithPasteboard initializes and returns an image object with data from the specified pasteboard. +// +// See https://developer.apple.com/documentation/appkit/nsimage/1519952-initwithpasteboard?language=objc for details. +func (x gen_NSImage) InitWithPasteboard_AsNSImage( pasteboard NSPasteboardRef, -) ( - r0 NSImage, -) { - ret := C.NSImage_inst_initWithPasteboard_( +) NSImage { + ret := C.NSImage_inst_InitWithPasteboard( unsafe.Pointer(x.Pointer()), objc.RefPointer(pasteboard), ) - r0 = NSImage_fromPointer(ret) - return + + return NSImage_FromPointer(ret) } -func (x gen_NSImage) InitWithSize__asNSImage( +// InitWithSize initializes and returns an image object with the specified dimensions. +// +// See https://developer.apple.com/documentation/appkit/nsimage/1520033-initwithsize?language=objc for details. +func (x gen_NSImage) InitWithSize_AsNSImage( size core.NSSize, -) ( - r0 NSImage, -) { - ret := C.NSImage_inst_initWithSize_( +) NSImage { + ret := C.NSImage_inst_InitWithSize( unsafe.Pointer(x.Pointer()), *(*C.NSSize)(unsafe.Pointer(&size)), ) - r0 = NSImage_fromPointer(ret) - return -} -func (x gen_NSImage) IsTemplate() ( - r0 bool, -) { - ret := C.NSImage_inst_isTemplate( - unsafe.Pointer(x.Pointer()), - ) - r0 = convertObjCBoolToGo(ret) - return + return NSImage_FromPointer(ret) } -func (x gen_NSImage) AddRepresentations_( - imageReps core.NSArrayRef, -) { - C.NSImage_inst_addRepresentations_( +// IsTemplate returns a boolean value that indicates whether the image is a template image. +// +// See https://developer.apple.com/documentation/appkit/nsimage/1807274-istemplate?language=objc for details. +func (x gen_NSImage) IsTemplate() bool { + ret := C.NSImage_inst_IsTemplate( unsafe.Pointer(x.Pointer()), - objc.RefPointer(imageReps), ) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSImage) DrawInRect_( - rect core.NSRect, -) { - C.NSImage_inst_drawInRect_( +// LayerContentsForContentsScale returns an object that may be used as the contents of a layer. +// +// See https://developer.apple.com/documentation/appkit/nsimage/1519851-layercontentsforcontentsscale?language=objc for details. +func (x gen_NSImage) LayerContentsForContentsScale( + layerContentsScale core.CGFloat, +) objc.Object { + ret := C.NSImage_inst_LayerContentsForContentsScale( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&rect)), + C.double(layerContentsScale), ) - return + + return objc.Object_FromPointer(ret) } +// LockFocus prepares the image to receive drawing commands. +// +// See https://developer.apple.com/documentation/appkit/nsimage/1519891-lockfocus?language=objc for details. func (x gen_NSImage) LockFocus() { - C.NSImage_inst_lockFocus( + C.NSImage_inst_LockFocus( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_NSImage) LockFocusFlipped_( +// LockFocusFlipped prepares the image to receive drawing commands using the specified flipped state. +// +// See https://developer.apple.com/documentation/appkit/nsimage/1519914-lockfocusflipped?language=objc for details. +func (x gen_NSImage) LockFocusFlipped( flipped bool, ) { - C.NSImage_inst_lockFocusFlipped_( + C.NSImage_inst_LockFocusFlipped( unsafe.Pointer(x.Pointer()), convertToObjCBool(flipped), ) - return -} -func (x gen_NSImage) UnlockFocus() { - C.NSImage_inst_unlockFocus( - unsafe.Pointer(x.Pointer()), - ) return } +// Recache invalidates and frees offscreen caches of all image representations. +// +// See https://developer.apple.com/documentation/appkit/nsimage/1519890-recache?language=objc for details. func (x gen_NSImage) Recache() { - C.NSImage_inst_recache( + C.NSImage_inst_Recache( unsafe.Pointer(x.Pointer()), ) - return -} -func (x gen_NSImage) CancelIncrementalLoad() { - C.NSImage_inst_cancelIncrementalLoad( - unsafe.Pointer(x.Pointer()), - ) return } -func (x gen_NSImage) LayerContentsForContentsScale_( - layerContentsScale core.CGFloat, -) ( - r0 objc.Object, -) { - ret := C.NSImage_inst_layerContentsForContentsScale_( +// RecommendedLayerContentsScale returns the recommended layer contents scale for this image. +// +// See https://developer.apple.com/documentation/appkit/nsimage/1519878-recommendedlayercontentsscale?language=objc for details. +func (x gen_NSImage) RecommendedLayerContentsScale( + preferredContentsScale core.CGFloat, +) core.CGFloat { + ret := C.NSImage_inst_RecommendedLayerContentsScale( unsafe.Pointer(x.Pointer()), - C.double(layerContentsScale), + C.double(preferredContentsScale), ) - r0 = objc.Object_fromPointer(ret) - return + + return core.CGFloat(ret) } -func (x gen_NSImage) RecommendedLayerContentsScale_( - preferredContentsScale core.CGFloat, -) ( - r0 core.CGFloat, -) { - ret := C.NSImage_inst_recommendedLayerContentsScale_( +// UnlockFocus removes the focus from the image. +// +// See https://developer.apple.com/documentation/appkit/nsimage/1519853-unlockfocus?language=objc for details. +func (x gen_NSImage) UnlockFocus() { + C.NSImage_inst_UnlockFocus( unsafe.Pointer(x.Pointer()), - C.double(preferredContentsScale), ) - r0 = core.CGFloat(ret) + return } -func (x gen_NSImage) Init_asNSImage() ( - r0 NSImage, -) { - ret := C.NSImage_inst_init( +// Init +// +// See for details. +func (x gen_NSImage) Init_AsNSImage() NSImage { + ret := C.NSImage_inst_Init( unsafe.Pointer(x.Pointer()), ) - r0 = NSImage_fromPointer(ret) - return + + return NSImage_FromPointer(ret) } -func (x gen_NSImage) Delegate() ( - r0 objc.Object, -) { - ret := C.NSImage_inst_delegate( +// Delegate returns the image’s delegate object. +// +// See https://developer.apple.com/documentation/appkit/nsimage/1519926-delegate?language=objc for details. +func (x gen_NSImage) Delegate() objc.Object { + ret := C.NSImage_inst_Delegate( unsafe.Pointer(x.Pointer()), ) - r0 = objc.Object_fromPointer(ret) - return + + return objc.Object_FromPointer(ret) } -func (x gen_NSImage) SetDelegate_( +// SetDelegate returns the image’s delegate object. +// +// See https://developer.apple.com/documentation/appkit/nsimage/1519926-delegate?language=objc for details. +func (x gen_NSImage) SetDelegate( value objc.Ref, ) { - C.NSImage_inst_setDelegate_( + C.NSImage_inst_SetDelegate( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSImage) Size() ( - r0 core.NSSize, -) { - ret := C.NSImage_inst_size( +// Size returns the size of the image. +// +// See https://developer.apple.com/documentation/appkit/nsimage/1519987-size?language=objc for details. +func (x gen_NSImage) Size() core.NSSize { + ret := C.NSImage_inst_Size( unsafe.Pointer(x.Pointer()), ) - r0 = *(*core.NSSize)(unsafe.Pointer(&ret)) - return + + return *(*core.NSSize)(unsafe.Pointer(&ret)) } -func (x gen_NSImage) SetSize_( +// SetSize returns the size of the image. +// +// See https://developer.apple.com/documentation/appkit/nsimage/1519987-size?language=objc for details. +func (x gen_NSImage) SetSize( value core.NSSize, ) { - C.NSImage_inst_setSize_( + C.NSImage_inst_SetSize( unsafe.Pointer(x.Pointer()), *(*C.NSSize)(unsafe.Pointer(&value)), ) + return } -func (x gen_NSImage) SetTemplate_( +// SetTemplate returns a boolean value that determines whether the image represents a template image. +// +// See https://developer.apple.com/documentation/appkit/nsimage/1520017-template?language=objc for details. +func (x gen_NSImage) SetTemplate( value bool, ) { - C.NSImage_inst_setTemplate_( + C.NSImage_inst_SetTemplate( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSImage) Representations() ( - r0 core.NSArray, -) { - ret := C.NSImage_inst_representations( +// Representations an array containing all of the image object’s image representations. +// +// See https://developer.apple.com/documentation/appkit/nsimage/1519858-representations?language=objc for details. +func (x gen_NSImage) Representations() core.NSArray { + ret := C.NSImage_inst_Representations( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSArray_fromPointer(ret) - return + + return core.NSArray_FromPointer(ret) } -func (x gen_NSImage) PrefersColorMatch() ( - r0 bool, -) { - ret := C.NSImage_inst_prefersColorMatch( +// PrefersColorMatch returns a boolean value that indicates whether the image prefers to choose image representations using color-matching or resolution-matching. +// +// See https://developer.apple.com/documentation/appkit/nsimage/1520010-preferscolormatch?language=objc for details. +func (x gen_NSImage) PrefersColorMatch() bool { + ret := C.NSImage_inst_PrefersColorMatch( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSImage) SetPrefersColorMatch_( +// SetPrefersColorMatch returns a boolean value that indicates whether the image prefers to choose image representations using color-matching or resolution-matching. +// +// See https://developer.apple.com/documentation/appkit/nsimage/1520010-preferscolormatch?language=objc for details. +func (x gen_NSImage) SetPrefersColorMatch( value bool, ) { - C.NSImage_inst_setPrefersColorMatch_( + C.NSImage_inst_SetPrefersColorMatch( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSImage) UsesEPSOnResolutionMismatch() ( - r0 bool, -) { - ret := C.NSImage_inst_usesEPSOnResolutionMismatch( +// UsesEPSOnResolutionMismatch returns a boolean value that indicates whether eps representations are preferred when no other representations match the resolution of the device. +// +// See https://developer.apple.com/documentation/appkit/nsimage/1519868-usesepsonresolutionmismatch?language=objc for details. +func (x gen_NSImage) UsesEPSOnResolutionMismatch() bool { + ret := C.NSImage_inst_UsesEPSOnResolutionMismatch( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSImage) SetUsesEPSOnResolutionMismatch_( +// SetUsesEPSOnResolutionMismatch returns a boolean value that indicates whether eps representations are preferred when no other representations match the resolution of the device. +// +// See https://developer.apple.com/documentation/appkit/nsimage/1519868-usesepsonresolutionmismatch?language=objc for details. +func (x gen_NSImage) SetUsesEPSOnResolutionMismatch( value bool, ) { - C.NSImage_inst_setUsesEPSOnResolutionMismatch_( + C.NSImage_inst_SetUsesEPSOnResolutionMismatch( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSImage) MatchesOnMultipleResolution() ( - r0 bool, -) { - ret := C.NSImage_inst_matchesOnMultipleResolution( +// MatchesOnMultipleResolution returns a boolean value that indicates whether image representations whose resolution is an integral multiple of the device resolution are a match. +// +// See https://developer.apple.com/documentation/appkit/nsimage/1519963-matchesonmultipleresolution?language=objc for details. +func (x gen_NSImage) MatchesOnMultipleResolution() bool { + ret := C.NSImage_inst_MatchesOnMultipleResolution( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSImage) SetMatchesOnMultipleResolution_( +// SetMatchesOnMultipleResolution returns a boolean value that indicates whether image representations whose resolution is an integral multiple of the device resolution are a match. +// +// See https://developer.apple.com/documentation/appkit/nsimage/1519963-matchesonmultipleresolution?language=objc for details. +func (x gen_NSImage) SetMatchesOnMultipleResolution( value bool, ) { - C.NSImage_inst_setMatchesOnMultipleResolution_( + C.NSImage_inst_SetMatchesOnMultipleResolution( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSImage) IsValid() ( - r0 bool, -) { - ret := C.NSImage_inst_isValid( +// IsValid returns a boolean value that indicates whether it is possible to draw an image representation. +// +// See https://developer.apple.com/documentation/appkit/nsimage/1519991-valid?language=objc for details. +func (x gen_NSImage) IsValid() bool { + ret := C.NSImage_inst_IsValid( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSImage) BackgroundColor() ( - r0 NSColor, -) { - ret := C.NSImage_inst_backgroundColor( +// BackgroundColor returns the background color for the image. +// +// See https://developer.apple.com/documentation/appkit/nsimage/1520059-backgroundcolor?language=objc for details. +func (x gen_NSImage) BackgroundColor() NSColor { + ret := C.NSImage_inst_BackgroundColor( unsafe.Pointer(x.Pointer()), ) - r0 = NSColor_fromPointer(ret) - return + + return NSColor_FromPointer(ret) } -func (x gen_NSImage) SetBackgroundColor_( +// SetBackgroundColor returns the background color for the image. +// +// See https://developer.apple.com/documentation/appkit/nsimage/1520059-backgroundcolor?language=objc for details. +func (x gen_NSImage) SetBackgroundColor( value NSColorRef, ) { - C.NSImage_inst_setBackgroundColor_( + C.NSImage_inst_SetBackgroundColor( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSImage) AlignmentRect() ( - r0 core.NSRect, -) { - ret := C.NSImage_inst_alignmentRect( +// AlignmentRect returns a rectangle that you can use to position the image during layout. +// +// See https://developer.apple.com/documentation/appkit/nsimage/1519905-alignmentrect?language=objc for details. +func (x gen_NSImage) AlignmentRect() core.NSRect { + ret := C.NSImage_inst_AlignmentRect( unsafe.Pointer(x.Pointer()), ) - r0 = *(*core.NSRect)(unsafe.Pointer(&ret)) - return + + return *(*core.NSRect)(unsafe.Pointer(&ret)) } -func (x gen_NSImage) SetAlignmentRect_( +// SetAlignmentRect returns a rectangle that you can use to position the image during layout. +// +// See https://developer.apple.com/documentation/appkit/nsimage/1519905-alignmentrect?language=objc for details. +func (x gen_NSImage) SetAlignmentRect( value core.NSRect, ) { - C.NSImage_inst_setAlignmentRect_( + C.NSImage_inst_SetAlignmentRect( unsafe.Pointer(x.Pointer()), *(*C.NSRect)(unsafe.Pointer(&value)), ) + return } -func (x gen_NSImage) TIFFRepresentation() ( - r0 core.NSData, -) { +// TIFFRepresentation returns a data object containing tiff data for all of the image representations in the image. +// +// See https://developer.apple.com/documentation/appkit/nsimage/1519841-tiffrepresentation?language=objc for details. +func (x gen_NSImage) TIFFRepresentation() core.NSData { ret := C.NSImage_inst_TIFFRepresentation( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSData_fromPointer(ret) - return + + return core.NSData_FromPointer(ret) } -func (x gen_NSImage) AccessibilityDescription() ( - r0 core.NSString, -) { - ret := C.NSImage_inst_accessibilityDescription( +// AccessibilityDescription returns the image’s accessibility description. +// +// See https://developer.apple.com/documentation/appkit/nsimage/1519943-accessibilitydescription?language=objc for details. +func (x gen_NSImage) AccessibilityDescription() core.NSString { + ret := C.NSImage_inst_AccessibilityDescription( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_NSImage) SetAccessibilityDescription_( +// SetAccessibilityDescription returns the image’s accessibility description. +// +// See https://developer.apple.com/documentation/appkit/nsimage/1519943-accessibilitydescription?language=objc for details. +func (x gen_NSImage) SetAccessibilityDescription( value core.NSStringRef, ) { - C.NSImage_inst_setAccessibilityDescription_( + C.NSImage_inst_SetAccessibilityDescription( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSImage) MatchesOnlyOnBestFittingAxis() ( - r0 bool, -) { - ret := C.NSImage_inst_matchesOnlyOnBestFittingAxis( +// MatchesOnlyOnBestFittingAxis returns a boolean value that indicates whether the image matches only on the best fitting axis. +// +// See https://developer.apple.com/documentation/appkit/nsimage/1519848-matchesonlyonbestfittingaxis?language=objc for details. +func (x gen_NSImage) MatchesOnlyOnBestFittingAxis() bool { + ret := C.NSImage_inst_MatchesOnlyOnBestFittingAxis( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSImage) SetMatchesOnlyOnBestFittingAxis_( +// SetMatchesOnlyOnBestFittingAxis returns a boolean value that indicates whether the image matches only on the best fitting axis. +// +// See https://developer.apple.com/documentation/appkit/nsimage/1519848-matchesonlyonbestfittingaxis?language=objc for details. +func (x gen_NSImage) SetMatchesOnlyOnBestFittingAxis( value bool, ) { - C.NSImage_inst_setMatchesOnlyOnBestFittingAxis_( + C.NSImage_inst_SetMatchesOnlyOnBestFittingAxis( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } type NSImageViewRef interface { Pointer() uintptr - Init_asNSImageView() NSImageView + Init_AsNSImageView() NSImageView } type gen_NSImageView struct { NSControl } -func NSImageView_fromPointer(ptr unsafe.Pointer) NSImageView { +func NSImageView_FromPointer(ptr unsafe.Pointer) NSImageView { return NSImageView{gen_NSImageView{ - NSControl_fromPointer(ptr), + NSControl_FromPointer(ptr), }} } -func NSImageView_fromRef(ref objc.Ref) NSImageView { - return NSImageView_fromPointer(unsafe.Pointer(ref.Pointer())) +func NSImageView_FromRef(ref objc.Ref) NSImageView { + return NSImageView_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_NSImageView) Init_asNSImageView() ( - r0 NSImageView, -) { - ret := C.NSImageView_inst_init( +// Init +// +// See for details. +func (x gen_NSImageView) Init_AsNSImageView() NSImageView { + ret := C.NSImageView_inst_Init( unsafe.Pointer(x.Pointer()), ) - r0 = NSImageView_fromPointer(ret) - return + + return NSImageView_FromPointer(ret) } -func (x gen_NSImageView) Image() ( - r0 NSImage, -) { - ret := C.NSImageView_inst_image( +// Image returns the image displayed by the image view. +// +// See https://developer.apple.com/documentation/appkit/nsimageview/1404952-image?language=objc for details. +func (x gen_NSImageView) Image() NSImage { + ret := C.NSImageView_inst_Image( unsafe.Pointer(x.Pointer()), ) - r0 = NSImage_fromPointer(ret) - return + + return NSImage_FromPointer(ret) } -func (x gen_NSImageView) SetImage_( +// SetImage returns the image displayed by the image view. +// +// See https://developer.apple.com/documentation/appkit/nsimageview/1404952-image?language=objc for details. +func (x gen_NSImageView) SetImage( value NSImageRef, ) { - C.NSImageView_inst_setImage_( + C.NSImageView_inst_SetImage( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSImageView) Animates() ( - r0 bool, -) { - ret := C.NSImageView_inst_animates( +// Animates returns a boolean value indicating whether the image view automatically plays animated images. +// +// See https://developer.apple.com/documentation/appkit/nsimageview/1404950-animates?language=objc for details. +func (x gen_NSImageView) Animates() bool { + ret := C.NSImageView_inst_Animates( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSImageView) SetAnimates_( +// SetAnimates returns a boolean value indicating whether the image view automatically plays animated images. +// +// See https://developer.apple.com/documentation/appkit/nsimageview/1404950-animates?language=objc for details. +func (x gen_NSImageView) SetAnimates( value bool, ) { - C.NSImageView_inst_setAnimates_( + C.NSImageView_inst_SetAnimates( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSImageView) IsEditable() ( - r0 bool, -) { - ret := C.NSImageView_inst_isEditable( +// IsEditable returns a boolean value indicating whether the user can drag a new image into the image view. +// +// See https://developer.apple.com/documentation/appkit/nsimageview/1404954-editable?language=objc for details. +func (x gen_NSImageView) IsEditable() bool { + ret := C.NSImageView_inst_IsEditable( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSImageView) SetEditable_( +// SetEditable returns a boolean value indicating whether the user can drag a new image into the image view. +// +// See https://developer.apple.com/documentation/appkit/nsimageview/1404954-editable?language=objc for details. +func (x gen_NSImageView) SetEditable( value bool, ) { - C.NSImageView_inst_setEditable_( + C.NSImageView_inst_SetEditable( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSImageView) AllowsCutCopyPaste() ( - r0 bool, -) { - ret := C.NSImageView_inst_allowsCutCopyPaste( +// AllowsCutCopyPaste returns a boolean value indicating whether the image view lets the user cut, copy, and paste the image contents. +// +// See https://developer.apple.com/documentation/appkit/nsimageview/1404961-allowscutcopypaste?language=objc for details. +func (x gen_NSImageView) AllowsCutCopyPaste() bool { + ret := C.NSImageView_inst_AllowsCutCopyPaste( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSImageView) SetAllowsCutCopyPaste_( +// SetAllowsCutCopyPaste returns a boolean value indicating whether the image view lets the user cut, copy, and paste the image contents. +// +// See https://developer.apple.com/documentation/appkit/nsimageview/1404961-allowscutcopypaste?language=objc for details. +func (x gen_NSImageView) SetAllowsCutCopyPaste( value bool, ) { - C.NSImageView_inst_setAllowsCutCopyPaste_( + C.NSImageView_inst_SetAllowsCutCopyPaste( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSImageView) ContentTintColor() ( - r0 NSColor, -) { - ret := C.NSImageView_inst_contentTintColor( +// ContentTintColor +// +// See https://developer.apple.com/documentation/appkit/nsimageview/3000783-contenttintcolor?language=objc for details. +func (x gen_NSImageView) ContentTintColor() NSColor { + ret := C.NSImageView_inst_ContentTintColor( unsafe.Pointer(x.Pointer()), ) - r0 = NSColor_fromPointer(ret) - return + + return NSColor_FromPointer(ret) } -func (x gen_NSImageView) SetContentTintColor_( +// SetContentTintColor +// +// See https://developer.apple.com/documentation/appkit/nsimageview/3000783-contenttintcolor?language=objc for details. +func (x gen_NSImageView) SetContentTintColor( value NSColorRef, ) { - C.NSImageView_inst_setContentTintColor_( + C.NSImageView_inst_SetContentTintColor( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } type NSNibRef interface { Pointer() uintptr - Init_asNSNib() NSNib + Init_AsNSNib() NSNib } type gen_NSNib struct { objc.Object } -func NSNib_fromPointer(ptr unsafe.Pointer) NSNib { +func NSNib_FromPointer(ptr unsafe.Pointer) NSNib { return NSNib{gen_NSNib{ - objc.Object_fromPointer(ptr), + objc.Object_FromPointer(ptr), }} } -func NSNib_fromRef(ref objc.Ref) NSNib { - return NSNib_fromPointer(unsafe.Pointer(ref.Pointer())) +func NSNib_FromRef(ref objc.Ref) NSNib { + return NSNib_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_NSNib) InitWithNibData_bundle__asNSNib( +// InitWithNibDataBundle initializes an instance with nib data and specified bundle for locating resources. +// +// See https://developer.apple.com/documentation/appkit/nsnib/1535865-initwithnibdata?language=objc for details. +func (x gen_NSNib) InitWithNibDataBundle_AsNSNib( nibData core.NSDataRef, bundle NSBundleRef, -) ( - r0 NSNib, -) { - ret := C.NSNib_inst_initWithNibData_bundle_( +) NSNib { + ret := C.NSNib_inst_InitWithNibDataBundle( unsafe.Pointer(x.Pointer()), objc.RefPointer(nibData), objc.RefPointer(bundle), ) - r0 = NSNib_fromPointer(ret) - return + + return NSNib_FromPointer(ret) } -func (x gen_NSNib) InstantiateWithOwner_topLevelObjects_( +// InstantiateWithOwnerTopLevelObjects instantiates objects in the nib file with the specified owner. +// +// See https://developer.apple.com/documentation/appkit/nsnib/1527173-instantiatewithowner?language=objc for details. +func (x gen_NSNib) InstantiateWithOwnerTopLevelObjects( owner objc.Ref, topLevelObjects core.NSArrayRef, -) ( - r0 bool, -) { - ret := C.NSNib_inst_instantiateWithOwner_topLevelObjects_( +) bool { + ret := C.NSNib_inst_InstantiateWithOwnerTopLevelObjects( unsafe.Pointer(x.Pointer()), objc.RefPointer(owner), objc.RefPointer(topLevelObjects), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSNib) Init_asNSNib() ( - r0 NSNib, -) { - ret := C.NSNib_inst_init( +// Init +// +// See for details. +func (x gen_NSNib) Init_AsNSNib() NSNib { + ret := C.NSNib_inst_Init( unsafe.Pointer(x.Pointer()), ) - r0 = NSNib_fromPointer(ret) - return + + return NSNib_FromPointer(ret) } type NSPasteboardRef interface { Pointer() uintptr - Init_asNSPasteboard() NSPasteboard + Init_AsNSPasteboard() NSPasteboard } type gen_NSPasteboard struct { objc.Object } -func NSPasteboard_fromPointer(ptr unsafe.Pointer) NSPasteboard { +func NSPasteboard_FromPointer(ptr unsafe.Pointer) NSPasteboard { return NSPasteboard{gen_NSPasteboard{ - objc.Object_fromPointer(ptr), + objc.Object_FromPointer(ptr), }} } -func NSPasteboard_fromRef(ref objc.Ref) NSPasteboard { - return NSPasteboard_fromPointer(unsafe.Pointer(ref.Pointer())) +func NSPasteboard_FromRef(ref objc.Ref) NSPasteboard { + return NSPasteboard_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_NSPasteboard) ReleaseGlobally() { - C.NSPasteboard_inst_releaseGlobally( +// AddTypesOwner adds promises for the specified types to the first pasteboard item. +// +// See https://developer.apple.com/documentation/appkit/nspasteboard/1533580-addtypes?language=objc for details. +func (x gen_NSPasteboard) AddTypesOwner( + newTypes core.NSArrayRef, + newOwner objc.Ref, +) core.NSInteger { + ret := C.NSPasteboard_inst_AddTypesOwner( unsafe.Pointer(x.Pointer()), + objc.RefPointer(newTypes), + objc.RefPointer(newOwner), ) - return -} -func (x gen_NSPasteboard) ClearContents() ( - r0 core.NSInteger, -) { - ret := C.NSPasteboard_inst_clearContents( - unsafe.Pointer(x.Pointer()), - ) - r0 = core.NSInteger(ret) - return + return core.NSInteger(ret) } -func (x gen_NSPasteboard) WriteObjects_( - objects core.NSArrayRef, -) ( - r0 bool, -) { - ret := C.NSPasteboard_inst_writeObjects_( +// CanReadItemWithDataConformingToTypes returns a boolean value that indicates whether the receiver contains any items that conform to the specified utis. +// +// See https://developer.apple.com/documentation/appkit/nspasteboard/1533576-canreaditemwithdataconformingtot?language=objc for details. +func (x gen_NSPasteboard) CanReadItemWithDataConformingToTypes( + types core.NSArrayRef, +) bool { + ret := C.NSPasteboard_inst_CanReadItemWithDataConformingToTypes( unsafe.Pointer(x.Pointer()), - objc.RefPointer(objects), + objc.RefPointer(types), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSPasteboard) ReadObjectsForClasses_options_( +// CanReadObjectForClassesOptions returns a boolean value that indicates whether the receiver contains any items that can be represented as an instance of any class in a given array. +// +// See https://developer.apple.com/documentation/appkit/nspasteboard/1533360-canreadobjectforclasses?language=objc for details. +func (x gen_NSPasteboard) CanReadObjectForClassesOptions( classArray core.NSArrayRef, options core.NSDictionaryRef, -) ( - r0 core.NSArray, -) { - ret := C.NSPasteboard_inst_readObjectsForClasses_options_( +) bool { + ret := C.NSPasteboard_inst_CanReadObjectForClassesOptions( unsafe.Pointer(x.Pointer()), objc.RefPointer(classArray), objc.RefPointer(options), ) - r0 = core.NSArray_fromPointer(ret) - return -} -func (x gen_NSPasteboard) CanReadItemWithDataConformingToTypes_( - types core.NSArrayRef, -) ( - r0 bool, -) { - ret := C.NSPasteboard_inst_canReadItemWithDataConformingToTypes_( - unsafe.Pointer(x.Pointer()), - objc.RefPointer(types), - ) - r0 = convertObjCBoolToGo(ret) - return + return convertObjCBoolToGo(ret) } -func (x gen_NSPasteboard) CanReadObjectForClasses_options_( - classArray core.NSArrayRef, - options core.NSDictionaryRef, -) ( - r0 bool, -) { - ret := C.NSPasteboard_inst_canReadObjectForClasses_options_( +// ClearContents clears the existing contents of the pasteboard. +// +// See https://developer.apple.com/documentation/appkit/nspasteboard/1533599-clearcontents?language=objc for details. +func (x gen_NSPasteboard) ClearContents() core.NSInteger { + ret := C.NSPasteboard_inst_ClearContents( unsafe.Pointer(x.Pointer()), - objc.RefPointer(classArray), - objc.RefPointer(options), ) - r0 = convertObjCBoolToGo(ret) - return + + return core.NSInteger(ret) } -func (x gen_NSPasteboard) DeclareTypes_owner_( +// DeclareTypesOwner prepares the receiver for a change in its contents by declaring the new types of data it will contain and a new owner. +// +// See https://developer.apple.com/documentation/appkit/nspasteboard/1533561-declaretypes?language=objc for details. +func (x gen_NSPasteboard) DeclareTypesOwner( newTypes core.NSArrayRef, newOwner objc.Ref, -) ( - r0 core.NSInteger, -) { - ret := C.NSPasteboard_inst_declareTypes_owner_( +) core.NSInteger { + ret := C.NSPasteboard_inst_DeclareTypesOwner( unsafe.Pointer(x.Pointer()), objc.RefPointer(newTypes), objc.RefPointer(newOwner), ) - r0 = core.NSInteger(ret) - return + + return core.NSInteger(ret) } -func (x gen_NSPasteboard) AddTypes_owner_( - newTypes core.NSArrayRef, - newOwner objc.Ref, -) ( - r0 core.NSInteger, -) { - ret := C.NSPasteboard_inst_addTypes_owner_( +// ReadObjectsForClassesOptions reads from the receiver objects that best match the specified array of classes. +// +// See https://developer.apple.com/documentation/appkit/nspasteboard/1524454-readobjectsforclasses?language=objc for details. +func (x gen_NSPasteboard) ReadObjectsForClassesOptions( + classArray core.NSArrayRef, + options core.NSDictionaryRef, +) core.NSArray { + ret := C.NSPasteboard_inst_ReadObjectsForClassesOptions( unsafe.Pointer(x.Pointer()), - objc.RefPointer(newTypes), - objc.RefPointer(newOwner), + objc.RefPointer(classArray), + objc.RefPointer(options), ) - r0 = core.NSInteger(ret) - return + + return core.NSArray_FromPointer(ret) } -func (x gen_NSPasteboard) WriteFileContents_( - filename core.NSStringRef, -) ( - r0 bool, -) { - ret := C.NSPasteboard_inst_writeFileContents_( +// ReleaseGlobally releases the receiver’s resources in the pasteboard server. +// +// See https://developer.apple.com/documentation/appkit/nspasteboard/1527044-releaseglobally?language=objc for details. +func (x gen_NSPasteboard) ReleaseGlobally() { + C.NSPasteboard_inst_ReleaseGlobally( unsafe.Pointer(x.Pointer()), - objc.RefPointer(filename), ) - r0 = convertObjCBoolToGo(ret) + return } -func (x gen_NSPasteboard) Init_asNSPasteboard() ( - r0 NSPasteboard, -) { - ret := C.NSPasteboard_inst_init( +// WriteFileContents writes the contents of the specified file to the pasteboard. +// +// See https://developer.apple.com/documentation/appkit/nspasteboard/1531224-writefilecontents?language=objc for details. +func (x gen_NSPasteboard) WriteFileContents( + filename core.NSStringRef, +) bool { + ret := C.NSPasteboard_inst_WriteFileContents( unsafe.Pointer(x.Pointer()), + objc.RefPointer(filename), ) - r0 = NSPasteboard_fromPointer(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSPasteboard) PasteboardItems() ( - r0 core.NSArray, -) { - ret := C.NSPasteboard_inst_pasteboardItems( +// WriteObjects writes an array of objects to the receiver. +// +// See https://developer.apple.com/documentation/appkit/nspasteboard/1525945-writeobjects?language=objc for details. +func (x gen_NSPasteboard) WriteObjects( + objects core.NSArrayRef, +) bool { + ret := C.NSPasteboard_inst_WriteObjects( unsafe.Pointer(x.Pointer()), + objc.RefPointer(objects), ) - r0 = core.NSArray_fromPointer(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSPasteboard) Types() ( - r0 core.NSArray, -) { - ret := C.NSPasteboard_inst_types( +// Init +// +// See for details. +func (x gen_NSPasteboard) Init_AsNSPasteboard() NSPasteboard { + ret := C.NSPasteboard_inst_Init( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSArray_fromPointer(ret) - return + + return NSPasteboard_FromPointer(ret) } -func (x gen_NSPasteboard) ChangeCount() ( - r0 core.NSInteger, -) { - ret := C.NSPasteboard_inst_changeCount( +// PasteboardItems an array that contains all the items held by the pasteboard. +// +// See https://developer.apple.com/documentation/appkit/nspasteboard/1529995-pasteboarditems?language=objc for details. +func (x gen_NSPasteboard) PasteboardItems() core.NSArray { + ret := C.NSPasteboard_inst_PasteboardItems( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSInteger(ret) - return + + return core.NSArray_FromPointer(ret) +} + +// Types an array of the receiver’s supported data types. +// +// See https://developer.apple.com/documentation/appkit/nspasteboard/1529599-types?language=objc for details. +func (x gen_NSPasteboard) Types() core.NSArray { + ret := C.NSPasteboard_inst_Types( + unsafe.Pointer(x.Pointer()), + ) + + return core.NSArray_FromPointer(ret) +} + +// ChangeCount returns the receiver’s change count. +// +// See https://developer.apple.com/documentation/appkit/nspasteboard/1533544-changecount?language=objc for details. +func (x gen_NSPasteboard) ChangeCount() core.NSInteger { + ret := C.NSPasteboard_inst_ChangeCount( + unsafe.Pointer(x.Pointer()), + ) + + return core.NSInteger(ret) } type NSLayoutManagerRef interface { Pointer() uintptr - Init_asNSLayoutManager() NSLayoutManager + Init_AsNSLayoutManager() NSLayoutManager } type gen_NSLayoutManager struct { objc.Object } -func NSLayoutManager_fromPointer(ptr unsafe.Pointer) NSLayoutManager { +func NSLayoutManager_FromPointer(ptr unsafe.Pointer) NSLayoutManager { return NSLayoutManager{gen_NSLayoutManager{ - objc.Object_fromPointer(ptr), + objc.Object_FromPointer(ptr), }} } -func NSLayoutManager_fromRef(ref objc.Ref) NSLayoutManager { - return NSLayoutManager_fromPointer(unsafe.Pointer(ref.Pointer())) -} - -func (x gen_NSLayoutManager) Init_asNSLayoutManager() ( - r0 NSLayoutManager, -) { - ret := C.NSLayoutManager_inst_init( - unsafe.Pointer(x.Pointer()), - ) - r0 = NSLayoutManager_fromPointer(ret) - return +func NSLayoutManager_FromRef(ref objc.Ref) NSLayoutManager { + return NSLayoutManager_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_NSLayoutManager) AddTextContainer_( +// AddTextContainer appends the specified text container to the series of text containers where the layout manager arranges text. +// +// See https://developer.apple.com/documentation/uikit/nslayoutmanager/1402946-addtextcontainer?language=objc for details. +func (x gen_NSLayoutManager) AddTextContainer( container NSTextContainerRef, ) { - C.NSLayoutManager_inst_addTextContainer_( + C.NSLayoutManager_inst_AddTextContainer( unsafe.Pointer(x.Pointer()), objc.RefPointer(container), ) + return } -func (x gen_NSLayoutManager) InsertTextContainer_atIndex_( - container NSTextContainerRef, - index core.NSUInteger, -) { - C.NSLayoutManager_inst_insertTextContainer_atIndex_( +// AttachmentSizeForGlyphAtIndex returns the size of the attachment glyph at the specified index. +// +// See https://developer.apple.com/documentation/uikit/nslayoutmanager/1403099-attachmentsizeforglyphatindex?language=objc for details. +func (x gen_NSLayoutManager) AttachmentSizeForGlyphAtIndex( + glyphIndex core.NSUInteger, +) core.NSSize { + ret := C.NSLayoutManager_inst_AttachmentSizeForGlyphAtIndex( unsafe.Pointer(x.Pointer()), - objc.RefPointer(container), - C.ulong(index), + C.ulong(glyphIndex), ) - return + + return *(*core.NSSize)(unsafe.Pointer(&ret)) } -func (x gen_NSLayoutManager) RemoveTextContainerAtIndex_( - index core.NSUInteger, -) { - C.NSLayoutManager_inst_removeTextContainerAtIndex_( +// CharacterIndexForGlyphAtIndex returns the index in the text storage for the first character of the specified glyph. +// +// See https://developer.apple.com/documentation/uikit/nslayoutmanager/1402944-characterindexforglyphatindex?language=objc for details. +func (x gen_NSLayoutManager) CharacterIndexForGlyphAtIndex( + glyphIndex core.NSUInteger, +) core.NSUInteger { + ret := C.NSLayoutManager_inst_CharacterIndexForGlyphAtIndex( unsafe.Pointer(x.Pointer()), - C.ulong(index), + C.ulong(glyphIndex), ) - return + + return core.NSUInteger(ret) } -func (x gen_NSLayoutManager) TextContainerChangedGeometry_( - container NSTextContainerRef, -) { - C.NSLayoutManager_inst_textContainerChangedGeometry_( +// DefaultBaselineOffsetForFont returns the default baseline offset that the layout manager's typesetter uses for the specified font. +// +// See https://developer.apple.com/documentation/appkit/nslayoutmanager/1403058-defaultbaselineoffsetforfont?language=objc for details. +func (x gen_NSLayoutManager) DefaultBaselineOffsetForFont( + theFont NSFontRef, +) core.CGFloat { + ret := C.NSLayoutManager_inst_DefaultBaselineOffsetForFont( unsafe.Pointer(x.Pointer()), - objc.RefPointer(container), + objc.RefPointer(theFont), ) - return + + return core.CGFloat(ret) } -func (x gen_NSLayoutManager) TextContainerChangedTextView_( - container NSTextContainerRef, -) { - C.NSLayoutManager_inst_textContainerChangedTextView_( +// DefaultLineHeightForFont returns the default line height for a line of text that uses a specified font. +// +// See https://developer.apple.com/documentation/appkit/nslayoutmanager/1403007-defaultlineheightforfont?language=objc for details. +func (x gen_NSLayoutManager) DefaultLineHeightForFont( + theFont NSFontRef, +) core.CGFloat { + ret := C.NSLayoutManager_inst_DefaultLineHeightForFont( unsafe.Pointer(x.Pointer()), - objc.RefPointer(container), + objc.RefPointer(theFont), ) - return + + return core.CGFloat(ret) } -func (x gen_NSLayoutManager) UsedRectForTextContainer_( - container NSTextContainerRef, -) ( - r0 core.NSRect, -) { - ret := C.NSLayoutManager_inst_usedRectForTextContainer_( +// DrawsOutsideLineFragmentForGlyphAtIndex indicates whether the glyph draws outside its line fragment rectangle. +// +// See https://developer.apple.com/documentation/uikit/nslayoutmanager/1403003-drawsoutsidelinefragmentforglyph?language=objc for details. +func (x gen_NSLayoutManager) DrawsOutsideLineFragmentForGlyphAtIndex( + glyphIndex core.NSUInteger, +) bool { + ret := C.NSLayoutManager_inst_DrawsOutsideLineFragmentForGlyphAtIndex( unsafe.Pointer(x.Pointer()), - objc.RefPointer(container), + C.ulong(glyphIndex), ) - r0 = *(*core.NSRect)(unsafe.Pointer(&ret)) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSLayoutManager) EnsureLayoutForBoundingRect_inTextContainer_( +// EnsureLayoutForBoundingRectInTextContainer forces the layout manager to perform layout for the specified area in the specified text container if it hasn’t already. +// +// See https://developer.apple.com/documentation/uikit/nslayoutmanager/1402962-ensurelayoutforboundingrect?language=objc for details. +func (x gen_NSLayoutManager) EnsureLayoutForBoundingRectInTextContainer( bounds core.NSRect, container NSTextContainerRef, ) { - C.NSLayoutManager_inst_ensureLayoutForBoundingRect_inTextContainer_( + C.NSLayoutManager_inst_EnsureLayoutForBoundingRectInTextContainer( unsafe.Pointer(x.Pointer()), *(*C.NSRect)(unsafe.Pointer(&bounds)), objc.RefPointer(container), ) + return } -func (x gen_NSLayoutManager) EnsureLayoutForTextContainer_( +// EnsureLayoutForTextContainer forces the layout manager to perform layout for the specified text container if it hasn’t already. +// +// See https://developer.apple.com/documentation/uikit/nslayoutmanager/1402967-ensurelayoutfortextcontainer?language=objc for details. +func (x gen_NSLayoutManager) EnsureLayoutForTextContainer( container NSTextContainerRef, ) { - C.NSLayoutManager_inst_ensureLayoutForTextContainer_( + C.NSLayoutManager_inst_EnsureLayoutForTextContainer( unsafe.Pointer(x.Pointer()), objc.RefPointer(container), ) + return } -func (x gen_NSLayoutManager) CharacterIndexForGlyphAtIndex_( - glyphIndex core.NSUInteger, -) ( - r0 core.NSUInteger, -) { - ret := C.NSLayoutManager_inst_characterIndexForGlyphAtIndex_( +// FirstUnlaidCharacterIndex returns the index for the first character in the layout manager that isn’t in the layout. +// +// See https://developer.apple.com/documentation/uikit/nslayoutmanager/1403067-firstunlaidcharacterindex?language=objc for details. +func (x gen_NSLayoutManager) FirstUnlaidCharacterIndex() core.NSUInteger { + ret := C.NSLayoutManager_inst_FirstUnlaidCharacterIndex( unsafe.Pointer(x.Pointer()), - C.ulong(glyphIndex), ) - r0 = core.NSUInteger(ret) - return + + return core.NSUInteger(ret) } -func (x gen_NSLayoutManager) GlyphIndexForCharacterAtIndex_( - charIndex core.NSUInteger, -) ( - r0 core.NSUInteger, -) { - ret := C.NSLayoutManager_inst_glyphIndexForCharacterAtIndex_( +// FirstUnlaidGlyphIndex returns the index for the first glyph in the layout manager that isn’t in the layout. +// +// See https://developer.apple.com/documentation/uikit/nslayoutmanager/1403245-firstunlaidglyphindex?language=objc for details. +func (x gen_NSLayoutManager) FirstUnlaidGlyphIndex() core.NSUInteger { + ret := C.NSLayoutManager_inst_FirstUnlaidGlyphIndex( unsafe.Pointer(x.Pointer()), - C.ulong(charIndex), ) - r0 = core.NSUInteger(ret) - return + + return core.NSUInteger(ret) } -func (x gen_NSLayoutManager) IsValidGlyphIndex_( - glyphIndex core.NSUInteger, -) ( - r0 bool, -) { - ret := C.NSLayoutManager_inst_isValidGlyphIndex_( +// GlyphIndexForCharacterAtIndex returns the index of the first glyph of the character at the specified index. +// +// See https://developer.apple.com/documentation/uikit/nslayoutmanager/1403001-glyphindexforcharacteratindex?language=objc for details. +func (x gen_NSLayoutManager) GlyphIndexForCharacterAtIndex( + charIndex core.NSUInteger, +) core.NSUInteger { + ret := C.NSLayoutManager_inst_GlyphIndexForCharacterAtIndex( unsafe.Pointer(x.Pointer()), - C.ulong(glyphIndex), + C.ulong(charIndex), ) - r0 = convertObjCBoolToGo(ret) - return + + return core.NSUInteger(ret) } -func (x gen_NSLayoutManager) SetDrawsOutsideLineFragment_forGlyphAtIndex_( - flag bool, - glyphIndex core.NSUInteger, -) { - C.NSLayoutManager_inst_setDrawsOutsideLineFragment_forGlyphAtIndex_( +// Init initializes a newly created layout manager object. +// +// See https://developer.apple.com/documentation/uikit/nslayoutmanager/1402975-init?language=objc for details. +func (x gen_NSLayoutManager) Init_AsNSLayoutManager() NSLayoutManager { + ret := C.NSLayoutManager_inst_Init( unsafe.Pointer(x.Pointer()), - convertToObjCBool(flag), - C.ulong(glyphIndex), ) - return + + return NSLayoutManager_FromPointer(ret) } -func (x gen_NSLayoutManager) SetExtraLineFragmentRect_usedRect_textContainer_( - fragmentRect core.NSRect, - usedRect core.NSRect, +// InsertTextContainerAtIndex inserts a text container at the specified index in the list of text containers. +// +// See https://developer.apple.com/documentation/uikit/nslayoutmanager/1403010-inserttextcontainer?language=objc for details. +func (x gen_NSLayoutManager) InsertTextContainerAtIndex( container NSTextContainerRef, + index core.NSUInteger, ) { - C.NSLayoutManager_inst_setExtraLineFragmentRect_usedRect_textContainer_( + C.NSLayoutManager_inst_InsertTextContainerAtIndex( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&fragmentRect)), - *(*C.NSRect)(unsafe.Pointer(&usedRect)), objc.RefPointer(container), + C.ulong(index), ) + return } -func (x gen_NSLayoutManager) SetNotShownAttribute_forGlyphAtIndex_( - flag bool, +// IsValidGlyphIndex indicates whether the specified index refers to a valid glyph. +// +// See https://developer.apple.com/documentation/uikit/nslayoutmanager/1402950-isvalidglyphindex?language=objc for details. +func (x gen_NSLayoutManager) IsValidGlyphIndex( glyphIndex core.NSUInteger, -) { - C.NSLayoutManager_inst_setNotShownAttribute_forGlyphAtIndex_( +) bool { + ret := C.NSLayoutManager_inst_IsValidGlyphIndex( unsafe.Pointer(x.Pointer()), - convertToObjCBool(flag), C.ulong(glyphIndex), ) - return + + return convertObjCBoolToGo(ret) +} + +// LayoutManagerOwnsFirstResponderInWindow indicates whether the first responder in the specified window is a text view for the layout manager. +// +// See https://developer.apple.com/documentation/appkit/nslayoutmanager/1403026-layoutmanagerownsfirstresponderi?language=objc for details. +func (x gen_NSLayoutManager) LayoutManagerOwnsFirstResponderInWindow( + window NSWindowRef, +) bool { + ret := C.NSLayoutManager_inst_LayoutManagerOwnsFirstResponderInWindow( + unsafe.Pointer(x.Pointer()), + objc.RefPointer(window), + ) + + return convertObjCBoolToGo(ret) } -func (x gen_NSLayoutManager) AttachmentSizeForGlyphAtIndex_( +// NotShownAttributeForGlyphAtIndex indicates whether the glyph at the specified index has a visible representation. +// +// See https://developer.apple.com/documentation/uikit/nslayoutmanager/1402931-notshownattributeforglyphatindex?language=objc for details. +func (x gen_NSLayoutManager) NotShownAttributeForGlyphAtIndex( glyphIndex core.NSUInteger, -) ( - r0 core.NSSize, -) { - ret := C.NSLayoutManager_inst_attachmentSizeForGlyphAtIndex_( +) bool { + ret := C.NSLayoutManager_inst_NotShownAttributeForGlyphAtIndex( unsafe.Pointer(x.Pointer()), C.ulong(glyphIndex), ) - r0 = *(*core.NSSize)(unsafe.Pointer(&ret)) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSLayoutManager) DrawsOutsideLineFragmentForGlyphAtIndex_( - glyphIndex core.NSUInteger, -) ( - r0 bool, +// RemoveTextContainerAtIndex removes the text container at the specified index and invalidates the layout as necessary. +// +// See https://developer.apple.com/documentation/uikit/nslayoutmanager/1403017-removetextcontaineratindex?language=objc for details. +func (x gen_NSLayoutManager) RemoveTextContainerAtIndex( + index core.NSUInteger, ) { - ret := C.NSLayoutManager_inst_drawsOutsideLineFragmentForGlyphAtIndex_( + C.NSLayoutManager_inst_RemoveTextContainerAtIndex( unsafe.Pointer(x.Pointer()), - C.ulong(glyphIndex), + C.ulong(index), ) - r0 = convertObjCBoolToGo(ret) + return } -func (x gen_NSLayoutManager) FirstUnlaidCharacterIndex() ( - r0 core.NSUInteger, +// SetDrawsOutsideLineFragmentForGlyphAtIndex indicates whether the specified glyph exceeds the bounds of the line fragment for its layout. +// +// See https://developer.apple.com/documentation/uikit/nslayoutmanager/1402964-setdrawsoutsidelinefragment?language=objc for details. +func (x gen_NSLayoutManager) SetDrawsOutsideLineFragmentForGlyphAtIndex( + flag bool, + glyphIndex core.NSUInteger, ) { - ret := C.NSLayoutManager_inst_firstUnlaidCharacterIndex( + C.NSLayoutManager_inst_SetDrawsOutsideLineFragmentForGlyphAtIndex( unsafe.Pointer(x.Pointer()), + convertToObjCBool(flag), + C.ulong(glyphIndex), ) - r0 = core.NSUInteger(ret) + return } -func (x gen_NSLayoutManager) FirstUnlaidGlyphIndex() ( - r0 core.NSUInteger, +// SetExtraLineFragmentRectUsedRectTextContainer sets the bounds and container for the extra line fragment. +// +// See https://developer.apple.com/documentation/uikit/nslayoutmanager/1403071-setextralinefragmentrect?language=objc for details. +func (x gen_NSLayoutManager) SetExtraLineFragmentRectUsedRectTextContainer( + fragmentRect core.NSRect, + usedRect core.NSRect, + container NSTextContainerRef, ) { - ret := C.NSLayoutManager_inst_firstUnlaidGlyphIndex( + C.NSLayoutManager_inst_SetExtraLineFragmentRectUsedRectTextContainer( unsafe.Pointer(x.Pointer()), + *(*C.NSRect)(unsafe.Pointer(&fragmentRect)), + *(*C.NSRect)(unsafe.Pointer(&usedRect)), + objc.RefPointer(container), ) - r0 = core.NSUInteger(ret) + return } -func (x gen_NSLayoutManager) NotShownAttributeForGlyphAtIndex_( +// SetNotShownAttributeForGlyphAtIndex sets the visibility of the glyph at the specified index. +// +// See https://developer.apple.com/documentation/uikit/nslayoutmanager/1403078-setnotshownattribute?language=objc for details. +func (x gen_NSLayoutManager) SetNotShownAttributeForGlyphAtIndex( + flag bool, glyphIndex core.NSUInteger, -) ( - r0 bool, ) { - ret := C.NSLayoutManager_inst_notShownAttributeForGlyphAtIndex_( + C.NSLayoutManager_inst_SetNotShownAttributeForGlyphAtIndex( unsafe.Pointer(x.Pointer()), + convertToObjCBool(flag), C.ulong(glyphIndex), ) - r0 = convertObjCBoolToGo(ret) + return } -func (x gen_NSLayoutManager) LayoutManagerOwnsFirstResponderInWindow_( - window NSWindowRef, -) ( - r0 bool, +// TextContainerChangedGeometry invalidates the layout information, and possibly glyphs, for the specified text container and all subsequent text container objects. +// +// See https://developer.apple.com/documentation/uikit/nslayoutmanager/1403091-textcontainerchangedgeometry?language=objc for details. +func (x gen_NSLayoutManager) TextContainerChangedGeometry( + container NSTextContainerRef, ) { - ret := C.NSLayoutManager_inst_layoutManagerOwnsFirstResponderInWindow_( + C.NSLayoutManager_inst_TextContainerChangedGeometry( unsafe.Pointer(x.Pointer()), - objc.RefPointer(window), + objc.RefPointer(container), ) - r0 = convertObjCBoolToGo(ret) + return } -func (x gen_NSLayoutManager) DefaultLineHeightForFont_( - theFont NSFontRef, -) ( - r0 core.CGFloat, +// TextContainerChangedTextView updates the information necessary to manage text view objects for the specified text container. +// +// See https://developer.apple.com/documentation/appkit/nslayoutmanager/1403229-textcontainerchangedtextview?language=objc for details. +func (x gen_NSLayoutManager) TextContainerChangedTextView( + container NSTextContainerRef, ) { - ret := C.NSLayoutManager_inst_defaultLineHeightForFont_( + C.NSLayoutManager_inst_TextContainerChangedTextView( unsafe.Pointer(x.Pointer()), - objc.RefPointer(theFont), + objc.RefPointer(container), ) - r0 = core.CGFloat(ret) + return } -func (x gen_NSLayoutManager) DefaultBaselineOffsetForFont_( - theFont NSFontRef, -) ( - r0 core.CGFloat, -) { - ret := C.NSLayoutManager_inst_defaultBaselineOffsetForFont_( +// UsedRectForTextContainer returns the bounding rectangle for the glyphs in the specified text container. +// +// See https://developer.apple.com/documentation/uikit/nslayoutmanager/1402980-usedrectfortextcontainer?language=objc for details. +func (x gen_NSLayoutManager) UsedRectForTextContainer( + container NSTextContainerRef, +) core.NSRect { + ret := C.NSLayoutManager_inst_UsedRectForTextContainer( unsafe.Pointer(x.Pointer()), - objc.RefPointer(theFont), + objc.RefPointer(container), ) - r0 = core.CGFloat(ret) - return + + return *(*core.NSRect)(unsafe.Pointer(&ret)) } -func (x gen_NSLayoutManager) Delegate() ( - r0 objc.Object, -) { - ret := C.NSLayoutManager_inst_delegate( +// Delegate returns the layout manager’s delegate. +// +// See https://developer.apple.com/documentation/uikit/nslayoutmanager/1402920-delegate?language=objc for details. +func (x gen_NSLayoutManager) Delegate() objc.Object { + ret := C.NSLayoutManager_inst_Delegate( unsafe.Pointer(x.Pointer()), ) - r0 = objc.Object_fromPointer(ret) - return + + return objc.Object_FromPointer(ret) } -func (x gen_NSLayoutManager) SetDelegate_( +// SetDelegate returns the layout manager’s delegate. +// +// See https://developer.apple.com/documentation/uikit/nslayoutmanager/1402920-delegate?language=objc for details. +func (x gen_NSLayoutManager) SetDelegate( value objc.Ref, ) { - C.NSLayoutManager_inst_setDelegate_( + C.NSLayoutManager_inst_SetDelegate( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSLayoutManager) AllowsNonContiguousLayout() ( - r0 bool, -) { - ret := C.NSLayoutManager_inst_allowsNonContiguousLayout( +// AllowsNonContiguousLayout returns a boolean value that indicates whether the layout manager allows noncontiguous layout. +// +// See https://developer.apple.com/documentation/uikit/nslayoutmanager/1403197-allowsnoncontiguouslayout?language=objc for details. +func (x gen_NSLayoutManager) AllowsNonContiguousLayout() bool { + ret := C.NSLayoutManager_inst_AllowsNonContiguousLayout( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSLayoutManager) SetAllowsNonContiguousLayout_( +// SetAllowsNonContiguousLayout returns a boolean value that indicates whether the layout manager allows noncontiguous layout. +// +// See https://developer.apple.com/documentation/uikit/nslayoutmanager/1403197-allowsnoncontiguouslayout?language=objc for details. +func (x gen_NSLayoutManager) SetAllowsNonContiguousLayout( value bool, ) { - C.NSLayoutManager_inst_setAllowsNonContiguousLayout_( + C.NSLayoutManager_inst_SetAllowsNonContiguousLayout( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSLayoutManager) HasNonContiguousLayout() ( - r0 bool, -) { - ret := C.NSLayoutManager_inst_hasNonContiguousLayout( +// HasNonContiguousLayout returns a boolean value that indicates whether the layout manager currently has any areas of noncontiguous layout. +// +// See https://developer.apple.com/documentation/uikit/nslayoutmanager/1403207-hasnoncontiguouslayout?language=objc for details. +func (x gen_NSLayoutManager) HasNonContiguousLayout() bool { + ret := C.NSLayoutManager_inst_HasNonContiguousLayout( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSLayoutManager) ShowsInvisibleCharacters() ( - r0 bool, -) { - ret := C.NSLayoutManager_inst_showsInvisibleCharacters( +// ShowsInvisibleCharacters returns a boolean value that indicates whether to substitute visible glyphs for whitespace and other typically invisible characters. +// +// See https://developer.apple.com/documentation/uikit/nslayoutmanager/1403254-showsinvisiblecharacters?language=objc for details. +func (x gen_NSLayoutManager) ShowsInvisibleCharacters() bool { + ret := C.NSLayoutManager_inst_ShowsInvisibleCharacters( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSLayoutManager) SetShowsInvisibleCharacters_( +// SetShowsInvisibleCharacters returns a boolean value that indicates whether to substitute visible glyphs for whitespace and other typically invisible characters. +// +// See https://developer.apple.com/documentation/uikit/nslayoutmanager/1403254-showsinvisiblecharacters?language=objc for details. +func (x gen_NSLayoutManager) SetShowsInvisibleCharacters( value bool, ) { - C.NSLayoutManager_inst_setShowsInvisibleCharacters_( + C.NSLayoutManager_inst_SetShowsInvisibleCharacters( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSLayoutManager) ShowsControlCharacters() ( - r0 bool, -) { - ret := C.NSLayoutManager_inst_showsControlCharacters( +// ShowsControlCharacters returns a boolean value that indicates whether the layout manager substitutes visible glyphs for control characters in the layout. +// +// See https://developer.apple.com/documentation/uikit/nslayoutmanager/1402912-showscontrolcharacters?language=objc for details. +func (x gen_NSLayoutManager) ShowsControlCharacters() bool { + ret := C.NSLayoutManager_inst_ShowsControlCharacters( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSLayoutManager) SetShowsControlCharacters_( +// SetShowsControlCharacters returns a boolean value that indicates whether the layout manager substitutes visible glyphs for control characters in the layout. +// +// See https://developer.apple.com/documentation/uikit/nslayoutmanager/1402912-showscontrolcharacters?language=objc for details. +func (x gen_NSLayoutManager) SetShowsControlCharacters( value bool, ) { - C.NSLayoutManager_inst_setShowsControlCharacters_( + C.NSLayoutManager_inst_SetShowsControlCharacters( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSLayoutManager) UsesFontLeading() ( - r0 bool, -) { - ret := C.NSLayoutManager_inst_usesFontLeading( +// UsesFontLeading returns a boolean value that indicates whether the layout manager uses the leading of the font. +// +// See https://developer.apple.com/documentation/uikit/nslayoutmanager/1403156-usesfontleading?language=objc for details. +func (x gen_NSLayoutManager) UsesFontLeading() bool { + ret := C.NSLayoutManager_inst_UsesFontLeading( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSLayoutManager) SetUsesFontLeading_( +// SetUsesFontLeading returns a boolean value that indicates whether the layout manager uses the leading of the font. +// +// See https://developer.apple.com/documentation/uikit/nslayoutmanager/1403156-usesfontleading?language=objc for details. +func (x gen_NSLayoutManager) SetUsesFontLeading( value bool, ) { - C.NSLayoutManager_inst_setUsesFontLeading_( + C.NSLayoutManager_inst_SetUsesFontLeading( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSLayoutManager) BackgroundLayoutEnabled() ( - r0 bool, -) { - ret := C.NSLayoutManager_inst_backgroundLayoutEnabled( +// BackgroundLayoutEnabled returns a boolean value that indicates whether the layout manager generates glyphs and lays them out when the app's run loop is idle. +// +// See https://developer.apple.com/documentation/appkit/nslayoutmanager/1402952-backgroundlayoutenabled?language=objc for details. +func (x gen_NSLayoutManager) BackgroundLayoutEnabled() bool { + ret := C.NSLayoutManager_inst_BackgroundLayoutEnabled( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSLayoutManager) SetBackgroundLayoutEnabled_( +// SetBackgroundLayoutEnabled returns a boolean value that indicates whether the layout manager generates glyphs and lays them out when the app's run loop is idle. +// +// See https://developer.apple.com/documentation/appkit/nslayoutmanager/1402952-backgroundlayoutenabled?language=objc for details. +func (x gen_NSLayoutManager) SetBackgroundLayoutEnabled( value bool, ) { - C.NSLayoutManager_inst_setBackgroundLayoutEnabled_( + C.NSLayoutManager_inst_SetBackgroundLayoutEnabled( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSLayoutManager) LimitsLayoutForSuspiciousContents() ( - r0 bool, -) { - ret := C.NSLayoutManager_inst_limitsLayoutForSuspiciousContents( +// LimitsLayoutForSuspiciousContents returns a boolean value that indicates whether the layout manager avoids laying out unusually long or suspicious input. +// +// See https://developer.apple.com/documentation/uikit/nslayoutmanager/3021179-limitslayoutforsuspiciouscontent?language=objc for details. +func (x gen_NSLayoutManager) LimitsLayoutForSuspiciousContents() bool { + ret := C.NSLayoutManager_inst_LimitsLayoutForSuspiciousContents( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSLayoutManager) SetLimitsLayoutForSuspiciousContents_( +// SetLimitsLayoutForSuspiciousContents returns a boolean value that indicates whether the layout manager avoids laying out unusually long or suspicious input. +// +// See https://developer.apple.com/documentation/uikit/nslayoutmanager/3021179-limitslayoutforsuspiciouscontent?language=objc for details. +func (x gen_NSLayoutManager) SetLimitsLayoutForSuspiciousContents( value bool, ) { - C.NSLayoutManager_inst_setLimitsLayoutForSuspiciousContents_( + C.NSLayoutManager_inst_SetLimitsLayoutForSuspiciousContents( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSLayoutManager) UsesDefaultHyphenation() ( - r0 bool, -) { - ret := C.NSLayoutManager_inst_usesDefaultHyphenation( +// UsesDefaultHyphenation returns a boolean value that indicates whether the layout manager uses the default hyphenation rules to wrap lines. +// +// See https://developer.apple.com/documentation/uikit/nslayoutmanager/3180380-usesdefaulthyphenation?language=objc for details. +func (x gen_NSLayoutManager) UsesDefaultHyphenation() bool { + ret := C.NSLayoutManager_inst_UsesDefaultHyphenation( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSLayoutManager) SetUsesDefaultHyphenation_( +// SetUsesDefaultHyphenation returns a boolean value that indicates whether the layout manager uses the default hyphenation rules to wrap lines. +// +// See https://developer.apple.com/documentation/uikit/nslayoutmanager/3180380-usesdefaulthyphenation?language=objc for details. +func (x gen_NSLayoutManager) SetUsesDefaultHyphenation( value bool, ) { - C.NSLayoutManager_inst_setUsesDefaultHyphenation_( + C.NSLayoutManager_inst_SetUsesDefaultHyphenation( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSLayoutManager) TextContainers() ( - r0 core.NSArray, -) { - ret := C.NSLayoutManager_inst_textContainers( +// TextContainers returns the current text containers of the layout manager. +// +// See https://developer.apple.com/documentation/uikit/nslayoutmanager/1403144-textcontainers?language=objc for details. +func (x gen_NSLayoutManager) TextContainers() core.NSArray { + ret := C.NSLayoutManager_inst_TextContainers( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSArray_fromPointer(ret) - return + + return core.NSArray_FromPointer(ret) } -func (x gen_NSLayoutManager) NumberOfGlyphs() ( - r0 core.NSUInteger, -) { - ret := C.NSLayoutManager_inst_numberOfGlyphs( +// NumberOfGlyphs returns the number of glyphs in the layout manager. +// +// See https://developer.apple.com/documentation/uikit/nslayoutmanager/1402937-numberofglyphs?language=objc for details. +func (x gen_NSLayoutManager) NumberOfGlyphs() core.NSUInteger { + ret := C.NSLayoutManager_inst_NumberOfGlyphs( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSUInteger(ret) - return + + return core.NSUInteger(ret) } -func (x gen_NSLayoutManager) ExtraLineFragmentRect() ( - r0 core.NSRect, -) { - ret := C.NSLayoutManager_inst_extraLineFragmentRect( +// ExtraLineFragmentRect returns the rectangle for the extra line fragment at the end of a document. +// +// See https://developer.apple.com/documentation/uikit/nslayoutmanager/1403175-extralinefragmentrect?language=objc for details. +func (x gen_NSLayoutManager) ExtraLineFragmentRect() core.NSRect { + ret := C.NSLayoutManager_inst_ExtraLineFragmentRect( unsafe.Pointer(x.Pointer()), ) - r0 = *(*core.NSRect)(unsafe.Pointer(&ret)) - return + + return *(*core.NSRect)(unsafe.Pointer(&ret)) } -func (x gen_NSLayoutManager) ExtraLineFragmentTextContainer() ( - r0 NSTextContainer, -) { - ret := C.NSLayoutManager_inst_extraLineFragmentTextContainer( +// ExtraLineFragmentTextContainer returns the text container for the extra line fragment rectangle. +// +// See https://developer.apple.com/documentation/uikit/nslayoutmanager/1403165-extralinefragmenttextcontainer?language=objc for details. +func (x gen_NSLayoutManager) ExtraLineFragmentTextContainer() NSTextContainer { + ret := C.NSLayoutManager_inst_ExtraLineFragmentTextContainer( unsafe.Pointer(x.Pointer()), ) - r0 = NSTextContainer_fromPointer(ret) - return + + return NSTextContainer_FromPointer(ret) } -func (x gen_NSLayoutManager) ExtraLineFragmentUsedRect() ( - r0 core.NSRect, -) { - ret := C.NSLayoutManager_inst_extraLineFragmentUsedRect( +// ExtraLineFragmentUsedRect returns the rectangle that encloses the insertion point in the extra line fragment rectangle. +// +// See https://developer.apple.com/documentation/uikit/nslayoutmanager/1402988-extralinefragmentusedrect?language=objc for details. +func (x gen_NSLayoutManager) ExtraLineFragmentUsedRect() core.NSRect { + ret := C.NSLayoutManager_inst_ExtraLineFragmentUsedRect( unsafe.Pointer(x.Pointer()), ) - r0 = *(*core.NSRect)(unsafe.Pointer(&ret)) - return + + return *(*core.NSRect)(unsafe.Pointer(&ret)) } -func (x gen_NSLayoutManager) FirstTextView() ( - r0 NSTextView, -) { - ret := C.NSLayoutManager_inst_firstTextView( +// FirstTextView returns the first text view in the layout manager’s series of text views. +// +// See https://developer.apple.com/documentation/appkit/nslayoutmanager/1402995-firsttextview?language=objc for details. +func (x gen_NSLayoutManager) FirstTextView() NSTextView { + ret := C.NSLayoutManager_inst_FirstTextView( unsafe.Pointer(x.Pointer()), ) - r0 = NSTextView_fromPointer(ret) - return + + return NSTextView_FromPointer(ret) } -func (x gen_NSLayoutManager) TextViewForBeginningOfSelection() ( - r0 NSTextView, -) { - ret := C.NSLayoutManager_inst_textViewForBeginningOfSelection( +// TextViewForBeginningOfSelection returns the text view that contains the first glyph in the selection. +// +// See https://developer.apple.com/documentation/appkit/nslayoutmanager/1403089-textviewforbeginningofselection?language=objc for details. +func (x gen_NSLayoutManager) TextViewForBeginningOfSelection() NSTextView { + ret := C.NSLayoutManager_inst_TextViewForBeginningOfSelection( unsafe.Pointer(x.Pointer()), ) - r0 = NSTextView_fromPointer(ret) - return + + return NSTextView_FromPointer(ret) } type NSMenuRef interface { Pointer() uintptr - Init_asNSMenu() NSMenu + Init_AsNSMenu() NSMenu } type gen_NSMenu struct { objc.Object } -func NSMenu_fromPointer(ptr unsafe.Pointer) NSMenu { +func NSMenu_FromPointer(ptr unsafe.Pointer) NSMenu { return NSMenu{gen_NSMenu{ - objc.Object_fromPointer(ptr), + objc.Object_FromPointer(ptr), }} } -func NSMenu_fromRef(ref objc.Ref) NSMenu { - return NSMenu_fromPointer(unsafe.Pointer(ref.Pointer())) -} - -func (x gen_NSMenu) InitWithTitle__asNSMenu( - title core.NSStringRef, -) ( - r0 NSMenu, -) { - ret := C.NSMenu_inst_initWithTitle_( - unsafe.Pointer(x.Pointer()), - objc.RefPointer(title), - ) - r0 = NSMenu_fromPointer(ret) - return +func NSMenu_FromRef(ref objc.Ref) NSMenu { + return NSMenu_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_NSMenu) InsertItem_atIndex_( +// AddItem adds a menu item to the end of the menu. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518176-additem?language=objc for details. +func (x gen_NSMenu) AddItem( newItem NSMenuItemRef, - index core.NSInteger, ) { - C.NSMenu_inst_insertItem_atIndex_( + C.NSMenu_inst_AddItem( unsafe.Pointer(x.Pointer()), objc.RefPointer(newItem), - C.long(index), ) + return } -func (x gen_NSMenu) InsertItemWithTitle_action_keyEquivalent_atIndex_( +// AddItemWithTitleActionKeyEquivalent creates a new menu item and adds it to the end of the menu. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518181-additemwithtitle?language=objc for details. +func (x gen_NSMenu) AddItemWithTitleActionKeyEquivalent( string core.NSStringRef, selector objc.Selector, charCode core.NSStringRef, - index core.NSInteger, -) ( - r0 NSMenuItem, -) { - ret := C.NSMenu_inst_insertItemWithTitle_action_keyEquivalent_atIndex_( +) NSMenuItem { + ret := C.NSMenu_inst_AddItemWithTitleActionKeyEquivalent( unsafe.Pointer(x.Pointer()), objc.RefPointer(string), selector.SelectorAddress(), objc.RefPointer(charCode), - C.long(index), ) - r0 = NSMenuItem_fromPointer(ret) - return + + return NSMenuItem_FromPointer(ret) } -func (x gen_NSMenu) AddItem_( - newItem NSMenuItemRef, -) { - C.NSMenu_inst_addItem_( +// CancelTracking dismisses the menu and ends all menu tracking. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518150-canceltracking?language=objc for details. +func (x gen_NSMenu) CancelTracking() { + C.NSMenu_inst_CancelTracking( unsafe.Pointer(x.Pointer()), - objc.RefPointer(newItem), ) + return } -func (x gen_NSMenu) AddItemWithTitle_action_keyEquivalent_( - string core.NSStringRef, - selector objc.Selector, - charCode core.NSStringRef, -) ( - r0 NSMenuItem, -) { - ret := C.NSMenu_inst_addItemWithTitle_action_keyEquivalent_( +// CancelTrackingWithoutAnimation dismisses the menu and ends all menu tracking without displaying the associated animation. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518244-canceltrackingwithoutanimation?language=objc for details. +func (x gen_NSMenu) CancelTrackingWithoutAnimation() { + C.NSMenu_inst_CancelTrackingWithoutAnimation( unsafe.Pointer(x.Pointer()), - objc.RefPointer(string), - selector.SelectorAddress(), - objc.RefPointer(charCode), ) - r0 = NSMenuItem_fromPointer(ret) + return } -func (x gen_NSMenu) RemoveItem_( +// IndexOfItem returns the index identifying the location of a specified menu item in the menu. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518178-indexofitem?language=objc for details. +func (x gen_NSMenu) IndexOfItem( item NSMenuItemRef, -) { - C.NSMenu_inst_removeItem_( +) core.NSInteger { + ret := C.NSMenu_inst_IndexOfItem( unsafe.Pointer(x.Pointer()), objc.RefPointer(item), ) - return + + return core.NSInteger(ret) } -func (x gen_NSMenu) RemoveItemAtIndex_( - index core.NSInteger, -) { - C.NSMenu_inst_removeItemAtIndex_( +// IndexOfItemWithRepresentedObject returns the index of the first menu item in the menu that has a given represented object. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518175-indexofitemwithrepresentedobject?language=objc for details. +func (x gen_NSMenu) IndexOfItemWithRepresentedObject( + object objc.Ref, +) core.NSInteger { + ret := C.NSMenu_inst_IndexOfItemWithRepresentedObject( unsafe.Pointer(x.Pointer()), - C.long(index), + objc.RefPointer(object), ) - return + + return core.NSInteger(ret) } -func (x gen_NSMenu) ItemChanged_( - item NSMenuItemRef, -) { - C.NSMenu_inst_itemChanged_( +// IndexOfItemWithSubmenu returns the index of the menu item in the menu with the given submenu. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518216-indexofitemwithsubmenu?language=objc for details. +func (x gen_NSMenu) IndexOfItemWithSubmenu( + submenu NSMenuRef, +) core.NSInteger { + ret := C.NSMenu_inst_IndexOfItemWithSubmenu( unsafe.Pointer(x.Pointer()), - objc.RefPointer(item), + objc.RefPointer(submenu), ) - return + + return core.NSInteger(ret) } -func (x gen_NSMenu) RemoveAllItems() { - C.NSMenu_inst_removeAllItems( +// IndexOfItemWithTag returns the index of the first menu item in the menu identified by a tag. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518164-indexofitemwithtag?language=objc for details. +func (x gen_NSMenu) IndexOfItemWithTag( + tag core.NSInteger, +) core.NSInteger { + ret := C.NSMenu_inst_IndexOfItemWithTag( unsafe.Pointer(x.Pointer()), + C.long(tag), ) - return + + return core.NSInteger(ret) } -func (x gen_NSMenu) ItemWithTag_( - tag core.NSInteger, -) ( - r0 NSMenuItem, -) { - ret := C.NSMenu_inst_itemWithTag_( +// IndexOfItemWithTargetAndAction returns the index of the first menu item in the menu that has a specified action and target. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518153-indexofitemwithtarget?language=objc for details. +func (x gen_NSMenu) IndexOfItemWithTargetAndAction( + target objc.Ref, + actionSelector objc.Selector, +) core.NSInteger { + ret := C.NSMenu_inst_IndexOfItemWithTargetAndAction( unsafe.Pointer(x.Pointer()), - C.long(tag), + objc.RefPointer(target), + actionSelector.SelectorAddress(), ) - r0 = NSMenuItem_fromPointer(ret) - return + + return core.NSInteger(ret) } -func (x gen_NSMenu) ItemWithTitle_( +// IndexOfItemWithTitle returns the index of the first menu item in the menu that has a specified title. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518237-indexofitemwithtitle?language=objc for details. +func (x gen_NSMenu) IndexOfItemWithTitle( title core.NSStringRef, -) ( - r0 NSMenuItem, -) { - ret := C.NSMenu_inst_itemWithTitle_( +) core.NSInteger { + ret := C.NSMenu_inst_IndexOfItemWithTitle( unsafe.Pointer(x.Pointer()), objc.RefPointer(title), ) - r0 = NSMenuItem_fromPointer(ret) - return + + return core.NSInteger(ret) +} + +// InitWithTitle initializes and returns a menu having the specified title and with autoenabling of menu items turned on. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518144-initwithtitle?language=objc for details. +func (x gen_NSMenu) InitWithTitle_AsNSMenu( + title core.NSStringRef, +) NSMenu { + ret := C.NSMenu_inst_InitWithTitle( + unsafe.Pointer(x.Pointer()), + objc.RefPointer(title), + ) + + return NSMenu_FromPointer(ret) } -func (x gen_NSMenu) ItemAtIndex_( +// InsertItemAtIndex inserts a menu item into the menu at a specific location. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518201-insertitem?language=objc for details. +func (x gen_NSMenu) InsertItemAtIndex( + newItem NSMenuItemRef, index core.NSInteger, -) ( - r0 NSMenuItem, ) { - ret := C.NSMenu_inst_itemAtIndex_( + C.NSMenu_inst_InsertItemAtIndex( unsafe.Pointer(x.Pointer()), + objc.RefPointer(newItem), C.long(index), ) - r0 = NSMenuItem_fromPointer(ret) + return } -func (x gen_NSMenu) IndexOfItem_( - item NSMenuItemRef, -) ( - r0 core.NSInteger, -) { - ret := C.NSMenu_inst_indexOfItem_( +// InsertItemWithTitleActionKeyEquivalentAtIndex creates and adds a menu item at a specified location in the menu. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518146-insertitemwithtitle?language=objc for details. +func (x gen_NSMenu) InsertItemWithTitleActionKeyEquivalentAtIndex( + string core.NSStringRef, + selector objc.Selector, + charCode core.NSStringRef, + index core.NSInteger, +) NSMenuItem { + ret := C.NSMenu_inst_InsertItemWithTitleActionKeyEquivalentAtIndex( unsafe.Pointer(x.Pointer()), - objc.RefPointer(item), + objc.RefPointer(string), + selector.SelectorAddress(), + objc.RefPointer(charCode), + C.long(index), ) - r0 = core.NSInteger(ret) - return + + return NSMenuItem_FromPointer(ret) } -func (x gen_NSMenu) IndexOfItemWithTitle_( - title core.NSStringRef, -) ( - r0 core.NSInteger, +// ItemAtIndex returns the menu item at a specific location of the menu. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518218-itematindex?language=objc for details. +func (x gen_NSMenu) ItemAtIndex( + index core.NSInteger, +) NSMenuItem { + ret := C.NSMenu_inst_ItemAtIndex( + unsafe.Pointer(x.Pointer()), + C.long(index), + ) + + return NSMenuItem_FromPointer(ret) +} + +// ItemChanged invoked when a menu item is modified visually (for example, its title changes). +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518154-itemchanged?language=objc for details. +func (x gen_NSMenu) ItemChanged( + item NSMenuItemRef, ) { - ret := C.NSMenu_inst_indexOfItemWithTitle_( + C.NSMenu_inst_ItemChanged( unsafe.Pointer(x.Pointer()), - objc.RefPointer(title), + objc.RefPointer(item), ) - r0 = core.NSInteger(ret) + return } -func (x gen_NSMenu) IndexOfItemWithTag_( +// ItemWithTag returns the first menu item in the menu with the specified tag. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518223-itemwithtag?language=objc for details. +func (x gen_NSMenu) ItemWithTag( tag core.NSInteger, -) ( - r0 core.NSInteger, -) { - ret := C.NSMenu_inst_indexOfItemWithTag_( +) NSMenuItem { + ret := C.NSMenu_inst_ItemWithTag( unsafe.Pointer(x.Pointer()), C.long(tag), ) - r0 = core.NSInteger(ret) - return + + return NSMenuItem_FromPointer(ret) } -func (x gen_NSMenu) IndexOfItemWithTarget_andAction_( - target objc.Ref, - actionSelector objc.Selector, -) ( - r0 core.NSInteger, -) { - ret := C.NSMenu_inst_indexOfItemWithTarget_andAction_( +// ItemWithTitle returns the first menu item in the menu with a specified title. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518248-itemwithtitle?language=objc for details. +func (x gen_NSMenu) ItemWithTitle( + title core.NSStringRef, +) NSMenuItem { + ret := C.NSMenu_inst_ItemWithTitle( unsafe.Pointer(x.Pointer()), - objc.RefPointer(target), - actionSelector.SelectorAddress(), + objc.RefPointer(title), ) - r0 = core.NSInteger(ret) - return + + return NSMenuItem_FromPointer(ret) } -func (x gen_NSMenu) IndexOfItemWithRepresentedObject_( - object objc.Ref, -) ( - r0 core.NSInteger, +// PerformActionForItemAtIndex causes the application to send the action message of a specified menu item to its target. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518210-performactionforitematindex?language=objc for details. +func (x gen_NSMenu) PerformActionForItemAtIndex( + index core.NSInteger, ) { - ret := C.NSMenu_inst_indexOfItemWithRepresentedObject_( + C.NSMenu_inst_PerformActionForItemAtIndex( unsafe.Pointer(x.Pointer()), - objc.RefPointer(object), + C.long(index), ) - r0 = core.NSInteger(ret) + return } -func (x gen_NSMenu) IndexOfItemWithSubmenu_( - submenu NSMenuRef, -) ( - r0 core.NSInteger, -) { - ret := C.NSMenu_inst_indexOfItemWithSubmenu_( +// PerformKeyEquivalent performs the action for the menu item that corresponds to the given key equivalent. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518198-performkeyequivalent?language=objc for details. +func (x gen_NSMenu) PerformKeyEquivalent( + event NSEventRef, +) bool { + ret := C.NSMenu_inst_PerformKeyEquivalent( unsafe.Pointer(x.Pointer()), - objc.RefPointer(submenu), + objc.RefPointer(event), ) - r0 = core.NSInteger(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSMenu) SetSubmenu_forItem_( - menu NSMenuRef, +// PopUpMenuPositioningItemAtLocationInView pops up the menu at the specified location. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518212-popupmenupositioningitem?language=objc for details. +func (x gen_NSMenu) PopUpMenuPositioningItemAtLocationInView( item NSMenuItemRef, -) { - C.NSMenu_inst_setSubmenu_forItem_( + location core.NSPoint, + view NSViewRef, +) bool { + ret := C.NSMenu_inst_PopUpMenuPositioningItemAtLocationInView( unsafe.Pointer(x.Pointer()), - objc.RefPointer(menu), objc.RefPointer(item), + *(*C.NSPoint)(unsafe.Pointer(&location)), + objc.RefPointer(view), ) - return -} -func (x gen_NSMenu) SubmenuAction_( - sender objc.Ref, -) { - C.NSMenu_inst_submenuAction_( - unsafe.Pointer(x.Pointer()), - objc.RefPointer(sender), - ) - return + return convertObjCBoolToGo(ret) } -func (x gen_NSMenu) Update() { - C.NSMenu_inst_update( +// RemoveAllItems removes all the menu items in the menu. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518234-removeallitems?language=objc for details. +func (x gen_NSMenu) RemoveAllItems() { + C.NSMenu_inst_RemoveAllItems( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_NSMenu) PerformKeyEquivalent_( - event NSEventRef, -) ( - r0 bool, +// RemoveItem removes a menu item from the menu. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518257-removeitem?language=objc for details. +func (x gen_NSMenu) RemoveItem( + item NSMenuItemRef, ) { - ret := C.NSMenu_inst_performKeyEquivalent_( + C.NSMenu_inst_RemoveItem( unsafe.Pointer(x.Pointer()), - objc.RefPointer(event), + objc.RefPointer(item), ) - r0 = convertObjCBoolToGo(ret) + return } -func (x gen_NSMenu) PerformActionForItemAtIndex_( +// RemoveItemAtIndex removes the menu item at a specified location in the menu. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518207-removeitematindex?language=objc for details. +func (x gen_NSMenu) RemoveItemAtIndex( index core.NSInteger, ) { - C.NSMenu_inst_performActionForItemAtIndex_( + C.NSMenu_inst_RemoveItemAtIndex( unsafe.Pointer(x.Pointer()), C.long(index), ) + return } -func (x gen_NSMenu) PopUpMenuPositioningItem_atLocation_inView_( +// SetSubmenuForItem assigns a menu to be a submenu of the menu controlled by a given menu item. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518194-setsubmenu?language=objc for details. +func (x gen_NSMenu) SetSubmenuForItem( + menu NSMenuRef, item NSMenuItemRef, - location core.NSPoint, - view NSViewRef, -) ( - r0 bool, ) { - ret := C.NSMenu_inst_popUpMenuPositioningItem_atLocation_inView_( + C.NSMenu_inst_SetSubmenuForItem( unsafe.Pointer(x.Pointer()), + objc.RefPointer(menu), objc.RefPointer(item), - *(*C.NSPoint)(unsafe.Pointer(&location)), - objc.RefPointer(view), ) - r0 = convertObjCBoolToGo(ret) + return } -func (x gen_NSMenu) CancelTracking() { - C.NSMenu_inst_cancelTracking( +// SubmenuAction returns the action method assigned to menu items that open submenus. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518179-submenuaction?language=objc for details. +func (x gen_NSMenu) SubmenuAction( + sender objc.Ref, +) { + C.NSMenu_inst_SubmenuAction( unsafe.Pointer(x.Pointer()), + objc.RefPointer(sender), ) + return } -func (x gen_NSMenu) CancelTrackingWithoutAnimation() { - C.NSMenu_inst_cancelTrackingWithoutAnimation( +// Update enables or disables the menu items of the menu based on the nsmenuvalidation informal protocol and sizes the menu to fit its current menu items if necessary. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518249-update?language=objc for details. +func (x gen_NSMenu) Update() { + C.NSMenu_inst_Update( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_NSMenu) Init_asNSMenu() ( - r0 NSMenu, -) { - ret := C.NSMenu_inst_init( +// Init +// +// See for details. +func (x gen_NSMenu) Init_AsNSMenu() NSMenu { + ret := C.NSMenu_inst_Init( unsafe.Pointer(x.Pointer()), ) - r0 = NSMenu_fromPointer(ret) - return + + return NSMenu_FromPointer(ret) } -func (x gen_NSMenu) MenuBarHeight() ( - r0 core.CGFloat, -) { - ret := C.NSMenu_inst_menuBarHeight( +// MenuBarHeight returns the menu bar height for the main menu in pixels. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518141-menubarheight?language=objc for details. +func (x gen_NSMenu) MenuBarHeight() core.CGFloat { + ret := C.NSMenu_inst_MenuBarHeight( unsafe.Pointer(x.Pointer()), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } -func (x gen_NSMenu) NumberOfItems() ( - r0 core.NSInteger, -) { - ret := C.NSMenu_inst_numberOfItems( +// NumberOfItems returns the number of menu items in the menu, including separator items. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518202-numberofitems?language=objc for details. +func (x gen_NSMenu) NumberOfItems() core.NSInteger { + ret := C.NSMenu_inst_NumberOfItems( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSInteger(ret) - return + + return core.NSInteger(ret) } -func (x gen_NSMenu) ItemArray() ( - r0 core.NSArray, -) { - ret := C.NSMenu_inst_itemArray( +// ItemArray an array containing the menu items in the menu. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518186-itemarray?language=objc for details. +func (x gen_NSMenu) ItemArray() core.NSArray { + ret := C.NSMenu_inst_ItemArray( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSArray_fromPointer(ret) - return + + return core.NSArray_FromPointer(ret) } -func (x gen_NSMenu) SetItemArray_( +// SetItemArray an array containing the menu items in the menu. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518186-itemarray?language=objc for details. +func (x gen_NSMenu) SetItemArray( value core.NSArrayRef, ) { - C.NSMenu_inst_setItemArray_( + C.NSMenu_inst_SetItemArray( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSMenu) Supermenu() ( - r0 NSMenu, -) { - ret := C.NSMenu_inst_supermenu( +// Supermenu returns the parent menu that contains the menu as a submenu. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518204-supermenu?language=objc for details. +func (x gen_NSMenu) Supermenu() NSMenu { + ret := C.NSMenu_inst_Supermenu( unsafe.Pointer(x.Pointer()), ) - r0 = NSMenu_fromPointer(ret) - return + + return NSMenu_FromPointer(ret) } -func (x gen_NSMenu) SetSupermenu_( +// SetSupermenu returns the parent menu that contains the menu as a submenu. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518204-supermenu?language=objc for details. +func (x gen_NSMenu) SetSupermenu( value NSMenuRef, ) { - C.NSMenu_inst_setSupermenu_( + C.NSMenu_inst_SetSupermenu( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSMenu) AutoenablesItems() ( - r0 bool, -) { - ret := C.NSMenu_inst_autoenablesItems( +// AutoenablesItems indicates whether the menu automatically enables and disables its menu items. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518227-autoenablesitems?language=objc for details. +func (x gen_NSMenu) AutoenablesItems() bool { + ret := C.NSMenu_inst_AutoenablesItems( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSMenu) SetAutoenablesItems_( +// SetAutoenablesItems indicates whether the menu automatically enables and disables its menu items. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518227-autoenablesitems?language=objc for details. +func (x gen_NSMenu) SetAutoenablesItems( value bool, ) { - C.NSMenu_inst_setAutoenablesItems_( + C.NSMenu_inst_SetAutoenablesItems( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSMenu) Font() ( - r0 NSFont, -) { - ret := C.NSMenu_inst_font( +// Font returns the font of the menu and its submenus. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518230-font?language=objc for details. +func (x gen_NSMenu) Font() NSFont { + ret := C.NSMenu_inst_Font( unsafe.Pointer(x.Pointer()), ) - r0 = NSFont_fromPointer(ret) - return + + return NSFont_FromPointer(ret) } -func (x gen_NSMenu) SetFont_( +// SetFont returns the font of the menu and its submenus. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518230-font?language=objc for details. +func (x gen_NSMenu) SetFont( value NSFontRef, ) { - C.NSMenu_inst_setFont_( + C.NSMenu_inst_SetFont( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSMenu) Title() ( - r0 core.NSString, -) { - ret := C.NSMenu_inst_title( +// Title returns the title of the menu. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518192-title?language=objc for details. +func (x gen_NSMenu) Title() core.NSString { + ret := C.NSMenu_inst_Title( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_NSMenu) SetTitle_( +// SetTitle returns the title of the menu. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518192-title?language=objc for details. +func (x gen_NSMenu) SetTitle( value core.NSStringRef, ) { - C.NSMenu_inst_setTitle_( + C.NSMenu_inst_SetTitle( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSMenu) MinimumWidth() ( - r0 core.CGFloat, -) { - ret := C.NSMenu_inst_minimumWidth( +// MinimumWidth returns the minimum width of the menu in screen coordinates. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518221-minimumwidth?language=objc for details. +func (x gen_NSMenu) MinimumWidth() core.CGFloat { + ret := C.NSMenu_inst_MinimumWidth( unsafe.Pointer(x.Pointer()), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } -func (x gen_NSMenu) SetMinimumWidth_( +// SetMinimumWidth returns the minimum width of the menu in screen coordinates. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518221-minimumwidth?language=objc for details. +func (x gen_NSMenu) SetMinimumWidth( value core.CGFloat, ) { - C.NSMenu_inst_setMinimumWidth_( + C.NSMenu_inst_SetMinimumWidth( unsafe.Pointer(x.Pointer()), C.double(value), ) + return } -func (x gen_NSMenu) Size() ( - r0 core.NSSize, -) { - ret := C.NSMenu_inst_size( +// Size returns the size of the menu in screen coordinates +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518185-size?language=objc for details. +func (x gen_NSMenu) Size() core.NSSize { + ret := C.NSMenu_inst_Size( unsafe.Pointer(x.Pointer()), ) - r0 = *(*core.NSSize)(unsafe.Pointer(&ret)) - return + + return *(*core.NSSize)(unsafe.Pointer(&ret)) } -func (x gen_NSMenu) AllowsContextMenuPlugIns() ( - r0 bool, -) { - ret := C.NSMenu_inst_allowsContextMenuPlugIns( +// AllowsContextMenuPlugIns indicates whether the pop-up menu allows appending of contextual menu plug-in items. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518220-allowscontextmenuplugins?language=objc for details. +func (x gen_NSMenu) AllowsContextMenuPlugIns() bool { + ret := C.NSMenu_inst_AllowsContextMenuPlugIns( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSMenu) SetAllowsContextMenuPlugIns_( +// SetAllowsContextMenuPlugIns indicates whether the pop-up menu allows appending of contextual menu plug-in items. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518220-allowscontextmenuplugins?language=objc for details. +func (x gen_NSMenu) SetAllowsContextMenuPlugIns( value bool, ) { - C.NSMenu_inst_setAllowsContextMenuPlugIns_( + C.NSMenu_inst_SetAllowsContextMenuPlugIns( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSMenu) ShowsStateColumn() ( - r0 bool, -) { - ret := C.NSMenu_inst_showsStateColumn( +// ShowsStateColumn indicates whether the menu displays the state column. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518253-showsstatecolumn?language=objc for details. +func (x gen_NSMenu) ShowsStateColumn() bool { + ret := C.NSMenu_inst_ShowsStateColumn( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSMenu) SetShowsStateColumn_( +// SetShowsStateColumn indicates whether the menu displays the state column. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518253-showsstatecolumn?language=objc for details. +func (x gen_NSMenu) SetShowsStateColumn( value bool, ) { - C.NSMenu_inst_setShowsStateColumn_( + C.NSMenu_inst_SetShowsStateColumn( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSMenu) HighlightedItem() ( - r0 NSMenuItem, -) { - ret := C.NSMenu_inst_highlightedItem( +// HighlightedItem indicates the currently highlighted item in the menu. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518222-highlighteditem?language=objc for details. +func (x gen_NSMenu) HighlightedItem() NSMenuItem { + ret := C.NSMenu_inst_HighlightedItem( unsafe.Pointer(x.Pointer()), ) - r0 = NSMenuItem_fromPointer(ret) - return + + return NSMenuItem_FromPointer(ret) } -func (x gen_NSMenu) Delegate() ( - r0 objc.Object, -) { - ret := C.NSMenu_inst_delegate( +// Delegate returns the delegate of the menu. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518169-delegate?language=objc for details. +func (x gen_NSMenu) Delegate() objc.Object { + ret := C.NSMenu_inst_Delegate( unsafe.Pointer(x.Pointer()), ) - r0 = objc.Object_fromPointer(ret) - return + + return objc.Object_FromPointer(ret) } -func (x gen_NSMenu) SetDelegate_( +// SetDelegate returns the delegate of the menu. +// +// See https://developer.apple.com/documentation/appkit/nsmenu/1518169-delegate?language=objc for details. +func (x gen_NSMenu) SetDelegate( value objc.Ref, ) { - C.NSMenu_inst_setDelegate_( + C.NSMenu_inst_SetDelegate( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } type NSPopoverRef interface { Pointer() uintptr - Init_asNSPopover() NSPopover + Init_AsNSPopover() NSPopover } type gen_NSPopover struct { objc.Object } -func NSPopover_fromPointer(ptr unsafe.Pointer) NSPopover { +func NSPopover_FromPointer(ptr unsafe.Pointer) NSPopover { return NSPopover{gen_NSPopover{ - objc.Object_fromPointer(ptr), + objc.Object_FromPointer(ptr), }} } -func NSPopover_fromRef(ref objc.Ref) NSPopover { - return NSPopover_fromPointer(unsafe.Pointer(ref.Pointer())) +func NSPopover_FromRef(ref objc.Ref) NSPopover { + return NSPopover_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_NSPopover) PerformClose_( - sender objc.Ref, -) { - C.NSPopover_inst_performClose_( +// Close forces the popover to close without consulting its delegate. +// +// See https://developer.apple.com/documentation/appkit/nspopover/1526823-close?language=objc for details. +func (x gen_NSPopover) Close() { + C.NSPopover_inst_Close( unsafe.Pointer(x.Pointer()), - objc.RefPointer(sender), ) + return } -func (x gen_NSPopover) Close() { - C.NSPopover_inst_close( +// Init +// +// See https://developer.apple.com/documentation/appkit/nspopover/1526851-init?language=objc for details. +func (x gen_NSPopover) Init_AsNSPopover() NSPopover { + ret := C.NSPopover_inst_Init( unsafe.Pointer(x.Pointer()), ) - return + + return NSPopover_FromPointer(ret) } -func (x gen_NSPopover) Init_asNSPopover() ( - r0 NSPopover, +// PerformClose attempts to close the popover. +// +// See https://developer.apple.com/documentation/appkit/nspopover/1534290-performclose?language=objc for details. +func (x gen_NSPopover) PerformClose( + sender objc.Ref, ) { - ret := C.NSPopover_inst_init( + C.NSPopover_inst_PerformClose( unsafe.Pointer(x.Pointer()), + objc.RefPointer(sender), ) - r0 = NSPopover_fromPointer(ret) + return } -func (x gen_NSPopover) Behavior() ( - r0 core.NSInteger, -) { - ret := C.NSPopover_inst_behavior( +// Behavior specifies the behavior of the popover. +// +// See https://developer.apple.com/documentation/appkit/nspopover/1533539-behavior?language=objc for details. +func (x gen_NSPopover) Behavior() core.NSInteger { + ret := C.NSPopover_inst_Behavior( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSInteger(ret) - return + + return core.NSInteger(ret) } -func (x gen_NSPopover) SetBehavior_( +// SetBehavior specifies the behavior of the popover. +// +// See https://developer.apple.com/documentation/appkit/nspopover/1533539-behavior?language=objc for details. +func (x gen_NSPopover) SetBehavior( value core.NSInteger, ) { - C.NSPopover_inst_setBehavior_( + C.NSPopover_inst_SetBehavior( unsafe.Pointer(x.Pointer()), C.long(value), ) + return } -func (x gen_NSPopover) PositioningRect() ( - r0 core.NSRect, -) { - ret := C.NSPopover_inst_positioningRect( +// PositioningRect returns the rectangle within the positioning view relative to which the popover should be positioned. +// +// See https://developer.apple.com/documentation/appkit/nspopover/1526090-positioningrect?language=objc for details. +func (x gen_NSPopover) PositioningRect() core.NSRect { + ret := C.NSPopover_inst_PositioningRect( unsafe.Pointer(x.Pointer()), ) - r0 = *(*core.NSRect)(unsafe.Pointer(&ret)) - return + + return *(*core.NSRect)(unsafe.Pointer(&ret)) } -func (x gen_NSPopover) SetPositioningRect_( +// SetPositioningRect returns the rectangle within the positioning view relative to which the popover should be positioned. +// +// See https://developer.apple.com/documentation/appkit/nspopover/1526090-positioningrect?language=objc for details. +func (x gen_NSPopover) SetPositioningRect( value core.NSRect, ) { - C.NSPopover_inst_setPositioningRect_( + C.NSPopover_inst_SetPositioningRect( unsafe.Pointer(x.Pointer()), *(*C.NSRect)(unsafe.Pointer(&value)), ) + return } -func (x gen_NSPopover) Animates() ( - r0 bool, -) { - ret := C.NSPopover_inst_animates( +// Animates specifies if the popover is to be animated. +// +// See https://developer.apple.com/documentation/appkit/nspopover/1526527-animates?language=objc for details. +func (x gen_NSPopover) Animates() bool { + ret := C.NSPopover_inst_Animates( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSPopover) SetAnimates_( +// SetAnimates specifies if the popover is to be animated. +// +// See https://developer.apple.com/documentation/appkit/nspopover/1526527-animates?language=objc for details. +func (x gen_NSPopover) SetAnimates( value bool, ) { - C.NSPopover_inst_setAnimates_( + C.NSPopover_inst_SetAnimates( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSPopover) ContentSize() ( - r0 core.NSSize, -) { - ret := C.NSPopover_inst_contentSize( +// ContentSize returns the content size of the popover. +// +// See https://developer.apple.com/documentation/appkit/nspopover/1524677-contentsize?language=objc for details. +func (x gen_NSPopover) ContentSize() core.NSSize { + ret := C.NSPopover_inst_ContentSize( unsafe.Pointer(x.Pointer()), ) - r0 = *(*core.NSSize)(unsafe.Pointer(&ret)) - return + + return *(*core.NSSize)(unsafe.Pointer(&ret)) } -func (x gen_NSPopover) SetContentSize_( +// SetContentSize returns the content size of the popover. +// +// See https://developer.apple.com/documentation/appkit/nspopover/1524677-contentsize?language=objc for details. +func (x gen_NSPopover) SetContentSize( value core.NSSize, ) { - C.NSPopover_inst_setContentSize_( + C.NSPopover_inst_SetContentSize( unsafe.Pointer(x.Pointer()), *(*C.NSSize)(unsafe.Pointer(&value)), ) + return } -func (x gen_NSPopover) IsShown() ( - r0 bool, -) { - ret := C.NSPopover_inst_isShown( +// IsShown returns the display state of the popover. +// +// See https://developer.apple.com/documentation/appkit/nspopover/1535120-shown?language=objc for details. +func (x gen_NSPopover) IsShown() bool { + ret := C.NSPopover_inst_IsShown( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSPopover) IsDetached() ( - r0 bool, -) { - ret := C.NSPopover_inst_isDetached( +// IsDetached returns a boolean value that indicates whether the window created by a popover's detachment is automatically created. +// +// See https://developer.apple.com/documentation/appkit/nspopover/1534278-detached?language=objc for details. +func (x gen_NSPopover) IsDetached() bool { + ret := C.NSPopover_inst_IsDetached( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } type NSMenuItemRef interface { Pointer() uintptr - Init_asNSMenuItem() NSMenuItem + Init_AsNSMenuItem() NSMenuItem } type gen_NSMenuItem struct { objc.Object } -func NSMenuItem_fromPointer(ptr unsafe.Pointer) NSMenuItem { +func NSMenuItem_FromPointer(ptr unsafe.Pointer) NSMenuItem { return NSMenuItem{gen_NSMenuItem{ - objc.Object_fromPointer(ptr), + objc.Object_FromPointer(ptr), }} } -func NSMenuItem_fromRef(ref objc.Ref) NSMenuItem { - return NSMenuItem_fromPointer(unsafe.Pointer(ref.Pointer())) +func NSMenuItem_FromRef(ref objc.Ref) NSMenuItem { + return NSMenuItem_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_NSMenuItem) InitWithTitle_action_keyEquivalent__asNSMenuItem( +// InitWithTitleActionKeyEquivalent returns an initialized instance of nsmenuitem. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514858-initwithtitle?language=objc for details. +func (x gen_NSMenuItem) InitWithTitleActionKeyEquivalent_AsNSMenuItem( string core.NSStringRef, selector objc.Selector, charCode core.NSStringRef, -) ( - r0 NSMenuItem, -) { - ret := C.NSMenuItem_inst_initWithTitle_action_keyEquivalent_( +) NSMenuItem { + ret := C.NSMenuItem_inst_InitWithTitleActionKeyEquivalent( unsafe.Pointer(x.Pointer()), objc.RefPointer(string), selector.SelectorAddress(), objc.RefPointer(charCode), ) - r0 = NSMenuItem_fromPointer(ret) - return + + return NSMenuItem_FromPointer(ret) } -func (x gen_NSMenuItem) Init_asNSMenuItem() ( - r0 NSMenuItem, -) { - ret := C.NSMenuItem_inst_init( +// Init +// +// See for details. +func (x gen_NSMenuItem) Init_AsNSMenuItem() NSMenuItem { + ret := C.NSMenuItem_inst_Init( unsafe.Pointer(x.Pointer()), ) - r0 = NSMenuItem_fromPointer(ret) - return + + return NSMenuItem_FromPointer(ret) } -func (x gen_NSMenuItem) IsEnabled() ( - r0 bool, -) { - ret := C.NSMenuItem_inst_isEnabled( +// IsEnabled returns a boolean value that indicates whether the menu item is enabled. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514863-enabled?language=objc for details. +func (x gen_NSMenuItem) IsEnabled() bool { + ret := C.NSMenuItem_inst_IsEnabled( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSMenuItem) SetEnabled_( +// SetEnabled returns a boolean value that indicates whether the menu item is enabled. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514863-enabled?language=objc for details. +func (x gen_NSMenuItem) SetEnabled( value bool, ) { - C.NSMenuItem_inst_setEnabled_( + C.NSMenuItem_inst_SetEnabled( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSMenuItem) IsHidden() ( - r0 bool, -) { - ret := C.NSMenuItem_inst_isHidden( +// IsHidden returns a boolean value that indicates whether the menu item is hidden. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514846-hidden?language=objc for details. +func (x gen_NSMenuItem) IsHidden() bool { + ret := C.NSMenuItem_inst_IsHidden( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSMenuItem) SetHidden_( +// SetHidden returns a boolean value that indicates whether the menu item is hidden. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514846-hidden?language=objc for details. +func (x gen_NSMenuItem) SetHidden( value bool, ) { - C.NSMenuItem_inst_setHidden_( + C.NSMenuItem_inst_SetHidden( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSMenuItem) IsHiddenOrHasHiddenAncestor() ( - r0 bool, -) { - ret := C.NSMenuItem_inst_isHiddenOrHasHiddenAncestor( +// IsHiddenOrHasHiddenAncestor returns a boolean value that indicates whether the menu item or any of its superitems is hidden. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514832-hiddenorhashiddenancestor?language=objc for details. +func (x gen_NSMenuItem) IsHiddenOrHasHiddenAncestor() bool { + ret := C.NSMenuItem_inst_IsHiddenOrHasHiddenAncestor( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSMenuItem) Target() ( - r0 objc.Object, -) { - ret := C.NSMenuItem_inst_target( +// Target returns the menu item's target. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514843-target?language=objc for details. +func (x gen_NSMenuItem) Target() objc.Object { + ret := C.NSMenuItem_inst_Target( unsafe.Pointer(x.Pointer()), ) - r0 = objc.Object_fromPointer(ret) - return + + return objc.Object_FromPointer(ret) } -func (x gen_NSMenuItem) SetTarget_( +// SetTarget returns the menu item's target. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514843-target?language=objc for details. +func (x gen_NSMenuItem) SetTarget( value objc.Ref, ) { - C.NSMenuItem_inst_setTarget_( + C.NSMenuItem_inst_SetTarget( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSMenuItem) Action() ( - r0 objc.Selector, -) { - ret := C.NSMenuItem_inst_action( +// Action returns the menu item's action-method selector. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514825-action?language=objc for details. +func (x gen_NSMenuItem) Action() objc.Selector { + ret := C.NSMenuItem_inst_Action( unsafe.Pointer(x.Pointer()), ) - r0 = objc.SelectorAt(ret) - return + + return objc.SelectorAt(ret) } -func (x gen_NSMenuItem) SetAction_( +// SetAction returns the menu item's action-method selector. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514825-action?language=objc for details. +func (x gen_NSMenuItem) SetAction( value objc.Selector, ) { - C.NSMenuItem_inst_setAction_( + C.NSMenuItem_inst_SetAction( unsafe.Pointer(x.Pointer()), value.SelectorAddress(), ) + return } -func (x gen_NSMenuItem) Title() ( - r0 core.NSString, -) { - ret := C.NSMenuItem_inst_title( +// Title returns the menu item's title. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514805-title?language=objc for details. +func (x gen_NSMenuItem) Title() core.NSString { + ret := C.NSMenuItem_inst_Title( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_NSMenuItem) SetTitle_( +// SetTitle returns the menu item's title. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514805-title?language=objc for details. +func (x gen_NSMenuItem) SetTitle( value core.NSStringRef, ) { - C.NSMenuItem_inst_setTitle_( + C.NSMenuItem_inst_SetTitle( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSMenuItem) AttributedTitle() ( - r0 core.NSAttributedString, -) { - ret := C.NSMenuItem_inst_attributedTitle( +// AttributedTitle returns a custom string for a menu item. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514860-attributedtitle?language=objc for details. +func (x gen_NSMenuItem) AttributedTitle() core.NSAttributedString { + ret := C.NSMenuItem_inst_AttributedTitle( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSAttributedString_fromPointer(ret) - return + + return core.NSAttributedString_FromPointer(ret) } -func (x gen_NSMenuItem) SetAttributedTitle_( +// SetAttributedTitle returns a custom string for a menu item. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514860-attributedtitle?language=objc for details. +func (x gen_NSMenuItem) SetAttributedTitle( value core.NSAttributedStringRef, ) { - C.NSMenuItem_inst_setAttributedTitle_( + C.NSMenuItem_inst_SetAttributedTitle( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSMenuItem) Tag() ( - r0 core.NSInteger, -) { - ret := C.NSMenuItem_inst_tag( +// Tag returns the menu item's tag. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514840-tag?language=objc for details. +func (x gen_NSMenuItem) Tag() core.NSInteger { + ret := C.NSMenuItem_inst_Tag( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSInteger(ret) - return + + return core.NSInteger(ret) } -func (x gen_NSMenuItem) SetTag_( +// SetTag returns the menu item's tag. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514840-tag?language=objc for details. +func (x gen_NSMenuItem) SetTag( value core.NSInteger, ) { - C.NSMenuItem_inst_setTag_( + C.NSMenuItem_inst_SetTag( unsafe.Pointer(x.Pointer()), C.long(value), ) + return } -func (x gen_NSMenuItem) State() ( - r0 core.NSInteger, -) { - ret := C.NSMenuItem_inst_state( +// State returns the state of the menu item. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514804-state?language=objc for details. +func (x gen_NSMenuItem) State() core.NSInteger { + ret := C.NSMenuItem_inst_State( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSInteger(ret) - return + + return core.NSInteger(ret) } -func (x gen_NSMenuItem) SetState_( +// SetState returns the state of the menu item. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514804-state?language=objc for details. +func (x gen_NSMenuItem) SetState( value core.NSInteger, ) { - C.NSMenuItem_inst_setState_( + C.NSMenuItem_inst_SetState( unsafe.Pointer(x.Pointer()), C.long(value), ) + return } -func (x gen_NSMenuItem) Image() ( - r0 NSImage, -) { - ret := C.NSMenuItem_inst_image( +// Image returns the menu item’s image. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514819-image?language=objc for details. +func (x gen_NSMenuItem) Image() NSImage { + ret := C.NSMenuItem_inst_Image( unsafe.Pointer(x.Pointer()), ) - r0 = NSImage_fromPointer(ret) - return + + return NSImage_FromPointer(ret) } -func (x gen_NSMenuItem) SetImage_( +// SetImage returns the menu item’s image. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514819-image?language=objc for details. +func (x gen_NSMenuItem) SetImage( value NSImageRef, ) { - C.NSMenuItem_inst_setImage_( + C.NSMenuItem_inst_SetImage( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSMenuItem) OnStateImage() ( - r0 NSImage, -) { - ret := C.NSMenuItem_inst_onStateImage( +// OnStateImage returns the image of the menu item that indicates an “on” state. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514861-onstateimage?language=objc for details. +func (x gen_NSMenuItem) OnStateImage() NSImage { + ret := C.NSMenuItem_inst_OnStateImage( unsafe.Pointer(x.Pointer()), ) - r0 = NSImage_fromPointer(ret) - return + + return NSImage_FromPointer(ret) } -func (x gen_NSMenuItem) SetOnStateImage_( +// SetOnStateImage returns the image of the menu item that indicates an “on” state. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514861-onstateimage?language=objc for details. +func (x gen_NSMenuItem) SetOnStateImage( value NSImageRef, ) { - C.NSMenuItem_inst_setOnStateImage_( + C.NSMenuItem_inst_SetOnStateImage( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSMenuItem) OffStateImage() ( - r0 NSImage, -) { - ret := C.NSMenuItem_inst_offStateImage( +// OffStateImage returns the image of the menu item that indicates an “off” state. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514821-offstateimage?language=objc for details. +func (x gen_NSMenuItem) OffStateImage() NSImage { + ret := C.NSMenuItem_inst_OffStateImage( unsafe.Pointer(x.Pointer()), ) - r0 = NSImage_fromPointer(ret) - return + + return NSImage_FromPointer(ret) } -func (x gen_NSMenuItem) SetOffStateImage_( +// SetOffStateImage returns the image of the menu item that indicates an “off” state. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514821-offstateimage?language=objc for details. +func (x gen_NSMenuItem) SetOffStateImage( value NSImageRef, ) { - C.NSMenuItem_inst_setOffStateImage_( + C.NSMenuItem_inst_SetOffStateImage( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSMenuItem) MixedStateImage() ( - r0 NSImage, -) { - ret := C.NSMenuItem_inst_mixedStateImage( +// MixedStateImage returns the image of the menu item that indicates a “mixed” state, that is, a state neither “on” nor “off.” +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514827-mixedstateimage?language=objc for details. +func (x gen_NSMenuItem) MixedStateImage() NSImage { + ret := C.NSMenuItem_inst_MixedStateImage( unsafe.Pointer(x.Pointer()), ) - r0 = NSImage_fromPointer(ret) - return + + return NSImage_FromPointer(ret) } -func (x gen_NSMenuItem) SetMixedStateImage_( +// SetMixedStateImage returns the image of the menu item that indicates a “mixed” state, that is, a state neither “on” nor “off.” +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514827-mixedstateimage?language=objc for details. +func (x gen_NSMenuItem) SetMixedStateImage( value NSImageRef, ) { - C.NSMenuItem_inst_setMixedStateImage_( + C.NSMenuItem_inst_SetMixedStateImage( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSMenuItem) Submenu() ( - r0 NSMenu, -) { - ret := C.NSMenuItem_inst_submenu( +// Submenu returns the submenu of the menu item. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514845-submenu?language=objc for details. +func (x gen_NSMenuItem) Submenu() NSMenu { + ret := C.NSMenuItem_inst_Submenu( unsafe.Pointer(x.Pointer()), ) - r0 = NSMenu_fromPointer(ret) - return + + return NSMenu_FromPointer(ret) } -func (x gen_NSMenuItem) SetSubmenu_( +// SetSubmenu returns the submenu of the menu item. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514845-submenu?language=objc for details. +func (x gen_NSMenuItem) SetSubmenu( value NSMenuRef, ) { - C.NSMenuItem_inst_setSubmenu_( + C.NSMenuItem_inst_SetSubmenu( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSMenuItem) HasSubmenu() ( - r0 bool, -) { - ret := C.NSMenuItem_inst_hasSubmenu( +// HasSubmenu returns a boolean value that indicates whether the menu item has a submenu. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514817-hassubmenu?language=objc for details. +func (x gen_NSMenuItem) HasSubmenu() bool { + ret := C.NSMenuItem_inst_HasSubmenu( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSMenuItem) ParentItem() ( - r0 NSMenuItem, -) { - ret := C.NSMenuItem_inst_parentItem( +// ParentItem returns the menu item whose submenu contains the receiver. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514813-parentitem?language=objc for details. +func (x gen_NSMenuItem) ParentItem() NSMenuItem { + ret := C.NSMenuItem_inst_ParentItem( unsafe.Pointer(x.Pointer()), ) - r0 = NSMenuItem_fromPointer(ret) - return + + return NSMenuItem_FromPointer(ret) } -func (x gen_NSMenuItem) IsSeparatorItem() ( - r0 bool, -) { - ret := C.NSMenuItem_inst_isSeparatorItem( +// IsSeparatorItem returns a menu item that is used to separate logical groups of menu commands. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514837-separatoritem?language=objc for details. +func (x gen_NSMenuItem) IsSeparatorItem() bool { + ret := C.NSMenuItem_inst_IsSeparatorItem( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSMenuItem) Menu() ( - r0 NSMenu, -) { - ret := C.NSMenuItem_inst_menu( +// Menu returns the menu item’s menu. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514830-menu?language=objc for details. +func (x gen_NSMenuItem) Menu() NSMenu { + ret := C.NSMenuItem_inst_Menu( unsafe.Pointer(x.Pointer()), ) - r0 = NSMenu_fromPointer(ret) - return + + return NSMenu_FromPointer(ret) } -func (x gen_NSMenuItem) SetMenu_( +// SetMenu returns the menu item’s menu. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514830-menu?language=objc for details. +func (x gen_NSMenuItem) SetMenu( value NSMenuRef, ) { - C.NSMenuItem_inst_setMenu_( + C.NSMenuItem_inst_SetMenu( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSMenuItem) KeyEquivalent() ( - r0 core.NSString, -) { - ret := C.NSMenuItem_inst_keyEquivalent( +// KeyEquivalent returns the menu item’s unmodified key equivalent. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514842-keyequivalent?language=objc for details. +func (x gen_NSMenuItem) KeyEquivalent() core.NSString { + ret := C.NSMenuItem_inst_KeyEquivalent( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_NSMenuItem) SetKeyEquivalent_( +// SetKeyEquivalent returns the menu item’s unmodified key equivalent. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514842-keyequivalent?language=objc for details. +func (x gen_NSMenuItem) SetKeyEquivalent( value core.NSStringRef, ) { - C.NSMenuItem_inst_setKeyEquivalent_( + C.NSMenuItem_inst_SetKeyEquivalent( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSMenuItem) UserKeyEquivalent() ( - r0 core.NSString, -) { - ret := C.NSMenuItem_inst_userKeyEquivalent( +// UserKeyEquivalent returns the user-assigned key equivalent for the menu item. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514850-userkeyequivalent?language=objc for details. +func (x gen_NSMenuItem) UserKeyEquivalent() core.NSString { + ret := C.NSMenuItem_inst_UserKeyEquivalent( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_NSMenuItem) IsAlternate() ( - r0 bool, -) { - ret := C.NSMenuItem_inst_isAlternate( +// IsAlternate returns a boolean value that marks the menu item as an alternate to the previous menu item. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514823-alternate?language=objc for details. +func (x gen_NSMenuItem) IsAlternate() bool { + ret := C.NSMenuItem_inst_IsAlternate( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSMenuItem) SetAlternate_( +// SetAlternate returns a boolean value that marks the menu item as an alternate to the previous menu item. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514823-alternate?language=objc for details. +func (x gen_NSMenuItem) SetAlternate( value bool, ) { - C.NSMenuItem_inst_setAlternate_( + C.NSMenuItem_inst_SetAlternate( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSMenuItem) IndentationLevel() ( - r0 core.NSInteger, -) { - ret := C.NSMenuItem_inst_indentationLevel( +// IndentationLevel returns the menu item indentation level for the menu item. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514809-indentationlevel?language=objc for details. +func (x gen_NSMenuItem) IndentationLevel() core.NSInteger { + ret := C.NSMenuItem_inst_IndentationLevel( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSInteger(ret) - return + + return core.NSInteger(ret) } -func (x gen_NSMenuItem) SetIndentationLevel_( +// SetIndentationLevel returns the menu item indentation level for the menu item. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514809-indentationlevel?language=objc for details. +func (x gen_NSMenuItem) SetIndentationLevel( value core.NSInteger, ) { - C.NSMenuItem_inst_setIndentationLevel_( + C.NSMenuItem_inst_SetIndentationLevel( unsafe.Pointer(x.Pointer()), C.long(value), ) + return } -func (x gen_NSMenuItem) ToolTip() ( - r0 core.NSString, -) { - ret := C.NSMenuItem_inst_toolTip( +// ToolTip returns a help tag for the menu item. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514848-tooltip?language=objc for details. +func (x gen_NSMenuItem) ToolTip() core.NSString { + ret := C.NSMenuItem_inst_ToolTip( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_NSMenuItem) SetToolTip_( +// SetToolTip returns a help tag for the menu item. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514848-tooltip?language=objc for details. +func (x gen_NSMenuItem) SetToolTip( value core.NSStringRef, ) { - C.NSMenuItem_inst_setToolTip_( + C.NSMenuItem_inst_SetToolTip( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSMenuItem) RepresentedObject() ( - r0 objc.Object, -) { - ret := C.NSMenuItem_inst_representedObject( +// RepresentedObject returns the object represented by the menu item. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514834-representedobject?language=objc for details. +func (x gen_NSMenuItem) RepresentedObject() objc.Object { + ret := C.NSMenuItem_inst_RepresentedObject( unsafe.Pointer(x.Pointer()), ) - r0 = objc.Object_fromPointer(ret) - return + + return objc.Object_FromPointer(ret) } -func (x gen_NSMenuItem) SetRepresentedObject_( +// SetRepresentedObject returns the object represented by the menu item. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514834-representedobject?language=objc for details. +func (x gen_NSMenuItem) SetRepresentedObject( value objc.Ref, ) { - C.NSMenuItem_inst_setRepresentedObject_( + C.NSMenuItem_inst_SetRepresentedObject( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSMenuItem) View() ( - r0 NSView, -) { - ret := C.NSMenuItem_inst_view( +// View returns the content view for the menu item. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514835-view?language=objc for details. +func (x gen_NSMenuItem) View() NSView { + ret := C.NSMenuItem_inst_View( unsafe.Pointer(x.Pointer()), ) - r0 = NSView_fromPointer(ret) - return + + return NSView_FromPointer(ret) } -func (x gen_NSMenuItem) SetView_( +// SetView returns the content view for the menu item. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514835-view?language=objc for details. +func (x gen_NSMenuItem) SetView( value NSViewRef, ) { - C.NSMenuItem_inst_setView_( + C.NSMenuItem_inst_SetView( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSMenuItem) IsHighlighted() ( - r0 bool, -) { - ret := C.NSMenuItem_inst_isHighlighted( +// IsHighlighted returns a boolean value that indicates whether the menu item should be drawn highlighted. +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/1514856-highlighted?language=objc for details. +func (x gen_NSMenuItem) IsHighlighted() bool { + ret := C.NSMenuItem_inst_IsHighlighted( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSMenuItem) AllowsAutomaticKeyEquivalentLocalization() ( - r0 bool, -) { - ret := C.NSMenuItem_inst_allowsAutomaticKeyEquivalentLocalization( +// AllowsAutomaticKeyEquivalentLocalization +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/3787554-allowsautomatickeyequivalentloca?language=objc for details. +func (x gen_NSMenuItem) AllowsAutomaticKeyEquivalentLocalization() bool { + ret := C.NSMenuItem_inst_AllowsAutomaticKeyEquivalentLocalization( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSMenuItem) SetAllowsAutomaticKeyEquivalentLocalization_( +// SetAllowsAutomaticKeyEquivalentLocalization +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/3787554-allowsautomatickeyequivalentloca?language=objc for details. +func (x gen_NSMenuItem) SetAllowsAutomaticKeyEquivalentLocalization( value bool, ) { - C.NSMenuItem_inst_setAllowsAutomaticKeyEquivalentLocalization_( + C.NSMenuItem_inst_SetAllowsAutomaticKeyEquivalentLocalization( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSMenuItem) AllowsAutomaticKeyEquivalentMirroring() ( - r0 bool, -) { - ret := C.NSMenuItem_inst_allowsAutomaticKeyEquivalentMirroring( +// AllowsAutomaticKeyEquivalentMirroring +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/3787555-allowsautomatickeyequivalentmirr?language=objc for details. +func (x gen_NSMenuItem) AllowsAutomaticKeyEquivalentMirroring() bool { + ret := C.NSMenuItem_inst_AllowsAutomaticKeyEquivalentMirroring( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSMenuItem) SetAllowsAutomaticKeyEquivalentMirroring_( +// SetAllowsAutomaticKeyEquivalentMirroring +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/3787555-allowsautomatickeyequivalentmirr?language=objc for details. +func (x gen_NSMenuItem) SetAllowsAutomaticKeyEquivalentMirroring( value bool, ) { - C.NSMenuItem_inst_setAllowsAutomaticKeyEquivalentMirroring_( + C.NSMenuItem_inst_SetAllowsAutomaticKeyEquivalentMirroring( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSMenuItem) AllowsKeyEquivalentWhenHidden() ( - r0 bool, -) { - ret := C.NSMenuItem_inst_allowsKeyEquivalentWhenHidden( +// AllowsKeyEquivalentWhenHidden +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/2880316-allowskeyequivalentwhenhidden?language=objc for details. +func (x gen_NSMenuItem) AllowsKeyEquivalentWhenHidden() bool { + ret := C.NSMenuItem_inst_AllowsKeyEquivalentWhenHidden( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSMenuItem) SetAllowsKeyEquivalentWhenHidden_( +// SetAllowsKeyEquivalentWhenHidden +// +// See https://developer.apple.com/documentation/appkit/nsmenuitem/2880316-allowskeyequivalentwhenhidden?language=objc for details. +func (x gen_NSMenuItem) SetAllowsKeyEquivalentWhenHidden( value bool, ) { - C.NSMenuItem_inst_setAllowsKeyEquivalentWhenHidden_( + C.NSMenuItem_inst_SetAllowsKeyEquivalentWhenHidden( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } type NSRunningApplicationRef interface { Pointer() uintptr - Init_asNSRunningApplication() NSRunningApplication + Init_AsNSRunningApplication() NSRunningApplication } type gen_NSRunningApplication struct { objc.Object } -func NSRunningApplication_fromPointer(ptr unsafe.Pointer) NSRunningApplication { +func NSRunningApplication_FromPointer(ptr unsafe.Pointer) NSRunningApplication { return NSRunningApplication{gen_NSRunningApplication{ - objc.Object_fromPointer(ptr), + objc.Object_FromPointer(ptr), }} } -func NSRunningApplication_fromRef(ref objc.Ref) NSRunningApplication { - return NSRunningApplication_fromPointer(unsafe.Pointer(ref.Pointer())) +func NSRunningApplication_FromRef(ref objc.Ref) NSRunningApplication { + return NSRunningApplication_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_NSRunningApplication) Hide() ( - r0 bool, -) { - ret := C.NSRunningApplication_inst_hide( +// ForceTerminate attempts to force the receiver to quit. +// +// See https://developer.apple.com/documentation/appkit/nsrunningapplication/1530370-forceterminate?language=objc for details. +func (x gen_NSRunningApplication) ForceTerminate() bool { + ret := C.NSRunningApplication_inst_ForceTerminate( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSRunningApplication) Unhide() ( - r0 bool, -) { - ret := C.NSRunningApplication_inst_unhide( +// Hide attempts to hide or the application. +// +// See https://developer.apple.com/documentation/appkit/nsrunningapplication/1526608-hide?language=objc for details. +func (x gen_NSRunningApplication) Hide() bool { + ret := C.NSRunningApplication_inst_Hide( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSRunningApplication) ForceTerminate() ( - r0 bool, -) { - ret := C.NSRunningApplication_inst_forceTerminate( +// Terminate attempts to quit the receiver normally. +// +// See https://developer.apple.com/documentation/appkit/nsrunningapplication/1528922-terminate?language=objc for details. +func (x gen_NSRunningApplication) Terminate() bool { + ret := C.NSRunningApplication_inst_Terminate( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSRunningApplication) Terminate() ( - r0 bool, -) { - ret := C.NSRunningApplication_inst_terminate( +// Unhide attempts to unhide or the application. +// +// See https://developer.apple.com/documentation/appkit/nsrunningapplication/1534676-unhide?language=objc for details. +func (x gen_NSRunningApplication) Unhide() bool { + ret := C.NSRunningApplication_inst_Unhide( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSRunningApplication) Init_asNSRunningApplication() ( - r0 NSRunningApplication, -) { - ret := C.NSRunningApplication_inst_init( +// Init +// +// See for details. +func (x gen_NSRunningApplication) Init_AsNSRunningApplication() NSRunningApplication { + ret := C.NSRunningApplication_inst_Init( unsafe.Pointer(x.Pointer()), ) - r0 = NSRunningApplication_fromPointer(ret) - return + + return NSRunningApplication_FromPointer(ret) } -func (x gen_NSRunningApplication) IsActive() ( - r0 bool, -) { - ret := C.NSRunningApplication_inst_isActive( +// IsActive indicates whether the application is currently frontmost. +// +// See https://developer.apple.com/documentation/appkit/nsrunningapplication/1528778-active?language=objc for details. +func (x gen_NSRunningApplication) IsActive() bool { + ret := C.NSRunningApplication_inst_IsActive( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSRunningApplication) ActivationPolicy() ( - r0 core.NSInteger, -) { - ret := C.NSRunningApplication_inst_activationPolicy( +// ActivationPolicy indicates the activation policy of the application. +// +// See https://developer.apple.com/documentation/appkit/nsrunningapplication/1533103-activationpolicy?language=objc for details. +func (x gen_NSRunningApplication) ActivationPolicy() core.NSInteger { + ret := C.NSRunningApplication_inst_ActivationPolicy( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSInteger(ret) - return + + return core.NSInteger(ret) } -func (x gen_NSRunningApplication) IsHidden() ( - r0 bool, -) { - ret := C.NSRunningApplication_inst_isHidden( +// IsHidden indicates whether the application is currently hidden. +// +// See https://developer.apple.com/documentation/appkit/nsrunningapplication/1525949-hidden?language=objc for details. +func (x gen_NSRunningApplication) IsHidden() bool { + ret := C.NSRunningApplication_inst_IsHidden( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSRunningApplication) LocalizedName() ( - r0 core.NSString, -) { - ret := C.NSRunningApplication_inst_localizedName( +// LocalizedName indicates the localized name of the application. +// +// See https://developer.apple.com/documentation/appkit/nsrunningapplication/1526751-localizedname?language=objc for details. +func (x gen_NSRunningApplication) LocalizedName() core.NSString { + ret := C.NSRunningApplication_inst_LocalizedName( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_NSRunningApplication) Icon() ( - r0 NSImage, -) { - ret := C.NSRunningApplication_inst_icon( +// Icon returns the icon for the receiver’s application. +// +// See https://developer.apple.com/documentation/appkit/nsrunningapplication/1529885-icon?language=objc for details. +func (x gen_NSRunningApplication) Icon() NSImage { + ret := C.NSRunningApplication_inst_Icon( unsafe.Pointer(x.Pointer()), ) - r0 = NSImage_fromPointer(ret) - return + + return NSImage_FromPointer(ret) } -func (x gen_NSRunningApplication) BundleIdentifier() ( - r0 core.NSString, -) { - ret := C.NSRunningApplication_inst_bundleIdentifier( +// BundleIdentifier indicates the cfbundleidentifier of the application. +// +// See https://developer.apple.com/documentation/appkit/nsrunningapplication/1529140-bundleidentifier?language=objc for details. +func (x gen_NSRunningApplication) BundleIdentifier() core.NSString { + ret := C.NSRunningApplication_inst_BundleIdentifier( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_NSRunningApplication) BundleURL() ( - r0 core.NSURL, -) { - ret := C.NSRunningApplication_inst_bundleURL( +// BundleURL indicates the url to the application's bundle. +// +// See https://developer.apple.com/documentation/appkit/nsrunningapplication/1535500-bundleurl?language=objc for details. +func (x gen_NSRunningApplication) BundleURL() core.NSURL { + ret := C.NSRunningApplication_inst_BundleURL( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSURL_fromPointer(ret) - return + + return core.NSURL_FromPointer(ret) } -func (x gen_NSRunningApplication) ExecutableArchitecture() ( - r0 core.NSInteger, -) { - ret := C.NSRunningApplication_inst_executableArchitecture( +// ExecutableArchitecture indicates the executing processor architecture for the application. +// +// See https://developer.apple.com/documentation/appkit/nsrunningapplication/1524287-executablearchitecture?language=objc for details. +func (x gen_NSRunningApplication) ExecutableArchitecture() core.NSInteger { + ret := C.NSRunningApplication_inst_ExecutableArchitecture( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSInteger(ret) - return + + return core.NSInteger(ret) } -func (x gen_NSRunningApplication) ExecutableURL() ( - r0 core.NSURL, -) { - ret := C.NSRunningApplication_inst_executableURL( +// ExecutableURL indicates the url to the application's executable. +// +// See https://developer.apple.com/documentation/appkit/nsrunningapplication/1531062-executableurl?language=objc for details. +func (x gen_NSRunningApplication) ExecutableURL() core.NSURL { + ret := C.NSRunningApplication_inst_ExecutableURL( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSURL_fromPointer(ret) - return + + return core.NSURL_FromPointer(ret) } -func (x gen_NSRunningApplication) IsFinishedLaunching() ( - r0 bool, -) { - ret := C.NSRunningApplication_inst_isFinishedLaunching( +// IsFinishedLaunching indicates whether the receiver’s process has finished launching, +// +// See https://developer.apple.com/documentation/appkit/nsrunningapplication/1532002-finishedlaunching?language=objc for details. +func (x gen_NSRunningApplication) IsFinishedLaunching() bool { + ret := C.NSRunningApplication_inst_IsFinishedLaunching( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSRunningApplication) OwnsMenuBar() ( - r0 bool, -) { - ret := C.NSRunningApplication_inst_ownsMenuBar( +// OwnsMenuBar returns whether the application owns the current menu bar. +// +// See https://developer.apple.com/documentation/appkit/nsrunningapplication/1525915-ownsmenubar?language=objc for details. +func (x gen_NSRunningApplication) OwnsMenuBar() bool { + ret := C.NSRunningApplication_inst_OwnsMenuBar( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSRunningApplication) IsTerminated() ( - r0 bool, -) { - ret := C.NSRunningApplication_inst_isTerminated( +// IsTerminated indicates that the receiver’s application has terminated. +// +// See https://developer.apple.com/documentation/appkit/nsrunningapplication/1532239-terminated?language=objc for details. +func (x gen_NSRunningApplication) IsTerminated() bool { + ret := C.NSRunningApplication_inst_IsTerminated( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } type NSScreenRef interface { Pointer() uintptr - Init_asNSScreen() NSScreen + Init_AsNSScreen() NSScreen } type gen_NSScreen struct { objc.Object } -func NSScreen_fromPointer(ptr unsafe.Pointer) NSScreen { +func NSScreen_FromPointer(ptr unsafe.Pointer) NSScreen { return NSScreen{gen_NSScreen{ - objc.Object_fromPointer(ptr), + objc.Object_FromPointer(ptr), }} } -func NSScreen_fromRef(ref objc.Ref) NSScreen { - return NSScreen_fromPointer(unsafe.Pointer(ref.Pointer())) +func NSScreen_FromRef(ref objc.Ref) NSScreen { + return NSScreen_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_NSScreen) ConvertRectFromBacking_( +// ConvertRectFromBacking converts the rectangle from the device pixel aligned coordinates system of a screen. +// +// See https://developer.apple.com/documentation/appkit/nsscreen/1388364-convertrectfrombacking?language=objc for details. +func (x gen_NSScreen) ConvertRectFromBacking( rect core.NSRect, -) ( - r0 core.NSRect, -) { - ret := C.NSScreen_inst_convertRectFromBacking_( +) core.NSRect { + ret := C.NSScreen_inst_ConvertRectFromBacking( unsafe.Pointer(x.Pointer()), *(*C.NSRect)(unsafe.Pointer(&rect)), ) - r0 = *(*core.NSRect)(unsafe.Pointer(&ret)) - return + + return *(*core.NSRect)(unsafe.Pointer(&ret)) } -func (x gen_NSScreen) ConvertRectToBacking_( +// ConvertRectToBacking converts the rectangle to the device pixel aligned coordinates system of a screen. +// +// See https://developer.apple.com/documentation/appkit/nsscreen/1388389-convertrecttobacking?language=objc for details. +func (x gen_NSScreen) ConvertRectToBacking( rect core.NSRect, -) ( - r0 core.NSRect, -) { - ret := C.NSScreen_inst_convertRectToBacking_( +) core.NSRect { + ret := C.NSScreen_inst_ConvertRectToBacking( unsafe.Pointer(x.Pointer()), *(*C.NSRect)(unsafe.Pointer(&rect)), ) - r0 = *(*core.NSRect)(unsafe.Pointer(&ret)) - return + + return *(*core.NSRect)(unsafe.Pointer(&ret)) } -func (x gen_NSScreen) Init_asNSScreen() ( - r0 NSScreen, -) { - ret := C.NSScreen_inst_init( +// Init +// +// See for details. +func (x gen_NSScreen) Init_AsNSScreen() NSScreen { + ret := C.NSScreen_inst_Init( unsafe.Pointer(x.Pointer()), ) - r0 = NSScreen_fromPointer(ret) - return + + return NSScreen_FromPointer(ret) } -func (x gen_NSScreen) Frame() ( - r0 core.NSRect, -) { - ret := C.NSScreen_inst_frame( +// Frame returns the dimensions and location of the screen. +// +// See https://developer.apple.com/documentation/appkit/nsscreen/1388387-frame?language=objc for details. +func (x gen_NSScreen) Frame() core.NSRect { + ret := C.NSScreen_inst_Frame( unsafe.Pointer(x.Pointer()), ) - r0 = *(*core.NSRect)(unsafe.Pointer(&ret)) - return + + return *(*core.NSRect)(unsafe.Pointer(&ret)) } -func (x gen_NSScreen) DeviceDescription() ( - r0 core.NSDictionary, -) { - ret := C.NSScreen_inst_deviceDescription( +// DeviceDescription returns the device dictionary for the screen. +// +// See https://developer.apple.com/documentation/appkit/nsscreen/1388360-devicedescription?language=objc for details. +func (x gen_NSScreen) DeviceDescription() core.NSDictionary { + ret := C.NSScreen_inst_DeviceDescription( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSDictionary_fromPointer(ret) - return + + return core.NSDictionary_FromPointer(ret) } -func (x gen_NSScreen) VisibleFrame() ( - r0 core.NSRect, -) { - ret := C.NSScreen_inst_visibleFrame( +// VisibleFrame returns the current location and dimensions of the visible screen. +// +// See https://developer.apple.com/documentation/appkit/nsscreen/1388369-visibleframe?language=objc for details. +func (x gen_NSScreen) VisibleFrame() core.NSRect { + ret := C.NSScreen_inst_VisibleFrame( unsafe.Pointer(x.Pointer()), ) - r0 = *(*core.NSRect)(unsafe.Pointer(&ret)) - return + + return *(*core.NSRect)(unsafe.Pointer(&ret)) } -func (x gen_NSScreen) BackingScaleFactor() ( - r0 core.CGFloat, -) { - ret := C.NSScreen_inst_backingScaleFactor( +// BackingScaleFactor returns the backing store pixel scale factor for the screen. +// +// See https://developer.apple.com/documentation/appkit/nsscreen/1388385-backingscalefactor?language=objc for details. +func (x gen_NSScreen) BackingScaleFactor() core.CGFloat { + ret := C.NSScreen_inst_BackingScaleFactor( unsafe.Pointer(x.Pointer()), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } -func (x gen_NSScreen) MaximumPotentialExtendedDynamicRangeColorComponentValue() ( - r0 core.CGFloat, -) { - ret := C.NSScreen_inst_maximumPotentialExtendedDynamicRangeColorComponentValue( +// MaximumPotentialExtendedDynamicRangeColorComponentValue returns the maximum possible color component value for the screen when it's in extended dynamic range (edr) mode. +// +// See https://developer.apple.com/documentation/appkit/nsscreen/3180381-maximumpotentialextendeddynamicr?language=objc for details. +func (x gen_NSScreen) MaximumPotentialExtendedDynamicRangeColorComponentValue() core.CGFloat { + ret := C.NSScreen_inst_MaximumPotentialExtendedDynamicRangeColorComponentValue( unsafe.Pointer(x.Pointer()), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } -func (x gen_NSScreen) MaximumExtendedDynamicRangeColorComponentValue() ( - r0 core.CGFloat, -) { - ret := C.NSScreen_inst_maximumExtendedDynamicRangeColorComponentValue( +// MaximumExtendedDynamicRangeColorComponentValue returns the current maximum color component value for the screen. +// +// See https://developer.apple.com/documentation/appkit/nsscreen/1388362-maximumextendeddynamicrangecolor?language=objc for details. +func (x gen_NSScreen) MaximumExtendedDynamicRangeColorComponentValue() core.CGFloat { + ret := C.NSScreen_inst_MaximumExtendedDynamicRangeColorComponentValue( unsafe.Pointer(x.Pointer()), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } -func (x gen_NSScreen) MaximumReferenceExtendedDynamicRangeColorComponentValue() ( - r0 core.CGFloat, -) { - ret := C.NSScreen_inst_maximumReferenceExtendedDynamicRangeColorComponentValue( +// MaximumReferenceExtendedDynamicRangeColorComponentValue returns the current maximum color component value for reference rendering to the screen. +// +// See https://developer.apple.com/documentation/appkit/nsscreen/3180382-maximumreferenceextendeddynamicr?language=objc for details. +func (x gen_NSScreen) MaximumReferenceExtendedDynamicRangeColorComponentValue() core.CGFloat { + ret := C.NSScreen_inst_MaximumReferenceExtendedDynamicRangeColorComponentValue( unsafe.Pointer(x.Pointer()), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } -func (x gen_NSScreen) LocalizedName() ( - r0 core.NSString, -) { - ret := C.NSScreen_inst_localizedName( +// LocalizedName +// +// See https://developer.apple.com/documentation/appkit/nsscreen/3228043-localizedname?language=objc for details. +func (x gen_NSScreen) LocalizedName() core.NSString { + ret := C.NSScreen_inst_LocalizedName( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_NSScreen) MaximumFramesPerSecond() ( - r0 core.NSInteger, -) { - ret := C.NSScreen_inst_maximumFramesPerSecond( +// MaximumFramesPerSecond +// +// See https://developer.apple.com/documentation/appkit/nsscreen/3824745-maximumframespersecond?language=objc for details. +func (x gen_NSScreen) MaximumFramesPerSecond() core.NSInteger { + ret := C.NSScreen_inst_MaximumFramesPerSecond( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSInteger(ret) - return + + return core.NSInteger(ret) } type NSStatusBarRef interface { Pointer() uintptr - Init_asNSStatusBar() NSStatusBar + Init_AsNSStatusBar() NSStatusBar } type gen_NSStatusBar struct { objc.Object } -func NSStatusBar_fromPointer(ptr unsafe.Pointer) NSStatusBar { +func NSStatusBar_FromPointer(ptr unsafe.Pointer) NSStatusBar { return NSStatusBar{gen_NSStatusBar{ - objc.Object_fromPointer(ptr), + objc.Object_FromPointer(ptr), }} } -func NSStatusBar_fromRef(ref objc.Ref) NSStatusBar { - return NSStatusBar_fromPointer(unsafe.Pointer(ref.Pointer())) +func NSStatusBar_FromRef(ref objc.Ref) NSStatusBar { + return NSStatusBar_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_NSStatusBar) StatusItemWithLength_( - length core.CGFloat, -) ( - r0 NSStatusItem, +// RemoveStatusItem removes the specified status item from the receiver. +// +// See https://developer.apple.com/documentation/appkit/nsstatusbar/1530377-removestatusitem?language=objc for details. +func (x gen_NSStatusBar) RemoveStatusItem( + item NSStatusItemRef, ) { - ret := C.NSStatusBar_inst_statusItemWithLength_( + C.NSStatusBar_inst_RemoveStatusItem( unsafe.Pointer(x.Pointer()), - C.double(length), + objc.RefPointer(item), ) - r0 = NSStatusItem_fromPointer(ret) + return } -func (x gen_NSStatusBar) RemoveStatusItem_( - item NSStatusItemRef, -) { - C.NSStatusBar_inst_removeStatusItem_( +// StatusItemWithLength returns a newly created status item that has been allotted a specified space within the status bar. +// +// See https://developer.apple.com/documentation/appkit/nsstatusbar/1532895-statusitemwithlength?language=objc for details. +func (x gen_NSStatusBar) StatusItemWithLength( + length core.CGFloat, +) NSStatusItem { + ret := C.NSStatusBar_inst_StatusItemWithLength( unsafe.Pointer(x.Pointer()), - objc.RefPointer(item), + C.double(length), ) - return + + return NSStatusItem_FromPointer(ret) } -func (x gen_NSStatusBar) Init_asNSStatusBar() ( - r0 NSStatusBar, -) { - ret := C.NSStatusBar_inst_init( +// Init +// +// See for details. +func (x gen_NSStatusBar) Init_AsNSStatusBar() NSStatusBar { + ret := C.NSStatusBar_inst_Init( unsafe.Pointer(x.Pointer()), ) - r0 = NSStatusBar_fromPointer(ret) - return + + return NSStatusBar_FromPointer(ret) } -func (x gen_NSStatusBar) IsVertical() ( - r0 bool, -) { - ret := C.NSStatusBar_inst_isVertical( +// IsVertical returns a boolean value indicating whether the status bar has a vertical orientation. +// +// See https://developer.apple.com/documentation/appkit/nsstatusbar/1530580-vertical?language=objc for details. +func (x gen_NSStatusBar) IsVertical() bool { + ret := C.NSStatusBar_inst_IsVertical( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSStatusBar) Thickness() ( - r0 core.CGFloat, -) { - ret := C.NSStatusBar_inst_thickness( +// Thickness returns the thickness of the status bar, in pixels. +// +// See https://developer.apple.com/documentation/appkit/nsstatusbar/1534591-thickness?language=objc for details. +func (x gen_NSStatusBar) Thickness() core.CGFloat { + ret := C.NSStatusBar_inst_Thickness( unsafe.Pointer(x.Pointer()), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } type NSStatusBarButtonRef interface { Pointer() uintptr - Init_asNSStatusBarButton() NSStatusBarButton + Init_AsNSStatusBarButton() NSStatusBarButton } type gen_NSStatusBarButton struct { NSButton } -func NSStatusBarButton_fromPointer(ptr unsafe.Pointer) NSStatusBarButton { +func NSStatusBarButton_FromPointer(ptr unsafe.Pointer) NSStatusBarButton { return NSStatusBarButton{gen_NSStatusBarButton{ - NSButton_fromPointer(ptr), + NSButton_FromPointer(ptr), }} } -func NSStatusBarButton_fromRef(ref objc.Ref) NSStatusBarButton { - return NSStatusBarButton_fromPointer(unsafe.Pointer(ref.Pointer())) +func NSStatusBarButton_FromRef(ref objc.Ref) NSStatusBarButton { + return NSStatusBarButton_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_NSStatusBarButton) Init_asNSStatusBarButton() ( - r0 NSStatusBarButton, -) { - ret := C.NSStatusBarButton_inst_init( +// Init +// +// See for details. +func (x gen_NSStatusBarButton) Init_AsNSStatusBarButton() NSStatusBarButton { + ret := C.NSStatusBarButton_inst_Init( unsafe.Pointer(x.Pointer()), ) - r0 = NSStatusBarButton_fromPointer(ret) - return + + return NSStatusBarButton_FromPointer(ret) } -func (x gen_NSStatusBarButton) AppearsDisabled() ( - r0 bool, -) { - ret := C.NSStatusBarButton_inst_appearsDisabled( +// AppearsDisabled +// +// See https://developer.apple.com/documentation/appkit/nsstatusbarbutton/1409292-appearsdisabled?language=objc for details. +func (x gen_NSStatusBarButton) AppearsDisabled() bool { + ret := C.NSStatusBarButton_inst_AppearsDisabled( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSStatusBarButton) SetAppearsDisabled_( +// SetAppearsDisabled +// +// See https://developer.apple.com/documentation/appkit/nsstatusbarbutton/1409292-appearsdisabled?language=objc for details. +func (x gen_NSStatusBarButton) SetAppearsDisabled( value bool, ) { - C.NSStatusBarButton_inst_setAppearsDisabled_( + C.NSStatusBarButton_inst_SetAppearsDisabled( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } type NSStatusItemRef interface { Pointer() uintptr - Init_asNSStatusItem() NSStatusItem + Init_AsNSStatusItem() NSStatusItem } type gen_NSStatusItem struct { objc.Object } -func NSStatusItem_fromPointer(ptr unsafe.Pointer) NSStatusItem { +func NSStatusItem_FromPointer(ptr unsafe.Pointer) NSStatusItem { return NSStatusItem{gen_NSStatusItem{ - objc.Object_fromPointer(ptr), + objc.Object_FromPointer(ptr), }} } -func NSStatusItem_fromRef(ref objc.Ref) NSStatusItem { - return NSStatusItem_fromPointer(unsafe.Pointer(ref.Pointer())) +func NSStatusItem_FromRef(ref objc.Ref) NSStatusItem { + return NSStatusItem_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_NSStatusItem) Init_asNSStatusItem() ( - r0 NSStatusItem, -) { - ret := C.NSStatusItem_inst_init( +// Init +// +// See for details. +func (x gen_NSStatusItem) Init_AsNSStatusItem() NSStatusItem { + ret := C.NSStatusItem_inst_Init( unsafe.Pointer(x.Pointer()), ) - r0 = NSStatusItem_fromPointer(ret) - return + + return NSStatusItem_FromPointer(ret) } -func (x gen_NSStatusItem) StatusBar() ( - r0 NSStatusBar, -) { - ret := C.NSStatusItem_inst_statusBar( +// StatusBar returns the status bar that displays the status item. +// +// See https://developer.apple.com/documentation/appkit/nsstatusitem/1525951-statusbar?language=objc for details. +func (x gen_NSStatusItem) StatusBar() NSStatusBar { + ret := C.NSStatusItem_inst_StatusBar( unsafe.Pointer(x.Pointer()), ) - r0 = NSStatusBar_fromPointer(ret) - return + + return NSStatusBar_FromPointer(ret) } -func (x gen_NSStatusItem) Button() ( - r0 NSStatusBarButton, -) { - ret := C.NSStatusItem_inst_button( +// Button returns the button displayed in the status bar. +// +// See https://developer.apple.com/documentation/appkit/nsstatusitem/1535056-button?language=objc for details. +func (x gen_NSStatusItem) Button() NSStatusBarButton { + ret := C.NSStatusItem_inst_Button( unsafe.Pointer(x.Pointer()), ) - r0 = NSStatusBarButton_fromPointer(ret) - return + + return NSStatusBarButton_FromPointer(ret) } -func (x gen_NSStatusItem) Menu() ( - r0 NSMenu, -) { - ret := C.NSStatusItem_inst_menu( +// Menu returns the pull-down menu displayed when the user clicks the status item. +// +// See https://developer.apple.com/documentation/appkit/nsstatusitem/1535918-menu?language=objc for details. +func (x gen_NSStatusItem) Menu() NSMenu { + ret := C.NSStatusItem_inst_Menu( unsafe.Pointer(x.Pointer()), ) - r0 = NSMenu_fromPointer(ret) - return + + return NSMenu_FromPointer(ret) } -func (x gen_NSStatusItem) SetMenu_( +// SetMenu returns the pull-down menu displayed when the user clicks the status item. +// +// See https://developer.apple.com/documentation/appkit/nsstatusitem/1535918-menu?language=objc for details. +func (x gen_NSStatusItem) SetMenu( value NSMenuRef, ) { - C.NSStatusItem_inst_setMenu_( + C.NSStatusItem_inst_SetMenu( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSStatusItem) IsVisible() ( - r0 bool, -) { - ret := C.NSStatusItem_inst_isVisible( +// IsVisible returns a boolean value indicating if the menu bar currently displays the status item. +// +// See https://developer.apple.com/documentation/appkit/nsstatusitem/1644025-visible?language=objc for details. +func (x gen_NSStatusItem) IsVisible() bool { + ret := C.NSStatusItem_inst_IsVisible( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSStatusItem) SetVisible_( +// SetVisible returns a boolean value indicating if the menu bar currently displays the status item. +// +// See https://developer.apple.com/documentation/appkit/nsstatusitem/1644025-visible?language=objc for details. +func (x gen_NSStatusItem) SetVisible( value bool, ) { - C.NSStatusItem_inst_setVisible_( + C.NSStatusItem_inst_SetVisible( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSStatusItem) Length() ( - r0 core.CGFloat, -) { - ret := C.NSStatusItem_inst_length( +// Length returns the amount of space in the status bar that should be allocated to the status item. +// +// See https://developer.apple.com/documentation/appkit/nsstatusitem/1529402-length?language=objc for details. +func (x gen_NSStatusItem) Length() core.CGFloat { + ret := C.NSStatusItem_inst_Length( unsafe.Pointer(x.Pointer()), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } -func (x gen_NSStatusItem) SetLength_( +// SetLength returns the amount of space in the status bar that should be allocated to the status item. +// +// See https://developer.apple.com/documentation/appkit/nsstatusitem/1529402-length?language=objc for details. +func (x gen_NSStatusItem) SetLength( value core.CGFloat, ) { - C.NSStatusItem_inst_setLength_( + C.NSStatusItem_inst_SetLength( unsafe.Pointer(x.Pointer()), C.double(value), ) + return } type NSTextRef interface { Pointer() uintptr - Init_asNSText() NSText + Init_AsNSText() NSText } type gen_NSText struct { NSView } -func NSText_fromPointer(ptr unsafe.Pointer) NSText { +func NSText_FromPointer(ptr unsafe.Pointer) NSText { return NSText{gen_NSText{ - NSView_fromPointer(ptr), + NSView_FromPointer(ptr), }} } -func NSText_fromRef(ref objc.Ref) NSText { - return NSText_fromPointer(unsafe.Pointer(ref.Pointer())) +func NSText_FromRef(ref objc.Ref) NSText { + return NSText_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_NSText) InitWithFrame__asNSText( - frameRect core.NSRect, -) ( - r0 NSText, +// AlignCenter this action method applies center alignment to selected paragraphs (or all text if the receiver is a plain text object). +// +// See https://developer.apple.com/documentation/appkit/nstext/1535569-aligncenter?language=objc for details. +func (x gen_NSText) AlignCenter( + sender objc.Ref, ) { - ret := C.NSText_inst_initWithFrame_( + C.NSText_inst_AlignCenter( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&frameRect)), + objc.RefPointer(sender), ) - r0 = NSText_fromPointer(ret) + return } -func (x gen_NSText) ToggleRuler_( +// AlignLeft this action method applies left alignment to selected paragraphs (or all text if the receiver is a plain text object). +// +// See https://developer.apple.com/documentation/appkit/nstext/1535705-alignleft?language=objc for details. +func (x gen_NSText) AlignLeft( sender objc.Ref, ) { - C.NSText_inst_toggleRuler_( + C.NSText_inst_AlignLeft( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSText) SelectAll_( +// AlignRight this action method applies right alignment to selected paragraphs (or all text if the receiver is a plain text object). +// +// See https://developer.apple.com/documentation/appkit/nstext/1526477-alignright?language=objc for details. +func (x gen_NSText) AlignRight( sender objc.Ref, ) { - C.NSText_inst_selectAll_( + C.NSText_inst_AlignRight( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSText) Copy_( +// ChangeFont this action method changes the font of the selection for a rich text object, or of all text for a plain text object. +// +// See https://developer.apple.com/documentation/appkit/nstext/1531459-changefont?language=objc for details. +func (x gen_NSText) ChangeFont( sender objc.Ref, ) { - C.NSText_inst_copy_( + C.NSText_inst_ChangeFont( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSText) Cut_( +// CheckSpelling this action method searches for a misspelled word in the receiver’s text. +// +// See https://developer.apple.com/documentation/appkit/nstext/1534926-checkspelling?language=objc for details. +func (x gen_NSText) CheckSpelling( sender objc.Ref, ) { - C.NSText_inst_cut_( + C.NSText_inst_CheckSpelling( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSText) Paste_( +// Copy this action method copies the selected text onto the general pasteboard, in as many formats as the receiver supports. +// +// See https://developer.apple.com/documentation/appkit/nstext/1525497-copy?language=objc for details. +func (x gen_NSText) Copy( sender objc.Ref, ) { - C.NSText_inst_paste_( + C.NSText_inst_Copy( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSText) CopyFont_( +// CopyFont this action method copies the font information for the first character of the selection (or for the insertion point) onto the font pasteboard, as nsfontpboardtype. +// +// See https://developer.apple.com/documentation/appkit/nstext/1531255-copyfont?language=objc for details. +func (x gen_NSText) CopyFont( sender objc.Ref, ) { - C.NSText_inst_copyFont_( + C.NSText_inst_CopyFont( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSText) PasteFont_( +// CopyRuler this action method copies the paragraph style information for first selected paragraph onto the ruler pasteboard, as nsrulerpboardtype, and expands the selection to paragraph boundaries. +// +// See https://developer.apple.com/documentation/appkit/nstext/1533303-copyruler?language=objc for details. +func (x gen_NSText) CopyRuler( sender objc.Ref, ) { - C.NSText_inst_pasteFont_( + C.NSText_inst_CopyRuler( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSText) CopyRuler_( +// Cut this action method deletes the selected text and places it onto the general pasteboard, in as many formats as the receiver supports. +// +// See https://developer.apple.com/documentation/appkit/nstext/1524858-cut?language=objc for details. +func (x gen_NSText) Cut( sender objc.Ref, ) { - C.NSText_inst_copyRuler_( + C.NSText_inst_Cut( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSText) PasteRuler_( +// Delete this action method deletes the selected text. +// +// See https://developer.apple.com/documentation/appkit/nstext/1524660-delete?language=objc for details. +func (x gen_NSText) Delete( sender objc.Ref, ) { - C.NSText_inst_pasteRuler_( + C.NSText_inst_Delete( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSText) Delete_( - sender objc.Ref, -) { - C.NSText_inst_delete_( +// InitWithFrame +// +// See https://developer.apple.com/documentation/appkit/nstext/1525191-initwithframe?language=objc for details. +func (x gen_NSText) InitWithFrame_AsNSText( + frameRect core.NSRect, +) NSText { + ret := C.NSText_inst_InitWithFrame( unsafe.Pointer(x.Pointer()), - objc.RefPointer(sender), + *(*C.NSRect)(unsafe.Pointer(&frameRect)), ) - return + + return NSText_FromPointer(ret) } -func (x gen_NSText) ChangeFont_( +// Paste this action method pastes text from the general pasteboard at the insertion point or over the selection. +// +// See https://developer.apple.com/documentation/appkit/nstext/1527209-paste?language=objc for details. +func (x gen_NSText) Paste( sender objc.Ref, ) { - C.NSText_inst_changeFont_( + C.NSText_inst_Paste( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSText) AlignCenter_( +// PasteFont this action method pastes font information from the font pasteboard onto the selected text or insertion point of a rich text object, or over all text of a plain text object. +// +// See https://developer.apple.com/documentation/appkit/nstext/1531099-pastefont?language=objc for details. +func (x gen_NSText) PasteFont( sender objc.Ref, ) { - C.NSText_inst_alignCenter_( + C.NSText_inst_PasteFont( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSText) AlignLeft_( +// PasteRuler this action method pastes paragraph style information from the ruler pasteboard onto the selected paragraphs of a rich text object. +// +// See https://developer.apple.com/documentation/appkit/nstext/1530420-pasteruler?language=objc for details. +func (x gen_NSText) PasteRuler( sender objc.Ref, ) { - C.NSText_inst_alignLeft_( + C.NSText_inst_PasteRuler( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSText) AlignRight_( - sender objc.Ref, -) { - C.NSText_inst_alignRight_( +// ReadRTFDFromFile attempts to read the rtfd file at path, returning yes if successful and no if not. +// +// See https://developer.apple.com/documentation/appkit/nstext/1532564-readrtfdfromfile?language=objc for details. +func (x gen_NSText) ReadRTFDFromFile( + path core.NSStringRef, +) bool { + ret := C.NSText_inst_ReadRTFDFromFile( unsafe.Pointer(x.Pointer()), - objc.RefPointer(sender), + objc.RefPointer(path), ) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSText) Superscript_( +// SelectAll this action method selects all of the receiver’s text. +// +// See https://developer.apple.com/documentation/appkit/nstext/1527642-selectall?language=objc for details. +func (x gen_NSText) SelectAll( sender objc.Ref, ) { - C.NSText_inst_superscript_( + C.NSText_inst_SelectAll( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSText) Subscript_( +// ShowGuessPanel this action method opens the spelling panel, allowing the user to make a correction during spell checking. +// +// See https://developer.apple.com/documentation/appkit/nstext/1533456-showguesspanel?language=objc for details. +func (x gen_NSText) ShowGuessPanel( sender objc.Ref, ) { - C.NSText_inst_subscript_( + C.NSText_inst_ShowGuessPanel( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSText) Unscript_( - sender objc.Ref, -) { - C.NSText_inst_unscript_( +// SizeToFit resizes the receiver to fit its text. +// +// See https://developer.apple.com/documentation/appkit/nstext/1533991-sizetofit?language=objc for details. +func (x gen_NSText) SizeToFit() { + C.NSText_inst_SizeToFit( unsafe.Pointer(x.Pointer()), - objc.RefPointer(sender), ) + return } -func (x gen_NSText) Underline_( +// Subscript this action method applies a subscript attribute to selected text (or all text if the receiver is a plain text object), lowering its baseline offset by a predefined amount. +// +// See https://developer.apple.com/documentation/appkit/nstext/1535373-subscript?language=objc for details. +func (x gen_NSText) Subscript( sender objc.Ref, ) { - C.NSText_inst_underline_( + C.NSText_inst_Subscript( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSText) ReadRTFDFromFile_( - path core.NSStringRef, -) ( - r0 bool, +// Superscript this action method applies a superscript attribute to selected text (or all text if the receiver is a plain text object), raising its baseline offset by a predefined amount. +// +// See https://developer.apple.com/documentation/appkit/nstext/1525743-superscript?language=objc for details. +func (x gen_NSText) Superscript( + sender objc.Ref, ) { - ret := C.NSText_inst_readRTFDFromFile_( + C.NSText_inst_Superscript( unsafe.Pointer(x.Pointer()), - objc.RefPointer(path), + objc.RefPointer(sender), ) - r0 = convertObjCBoolToGo(ret) + return } -func (x gen_NSText) WriteRTFDToFile_atomically_( - path core.NSStringRef, - flag bool, -) ( - r0 bool, +// ToggleRuler this action method shows or hides the ruler, if the receiver is enclosed in a scroll view. +// +// See https://developer.apple.com/documentation/appkit/nstext/1535773-toggleruler?language=objc for details. +func (x gen_NSText) ToggleRuler( + sender objc.Ref, ) { - ret := C.NSText_inst_writeRTFDToFile_atomically_( + C.NSText_inst_ToggleRuler( unsafe.Pointer(x.Pointer()), - objc.RefPointer(path), - convertToObjCBool(flag), + objc.RefPointer(sender), ) - r0 = convertObjCBoolToGo(ret) + return } -func (x gen_NSText) CheckSpelling_( +// Underline adds the underline attribute to the selected text attributes if absent; removes the attribute if present. +// +// See https://developer.apple.com/documentation/appkit/nstext/1534203-underline?language=objc for details. +func (x gen_NSText) Underline( sender objc.Ref, ) { - C.NSText_inst_checkSpelling_( + C.NSText_inst_Underline( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSText) ShowGuessPanel_( +// Unscript this action method removes any superscripting or subscripting from selected text (or all text if the receiver is a plain text object). +// +// See https://developer.apple.com/documentation/appkit/nstext/1527542-unscript?language=objc for details. +func (x gen_NSText) Unscript( sender objc.Ref, ) { - C.NSText_inst_showGuessPanel_( + C.NSText_inst_Unscript( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) - return -} -func (x gen_NSText) SizeToFit() { - C.NSText_inst_sizeToFit( - unsafe.Pointer(x.Pointer()), - ) return } -func (x gen_NSText) Init_asNSText() ( - r0 NSText, -) { - ret := C.NSText_inst_init( +// WriteRTFDToFileAtomically writes the receiver’s text as rtf with attachments to a file or directory at path. +// +// See https://developer.apple.com/documentation/appkit/nstext/1527085-writertfdtofile?language=objc for details. +func (x gen_NSText) WriteRTFDToFileAtomically( + path core.NSStringRef, + flag bool, +) bool { + ret := C.NSText_inst_WriteRTFDToFileAtomically( unsafe.Pointer(x.Pointer()), + objc.RefPointer(path), + convertToObjCBool(flag), ) - r0 = NSText_fromPointer(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSText) String() ( - r0 core.NSString, -) { - ret := C.NSText_inst_string( +// Init +// +// See for details. +func (x gen_NSText) Init_AsNSText() NSText { + ret := C.NSText_inst_Init( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSString_fromPointer(ret) - return + + return NSText_FromPointer(ret) +} + +// String returns the characters of the receiver’s text. +// +// See https://developer.apple.com/documentation/appkit/nstext/1528601-string?language=objc for details. +func (x gen_NSText) String() core.NSString { + ret := C.NSText_inst_String( + unsafe.Pointer(x.Pointer()), + ) + + return core.NSString_FromPointer(ret) } -func (x gen_NSText) SetString_( +// SetString returns the characters of the receiver’s text. +// +// See https://developer.apple.com/documentation/appkit/nstext/1528601-string?language=objc for details. +func (x gen_NSText) SetString( value core.NSStringRef, ) { - C.NSText_inst_setString_( + C.NSText_inst_SetString( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSText) BackgroundColor() ( - r0 NSColor, -) { - ret := C.NSText_inst_backgroundColor( +// BackgroundColor returns the receiver’s background color to a given color. +// +// See https://developer.apple.com/documentation/appkit/nstext/1535324-backgroundcolor?language=objc for details. +func (x gen_NSText) BackgroundColor() NSColor { + ret := C.NSText_inst_BackgroundColor( unsafe.Pointer(x.Pointer()), ) - r0 = NSColor_fromPointer(ret) - return + + return NSColor_FromPointer(ret) } -func (x gen_NSText) SetBackgroundColor_( +// SetBackgroundColor returns the receiver’s background color to a given color. +// +// See https://developer.apple.com/documentation/appkit/nstext/1535324-backgroundcolor?language=objc for details. +func (x gen_NSText) SetBackgroundColor( value NSColorRef, ) { - C.NSText_inst_setBackgroundColor_( + C.NSText_inst_SetBackgroundColor( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSText) DrawsBackground() ( - r0 bool, -) { - ret := C.NSText_inst_drawsBackground( +// DrawsBackground returns a boolean that controls whether the receiver draws its background. +// +// See https://developer.apple.com/documentation/appkit/nstext/1531772-drawsbackground?language=objc for details. +func (x gen_NSText) DrawsBackground() bool { + ret := C.NSText_inst_DrawsBackground( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSText) SetDrawsBackground_( +// SetDrawsBackground returns a boolean that controls whether the receiver draws its background. +// +// See https://developer.apple.com/documentation/appkit/nstext/1531772-drawsbackground?language=objc for details. +func (x gen_NSText) SetDrawsBackground( value bool, ) { - C.NSText_inst_setDrawsBackground_( + C.NSText_inst_SetDrawsBackground( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSText) IsEditable() ( - r0 bool, -) { - ret := C.NSText_inst_isEditable( +// IsEditable returns a boolean that controls whether the receiver allows the user to edit its text. +// +// See https://developer.apple.com/documentation/appkit/nstext/1529876-editable?language=objc for details. +func (x gen_NSText) IsEditable() bool { + ret := C.NSText_inst_IsEditable( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSText) SetEditable_( +// SetEditable returns a boolean that controls whether the receiver allows the user to edit its text. +// +// See https://developer.apple.com/documentation/appkit/nstext/1529876-editable?language=objc for details. +func (x gen_NSText) SetEditable( value bool, ) { - C.NSText_inst_setEditable_( + C.NSText_inst_SetEditable( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSText) IsSelectable() ( - r0 bool, -) { - ret := C.NSText_inst_isSelectable( +// IsSelectable returns a boolean that controls whether the receiver allows the user to select its text. +// +// See https://developer.apple.com/documentation/appkit/nstext/1535368-selectable?language=objc for details. +func (x gen_NSText) IsSelectable() bool { + ret := C.NSText_inst_IsSelectable( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSText) SetSelectable_( +// SetSelectable returns a boolean that controls whether the receiver allows the user to select its text. +// +// See https://developer.apple.com/documentation/appkit/nstext/1535368-selectable?language=objc for details. +func (x gen_NSText) SetSelectable( value bool, ) { - C.NSText_inst_setSelectable_( + C.NSText_inst_SetSelectable( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSText) IsFieldEditor() ( - r0 bool, -) { - ret := C.NSText_inst_isFieldEditor( +// IsFieldEditor returns a boolean that controls whether the receiver interprets tab, shift-tab, and return (enter) as cues to end editing and possibly to change the first responder. +// +// See https://developer.apple.com/documentation/appkit/nstext/1533080-fieldeditor?language=objc for details. +func (x gen_NSText) IsFieldEditor() bool { + ret := C.NSText_inst_IsFieldEditor( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSText) SetFieldEditor_( +// SetFieldEditor returns a boolean that controls whether the receiver interprets tab, shift-tab, and return (enter) as cues to end editing and possibly to change the first responder. +// +// See https://developer.apple.com/documentation/appkit/nstext/1533080-fieldeditor?language=objc for details. +func (x gen_NSText) SetFieldEditor( value bool, ) { - C.NSText_inst_setFieldEditor_( + C.NSText_inst_SetFieldEditor( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSText) IsRichText() ( - r0 bool, -) { - ret := C.NSText_inst_isRichText( +// IsRichText returns a boolean that controls whether the receiver allows the user to apply attributes to specific ranges of the text. +// +// See https://developer.apple.com/documentation/appkit/nstext/1531003-richtext?language=objc for details. +func (x gen_NSText) IsRichText() bool { + ret := C.NSText_inst_IsRichText( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSText) SetRichText_( +// SetRichText returns a boolean that controls whether the receiver allows the user to apply attributes to specific ranges of the text. +// +// See https://developer.apple.com/documentation/appkit/nstext/1531003-richtext?language=objc for details. +func (x gen_NSText) SetRichText( value bool, ) { - C.NSText_inst_setRichText_( + C.NSText_inst_SetRichText( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSText) ImportsGraphics() ( - r0 bool, -) { - ret := C.NSText_inst_importsGraphics( +// ImportsGraphics returns a boolean that controls whether the receiver allows the user to import files by dragging. +// +// See https://developer.apple.com/documentation/appkit/nstext/1531887-importsgraphics?language=objc for details. +func (x gen_NSText) ImportsGraphics() bool { + ret := C.NSText_inst_ImportsGraphics( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSText) SetImportsGraphics_( +// SetImportsGraphics returns a boolean that controls whether the receiver allows the user to import files by dragging. +// +// See https://developer.apple.com/documentation/appkit/nstext/1531887-importsgraphics?language=objc for details. +func (x gen_NSText) SetImportsGraphics( value bool, ) { - C.NSText_inst_setImportsGraphics_( + C.NSText_inst_SetImportsGraphics( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSText) UsesFontPanel() ( - r0 bool, -) { - ret := C.NSText_inst_usesFontPanel( +// UsesFontPanel returns a boolean that controls whether the receiver uses the font panel and font menu. +// +// See https://developer.apple.com/documentation/appkit/nstext/1527431-usesfontpanel?language=objc for details. +func (x gen_NSText) UsesFontPanel() bool { + ret := C.NSText_inst_UsesFontPanel( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSText) SetUsesFontPanel_( +// SetUsesFontPanel returns a boolean that controls whether the receiver uses the font panel and font menu. +// +// See https://developer.apple.com/documentation/appkit/nstext/1527431-usesfontpanel?language=objc for details. +func (x gen_NSText) SetUsesFontPanel( value bool, ) { - C.NSText_inst_setUsesFontPanel_( + C.NSText_inst_SetUsesFontPanel( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSText) IsRulerVisible() ( - r0 bool, -) { - ret := C.NSText_inst_isRulerVisible( +// IsRulerVisible returns a boolean value that indicates whether the receiver’s enclosing scroll view shows its ruler. +// +// See https://developer.apple.com/documentation/appkit/nstext/1533732-rulervisible?language=objc for details. +func (x gen_NSText) IsRulerVisible() bool { + ret := C.NSText_inst_IsRulerVisible( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSText) Font() ( - r0 NSFont, -) { - ret := C.NSText_inst_font( +// Font returns the font of all the receiver’s text. +// +// See https://developer.apple.com/documentation/appkit/nstext/1534646-font?language=objc for details. +func (x gen_NSText) Font() NSFont { + ret := C.NSText_inst_Font( unsafe.Pointer(x.Pointer()), ) - r0 = NSFont_fromPointer(ret) - return + + return NSFont_FromPointer(ret) } -func (x gen_NSText) SetFont_( +// SetFont returns the font of all the receiver’s text. +// +// See https://developer.apple.com/documentation/appkit/nstext/1534646-font?language=objc for details. +func (x gen_NSText) SetFont( value NSFontRef, ) { - C.NSText_inst_setFont_( + C.NSText_inst_SetFont( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSText) TextColor() ( - r0 NSColor, -) { - ret := C.NSText_inst_textColor( +// TextColor returns the text color of all characters in the receiver. +// +// See https://developer.apple.com/documentation/appkit/nstext/1534875-textcolor?language=objc for details. +func (x gen_NSText) TextColor() NSColor { + ret := C.NSText_inst_TextColor( unsafe.Pointer(x.Pointer()), ) - r0 = NSColor_fromPointer(ret) - return + + return NSColor_FromPointer(ret) } -func (x gen_NSText) SetTextColor_( +// SetTextColor returns the text color of all characters in the receiver. +// +// See https://developer.apple.com/documentation/appkit/nstext/1534875-textcolor?language=objc for details. +func (x gen_NSText) SetTextColor( value NSColorRef, ) { - C.NSText_inst_setTextColor_( + C.NSText_inst_SetTextColor( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSText) MaxSize() ( - r0 core.NSSize, -) { - ret := C.NSText_inst_maxSize( +// MaxSize returns the receiver’s maximum size. +// +// See https://developer.apple.com/documentation/appkit/nstext/1535900-maxsize?language=objc for details. +func (x gen_NSText) MaxSize() core.NSSize { + ret := C.NSText_inst_MaxSize( unsafe.Pointer(x.Pointer()), ) - r0 = *(*core.NSSize)(unsafe.Pointer(&ret)) - return + + return *(*core.NSSize)(unsafe.Pointer(&ret)) } -func (x gen_NSText) SetMaxSize_( +// SetMaxSize returns the receiver’s maximum size. +// +// See https://developer.apple.com/documentation/appkit/nstext/1535900-maxsize?language=objc for details. +func (x gen_NSText) SetMaxSize( value core.NSSize, ) { - C.NSText_inst_setMaxSize_( + C.NSText_inst_SetMaxSize( unsafe.Pointer(x.Pointer()), *(*C.NSSize)(unsafe.Pointer(&value)), ) + return } -func (x gen_NSText) MinSize() ( - r0 core.NSSize, -) { - ret := C.NSText_inst_minSize( +// MinSize returns the receiver’s minimum size. +// +// See https://developer.apple.com/documentation/appkit/nstext/1526222-minsize?language=objc for details. +func (x gen_NSText) MinSize() core.NSSize { + ret := C.NSText_inst_MinSize( unsafe.Pointer(x.Pointer()), ) - r0 = *(*core.NSSize)(unsafe.Pointer(&ret)) - return + + return *(*core.NSSize)(unsafe.Pointer(&ret)) } -func (x gen_NSText) SetMinSize_( +// SetMinSize returns the receiver’s minimum size. +// +// See https://developer.apple.com/documentation/appkit/nstext/1526222-minsize?language=objc for details. +func (x gen_NSText) SetMinSize( value core.NSSize, ) { - C.NSText_inst_setMinSize_( + C.NSText_inst_SetMinSize( unsafe.Pointer(x.Pointer()), *(*C.NSSize)(unsafe.Pointer(&value)), ) + return } -func (x gen_NSText) IsVerticallyResizable() ( - r0 bool, -) { - ret := C.NSText_inst_isVerticallyResizable( +// IsVerticallyResizable returns a boolean that controls whether the receiver changes its height to fit the height of its text. +// +// See https://developer.apple.com/documentation/appkit/nstext/1535082-verticallyresizable?language=objc for details. +func (x gen_NSText) IsVerticallyResizable() bool { + ret := C.NSText_inst_IsVerticallyResizable( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSText) SetVerticallyResizable_( +// SetVerticallyResizable returns a boolean that controls whether the receiver changes its height to fit the height of its text. +// +// See https://developer.apple.com/documentation/appkit/nstext/1535082-verticallyresizable?language=objc for details. +func (x gen_NSText) SetVerticallyResizable( value bool, ) { - C.NSText_inst_setVerticallyResizable_( + C.NSText_inst_SetVerticallyResizable( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSText) IsHorizontallyResizable() ( - r0 bool, -) { - ret := C.NSText_inst_isHorizontallyResizable( +// IsHorizontallyResizable returns a boolean that controls whether the receiver changes its width to fit the width of its text. +// +// See https://developer.apple.com/documentation/appkit/nstext/1527489-horizontallyresizable?language=objc for details. +func (x gen_NSText) IsHorizontallyResizable() bool { + ret := C.NSText_inst_IsHorizontallyResizable( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSText) SetHorizontallyResizable_( +// SetHorizontallyResizable returns a boolean that controls whether the receiver changes its width to fit the width of its text. +// +// See https://developer.apple.com/documentation/appkit/nstext/1527489-horizontallyresizable?language=objc for details. +func (x gen_NSText) SetHorizontallyResizable( value bool, ) { - C.NSText_inst_setHorizontallyResizable_( + C.NSText_inst_SetHorizontallyResizable( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSText) Delegate() ( - r0 objc.Object, -) { - ret := C.NSText_inst_delegate( +// Delegate returns the receiver’s delegate. +// +// See https://developer.apple.com/documentation/appkit/nstext/1529480-delegate?language=objc for details. +func (x gen_NSText) Delegate() objc.Object { + ret := C.NSText_inst_Delegate( unsafe.Pointer(x.Pointer()), ) - r0 = objc.Object_fromPointer(ret) - return + + return objc.Object_FromPointer(ret) } -func (x gen_NSText) SetDelegate_( +// SetDelegate returns the receiver’s delegate. +// +// See https://developer.apple.com/documentation/appkit/nstext/1529480-delegate?language=objc for details. +func (x gen_NSText) SetDelegate( value objc.Ref, ) { - C.NSText_inst_setDelegate_( + C.NSText_inst_SetDelegate( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } type NSTextFieldRef interface { Pointer() uintptr - Init_asNSTextField() NSTextField + Init_AsNSTextField() NSTextField } type gen_NSTextField struct { NSControl } -func NSTextField_fromPointer(ptr unsafe.Pointer) NSTextField { +func NSTextField_FromPointer(ptr unsafe.Pointer) NSTextField { return NSTextField{gen_NSTextField{ - NSControl_fromPointer(ptr), + NSControl_FromPointer(ptr), }} } -func NSTextField_fromRef(ref objc.Ref) NSTextField { - return NSTextField_fromPointer(unsafe.Pointer(ref.Pointer())) +func NSTextField_FromRef(ref objc.Ref) NSTextField { + return NSTextField_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_NSTextField) SelectText_( +// SelectText ends editing in the text field and, if it’s selectable, selects the entire text content. +// +// See https://developer.apple.com/documentation/appkit/nstextfield/1399430-selecttext?language=objc for details. +func (x gen_NSTextField) SelectText( sender objc.Ref, ) { - C.NSTextField_inst_selectText_( + C.NSTextField_inst_SelectText( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSTextField) TextShouldBeginEditing_( +// TextShouldBeginEditing requests permission to begin editing a text object. +// +// See https://developer.apple.com/documentation/appkit/nstextfield/1399399-textshouldbeginediting?language=objc for details. +func (x gen_NSTextField) TextShouldBeginEditing( textObject NSTextRef, -) ( - r0 bool, -) { - ret := C.NSTextField_inst_textShouldBeginEditing_( +) bool { + ret := C.NSTextField_inst_TextShouldBeginEditing( unsafe.Pointer(x.Pointer()), objc.RefPointer(textObject), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextField) TextShouldEndEditing_( +// TextShouldEndEditing performs validation on the text field’s new value. +// +// See https://developer.apple.com/documentation/appkit/nstextfield/1399434-textshouldendediting?language=objc for details. +func (x gen_NSTextField) TextShouldEndEditing( textObject NSTextRef, -) ( - r0 bool, -) { - ret := C.NSTextField_inst_textShouldEndEditing_( +) bool { + ret := C.NSTextField_inst_TextShouldEndEditing( unsafe.Pointer(x.Pointer()), objc.RefPointer(textObject), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextField) Init_asNSTextField() ( - r0 NSTextField, -) { - ret := C.NSTextField_inst_init( +// Init +// +// See for details. +func (x gen_NSTextField) Init_AsNSTextField() NSTextField { + ret := C.NSTextField_inst_Init( unsafe.Pointer(x.Pointer()), ) - r0 = NSTextField_fromPointer(ret) - return + + return NSTextField_FromPointer(ret) } -func (x gen_NSTextField) IsSelectable() ( - r0 bool, -) { - ret := C.NSTextField_inst_isSelectable( +// IsSelectable returns a boolean value that determines whether the user can select the content of the text field. +// +// See https://developer.apple.com/documentation/appkit/nstextfield/1399422-selectable?language=objc for details. +func (x gen_NSTextField) IsSelectable() bool { + ret := C.NSTextField_inst_IsSelectable( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextField) SetSelectable_( +// SetSelectable returns a boolean value that determines whether the user can select the content of the text field. +// +// See https://developer.apple.com/documentation/appkit/nstextfield/1399422-selectable?language=objc for details. +func (x gen_NSTextField) SetSelectable( value bool, ) { - C.NSTextField_inst_setSelectable_( + C.NSTextField_inst_SetSelectable( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSTextField) IsEditable() ( - r0 bool, -) { - ret := C.NSTextField_inst_isEditable( +// IsEditable returns a boolean value that controls whether the user can edit the value in the text field. +// +// See https://developer.apple.com/documentation/appkit/nstextfield/1399407-editable?language=objc for details. +func (x gen_NSTextField) IsEditable() bool { + ret := C.NSTextField_inst_IsEditable( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextField) SetEditable_( +// SetEditable returns a boolean value that controls whether the user can edit the value in the text field. +// +// See https://developer.apple.com/documentation/appkit/nstextfield/1399407-editable?language=objc for details. +func (x gen_NSTextField) SetEditable( value bool, ) { - C.NSTextField_inst_setEditable_( + C.NSTextField_inst_SetEditable( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSTextField) AllowsEditingTextAttributes() ( - r0 bool, -) { - ret := C.NSTextField_inst_allowsEditingTextAttributes( +// AllowsEditingTextAttributes returns a boolean value that controls whether the user can change font attributes of the text field’s string. +// +// See https://developer.apple.com/documentation/appkit/nstextfield/1399401-allowseditingtextattributes?language=objc for details. +func (x gen_NSTextField) AllowsEditingTextAttributes() bool { + ret := C.NSTextField_inst_AllowsEditingTextAttributes( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextField) SetAllowsEditingTextAttributes_( +// SetAllowsEditingTextAttributes returns a boolean value that controls whether the user can change font attributes of the text field’s string. +// +// See https://developer.apple.com/documentation/appkit/nstextfield/1399401-allowseditingtextattributes?language=objc for details. +func (x gen_NSTextField) SetAllowsEditingTextAttributes( value bool, ) { - C.NSTextField_inst_setAllowsEditingTextAttributes_( + C.NSTextField_inst_SetAllowsEditingTextAttributes( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSTextField) ImportsGraphics() ( - r0 bool, -) { - ret := C.NSTextField_inst_importsGraphics( +// ImportsGraphics returns a boolean value that controls whether the user can drag image files into the text field. +// +// See https://developer.apple.com/documentation/appkit/nstextfield/1399428-importsgraphics?language=objc for details. +func (x gen_NSTextField) ImportsGraphics() bool { + ret := C.NSTextField_inst_ImportsGraphics( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextField) SetImportsGraphics_( +// SetImportsGraphics returns a boolean value that controls whether the user can drag image files into the text field. +// +// See https://developer.apple.com/documentation/appkit/nstextfield/1399428-importsgraphics?language=objc for details. +func (x gen_NSTextField) SetImportsGraphics( value bool, ) { - C.NSTextField_inst_setImportsGraphics_( + C.NSTextField_inst_SetImportsGraphics( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSTextField) PlaceholderString() ( - r0 core.NSString, -) { - ret := C.NSTextField_inst_placeholderString( +// PlaceholderString returns the string the text field displays when empty to help the user understand the text field’s purpose. +// +// See https://developer.apple.com/documentation/appkit/nstextfield/1399391-placeholderstring?language=objc for details. +func (x gen_NSTextField) PlaceholderString() core.NSString { + ret := C.NSTextField_inst_PlaceholderString( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_NSTextField) SetPlaceholderString_( +// SetPlaceholderString returns the string the text field displays when empty to help the user understand the text field’s purpose. +// +// See https://developer.apple.com/documentation/appkit/nstextfield/1399391-placeholderstring?language=objc for details. +func (x gen_NSTextField) SetPlaceholderString( value core.NSStringRef, ) { - C.NSTextField_inst_setPlaceholderString_( + C.NSTextField_inst_SetPlaceholderString( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSTextField) PlaceholderAttributedString() ( - r0 core.NSAttributedString, -) { - ret := C.NSTextField_inst_placeholderAttributedString( +// PlaceholderAttributedString returns the attributed string the text field displays when empty to help the user understand the text field’s purpose. +// +// See https://developer.apple.com/documentation/appkit/nstextfield/1399387-placeholderattributedstring?language=objc for details. +func (x gen_NSTextField) PlaceholderAttributedString() core.NSAttributedString { + ret := C.NSTextField_inst_PlaceholderAttributedString( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSAttributedString_fromPointer(ret) - return + + return core.NSAttributedString_FromPointer(ret) } -func (x gen_NSTextField) SetPlaceholderAttributedString_( +// SetPlaceholderAttributedString returns the attributed string the text field displays when empty to help the user understand the text field’s purpose. +// +// See https://developer.apple.com/documentation/appkit/nstextfield/1399387-placeholderattributedstring?language=objc for details. +func (x gen_NSTextField) SetPlaceholderAttributedString( value core.NSAttributedStringRef, ) { - C.NSTextField_inst_setPlaceholderAttributedString_( + C.NSTextField_inst_SetPlaceholderAttributedString( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSTextField) AllowsDefaultTighteningForTruncation() ( - r0 bool, -) { - ret := C.NSTextField_inst_allowsDefaultTighteningForTruncation( +// AllowsDefaultTighteningForTruncation returns a boolean value that controls whether single-line text fields tighten intercharacter spacing before truncating the text. +// +// See https://developer.apple.com/documentation/appkit/nstextfield/1399405-allowsdefaulttighteningfortrunca?language=objc for details. +func (x gen_NSTextField) AllowsDefaultTighteningForTruncation() bool { + ret := C.NSTextField_inst_AllowsDefaultTighteningForTruncation( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextField) SetAllowsDefaultTighteningForTruncation_( +// SetAllowsDefaultTighteningForTruncation returns a boolean value that controls whether single-line text fields tighten intercharacter spacing before truncating the text. +// +// See https://developer.apple.com/documentation/appkit/nstextfield/1399405-allowsdefaulttighteningfortrunca?language=objc for details. +func (x gen_NSTextField) SetAllowsDefaultTighteningForTruncation( value bool, ) { - C.NSTextField_inst_setAllowsDefaultTighteningForTruncation_( + C.NSTextField_inst_SetAllowsDefaultTighteningForTruncation( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSTextField) MaximumNumberOfLines() ( - r0 core.NSInteger, -) { - ret := C.NSTextField_inst_maximumNumberOfLines( +// MaximumNumberOfLines returns the maximum number of lines a wrapping text field displays before clipping or truncating the text. +// +// See https://developer.apple.com/documentation/appkit/nstextfield/1399424-maximumnumberoflines?language=objc for details. +func (x gen_NSTextField) MaximumNumberOfLines() core.NSInteger { + ret := C.NSTextField_inst_MaximumNumberOfLines( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSInteger(ret) - return + + return core.NSInteger(ret) } -func (x gen_NSTextField) SetMaximumNumberOfLines_( +// SetMaximumNumberOfLines returns the maximum number of lines a wrapping text field displays before clipping or truncating the text. +// +// See https://developer.apple.com/documentation/appkit/nstextfield/1399424-maximumnumberoflines?language=objc for details. +func (x gen_NSTextField) SetMaximumNumberOfLines( value core.NSInteger, ) { - C.NSTextField_inst_setMaximumNumberOfLines_( + C.NSTextField_inst_SetMaximumNumberOfLines( unsafe.Pointer(x.Pointer()), C.long(value), ) + return } -func (x gen_NSTextField) PreferredMaxLayoutWidth() ( - r0 core.CGFloat, -) { - ret := C.NSTextField_inst_preferredMaxLayoutWidth( +// PreferredMaxLayoutWidth returns the maximum width of the text field’s intrinsic content size. +// +// See https://developer.apple.com/documentation/appkit/nstextfield/1399395-preferredmaxlayoutwidth?language=objc for details. +func (x gen_NSTextField) PreferredMaxLayoutWidth() core.CGFloat { + ret := C.NSTextField_inst_PreferredMaxLayoutWidth( unsafe.Pointer(x.Pointer()), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } -func (x gen_NSTextField) SetPreferredMaxLayoutWidth_( +// SetPreferredMaxLayoutWidth returns the maximum width of the text field’s intrinsic content size. +// +// See https://developer.apple.com/documentation/appkit/nstextfield/1399395-preferredmaxlayoutwidth?language=objc for details. +func (x gen_NSTextField) SetPreferredMaxLayoutWidth( value core.CGFloat, ) { - C.NSTextField_inst_setPreferredMaxLayoutWidth_( + C.NSTextField_inst_SetPreferredMaxLayoutWidth( unsafe.Pointer(x.Pointer()), C.double(value), ) + return } -func (x gen_NSTextField) TextColor() ( - r0 NSColor, -) { - ret := C.NSTextField_inst_textColor( +// TextColor returns the color of the text field’s content. +// +// See https://developer.apple.com/documentation/appkit/nstextfield/1399409-textcolor?language=objc for details. +func (x gen_NSTextField) TextColor() NSColor { + ret := C.NSTextField_inst_TextColor( unsafe.Pointer(x.Pointer()), ) - r0 = NSColor_fromPointer(ret) - return + + return NSColor_FromPointer(ret) } -func (x gen_NSTextField) SetTextColor_( +// SetTextColor returns the color of the text field’s content. +// +// See https://developer.apple.com/documentation/appkit/nstextfield/1399409-textcolor?language=objc for details. +func (x gen_NSTextField) SetTextColor( value NSColorRef, ) { - C.NSTextField_inst_setTextColor_( + C.NSTextField_inst_SetTextColor( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSTextField) BackgroundColor() ( - r0 NSColor, -) { - ret := C.NSTextField_inst_backgroundColor( +// BackgroundColor returns the color of the background the text field’s cell draws behind the text. +// +// See https://developer.apple.com/documentation/appkit/nstextfield/1399389-backgroundcolor?language=objc for details. +func (x gen_NSTextField) BackgroundColor() NSColor { + ret := C.NSTextField_inst_BackgroundColor( unsafe.Pointer(x.Pointer()), ) - r0 = NSColor_fromPointer(ret) - return + + return NSColor_FromPointer(ret) } -func (x gen_NSTextField) SetBackgroundColor_( +// SetBackgroundColor returns the color of the background the text field’s cell draws behind the text. +// +// See https://developer.apple.com/documentation/appkit/nstextfield/1399389-backgroundcolor?language=objc for details. +func (x gen_NSTextField) SetBackgroundColor( value NSColorRef, ) { - C.NSTextField_inst_setBackgroundColor_( + C.NSTextField_inst_SetBackgroundColor( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSTextField) DrawsBackground() ( - r0 bool, -) { - ret := C.NSTextField_inst_drawsBackground( +// DrawsBackground returns a boolean value that controls whether the text field’s cell draws a background color behind the text. +// +// See https://developer.apple.com/documentation/appkit/nstextfield/1399416-drawsbackground?language=objc for details. +func (x gen_NSTextField) DrawsBackground() bool { + ret := C.NSTextField_inst_DrawsBackground( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextField) SetDrawsBackground_( +// SetDrawsBackground returns a boolean value that controls whether the text field’s cell draws a background color behind the text. +// +// See https://developer.apple.com/documentation/appkit/nstextfield/1399416-drawsbackground?language=objc for details. +func (x gen_NSTextField) SetDrawsBackground( value bool, ) { - C.NSTextField_inst_setDrawsBackground_( + C.NSTextField_inst_SetDrawsBackground( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSTextField) IsBezeled() ( - r0 bool, -) { - ret := C.NSTextField_inst_isBezeled( +// IsBezeled returns a boolean value that controls whether the text field draws a bezeled background around its contents. +// +// See https://developer.apple.com/documentation/appkit/nstextfield/1399435-bezeled?language=objc for details. +func (x gen_NSTextField) IsBezeled() bool { + ret := C.NSTextField_inst_IsBezeled( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextField) SetBezeled_( +// SetBezeled returns a boolean value that controls whether the text field draws a bezeled background around its contents. +// +// See https://developer.apple.com/documentation/appkit/nstextfield/1399435-bezeled?language=objc for details. +func (x gen_NSTextField) SetBezeled( value bool, ) { - C.NSTextField_inst_setBezeled_( + C.NSTextField_inst_SetBezeled( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSTextField) IsBordered() ( - r0 bool, -) { - ret := C.NSTextField_inst_isBordered( +// IsBordered returns a boolean value that controls whether the text field draws a solid black border around its contents. +// +// See https://developer.apple.com/documentation/appkit/nstextfield/1399403-bordered?language=objc for details. +func (x gen_NSTextField) IsBordered() bool { + ret := C.NSTextField_inst_IsBordered( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextField) SetBordered_( +// SetBordered returns a boolean value that controls whether the text field draws a solid black border around its contents. +// +// See https://developer.apple.com/documentation/appkit/nstextfield/1399403-bordered?language=objc for details. +func (x gen_NSTextField) SetBordered( value bool, ) { - C.NSTextField_inst_setBordered_( + C.NSTextField_inst_SetBordered( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSTextField) AcceptsFirstResponder() ( - r0 bool, -) { - ret := C.NSTextField_inst_acceptsFirstResponder( +// AcceptsFirstResponder returns a boolean value that indicates whether the text field is editable and accepts first responder status. +// +// See https://developer.apple.com/documentation/appkit/nstextfield/1399393-acceptsfirstresponder?language=objc for details. +func (x gen_NSTextField) AcceptsFirstResponder() bool { + ret := C.NSTextField_inst_AcceptsFirstResponder( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextField) AllowsCharacterPickerTouchBarItem() ( - r0 bool, -) { - ret := C.NSTextField_inst_allowsCharacterPickerTouchBarItem( +// AllowsCharacterPickerTouchBarItem returns a boolean value that controls whether the touch bar displays the character picker item for rich text fields. +// +// See https://developer.apple.com/documentation/appkit/nstextfield/2539553-allowscharacterpickertouchbarite?language=objc for details. +func (x gen_NSTextField) AllowsCharacterPickerTouchBarItem() bool { + ret := C.NSTextField_inst_AllowsCharacterPickerTouchBarItem( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextField) SetAllowsCharacterPickerTouchBarItem_( +// SetAllowsCharacterPickerTouchBarItem returns a boolean value that controls whether the touch bar displays the character picker item for rich text fields. +// +// See https://developer.apple.com/documentation/appkit/nstextfield/2539553-allowscharacterpickertouchbarite?language=objc for details. +func (x gen_NSTextField) SetAllowsCharacterPickerTouchBarItem( value bool, ) { - C.NSTextField_inst_setAllowsCharacterPickerTouchBarItem_( + C.NSTextField_inst_SetAllowsCharacterPickerTouchBarItem( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSTextField) IsAutomaticTextCompletionEnabled() ( - r0 bool, -) { - ret := C.NSTextField_inst_isAutomaticTextCompletionEnabled( +// IsAutomaticTextCompletionEnabled returns a boolean value that indicates whether the text field automatically completes text as the user types. +// +// See https://developer.apple.com/documentation/appkit/nstextfield/2539554-automatictextcompletionenabled?language=objc for details. +func (x gen_NSTextField) IsAutomaticTextCompletionEnabled() bool { + ret := C.NSTextField_inst_IsAutomaticTextCompletionEnabled( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextField) SetAutomaticTextCompletionEnabled_( +// SetAutomaticTextCompletionEnabled returns a boolean value that indicates whether the text field automatically completes text as the user types. +// +// See https://developer.apple.com/documentation/appkit/nstextfield/2539554-automatictextcompletionenabled?language=objc for details. +func (x gen_NSTextField) SetAutomaticTextCompletionEnabled( value bool, ) { - C.NSTextField_inst_setAutomaticTextCompletionEnabled_( + C.NSTextField_inst_SetAutomaticTextCompletionEnabled( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSTextField) Delegate() ( - r0 objc.Object, -) { - ret := C.NSTextField_inst_delegate( +// Delegate returns the text field’s delegate. +// +// See https://developer.apple.com/documentation/appkit/nstextfield/1399437-delegate?language=objc for details. +func (x gen_NSTextField) Delegate() objc.Object { + ret := C.NSTextField_inst_Delegate( unsafe.Pointer(x.Pointer()), ) - r0 = objc.Object_fromPointer(ret) - return + + return objc.Object_FromPointer(ret) } -func (x gen_NSTextField) SetDelegate_( +// SetDelegate returns the text field’s delegate. +// +// See https://developer.apple.com/documentation/appkit/nstextfield/1399437-delegate?language=objc for details. +func (x gen_NSTextField) SetDelegate( value objc.Ref, ) { - C.NSTextField_inst_setDelegate_( + C.NSTextField_inst_SetDelegate( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } type NSTextContainerRef interface { Pointer() uintptr - Init_asNSTextContainer() NSTextContainer + Init_AsNSTextContainer() NSTextContainer } type gen_NSTextContainer struct { objc.Object } -func NSTextContainer_fromPointer(ptr unsafe.Pointer) NSTextContainer { +func NSTextContainer_FromPointer(ptr unsafe.Pointer) NSTextContainer { return NSTextContainer{gen_NSTextContainer{ - objc.Object_fromPointer(ptr), + objc.Object_FromPointer(ptr), }} } -func NSTextContainer_fromRef(ref objc.Ref) NSTextContainer { - return NSTextContainer_fromPointer(unsafe.Pointer(ref.Pointer())) +func NSTextContainer_FromRef(ref objc.Ref) NSTextContainer { + return NSTextContainer_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_NSTextContainer) InitWithSize__asNSTextContainer( +// InitWithSize initializes a text container with a specified bounding rectangle. +// +// See https://developer.apple.com/documentation/uikit/nstextcontainer/1444529-initwithsize?language=objc for details. +func (x gen_NSTextContainer) InitWithSize_AsNSTextContainer( size core.NSSize, -) ( - r0 NSTextContainer, -) { - ret := C.NSTextContainer_inst_initWithSize_( +) NSTextContainer { + ret := C.NSTextContainer_inst_InitWithSize( unsafe.Pointer(x.Pointer()), *(*C.NSSize)(unsafe.Pointer(&size)), ) - r0 = NSTextContainer_fromPointer(ret) - return + + return NSTextContainer_FromPointer(ret) } -func (x gen_NSTextContainer) ReplaceLayoutManager_( +// ReplaceLayoutManager replaces the layout manager for the group of text system objects that contains the text container. +// +// See https://developer.apple.com/documentation/uikit/nstextcontainer/1444545-replacelayoutmanager?language=objc for details. +func (x gen_NSTextContainer) ReplaceLayoutManager( newLayoutManager NSLayoutManagerRef, ) { - C.NSTextContainer_inst_replaceLayoutManager_( + C.NSTextContainer_inst_ReplaceLayoutManager( unsafe.Pointer(x.Pointer()), objc.RefPointer(newLayoutManager), ) + return } -func (x gen_NSTextContainer) Init_asNSTextContainer() ( - r0 NSTextContainer, -) { - ret := C.NSTextContainer_inst_init( +// Init +// +// See for details. +func (x gen_NSTextContainer) Init_AsNSTextContainer() NSTextContainer { + ret := C.NSTextContainer_inst_Init( unsafe.Pointer(x.Pointer()), ) - r0 = NSTextContainer_fromPointer(ret) - return + + return NSTextContainer_FromPointer(ret) } -func (x gen_NSTextContainer) LayoutManager() ( - r0 NSLayoutManager, -) { - ret := C.NSTextContainer_inst_layoutManager( +// LayoutManager returns the text container’s layout manager. +// +// See https://developer.apple.com/documentation/uikit/nstextcontainer/1444517-layoutmanager?language=objc for details. +func (x gen_NSTextContainer) LayoutManager() NSLayoutManager { + ret := C.NSTextContainer_inst_LayoutManager( unsafe.Pointer(x.Pointer()), ) - r0 = NSLayoutManager_fromPointer(ret) - return + + return NSLayoutManager_FromPointer(ret) } -func (x gen_NSTextContainer) SetLayoutManager_( +// SetLayoutManager returns the text container’s layout manager. +// +// See https://developer.apple.com/documentation/uikit/nstextcontainer/1444517-layoutmanager?language=objc for details. +func (x gen_NSTextContainer) SetLayoutManager( value NSLayoutManagerRef, ) { - C.NSTextContainer_inst_setLayoutManager_( + C.NSTextContainer_inst_SetLayoutManager( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSTextContainer) TextView() ( - r0 NSTextView, -) { - ret := C.NSTextContainer_inst_textView( +// TextView returns the text container’s text view. +// +// See https://developer.apple.com/documentation/appkit/nstextcontainer/1444537-textview?language=objc for details. +func (x gen_NSTextContainer) TextView() NSTextView { + ret := C.NSTextContainer_inst_TextView( unsafe.Pointer(x.Pointer()), ) - r0 = NSTextView_fromPointer(ret) - return + + return NSTextView_FromPointer(ret) } -func (x gen_NSTextContainer) SetTextView_( +// SetTextView returns the text container’s text view. +// +// See https://developer.apple.com/documentation/appkit/nstextcontainer/1444537-textview?language=objc for details. +func (x gen_NSTextContainer) SetTextView( value NSTextViewRef, ) { - C.NSTextContainer_inst_setTextView_( + C.NSTextContainer_inst_SetTextView( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSTextContainer) Size() ( - r0 core.NSSize, -) { - ret := C.NSTextContainer_inst_size( +// Size returns the size of the text container’s bounding rectangle. +// +// See https://developer.apple.com/documentation/uikit/nstextcontainer/1444553-size?language=objc for details. +func (x gen_NSTextContainer) Size() core.NSSize { + ret := C.NSTextContainer_inst_Size( unsafe.Pointer(x.Pointer()), ) - r0 = *(*core.NSSize)(unsafe.Pointer(&ret)) - return + + return *(*core.NSSize)(unsafe.Pointer(&ret)) } -func (x gen_NSTextContainer) SetSize_( +// SetSize returns the size of the text container’s bounding rectangle. +// +// See https://developer.apple.com/documentation/uikit/nstextcontainer/1444553-size?language=objc for details. +func (x gen_NSTextContainer) SetSize( value core.NSSize, ) { - C.NSTextContainer_inst_setSize_( + C.NSTextContainer_inst_SetSize( unsafe.Pointer(x.Pointer()), *(*C.NSSize)(unsafe.Pointer(&value)), ) + return } -func (x gen_NSTextContainer) ExclusionPaths() ( - r0 core.NSArray, -) { - ret := C.NSTextContainer_inst_exclusionPaths( +// ExclusionPaths an array of path objects that represents the regions where text doesn’t display in the text container. +// +// See https://developer.apple.com/documentation/uikit/nstextcontainer/1444569-exclusionpaths?language=objc for details. +func (x gen_NSTextContainer) ExclusionPaths() core.NSArray { + ret := C.NSTextContainer_inst_ExclusionPaths( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSArray_fromPointer(ret) - return + + return core.NSArray_FromPointer(ret) } -func (x gen_NSTextContainer) SetExclusionPaths_( +// SetExclusionPaths an array of path objects that represents the regions where text doesn’t display in the text container. +// +// See https://developer.apple.com/documentation/uikit/nstextcontainer/1444569-exclusionpaths?language=objc for details. +func (x gen_NSTextContainer) SetExclusionPaths( value core.NSArrayRef, ) { - C.NSTextContainer_inst_setExclusionPaths_( + C.NSTextContainer_inst_SetExclusionPaths( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSTextContainer) WidthTracksTextView() ( - r0 bool, -) { - ret := C.NSTextContainer_inst_widthTracksTextView( +// WidthTracksTextView returns a boolean that controls whether the text container adjusts the width of its bounding rectangle when its text view resizes. +// +// See https://developer.apple.com/documentation/uikit/nstextcontainer/1444563-widthtrackstextview?language=objc for details. +func (x gen_NSTextContainer) WidthTracksTextView() bool { + ret := C.NSTextContainer_inst_WidthTracksTextView( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextContainer) SetWidthTracksTextView_( +// SetWidthTracksTextView returns a boolean that controls whether the text container adjusts the width of its bounding rectangle when its text view resizes. +// +// See https://developer.apple.com/documentation/uikit/nstextcontainer/1444563-widthtrackstextview?language=objc for details. +func (x gen_NSTextContainer) SetWidthTracksTextView( value bool, ) { - C.NSTextContainer_inst_setWidthTracksTextView_( + C.NSTextContainer_inst_SetWidthTracksTextView( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSTextContainer) HeightTracksTextView() ( - r0 bool, -) { - ret := C.NSTextContainer_inst_heightTracksTextView( +// HeightTracksTextView returns a boolean that controls whether the text container adjusts the height of its bounding rectangle when its text view resizes. +// +// See https://developer.apple.com/documentation/uikit/nstextcontainer/1444559-heighttrackstextview?language=objc for details. +func (x gen_NSTextContainer) HeightTracksTextView() bool { + ret := C.NSTextContainer_inst_HeightTracksTextView( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextContainer) SetHeightTracksTextView_( +// SetHeightTracksTextView returns a boolean that controls whether the text container adjusts the height of its bounding rectangle when its text view resizes. +// +// See https://developer.apple.com/documentation/uikit/nstextcontainer/1444559-heighttrackstextview?language=objc for details. +func (x gen_NSTextContainer) SetHeightTracksTextView( value bool, ) { - C.NSTextContainer_inst_setHeightTracksTextView_( + C.NSTextContainer_inst_SetHeightTracksTextView( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSTextContainer) MaximumNumberOfLines() ( - r0 core.NSUInteger, -) { - ret := C.NSTextContainer_inst_maximumNumberOfLines( +// MaximumNumberOfLines returns the maximum number of lines that the text container can store. +// +// See https://developer.apple.com/documentation/uikit/nstextcontainer/1444531-maximumnumberoflines?language=objc for details. +func (x gen_NSTextContainer) MaximumNumberOfLines() core.NSUInteger { + ret := C.NSTextContainer_inst_MaximumNumberOfLines( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSUInteger(ret) - return + + return core.NSUInteger(ret) } -func (x gen_NSTextContainer) SetMaximumNumberOfLines_( +// SetMaximumNumberOfLines returns the maximum number of lines that the text container can store. +// +// See https://developer.apple.com/documentation/uikit/nstextcontainer/1444531-maximumnumberoflines?language=objc for details. +func (x gen_NSTextContainer) SetMaximumNumberOfLines( value core.NSUInteger, ) { - C.NSTextContainer_inst_setMaximumNumberOfLines_( + C.NSTextContainer_inst_SetMaximumNumberOfLines( unsafe.Pointer(x.Pointer()), C.ulong(value), ) + return } -func (x gen_NSTextContainer) LineFragmentPadding() ( - r0 core.CGFloat, -) { - ret := C.NSTextContainer_inst_lineFragmentPadding( +// LineFragmentPadding returns the value for the text inset within line fragment rectangles. +// +// See https://developer.apple.com/documentation/uikit/nstextcontainer/1444527-linefragmentpadding?language=objc for details. +func (x gen_NSTextContainer) LineFragmentPadding() core.CGFloat { + ret := C.NSTextContainer_inst_LineFragmentPadding( unsafe.Pointer(x.Pointer()), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } -func (x gen_NSTextContainer) SetLineFragmentPadding_( +// SetLineFragmentPadding returns the value for the text inset within line fragment rectangles. +// +// See https://developer.apple.com/documentation/uikit/nstextcontainer/1444527-linefragmentpadding?language=objc for details. +func (x gen_NSTextContainer) SetLineFragmentPadding( value core.CGFloat, ) { - C.NSTextContainer_inst_setLineFragmentPadding_( + C.NSTextContainer_inst_SetLineFragmentPadding( unsafe.Pointer(x.Pointer()), C.double(value), ) + return } -func (x gen_NSTextContainer) IsSimpleRectangularTextContainer() ( - r0 bool, -) { - ret := C.NSTextContainer_inst_isSimpleRectangularTextContainer( +// IsSimpleRectangularTextContainer returns a boolean that indicates whether the text container’s region is a rectangle with no holes or gaps, and whose edges are parallel to the text view's coordinate system axes. +// +// See https://developer.apple.com/documentation/uikit/nstextcontainer/1444525-simplerectangulartextcontainer?language=objc for details. +func (x gen_NSTextContainer) IsSimpleRectangularTextContainer() bool { + ret := C.NSTextContainer_inst_IsSimpleRectangularTextContainer( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } type NSViewControllerRef interface { Pointer() uintptr - Init_asNSViewController() NSViewController + Init_AsNSViewController() NSViewController } type gen_NSViewController struct { objc.Object } -func NSViewController_fromPointer(ptr unsafe.Pointer) NSViewController { +func NSViewController_FromPointer(ptr unsafe.Pointer) NSViewController { return NSViewController{gen_NSViewController{ - objc.Object_fromPointer(ptr), + objc.Object_FromPointer(ptr), }} } -func NSViewController_fromRef(ref objc.Ref) NSViewController { - return NSViewController_fromPointer(unsafe.Pointer(ref.Pointer())) +func NSViewController_FromRef(ref objc.Ref) NSViewController { + return NSViewController_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_NSViewController) LoadView() { - C.NSViewController_inst_loadView( +// AddChildViewController returns a convenience method for adding a child view controller at the end of the childviewcontrollers array. +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434501-addchildviewcontroller?language=objc for details. +func (x gen_NSViewController) AddChildViewController( + childViewController NSViewControllerRef, +) { + C.NSViewController_inst_AddChildViewController( unsafe.Pointer(x.Pointer()), + objc.RefPointer(childViewController), ) + return } -func (x gen_NSViewController) CommitEditingWithDelegate_didCommitSelector_contextInfo_( +// CommitEditing returns whether the receiver was able to commit any pending edits. +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434485-commitediting?language=objc for details. +func (x gen_NSViewController) CommitEditing() bool { + ret := C.NSViewController_inst_CommitEditing( + unsafe.Pointer(x.Pointer()), + ) + + return convertObjCBoolToGo(ret) +} + +// CommitEditingWithDelegateDidCommitSelectorContextInfo attempt to commit any currently edited results of the receiver. +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434464-commiteditingwithdelegate?language=objc for details. +func (x gen_NSViewController) CommitEditingWithDelegateDidCommitSelectorContextInfo( delegate objc.Ref, didCommitSelector objc.Selector, contextInfo unsafe.Pointer, ) { - C.NSViewController_inst_commitEditingWithDelegate_didCommitSelector_contextInfo_( + C.NSViewController_inst_CommitEditingWithDelegateDidCommitSelectorContextInfo( unsafe.Pointer(x.Pointer()), objc.RefPointer(delegate), didCommitSelector.SelectorAddress(), contextInfo, ) - return -} -func (x gen_NSViewController) CommitEditing() ( - r0 bool, -) { - ret := C.NSViewController_inst_commitEditing( - unsafe.Pointer(x.Pointer()), - ) - r0 = convertObjCBoolToGo(ret) return } +// DiscardEditing causes the receiver to discard any changes, restoring the previous values. +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434487-discardediting?language=objc for details. func (x gen_NSViewController) DiscardEditing() { - C.NSViewController_inst_discardEditing( + C.NSViewController_inst_DiscardEditing( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_NSViewController) DismissController_( +// DismissController +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434447-dismisscontroller?language=objc for details. +func (x gen_NSViewController) DismissController( sender objc.Ref, ) { - C.NSViewController_inst_dismissController_( + C.NSViewController_inst_DismissController( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSViewController) ViewDidLoad() { - C.NSViewController_inst_viewDidLoad( +// DismissViewController dismisses a presented view controller, using the same animator that presented it. +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434413-dismissviewcontroller?language=objc for details. +func (x gen_NSViewController) DismissViewController( + viewController NSViewControllerRef, +) { + C.NSViewController_inst_DismissViewController( unsafe.Pointer(x.Pointer()), + objc.RefPointer(viewController), ) + return } -func (x gen_NSViewController) ViewWillAppear() { - C.NSViewController_inst_viewWillAppear( +// InsertChildViewControllerAtIndex inserts a specified child view controller into the childviewcontrollers array at a specified position. +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434437-insertchildviewcontroller?language=objc for details. +func (x gen_NSViewController) InsertChildViewControllerAtIndex( + childViewController NSViewControllerRef, + index core.NSInteger, +) { + C.NSViewController_inst_InsertChildViewControllerAtIndex( unsafe.Pointer(x.Pointer()), + objc.RefPointer(childViewController), + C.long(index), ) + return } -func (x gen_NSViewController) ViewDidAppear() { - C.NSViewController_inst_viewDidAppear( +// LoadView instantiates a view from a nib file and sets the value of the view property. +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434405-loadview?language=objc for details. +func (x gen_NSViewController) LoadView() { + C.NSViewController_inst_LoadView( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_NSViewController) ViewWillDisappear() { - C.NSViewController_inst_viewWillDisappear( +// PreferredContentSizeDidChangeForViewController called when there is a change in value of the preferredcontentsize property of a child view controller or a presented view controller. +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434434-preferredcontentsizedidchangefor?language=objc for details. +func (x gen_NSViewController) PreferredContentSizeDidChangeForViewController( + viewController NSViewControllerRef, +) { + C.NSViewController_inst_PreferredContentSizeDidChangeForViewController( unsafe.Pointer(x.Pointer()), + objc.RefPointer(viewController), ) + return } -func (x gen_NSViewController) ViewDidDisappear() { - C.NSViewController_inst_viewDidDisappear( +// PresentViewControllerAnimator presents another view controller using a specified, custom animator for presentation and dismissal. +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434431-presentviewcontroller?language=objc for details. +func (x gen_NSViewController) PresentViewControllerAnimator( + viewController NSViewControllerRef, + animator objc.Ref, +) { + C.NSViewController_inst_PresentViewControllerAnimator( unsafe.Pointer(x.Pointer()), + objc.RefPointer(viewController), + objc.RefPointer(animator), ) + return } -func (x gen_NSViewController) UpdateViewConstraints() { - C.NSViewController_inst_updateViewConstraints( +// PresentViewControllerAsModalWindow presents another view controller as a modal window, also known as an alert. +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434462-presentviewcontrollerasmodalwind?language=objc for details. +func (x gen_NSViewController) PresentViewControllerAsModalWindow( + viewController NSViewControllerRef, +) { + C.NSViewController_inst_PresentViewControllerAsModalWindow( unsafe.Pointer(x.Pointer()), + objc.RefPointer(viewController), ) + return } -func (x gen_NSViewController) ViewWillLayout() { - C.NSViewController_inst_viewWillLayout( +// PresentViewControllerAsSheet presents another view controller as a sheet. +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434489-presentviewcontrollerassheet?language=objc for details. +func (x gen_NSViewController) PresentViewControllerAsSheet( + viewController NSViewControllerRef, +) { + C.NSViewController_inst_PresentViewControllerAsSheet( unsafe.Pointer(x.Pointer()), + objc.RefPointer(viewController), ) + return } -func (x gen_NSViewController) ViewDidLayout() { - C.NSViewController_inst_viewDidLayout( +// RemoveChildViewControllerAtIndex removes a specified child controller from the view controller. +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434404-removechildviewcontrolleratindex?language=objc for details. +func (x gen_NSViewController) RemoveChildViewControllerAtIndex( + index core.NSInteger, +) { + C.NSViewController_inst_RemoveChildViewControllerAtIndex( unsafe.Pointer(x.Pointer()), + C.long(index), ) + return } -func (x gen_NSViewController) AddChildViewController_( - childViewController NSViewControllerRef, -) { - C.NSViewController_inst_addChildViewController_( +// RemoveFromParentViewController removes the called view controller from its parent view controller. +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434466-removefromparentviewcontroller?language=objc for details. +func (x gen_NSViewController) RemoveFromParentViewController() { + C.NSViewController_inst_RemoveFromParentViewController( unsafe.Pointer(x.Pointer()), - objc.RefPointer(childViewController), ) + return } -func (x gen_NSViewController) InsertChildViewController_atIndex_( - childViewController NSViewControllerRef, - index core.NSInteger, -) { - C.NSViewController_inst_insertChildViewController_atIndex_( +// UpdateViewConstraints called during auto layout constraint updating to enable the view controller to mediate the process. +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434400-updateviewconstraints?language=objc for details. +func (x gen_NSViewController) UpdateViewConstraints() { + C.NSViewController_inst_UpdateViewConstraints( unsafe.Pointer(x.Pointer()), - objc.RefPointer(childViewController), - C.long(index), ) + return } -func (x gen_NSViewController) RemoveChildViewControllerAtIndex_( - index core.NSInteger, -) { - C.NSViewController_inst_removeChildViewControllerAtIndex_( +// ViewDidAppear called when the view controller’s view is fully transitioned onto the screen. +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434455-viewdidappear?language=objc for details. +func (x gen_NSViewController) ViewDidAppear() { + C.NSViewController_inst_ViewDidAppear( unsafe.Pointer(x.Pointer()), - C.long(index), ) + return } -func (x gen_NSViewController) RemoveFromParentViewController() { - C.NSViewController_inst_removeFromParentViewController( +// ViewDidDisappear called after the view controller’s view is removed from the view hierarchy in a window. +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434416-viewdiddisappear?language=objc for details. +func (x gen_NSViewController) ViewDidDisappear() { + C.NSViewController_inst_ViewDidDisappear( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_NSViewController) PreferredContentSizeDidChangeForViewController_( - viewController NSViewControllerRef, -) { - C.NSViewController_inst_preferredContentSizeDidChangeForViewController_( +// ViewDidLayout called immediately after the layout method of the view controller's view is called. +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434451-viewdidlayout?language=objc for details. +func (x gen_NSViewController) ViewDidLayout() { + C.NSViewController_inst_ViewDidLayout( unsafe.Pointer(x.Pointer()), - objc.RefPointer(viewController), ) + return } -func (x gen_NSViewController) PresentViewController_animator_( - viewController NSViewControllerRef, - animator objc.Ref, -) { - C.NSViewController_inst_presentViewController_animator_( +// ViewDidLoad called after the view controller’s view has been loaded into memory. +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434476-viewdidload?language=objc for details. +func (x gen_NSViewController) ViewDidLoad() { + C.NSViewController_inst_ViewDidLoad( unsafe.Pointer(x.Pointer()), - objc.RefPointer(viewController), - objc.RefPointer(animator), ) + return } -func (x gen_NSViewController) DismissViewController_( - viewController NSViewControllerRef, -) { - C.NSViewController_inst_dismissViewController_( +// ViewWillAppear called after the view controller’s view has been loaded into memory is about to be added to the view hierarchy in the window. +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434415-viewwillappear?language=objc for details. +func (x gen_NSViewController) ViewWillAppear() { + C.NSViewController_inst_ViewWillAppear( unsafe.Pointer(x.Pointer()), - objc.RefPointer(viewController), ) + return } -func (x gen_NSViewController) PresentViewControllerAsModalWindow_( - viewController NSViewControllerRef, -) { - C.NSViewController_inst_presentViewControllerAsModalWindow_( +// ViewWillDisappear called when the view controller’s view is about to be removed from the view hierarchy in the window. +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434483-viewwilldisappear?language=objc for details. +func (x gen_NSViewController) ViewWillDisappear() { + C.NSViewController_inst_ViewWillDisappear( unsafe.Pointer(x.Pointer()), - objc.RefPointer(viewController), ) + return } -func (x gen_NSViewController) PresentViewControllerAsSheet_( - viewController NSViewControllerRef, -) { - C.NSViewController_inst_presentViewControllerAsSheet_( +// ViewWillLayout called just before the layout method of the view controller's view is called. +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434495-viewwilllayout?language=objc for details. +func (x gen_NSViewController) ViewWillLayout() { + C.NSViewController_inst_ViewWillLayout( unsafe.Pointer(x.Pointer()), - objc.RefPointer(viewController), ) + return } -func (x gen_NSViewController) ViewWillTransitionToSize_( +// ViewWillTransitionToSize for a view controller that is part of an app extension, called when its view is about to be resized. +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434443-viewwilltransitiontosize?language=objc for details. +func (x gen_NSViewController) ViewWillTransitionToSize( newSize core.NSSize, ) { - C.NSViewController_inst_viewWillTransitionToSize_( + C.NSViewController_inst_ViewWillTransitionToSize( unsafe.Pointer(x.Pointer()), *(*C.NSSize)(unsafe.Pointer(&newSize)), ) + return } -func (x gen_NSViewController) Init_asNSViewController() ( - r0 NSViewController, -) { - ret := C.NSViewController_inst_init( +// Init +// +// See for details. +func (x gen_NSViewController) Init_AsNSViewController() NSViewController { + ret := C.NSViewController_inst_Init( unsafe.Pointer(x.Pointer()), ) - r0 = NSViewController_fromPointer(ret) - return + + return NSViewController_FromPointer(ret) } -func (x gen_NSViewController) RepresentedObject() ( - r0 objc.Object, -) { - ret := C.NSViewController_inst_representedObject( +// RepresentedObject returns the object whose value is presented in the receiver’s primary view. +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434453-representedobject?language=objc for details. +func (x gen_NSViewController) RepresentedObject() objc.Object { + ret := C.NSViewController_inst_RepresentedObject( unsafe.Pointer(x.Pointer()), ) - r0 = objc.Object_fromPointer(ret) - return + + return objc.Object_FromPointer(ret) } -func (x gen_NSViewController) SetRepresentedObject_( +// SetRepresentedObject returns the object whose value is presented in the receiver’s primary view. +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434453-representedobject?language=objc for details. +func (x gen_NSViewController) SetRepresentedObject( value objc.Ref, ) { - C.NSViewController_inst_setRepresentedObject_( + C.NSViewController_inst_SetRepresentedObject( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSViewController) NibBundle() ( - r0 NSBundle, -) { - ret := C.NSViewController_inst_nibBundle( +// NibBundle returns the nib bundle to be loaded to instantiate the receiver’s primary view. +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434433-nibbundle?language=objc for details. +func (x gen_NSViewController) NibBundle() NSBundle { + ret := C.NSViewController_inst_NibBundle( unsafe.Pointer(x.Pointer()), ) - r0 = NSBundle_fromPointer(ret) - return + + return NSBundle_FromPointer(ret) } -func (x gen_NSViewController) View() ( - r0 NSView, -) { - ret := C.NSViewController_inst_view( +// View returns the view controller’s primary view. +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434401-view?language=objc for details. +func (x gen_NSViewController) View() NSView { + ret := C.NSViewController_inst_View( unsafe.Pointer(x.Pointer()), ) - r0 = NSView_fromPointer(ret) - return + + return NSView_FromPointer(ret) } -func (x gen_NSViewController) SetView_( +// SetView returns the view controller’s primary view. +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434401-view?language=objc for details. +func (x gen_NSViewController) SetView( value NSViewRef, ) { - C.NSViewController_inst_setView_( + C.NSViewController_inst_SetView( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSViewController) Title() ( - r0 core.NSString, -) { - ret := C.NSViewController_inst_title( +// Title returns the localized title of the receiver’s primary view. +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434426-title?language=objc for details. +func (x gen_NSViewController) Title() core.NSString { + ret := C.NSViewController_inst_Title( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_NSViewController) SetTitle_( +// SetTitle returns the localized title of the receiver’s primary view. +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434426-title?language=objc for details. +func (x gen_NSViewController) SetTitle( value core.NSStringRef, ) { - C.NSViewController_inst_setTitle_( + C.NSViewController_inst_SetTitle( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSViewController) IsViewLoaded() ( - r0 bool, -) { - ret := C.NSViewController_inst_isViewLoaded( +// IsViewLoaded returns a boolean value indicating whether the view controller’s view is loaded into memory. +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434435-viewloaded?language=objc for details. +func (x gen_NSViewController) IsViewLoaded() bool { + ret := C.NSViewController_inst_IsViewLoaded( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSViewController) PreferredContentSize() ( - r0 core.NSSize, -) { - ret := C.NSViewController_inst_preferredContentSize( +// PreferredContentSize returns the desired size of the view controller’s view, in screen units. +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434409-preferredcontentsize?language=objc for details. +func (x gen_NSViewController) PreferredContentSize() core.NSSize { + ret := C.NSViewController_inst_PreferredContentSize( unsafe.Pointer(x.Pointer()), ) - r0 = *(*core.NSSize)(unsafe.Pointer(&ret)) - return + + return *(*core.NSSize)(unsafe.Pointer(&ret)) } -func (x gen_NSViewController) SetPreferredContentSize_( +// SetPreferredContentSize returns the desired size of the view controller’s view, in screen units. +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434409-preferredcontentsize?language=objc for details. +func (x gen_NSViewController) SetPreferredContentSize( value core.NSSize, ) { - C.NSViewController_inst_setPreferredContentSize_( + C.NSViewController_inst_SetPreferredContentSize( unsafe.Pointer(x.Pointer()), *(*C.NSSize)(unsafe.Pointer(&value)), ) + return } -func (x gen_NSViewController) ChildViewControllers() ( - r0 core.NSArray, -) { - ret := C.NSViewController_inst_childViewControllers( +// ChildViewControllers an array of view controllers that are hierarchical children of the view controller. +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434432-childviewcontrollers?language=objc for details. +func (x gen_NSViewController) ChildViewControllers() core.NSArray { + ret := C.NSViewController_inst_ChildViewControllers( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSArray_fromPointer(ret) - return + + return core.NSArray_FromPointer(ret) } -func (x gen_NSViewController) SetChildViewControllers_( +// SetChildViewControllers an array of view controllers that are hierarchical children of the view controller. +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434432-childviewcontrollers?language=objc for details. +func (x gen_NSViewController) SetChildViewControllers( value core.NSArrayRef, ) { - C.NSViewController_inst_setChildViewControllers_( + C.NSViewController_inst_SetChildViewControllers( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSViewController) ParentViewController() ( - r0 NSViewController, -) { - ret := C.NSViewController_inst_parentViewController( +// ParentViewController returns the immediate ancestor view controller of the view controller. +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434491-parentviewcontroller?language=objc for details. +func (x gen_NSViewController) ParentViewController() NSViewController { + ret := C.NSViewController_inst_ParentViewController( unsafe.Pointer(x.Pointer()), ) - r0 = NSViewController_fromPointer(ret) - return + + return NSViewController_FromPointer(ret) } -func (x gen_NSViewController) PresentedViewControllers() ( - r0 core.NSArray, -) { - ret := C.NSViewController_inst_presentedViewControllers( +// PresentedViewControllers returns the view controllers, if any, that are currently presented by the view controller. +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434497-presentedviewcontrollers?language=objc for details. +func (x gen_NSViewController) PresentedViewControllers() core.NSArray { + ret := C.NSViewController_inst_PresentedViewControllers( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSArray_fromPointer(ret) - return + + return core.NSArray_FromPointer(ret) } -func (x gen_NSViewController) PresentingViewController() ( - r0 NSViewController, -) { - ret := C.NSViewController_inst_presentingViewController( +// PresentingViewController returns the view controller that presented the view controller or that presented its farthest ancestor view controller. +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434439-presentingviewcontroller?language=objc for details. +func (x gen_NSViewController) PresentingViewController() NSViewController { + ret := C.NSViewController_inst_PresentingViewController( unsafe.Pointer(x.Pointer()), ) - r0 = NSViewController_fromPointer(ret) - return + + return NSViewController_FromPointer(ret) } -func (x gen_NSViewController) PreferredScreenOrigin() ( - r0 core.NSPoint, -) { - ret := C.NSViewController_inst_preferredScreenOrigin( +// PreferredScreenOrigin for a view controller that is part of an app extension, the preferred screen origin. +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434468-preferredscreenorigin?language=objc for details. +func (x gen_NSViewController) PreferredScreenOrigin() core.NSPoint { + ret := C.NSViewController_inst_PreferredScreenOrigin( unsafe.Pointer(x.Pointer()), ) - r0 = *(*core.NSPoint)(unsafe.Pointer(&ret)) - return + + return *(*core.NSPoint)(unsafe.Pointer(&ret)) } -func (x gen_NSViewController) SetPreferredScreenOrigin_( +// SetPreferredScreenOrigin for a view controller that is part of an app extension, the preferred screen origin. +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434468-preferredscreenorigin?language=objc for details. +func (x gen_NSViewController) SetPreferredScreenOrigin( value core.NSPoint, ) { - C.NSViewController_inst_setPreferredScreenOrigin_( + C.NSViewController_inst_SetPreferredScreenOrigin( unsafe.Pointer(x.Pointer()), *(*C.NSPoint)(unsafe.Pointer(&value)), ) + return } -func (x gen_NSViewController) PreferredMaximumSize() ( - r0 core.NSSize, -) { - ret := C.NSViewController_inst_preferredMaximumSize( +// PreferredMaximumSize for a view controller that is part of an app extension, the largest allowable size for the app extension’s primary view, in screen units. +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434403-preferredmaximumsize?language=objc for details. +func (x gen_NSViewController) PreferredMaximumSize() core.NSSize { + ret := C.NSViewController_inst_PreferredMaximumSize( unsafe.Pointer(x.Pointer()), ) - r0 = *(*core.NSSize)(unsafe.Pointer(&ret)) - return + + return *(*core.NSSize)(unsafe.Pointer(&ret)) } -func (x gen_NSViewController) PreferredMinimumSize() ( - r0 core.NSSize, -) { - ret := C.NSViewController_inst_preferredMinimumSize( +// PreferredMinimumSize for a view controller that is part of an app extension, the smallest allowable size for the app extension’s primary view, in screen units. +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434418-preferredminimumsize?language=objc for details. +func (x gen_NSViewController) PreferredMinimumSize() core.NSSize { + ret := C.NSViewController_inst_PreferredMinimumSize( unsafe.Pointer(x.Pointer()), ) - r0 = *(*core.NSSize)(unsafe.Pointer(&ret)) - return + + return *(*core.NSSize)(unsafe.Pointer(&ret)) } -func (x gen_NSViewController) SourceItemView() ( - r0 NSView, -) { - ret := C.NSViewController_inst_sourceItemView( +// SourceItemView +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434479-sourceitemview?language=objc for details. +func (x gen_NSViewController) SourceItemView() NSView { + ret := C.NSViewController_inst_SourceItemView( unsafe.Pointer(x.Pointer()), ) - r0 = NSView_fromPointer(ret) - return + + return NSView_FromPointer(ret) } -func (x gen_NSViewController) SetSourceItemView_( +// SetSourceItemView +// +// See https://developer.apple.com/documentation/appkit/nsviewcontroller/1434479-sourceitemview?language=objc for details. +func (x gen_NSViewController) SetSourceItemView( value NSViewRef, ) { - C.NSViewController_inst_setSourceItemView_( + C.NSViewController_inst_SetSourceItemView( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } type NSVisualEffectViewRef interface { Pointer() uintptr - Init_asNSVisualEffectView() NSVisualEffectView + Init_AsNSVisualEffectView() NSVisualEffectView } type gen_NSVisualEffectView struct { NSView } -func NSVisualEffectView_fromPointer(ptr unsafe.Pointer) NSVisualEffectView { +func NSVisualEffectView_FromPointer(ptr unsafe.Pointer) NSVisualEffectView { return NSVisualEffectView{gen_NSVisualEffectView{ - NSView_fromPointer(ptr), + NSView_FromPointer(ptr), }} } -func NSVisualEffectView_fromRef(ref objc.Ref) NSVisualEffectView { - return NSVisualEffectView_fromPointer(unsafe.Pointer(ref.Pointer())) +func NSVisualEffectView_FromRef(ref objc.Ref) NSVisualEffectView { + return NSVisualEffectView_FromPointer(unsafe.Pointer(ref.Pointer())) } +// ViewDidMoveToWindow notifies the view that it moved to a new window. +// +// See https://developer.apple.com/documentation/appkit/nsvisualeffectview/1534300-viewdidmovetowindow?language=objc for details. func (x gen_NSVisualEffectView) ViewDidMoveToWindow() { - C.NSVisualEffectView_inst_viewDidMoveToWindow( + C.NSVisualEffectView_inst_ViewDidMoveToWindow( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_NSVisualEffectView) ViewWillMoveToWindow_( +// ViewWillMoveToWindow notifies the view immediately before it moves to a new window (which may be nil). +// +// See https://developer.apple.com/documentation/appkit/nsvisualeffectview/1534276-viewwillmovetowindow?language=objc for details. +func (x gen_NSVisualEffectView) ViewWillMoveToWindow( newWindow NSWindowRef, ) { - C.NSVisualEffectView_inst_viewWillMoveToWindow_( + C.NSVisualEffectView_inst_ViewWillMoveToWindow( unsafe.Pointer(x.Pointer()), objc.RefPointer(newWindow), ) + return } -func (x gen_NSVisualEffectView) Init_asNSVisualEffectView() ( - r0 NSVisualEffectView, -) { - ret := C.NSVisualEffectView_inst_init( +// Init +// +// See for details. +func (x gen_NSVisualEffectView) Init_AsNSVisualEffectView() NSVisualEffectView { + ret := C.NSVisualEffectView_inst_Init( unsafe.Pointer(x.Pointer()), ) - r0 = NSVisualEffectView_fromPointer(ret) - return + + return NSVisualEffectView_FromPointer(ret) } -func (x gen_NSVisualEffectView) IsEmphasized() ( - r0 bool, -) { - ret := C.NSVisualEffectView_inst_isEmphasized( +// IsEmphasized returns a boolean value indicating whether to emphasize the look of the material. +// +// See https://developer.apple.com/documentation/appkit/nsvisualeffectview/1644721-emphasized?language=objc for details. +func (x gen_NSVisualEffectView) IsEmphasized() bool { + ret := C.NSVisualEffectView_inst_IsEmphasized( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSVisualEffectView) SetEmphasized_( +// SetEmphasized returns a boolean value indicating whether to emphasize the look of the material. +// +// See https://developer.apple.com/documentation/appkit/nsvisualeffectview/1644721-emphasized?language=objc for details. +func (x gen_NSVisualEffectView) SetEmphasized( value bool, ) { - C.NSVisualEffectView_inst_setEmphasized_( + C.NSVisualEffectView_inst_SetEmphasized( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSVisualEffectView) MaskImage() ( - r0 NSImage, -) { - ret := C.NSVisualEffectView_inst_maskImage( +// MaskImage an image whose alpha channel masks the visual effect view's material. +// +// See https://developer.apple.com/documentation/appkit/nsvisualeffectview/1535318-maskimage?language=objc for details. +func (x gen_NSVisualEffectView) MaskImage() NSImage { + ret := C.NSVisualEffectView_inst_MaskImage( unsafe.Pointer(x.Pointer()), ) - r0 = NSImage_fromPointer(ret) - return + + return NSImage_FromPointer(ret) } -func (x gen_NSVisualEffectView) SetMaskImage_( +// SetMaskImage an image whose alpha channel masks the visual effect view's material. +// +// See https://developer.apple.com/documentation/appkit/nsvisualeffectview/1535318-maskimage?language=objc for details. +func (x gen_NSVisualEffectView) SetMaskImage( value NSImageRef, ) { - C.NSVisualEffectView_inst_setMaskImage_( + C.NSVisualEffectView_inst_SetMaskImage( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } type NSWindowRef interface { Pointer() uintptr - Init_asNSWindow() NSWindow + Init_AsNSWindow() NSWindow } type gen_NSWindow struct { objc.Object } -func NSWindow_fromPointer(ptr unsafe.Pointer) NSWindow { +func NSWindow_FromPointer(ptr unsafe.Pointer) NSWindow { return NSWindow{gen_NSWindow{ - objc.Object_fromPointer(ptr), + objc.Object_FromPointer(ptr), }} } -func NSWindow_fromRef(ref objc.Ref) NSWindow { - return NSWindow_fromPointer(unsafe.Pointer(ref.Pointer())) +func NSWindow_FromRef(ref objc.Ref) NSWindow { + return NSWindow_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_NSWindow) InitWithContentRect_styleMask_backing_defer__asNSWindow( - contentRect core.NSRect, - style core.NSUInteger, - backingStoreType core.NSUInteger, - flag bool, -) ( - r0 NSWindow, +// AddChildWindowOrdered adds a given window as a child window of the window. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419152-addchildwindow?language=objc for details. +func (x gen_NSWindow) AddChildWindowOrdered( + childWin NSWindowRef, + place core.NSUInteger, ) { - ret := C.NSWindow_inst_initWithContentRect_styleMask_backing_defer_( + C.NSWindow_inst_AddChildWindowOrdered( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&contentRect)), - C.ulong(style), - C.ulong(backingStoreType), - convertToObjCBool(flag), + objc.RefPointer(childWin), + C.ulong(place), ) - r0 = NSWindow_fromPointer(ret) + return } -func (x gen_NSWindow) InitWithContentRect_styleMask_backing_defer_screen__asNSWindow( - contentRect core.NSRect, - style core.NSUInteger, - backingStoreType core.NSUInteger, - flag bool, - screen NSScreenRef, -) ( - r0 NSWindow, +// AddTabbedWindowOrdered adds the provided window as a new tab in a tabbed window using the specified ordering instruction. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1855947-addtabbedwindow?language=objc for details. +func (x gen_NSWindow) AddTabbedWindowOrdered( + window NSWindowRef, + ordered core.NSUInteger, ) { - ret := C.NSWindow_inst_initWithContentRect_styleMask_backing_defer_screen_( + C.NSWindow_inst_AddTabbedWindowOrdered( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&contentRect)), - C.ulong(style), - C.ulong(backingStoreType), - convertToObjCBool(flag), - objc.RefPointer(screen), + objc.RefPointer(window), + C.ulong(ordered), ) - r0 = NSWindow_fromPointer(ret) + return } -func (x gen_NSWindow) ToggleFullScreen_( - sender objc.Ref, -) { - C.NSWindow_inst_toggleFullScreen_( +// BecomeKeyWindow informs the window that it has become the key window. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419338-becomekeywindow?language=objc for details. +func (x gen_NSWindow) BecomeKeyWindow() { + C.NSWindow_inst_BecomeKeyWindow( unsafe.Pointer(x.Pointer()), - objc.RefPointer(sender), ) + return } -func (x gen_NSWindow) SetDynamicDepthLimit_( - flag bool, -) { - C.NSWindow_inst_setDynamicDepthLimit_( +// BecomeMainWindow informs the window that it has become the main window. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419084-becomemainwindow?language=objc for details. +func (x gen_NSWindow) BecomeMainWindow() { + C.NSWindow_inst_BecomeMainWindow( unsafe.Pointer(x.Pointer()), - convertToObjCBool(flag), ) + return } -func (x gen_NSWindow) InvalidateShadow() { - C.NSWindow_inst_invalidateShadow( +// CascadeTopLeftFromPoint positions the window’s top-left to a given point. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419392-cascadetopleftfrompoint?language=objc for details. +func (x gen_NSWindow) CascadeTopLeftFromPoint( + topLeftPoint core.NSPoint, +) core.NSPoint { + ret := C.NSWindow_inst_CascadeTopLeftFromPoint( + unsafe.Pointer(x.Pointer()), + *(*C.NSPoint)(unsafe.Pointer(&topLeftPoint)), + ) + + return *(*core.NSPoint)(unsafe.Pointer(&ret)) +} + +// Center sets the window’s location to the center of the screen. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419090-center?language=objc for details. +func (x gen_NSWindow) Center() { + C.NSWindow_inst_Center( + unsafe.Pointer(x.Pointer()), + ) + + return +} + +// Close removes the window from the screen. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419662-close?language=objc for details. +func (x gen_NSWindow) Close() { + C.NSWindow_inst_Close( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_NSWindow) ContentRectForFrameRect_( +// ConstrainFrameRectToScreen modifies and returns a frame rectangle so that its top edge lies on a specific screen. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419779-constrainframerect?language=objc for details. +func (x gen_NSWindow) ConstrainFrameRectToScreen( frameRect core.NSRect, -) ( - r0 core.NSRect, -) { - ret := C.NSWindow_inst_contentRectForFrameRect_( + screen NSScreenRef, +) core.NSRect { + ret := C.NSWindow_inst_ConstrainFrameRectToScreen( unsafe.Pointer(x.Pointer()), *(*C.NSRect)(unsafe.Pointer(&frameRect)), + objc.RefPointer(screen), ) - r0 = *(*core.NSRect)(unsafe.Pointer(&ret)) - return + + return *(*core.NSRect)(unsafe.Pointer(&ret)) } -func (x gen_NSWindow) FrameRectForContentRect_( - contentRect core.NSRect, -) ( - r0 core.NSRect, -) { - ret := C.NSWindow_inst_frameRectForContentRect_( +// ContentRectForFrameRect returns the window’s content rectangle with a given frame rectangle. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419108-contentrectforframerect?language=objc for details. +func (x gen_NSWindow) ContentRectForFrameRect( + frameRect core.NSRect, +) core.NSRect { + ret := C.NSWindow_inst_ContentRectForFrameRect( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&contentRect)), + *(*C.NSRect)(unsafe.Pointer(&frameRect)), ) - r0 = *(*core.NSRect)(unsafe.Pointer(&ret)) - return + + return *(*core.NSRect)(unsafe.Pointer(&ret)) } -func (x gen_NSWindow) EndSheet_( - sheetWindow NSWindowRef, -) { - C.NSWindow_inst_endSheet_( +// ConvertPointFromBacking converts a point from its pixel-aligned backing store coordinate system to the window’s coordinate system. +// +// See https://developer.apple.com/documentation/appkit/nswindow/2967179-convertpointfrombacking?language=objc for details. +func (x gen_NSWindow) ConvertPointFromBacking( + point core.NSPoint, +) core.NSPoint { + ret := C.NSWindow_inst_ConvertPointFromBacking( unsafe.Pointer(x.Pointer()), - objc.RefPointer(sheetWindow), + *(*C.NSPoint)(unsafe.Pointer(&point)), ) - return + + return *(*core.NSPoint)(unsafe.Pointer(&ret)) } -func (x gen_NSWindow) SetFrameOrigin_( +// ConvertPointFromScreen converts a point from the screen coordinate system to the window’s coordinate system. +// +// See https://developer.apple.com/documentation/appkit/nswindow/2967180-convertpointfromscreen?language=objc for details. +func (x gen_NSWindow) ConvertPointFromScreen( point core.NSPoint, -) { - C.NSWindow_inst_setFrameOrigin_( +) core.NSPoint { + ret := C.NSWindow_inst_ConvertPointFromScreen( unsafe.Pointer(x.Pointer()), *(*C.NSPoint)(unsafe.Pointer(&point)), ) - return + + return *(*core.NSPoint)(unsafe.Pointer(&ret)) } -func (x gen_NSWindow) SetFrameTopLeftPoint_( +// ConvertPointToBacking converts a point from the window’s coordinate system to its pixel-aligned backing store coordinate system. +// +// See https://developer.apple.com/documentation/appkit/nswindow/2967181-convertpointtobacking?language=objc for details. +func (x gen_NSWindow) ConvertPointToBacking( point core.NSPoint, -) { - C.NSWindow_inst_setFrameTopLeftPoint_( +) core.NSPoint { + ret := C.NSWindow_inst_ConvertPointToBacking( unsafe.Pointer(x.Pointer()), *(*C.NSPoint)(unsafe.Pointer(&point)), ) - return + + return *(*core.NSPoint)(unsafe.Pointer(&ret)) } -func (x gen_NSWindow) ConstrainFrameRect_toScreen_( - frameRect core.NSRect, - screen NSScreenRef, -) ( - r0 core.NSRect, -) { - ret := C.NSWindow_inst_constrainFrameRect_toScreen_( +// ConvertPointToScreen converts a point to the screen coordinate system from the window’s coordinate system. +// +// See https://developer.apple.com/documentation/appkit/nswindow/2967182-convertpointtoscreen?language=objc for details. +func (x gen_NSWindow) ConvertPointToScreen( + point core.NSPoint, +) core.NSPoint { + ret := C.NSWindow_inst_ConvertPointToScreen( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&frameRect)), - objc.RefPointer(screen), + *(*C.NSPoint)(unsafe.Pointer(&point)), ) - r0 = *(*core.NSRect)(unsafe.Pointer(&ret)) - return + + return *(*core.NSPoint)(unsafe.Pointer(&ret)) } -func (x gen_NSWindow) CascadeTopLeftFromPoint_( - topLeftPoint core.NSPoint, -) ( - r0 core.NSPoint, -) { - ret := C.NSWindow_inst_cascadeTopLeftFromPoint_( +// ConvertRectFromBacking converts a rectangle from its pixel-aligned backing store coordinate system to the window’s coordinate system. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419273-convertrectfrombacking?language=objc for details. +func (x gen_NSWindow) ConvertRectFromBacking( + rect core.NSRect, +) core.NSRect { + ret := C.NSWindow_inst_ConvertRectFromBacking( unsafe.Pointer(x.Pointer()), - *(*C.NSPoint)(unsafe.Pointer(&topLeftPoint)), + *(*C.NSRect)(unsafe.Pointer(&rect)), ) - r0 = *(*core.NSPoint)(unsafe.Pointer(&ret)) - return + + return *(*core.NSRect)(unsafe.Pointer(&ret)) } -func (x gen_NSWindow) SetFrame_display_( - frameRect core.NSRect, - flag bool, -) { - C.NSWindow_inst_setFrame_display_( +// ConvertRectFromScreen converts a rectangle from the screen coordinate system to the window’s coordinate system. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419603-convertrectfromscreen?language=objc for details. +func (x gen_NSWindow) ConvertRectFromScreen( + rect core.NSRect, +) core.NSRect { + ret := C.NSWindow_inst_ConvertRectFromScreen( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&frameRect)), - convertToObjCBool(flag), + *(*C.NSRect)(unsafe.Pointer(&rect)), ) - return + + return *(*core.NSRect)(unsafe.Pointer(&ret)) } -func (x gen_NSWindow) SetFrame_display_animate_( - frameRect core.NSRect, - displayFlag bool, - animateFlag bool, -) { - C.NSWindow_inst_setFrame_display_animate_( +// ConvertRectToBacking converts a rectangle from the window’s coordinate system to its pixel-aligned backing store coordinate system. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419260-convertrecttobacking?language=objc for details. +func (x gen_NSWindow) ConvertRectToBacking( + rect core.NSRect, +) core.NSRect { + ret := C.NSWindow_inst_ConvertRectToBacking( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&frameRect)), - convertToObjCBool(displayFlag), - convertToObjCBool(animateFlag), + *(*C.NSRect)(unsafe.Pointer(&rect)), ) - return + + return *(*core.NSRect)(unsafe.Pointer(&ret)) } -func (x gen_NSWindow) PerformZoom_( - sender objc.Ref, -) { - C.NSWindow_inst_performZoom_( +// ConvertRectToScreen converts a rectangle to the screen coordinate system from the window’s coordinate system. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419286-convertrecttoscreen?language=objc for details. +func (x gen_NSWindow) ConvertRectToScreen( + rect core.NSRect, +) core.NSRect { + ret := C.NSWindow_inst_ConvertRectToScreen( unsafe.Pointer(x.Pointer()), - objc.RefPointer(sender), + *(*C.NSRect)(unsafe.Pointer(&rect)), ) - return + + return *(*core.NSRect)(unsafe.Pointer(&ret)) } -func (x gen_NSWindow) Zoom_( - sender objc.Ref, -) { - C.NSWindow_inst_zoom_( +// DataWithEPSInsideRect returns eps data that draws the region of the window within a given rectangle. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419128-datawithepsinsiderect?language=objc for details. +func (x gen_NSWindow) DataWithEPSInsideRect( + rect core.NSRect, +) core.NSData { + ret := C.NSWindow_inst_DataWithEPSInsideRect( unsafe.Pointer(x.Pointer()), - objc.RefPointer(sender), + *(*C.NSRect)(unsafe.Pointer(&rect)), ) - return + + return core.NSData_FromPointer(ret) } -func (x gen_NSWindow) SetContentSize_( - size core.NSSize, -) { - C.NSWindow_inst_setContentSize_( +// DataWithPDFInsideRect returns pdf data that draws the region of the window within a given rectangle. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419418-datawithpdfinsiderect?language=objc for details. +func (x gen_NSWindow) DataWithPDFInsideRect( + rect core.NSRect, +) core.NSData { + ret := C.NSWindow_inst_DataWithPDFInsideRect( unsafe.Pointer(x.Pointer()), - *(*C.NSSize)(unsafe.Pointer(&size)), + *(*C.NSRect)(unsafe.Pointer(&rect)), ) - return + + return core.NSData_FromPointer(ret) } -func (x gen_NSWindow) OrderOut_( +// Deminiaturize de-minimizes the window. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419334-deminiaturize?language=objc for details. +func (x gen_NSWindow) Deminiaturize( sender objc.Ref, ) { - C.NSWindow_inst_orderOut_( + C.NSWindow_inst_Deminiaturize( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSWindow) OrderBack_( - sender objc.Ref, -) { - C.NSWindow_inst_orderBack_( +// DisableCursorRects disables all cursor rectangle management within the window. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419639-disablecursorrects?language=objc for details. +func (x gen_NSWindow) DisableCursorRects() { + C.NSWindow_inst_DisableCursorRects( unsafe.Pointer(x.Pointer()), - objc.RefPointer(sender), ) - return -} -func (x gen_NSWindow) OrderFront_( - sender objc.Ref, -) { - C.NSWindow_inst_orderFront_( - unsafe.Pointer(x.Pointer()), - objc.RefPointer(sender), - ) return } -func (x gen_NSWindow) OrderFrontRegardless() { - C.NSWindow_inst_orderFrontRegardless( +// DisableKeyEquivalentForDefaultButtonCell disables the default button cell’s key equivalent, so it doesn’t perform a click when the user presses return (or enter). +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419242-disablekeyequivalentfordefaultbu?language=objc for details. +func (x gen_NSWindow) DisableKeyEquivalentForDefaultButtonCell() { + C.NSWindow_inst_DisableKeyEquivalentForDefaultButtonCell( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_NSWindow) OrderWindow_relativeTo_( - place core.NSUInteger, - otherWin core.NSInteger, -) { - C.NSWindow_inst_orderWindow_relativeTo_( +// DisableScreenUpdatesUntilFlush disables the window’s screen updates until the window is flushed. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419483-disablescreenupdatesuntilflush?language=objc for details. +func (x gen_NSWindow) DisableScreenUpdatesUntilFlush() { + C.NSWindow_inst_DisableScreenUpdatesUntilFlush( unsafe.Pointer(x.Pointer()), - C.ulong(place), - C.long(otherWin), ) + return } -func (x gen_NSWindow) MakeKeyWindow() { - C.NSWindow_inst_makeKeyWindow( +// DisableSnapshotRestoration disables snapshot restoration. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1526239-disablesnapshotrestoration?language=objc for details. +func (x gen_NSWindow) DisableSnapshotRestoration() { + C.NSWindow_inst_DisableSnapshotRestoration( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_NSWindow) MakeKeyAndOrderFront_( - sender objc.Ref, -) { - C.NSWindow_inst_makeKeyAndOrderFront_( +// DiscardCursorRects invalidates all cursor rectangles in the window. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419269-discardcursorrects?language=objc for details. +func (x gen_NSWindow) DiscardCursorRects() { + C.NSWindow_inst_DiscardCursorRects( unsafe.Pointer(x.Pointer()), - objc.RefPointer(sender), ) + return } -func (x gen_NSWindow) BecomeKeyWindow() { - C.NSWindow_inst_becomeKeyWindow( +// Display passes a display message down the window’s view hierarchy, thus redrawing all views within the window. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419358-display?language=objc for details. +func (x gen_NSWindow) Display() { + C.NSWindow_inst_Display( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_NSWindow) ResignKeyWindow() { - C.NSWindow_inst_resignKeyWindow( +// DisplayIfNeeded passes a display message down the window’s view hierarchy, thus redrawing all views that need displaying. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419096-displayifneeded?language=objc for details. +func (x gen_NSWindow) DisplayIfNeeded() { + C.NSWindow_inst_DisplayIfNeeded( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_NSWindow) MakeMainWindow() { - C.NSWindow_inst_makeMainWindow( +// DragImageAtOffsetEventPasteboardSourceSlideBack begins a dragging session. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419224-dragimage?language=objc for details. +func (x gen_NSWindow) DragImageAtOffsetEventPasteboardSourceSlideBack( + image NSImageRef, + baseLocation core.NSPoint, + initialOffset core.NSSize, + event NSEventRef, + pboard NSPasteboardRef, + sourceObj objc.Ref, + slideFlag bool, +) { + C.NSWindow_inst_DragImageAtOffsetEventPasteboardSourceSlideBack( unsafe.Pointer(x.Pointer()), + objc.RefPointer(image), + *(*C.NSPoint)(unsafe.Pointer(&baseLocation)), + *(*C.NSSize)(unsafe.Pointer(&initialOffset)), + objc.RefPointer(event), + objc.RefPointer(pboard), + objc.RefPointer(sourceObj), + convertToObjCBool(slideFlag), ) + return } -func (x gen_NSWindow) BecomeMainWindow() { - C.NSWindow_inst_becomeMainWindow( +// EnableCursorRects reenables cursor rectangle management within the window after a disablecursorrects message. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419202-enablecursorrects?language=objc for details. +func (x gen_NSWindow) EnableCursorRects() { + C.NSWindow_inst_EnableCursorRects( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_NSWindow) ResignMainWindow() { - C.NSWindow_inst_resignMainWindow( +// EnableKeyEquivalentForDefaultButtonCell reenables the default button cell’s key equivalent, so it performs a click when the user presses return (or enter). +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419276-enablekeyequivalentfordefaultbut?language=objc for details. +func (x gen_NSWindow) EnableKeyEquivalentForDefaultButtonCell() { + C.NSWindow_inst_EnableKeyEquivalentForDefaultButtonCell( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_NSWindow) ToggleToolbarShown_( - sender objc.Ref, -) { - C.NSWindow_inst_toggleToolbarShown_( +// EnableSnapshotRestoration enables snapshot restoration. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1525288-enablesnapshotrestoration?language=objc for details. +func (x gen_NSWindow) EnableSnapshotRestoration() { + C.NSWindow_inst_EnableSnapshotRestoration( unsafe.Pointer(x.Pointer()), - objc.RefPointer(sender), ) + return } -func (x gen_NSWindow) RunToolbarCustomizationPalette_( - sender objc.Ref, +// EndEditingFor forces the field editor to give up its first responder status and prepares it for its next assignment. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419469-endeditingfor?language=objc for details. +func (x gen_NSWindow) EndEditingFor( + object objc.Ref, ) { - C.NSWindow_inst_runToolbarCustomizationPalette_( + C.NSWindow_inst_EndEditingFor( unsafe.Pointer(x.Pointer()), - objc.RefPointer(sender), + objc.RefPointer(object), ) + return } -func (x gen_NSWindow) AddChildWindow_ordered_( - childWin NSWindowRef, - place core.NSUInteger, +// EndSheet ends a document-modal session and dismisses the specified sheet. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419318-endsheet?language=objc for details. +func (x gen_NSWindow) EndSheet( + sheetWindow NSWindowRef, ) { - C.NSWindow_inst_addChildWindow_ordered_( + C.NSWindow_inst_EndSheet( unsafe.Pointer(x.Pointer()), - objc.RefPointer(childWin), - C.ulong(place), + objc.RefPointer(sheetWindow), ) + return } -func (x gen_NSWindow) RemoveChildWindow_( - childWin NSWindowRef, -) { - C.NSWindow_inst_removeChildWindow_( +// FieldEditorForObject returns the window’s field editor, creating it if requested. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419647-fieldeditor?language=objc for details. +func (x gen_NSWindow) FieldEditorForObject( + createFlag bool, + object objc.Ref, +) NSText { + ret := C.NSWindow_inst_FieldEditorForObject( unsafe.Pointer(x.Pointer()), - objc.RefPointer(childWin), + convertToObjCBool(createFlag), + objc.RefPointer(object), ) - return + + return NSText_FromPointer(ret) } -func (x gen_NSWindow) EnableKeyEquivalentForDefaultButtonCell() { - C.NSWindow_inst_enableKeyEquivalentForDefaultButtonCell( +// FrameRectForContentRect returns the window’s frame rectangle with a given content rectangle. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419134-framerectforcontentrect?language=objc for details. +func (x gen_NSWindow) FrameRectForContentRect( + contentRect core.NSRect, +) core.NSRect { + ret := C.NSWindow_inst_FrameRectForContentRect( unsafe.Pointer(x.Pointer()), + *(*C.NSRect)(unsafe.Pointer(&contentRect)), ) - return + + return *(*core.NSRect)(unsafe.Pointer(&ret)) } -func (x gen_NSWindow) DisableKeyEquivalentForDefaultButtonCell() { - C.NSWindow_inst_disableKeyEquivalentForDefaultButtonCell( +// InitWithContentRectStyleMaskBackingDefer initializes the window with the specified values. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419477-initwithcontentrect?language=objc for details. +func (x gen_NSWindow) InitWithContentRectStyleMaskBackingDefer_AsNSWindow( + contentRect core.NSRect, + style core.NSUInteger, + backingStoreType core.NSUInteger, + flag bool, +) NSWindow { + ret := C.NSWindow_inst_InitWithContentRectStyleMaskBackingDefer( unsafe.Pointer(x.Pointer()), + *(*C.NSRect)(unsafe.Pointer(&contentRect)), + C.ulong(style), + C.ulong(backingStoreType), + convertToObjCBool(flag), ) - return + + return NSWindow_FromPointer(ret) } -func (x gen_NSWindow) FieldEditor_forObject_( - createFlag bool, - object objc.Ref, -) ( - r0 NSText, -) { - ret := C.NSWindow_inst_fieldEditor_forObject_( +// InitWithContentRectStyleMaskBackingDeferScreen initializes an allocated window with the specified values. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419755-initwithcontentrect?language=objc for details. +func (x gen_NSWindow) InitWithContentRectStyleMaskBackingDeferScreen_AsNSWindow( + contentRect core.NSRect, + style core.NSUInteger, + backingStoreType core.NSUInteger, + flag bool, + screen NSScreenRef, +) NSWindow { + ret := C.NSWindow_inst_InitWithContentRectStyleMaskBackingDeferScreen( unsafe.Pointer(x.Pointer()), - convertToObjCBool(createFlag), - objc.RefPointer(object), + *(*C.NSRect)(unsafe.Pointer(&contentRect)), + C.ulong(style), + C.ulong(backingStoreType), + convertToObjCBool(flag), + objc.RefPointer(screen), ) - r0 = NSText_fromPointer(ret) - return + + return NSWindow_FromPointer(ret) } -func (x gen_NSWindow) EndEditingFor_( - object objc.Ref, +// InvalidateCursorRectsForView marks as invalid the cursor rectangles of a given view object in the window, so they’ll be set up again when the window becomes key. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419601-invalidatecursorrectsforview?language=objc for details. +func (x gen_NSWindow) InvalidateCursorRectsForView( + view NSViewRef, ) { - C.NSWindow_inst_endEditingFor_( + C.NSWindow_inst_InvalidateCursorRectsForView( unsafe.Pointer(x.Pointer()), - objc.RefPointer(object), + objc.RefPointer(view), ) - return -} -func (x gen_NSWindow) EnableCursorRects() { - C.NSWindow_inst_enableCursorRects( - unsafe.Pointer(x.Pointer()), - ) return } -func (x gen_NSWindow) DisableCursorRects() { - C.NSWindow_inst_disableCursorRects( +// InvalidateShadow invalidates the window shadow so that it is recomputed based on the current window shape. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419529-invalidateshadow?language=objc for details. +func (x gen_NSWindow) InvalidateShadow() { + C.NSWindow_inst_InvalidateShadow( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_NSWindow) DiscardCursorRects() { - C.NSWindow_inst_discardCursorRects( +// LayoutIfNeeded updates the layout of views in the window based on the current views and constraints. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1526910-layoutifneeded?language=objc for details. +func (x gen_NSWindow) LayoutIfNeeded() { + C.NSWindow_inst_LayoutIfNeeded( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_NSWindow) InvalidateCursorRectsForView_( - view NSViewRef, +// MakeKeyAndOrderFront moves the window to the front of the screen list, within its level, and makes it the key window; that is, it shows the window. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419208-makekeyandorderfront?language=objc for details. +func (x gen_NSWindow) MakeKeyAndOrderFront( + sender objc.Ref, ) { - C.NSWindow_inst_invalidateCursorRectsForView_( + C.NSWindow_inst_MakeKeyAndOrderFront( unsafe.Pointer(x.Pointer()), - objc.RefPointer(view), + objc.RefPointer(sender), ) + return } -func (x gen_NSWindow) ResetCursorRects() { - C.NSWindow_inst_resetCursorRects( +// MakeKeyWindow makes the window the key window. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419368-makekeywindow?language=objc for details. +func (x gen_NSWindow) MakeKeyWindow() { + C.NSWindow_inst_MakeKeyWindow( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_NSWindow) RemoveTitlebarAccessoryViewControllerAtIndex_( - index core.NSInteger, -) { - C.NSWindow_inst_removeTitlebarAccessoryViewControllerAtIndex_( +// MakeMainWindow makes the window the main window. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419271-makemainwindow?language=objc for details. +func (x gen_NSWindow) MakeMainWindow() { + C.NSWindow_inst_MakeMainWindow( unsafe.Pointer(x.Pointer()), - C.long(index), ) + return } -func (x gen_NSWindow) AddTabbedWindow_ordered_( - window NSWindowRef, - ordered core.NSUInteger, +// MergeAllWindows merges all open windows into a single tabbed window. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1644639-mergeallwindows?language=objc for details. +func (x gen_NSWindow) MergeAllWindows( + sender objc.Ref, ) { - C.NSWindow_inst_addTabbedWindow_ordered_( + C.NSWindow_inst_MergeAllWindows( unsafe.Pointer(x.Pointer()), - objc.RefPointer(window), - C.ulong(ordered), + objc.RefPointer(sender), ) + return } -func (x gen_NSWindow) MergeAllWindows_( +// Miniaturize removes the window from the screen list and displays the minimized window in the dock. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419426-miniaturize?language=objc for details. +func (x gen_NSWindow) Miniaturize( sender objc.Ref, ) { - C.NSWindow_inst_mergeAllWindows_( + C.NSWindow_inst_Miniaturize( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSWindow) SelectNextTab_( +// MoveTabToNewWindow moves the tab to a new containing window. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1644410-movetabtonewwindow?language=objc for details. +func (x gen_NSWindow) MoveTabToNewWindow( sender objc.Ref, ) { - C.NSWindow_inst_selectNextTab_( + C.NSWindow_inst_MoveTabToNewWindow( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSWindow) SelectPreviousTab_( +// OrderBack moves the window to the back of its level in the screen list, without changing either the key window or the main window. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419204-orderback?language=objc for details. +func (x gen_NSWindow) OrderBack( sender objc.Ref, ) { - C.NSWindow_inst_selectPreviousTab_( + C.NSWindow_inst_OrderBack( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSWindow) MoveTabToNewWindow_( +// OrderFront moves the window to the front of its level in the screen list, without changing either the key window or the main window. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419495-orderfront?language=objc for details. +func (x gen_NSWindow) OrderFront( sender objc.Ref, ) { - C.NSWindow_inst_moveTabToNewWindow_( + C.NSWindow_inst_OrderFront( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSWindow) ToggleTabBar_( - sender objc.Ref, -) { - C.NSWindow_inst_toggleTabBar_( +// OrderFrontRegardless moves the window to the front of its level, even if its application isn’t active, without changing either the key window or the main window. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419444-orderfrontregardless?language=objc for details. +func (x gen_NSWindow) OrderFrontRegardless() { + C.NSWindow_inst_OrderFrontRegardless( unsafe.Pointer(x.Pointer()), - objc.RefPointer(sender), ) + return } -func (x gen_NSWindow) ToggleTabOverview_( +// OrderOut removes the window from the screen list, which hides the window. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419660-orderout?language=objc for details. +func (x gen_NSWindow) OrderOut( sender objc.Ref, ) { - C.NSWindow_inst_toggleTabOverview_( + C.NSWindow_inst_OrderOut( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSWindow) PostEvent_atStart_( - event NSEventRef, - flag bool, +// OrderWindowRelativeTo repositions the window’s window device in the window server’s screen list. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419672-orderwindow?language=objc for details. +func (x gen_NSWindow) OrderWindowRelativeTo( + place core.NSUInteger, + otherWin core.NSInteger, ) { - C.NSWindow_inst_postEvent_atStart_( + C.NSWindow_inst_OrderWindowRelativeTo( unsafe.Pointer(x.Pointer()), - objc.RefPointer(event), - convertToObjCBool(flag), + C.ulong(place), + C.long(otherWin), ) + return } -func (x gen_NSWindow) SendEvent_( - event NSEventRef, +// PerformClose simulates the user clicking the close button by momentarily highlighting the button and then closing the window. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419288-performclose?language=objc for details. +func (x gen_NSWindow) PerformClose( + sender objc.Ref, ) { - C.NSWindow_inst_sendEvent_( + C.NSWindow_inst_PerformClose( unsafe.Pointer(x.Pointer()), - objc.RefPointer(event), + objc.RefPointer(sender), ) + return } -func (x gen_NSWindow) TryToPerform_with_( - action objc.Selector, - object objc.Ref, -) ( - r0 bool, +// PerformMiniaturize simulates the user clicking the minimize button by momentarily highlighting the button, then minimizing the window. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419749-performminiaturize?language=objc for details. +func (x gen_NSWindow) PerformMiniaturize( + sender objc.Ref, ) { - ret := C.NSWindow_inst_tryToPerform_with_( + C.NSWindow_inst_PerformMiniaturize( unsafe.Pointer(x.Pointer()), - action.SelectorAddress(), - objc.RefPointer(object), + objc.RefPointer(sender), ) - r0 = convertObjCBoolToGo(ret) + return } -func (x gen_NSWindow) SelectKeyViewPrecedingView_( - view NSViewRef, +// PerformWindowDragWithEvent starts a window drag based on the specified mouse-down event. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419386-performwindowdragwithevent?language=objc for details. +func (x gen_NSWindow) PerformWindowDragWithEvent( + event NSEventRef, ) { - C.NSWindow_inst_selectKeyViewPrecedingView_( + C.NSWindow_inst_PerformWindowDragWithEvent( unsafe.Pointer(x.Pointer()), - objc.RefPointer(view), + objc.RefPointer(event), ) + return } -func (x gen_NSWindow) SelectKeyViewFollowingView_( - view NSViewRef, +// PerformZoom this action method simulates the user clicking the zoom box by momentarily highlighting the button and then zooming the window. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419450-performzoom?language=objc for details. +func (x gen_NSWindow) PerformZoom( + sender objc.Ref, ) { - C.NSWindow_inst_selectKeyViewFollowingView_( + C.NSWindow_inst_PerformZoom( unsafe.Pointer(x.Pointer()), - objc.RefPointer(view), + objc.RefPointer(sender), ) + return } -func (x gen_NSWindow) SelectPreviousKeyView_( - sender objc.Ref, +// PostEventAtStart forwards the message to the global application object. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419376-postevent?language=objc for details. +func (x gen_NSWindow) PostEventAtStart( + event NSEventRef, + flag bool, ) { - C.NSWindow_inst_selectPreviousKeyView_( + C.NSWindow_inst_PostEventAtStart( unsafe.Pointer(x.Pointer()), - objc.RefPointer(sender), + objc.RefPointer(event), + convertToObjCBool(flag), ) + return } -func (x gen_NSWindow) SelectNextKeyView_( +// Print runs the print panel, and if the user chooses an option other than canceling, prints the window (its frame view and all subviews). +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419767-print?language=objc for details. +func (x gen_NSWindow) Print( sender objc.Ref, ) { - C.NSWindow_inst_selectNextKeyView_( + C.NSWindow_inst_Print( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } +// RecalculateKeyViewLoop marks the key view loop as “dirty” and in need of recalculation. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419350-recalculatekeyviewloop?language=objc for details. func (x gen_NSWindow) RecalculateKeyViewLoop() { - C.NSWindow_inst_recalculateKeyViewLoop( + C.NSWindow_inst_RecalculateKeyViewLoop( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_NSWindow) PerformWindowDragWithEvent_( - event NSEventRef, +// RegisterForDraggedTypes registers a set of pasteboard types that the window accepts as the destination of an image-dragging session. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419140-registerfordraggedtypes?language=objc for details. +func (x gen_NSWindow) RegisterForDraggedTypes( + newTypes core.NSArrayRef, ) { - C.NSWindow_inst_performWindowDragWithEvent_( + C.NSWindow_inst_RegisterForDraggedTypes( unsafe.Pointer(x.Pointer()), - objc.RefPointer(event), + objc.RefPointer(newTypes), ) + return } -func (x gen_NSWindow) DisableSnapshotRestoration() { - C.NSWindow_inst_disableSnapshotRestoration( +// RemoveChildWindow detaches a given child window from the window. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419063-removechildwindow?language=objc for details. +func (x gen_NSWindow) RemoveChildWindow( + childWin NSWindowRef, +) { + C.NSWindow_inst_RemoveChildWindow( unsafe.Pointer(x.Pointer()), + objc.RefPointer(childWin), ) + return } -func (x gen_NSWindow) EnableSnapshotRestoration() { - C.NSWindow_inst_enableSnapshotRestoration( +// RemoveTitlebarAccessoryViewControllerAtIndex removes the view controller at the specified index from the window’s array of title bar accessory view controllers. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419643-removetitlebaraccessoryviewcontr?language=objc for details. +func (x gen_NSWindow) RemoveTitlebarAccessoryViewControllerAtIndex( + index core.NSInteger, +) { + C.NSWindow_inst_RemoveTitlebarAccessoryViewControllerAtIndex( unsafe.Pointer(x.Pointer()), + C.long(index), ) + return } -func (x gen_NSWindow) Display() { - C.NSWindow_inst_display( +// ResetCursorRects clears the window’s cursor rectangles and the cursor rectangles of the nsview objects in its view hierarchy. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419464-resetcursorrects?language=objc for details. +func (x gen_NSWindow) ResetCursorRects() { + C.NSWindow_inst_ResetCursorRects( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_NSWindow) DisplayIfNeeded() { - C.NSWindow_inst_displayIfNeeded( +// ResignKeyWindow resigns the window’s key window status. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419047-resignkeywindow?language=objc for details. +func (x gen_NSWindow) ResignKeyWindow() { + C.NSWindow_inst_ResignKeyWindow( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_NSWindow) DisableScreenUpdatesUntilFlush() { - C.NSWindow_inst_disableScreenUpdatesUntilFlush( +// ResignMainWindow resigns the window’s main window status. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419212-resignmainwindow?language=objc for details. +func (x gen_NSWindow) ResignMainWindow() { + C.NSWindow_inst_ResignMainWindow( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_NSWindow) Update() { - C.NSWindow_inst_update( +// RunToolbarCustomizationPalette presents the toolbar customization user interface. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419284-runtoolbarcustomizationpalette?language=objc for details. +func (x gen_NSWindow) RunToolbarCustomizationPalette( + sender objc.Ref, +) { + C.NSWindow_inst_RunToolbarCustomizationPalette( unsafe.Pointer(x.Pointer()), + objc.RefPointer(sender), ) + return } -func (x gen_NSWindow) DragImage_at_offset_event_pasteboard_source_slideBack_( - image NSImageRef, - baseLocation core.NSPoint, - initialOffset core.NSSize, - event NSEventRef, - pboard NSPasteboardRef, - sourceObj objc.Ref, - slideFlag bool, +// SelectKeyViewFollowingView gives key view status to the view that follows the given view. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419633-selectkeyviewfollowingview?language=objc for details. +func (x gen_NSWindow) SelectKeyViewFollowingView( + view NSViewRef, ) { - C.NSWindow_inst_dragImage_at_offset_event_pasteboard_source_slideBack_( + C.NSWindow_inst_SelectKeyViewFollowingView( unsafe.Pointer(x.Pointer()), - objc.RefPointer(image), - *(*C.NSPoint)(unsafe.Pointer(&baseLocation)), - *(*C.NSSize)(unsafe.Pointer(&initialOffset)), - objc.RefPointer(event), - objc.RefPointer(pboard), - objc.RefPointer(sourceObj), - convertToObjCBool(slideFlag), + objc.RefPointer(view), ) + return } -func (x gen_NSWindow) RegisterForDraggedTypes_( - newTypes core.NSArrayRef, +// SelectKeyViewPrecedingView gives key view status to the view that precedes the given view. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419757-selectkeyviewprecedingview?language=objc for details. +func (x gen_NSWindow) SelectKeyViewPrecedingView( + view NSViewRef, ) { - C.NSWindow_inst_registerForDraggedTypes_( + C.NSWindow_inst_SelectKeyViewPrecedingView( unsafe.Pointer(x.Pointer()), - objc.RefPointer(newTypes), + objc.RefPointer(view), ) + return } -func (x gen_NSWindow) UnregisterDraggedTypes() { - C.NSWindow_inst_unregisterDraggedTypes( +// SelectNextKeyView searches for a candidate next key view and, if it finds one, tries to make it the first responder. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419715-selectnextkeyview?language=objc for details. +func (x gen_NSWindow) SelectNextKeyView( + sender objc.Ref, +) { + C.NSWindow_inst_SelectNextKeyView( unsafe.Pointer(x.Pointer()), + objc.RefPointer(sender), ) + return } -func (x gen_NSWindow) ConvertRectFromBacking_( - rect core.NSRect, -) ( - r0 core.NSRect, +// SelectNextTab selects the next tab in the tab group in the trailing direction. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1644693-selectnexttab?language=objc for details. +func (x gen_NSWindow) SelectNextTab( + sender objc.Ref, ) { - ret := C.NSWindow_inst_convertRectFromBacking_( + C.NSWindow_inst_SelectNextTab( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&rect)), + objc.RefPointer(sender), ) - r0 = *(*core.NSRect)(unsafe.Pointer(&ret)) + return } -func (x gen_NSWindow) ConvertRectFromScreen_( - rect core.NSRect, -) ( - r0 core.NSRect, +// SelectPreviousKeyView searches for a candidate previous key view and, if it finds one, tries to make it the first responder. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419110-selectpreviouskeyview?language=objc for details. +func (x gen_NSWindow) SelectPreviousKeyView( + sender objc.Ref, ) { - ret := C.NSWindow_inst_convertRectFromScreen_( + C.NSWindow_inst_SelectPreviousKeyView( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&rect)), + objc.RefPointer(sender), ) - r0 = *(*core.NSRect)(unsafe.Pointer(&ret)) + return } -func (x gen_NSWindow) ConvertPointFromBacking_( - point core.NSPoint, -) ( - r0 core.NSPoint, +// SelectPreviousTab selects the previous tab in the tab group in the leading direction. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1644555-selectprevioustab?language=objc for details. +func (x gen_NSWindow) SelectPreviousTab( + sender objc.Ref, ) { - ret := C.NSWindow_inst_convertPointFromBacking_( + C.NSWindow_inst_SelectPreviousTab( unsafe.Pointer(x.Pointer()), - *(*C.NSPoint)(unsafe.Pointer(&point)), + objc.RefPointer(sender), ) - r0 = *(*core.NSPoint)(unsafe.Pointer(&ret)) + return } -func (x gen_NSWindow) ConvertPointFromScreen_( - point core.NSPoint, -) ( - r0 core.NSPoint, +// SendEvent this action method dispatches mouse and keyboard events the global application object sends to the window. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419228-sendevent?language=objc for details. +func (x gen_NSWindow) SendEvent( + event NSEventRef, ) { - ret := C.NSWindow_inst_convertPointFromScreen_( + C.NSWindow_inst_SendEvent( unsafe.Pointer(x.Pointer()), - *(*C.NSPoint)(unsafe.Pointer(&point)), + objc.RefPointer(event), ) - r0 = *(*core.NSPoint)(unsafe.Pointer(&ret)) + return } -func (x gen_NSWindow) ConvertRectToBacking_( - rect core.NSRect, -) ( - r0 core.NSRect, +// SetContentSize sets the size of the window’s content view to a given size, which is expressed in the window’s base coordinate system. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419100-setcontentsize?language=objc for details. +func (x gen_NSWindow) SetContentSize( + size core.NSSize, ) { - ret := C.NSWindow_inst_convertRectToBacking_( + C.NSWindow_inst_SetContentSize( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&rect)), + *(*C.NSSize)(unsafe.Pointer(&size)), ) - r0 = *(*core.NSRect)(unsafe.Pointer(&ret)) + return } -func (x gen_NSWindow) ConvertRectToScreen_( - rect core.NSRect, -) ( - r0 core.NSRect, +// SetDynamicDepthLimit sets a boolean value that indicates whether the window’s depth limit can change to match the depth of the screen it’s on. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419473-setdynamicdepthlimit?language=objc for details. +func (x gen_NSWindow) SetDynamicDepthLimit( + flag bool, ) { - ret := C.NSWindow_inst_convertRectToScreen_( + C.NSWindow_inst_SetDynamicDepthLimit( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&rect)), + convertToObjCBool(flag), ) - r0 = *(*core.NSRect)(unsafe.Pointer(&ret)) + return } -func (x gen_NSWindow) ConvertPointToBacking_( - point core.NSPoint, -) ( - r0 core.NSPoint, +// SetFrameDisplay sets the origin and size of the window’s frame rectangle according to a given frame rectangle, thereby setting its position and size onscreen. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419753-setframe?language=objc for details. +func (x gen_NSWindow) SetFrameDisplay( + frameRect core.NSRect, + flag bool, ) { - ret := C.NSWindow_inst_convertPointToBacking_( + C.NSWindow_inst_SetFrameDisplay( unsafe.Pointer(x.Pointer()), - *(*C.NSPoint)(unsafe.Pointer(&point)), + *(*C.NSRect)(unsafe.Pointer(&frameRect)), + convertToObjCBool(flag), ) - r0 = *(*core.NSPoint)(unsafe.Pointer(&ret)) + return } -func (x gen_NSWindow) ConvertPointToScreen_( - point core.NSPoint, -) ( - r0 core.NSPoint, +// SetFrameDisplayAnimate sets the origin and size of the window’s frame rectangle, with optional animation, according to a given frame rectangle, thereby setting its position and size onscreen. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419519-setframe?language=objc for details. +func (x gen_NSWindow) SetFrameDisplayAnimate( + frameRect core.NSRect, + displayFlag bool, + animateFlag bool, ) { - ret := C.NSWindow_inst_convertPointToScreen_( + C.NSWindow_inst_SetFrameDisplayAnimate( unsafe.Pointer(x.Pointer()), - *(*C.NSPoint)(unsafe.Pointer(&point)), + *(*C.NSRect)(unsafe.Pointer(&frameRect)), + convertToObjCBool(displayFlag), + convertToObjCBool(animateFlag), ) - r0 = *(*core.NSPoint)(unsafe.Pointer(&ret)) + return } -func (x gen_NSWindow) SetTitleWithRepresentedFilename_( - filename core.NSStringRef, +// SetFrameOrigin positions the bottom-left corner of the window’s frame rectangle at a given point in screen coordinates. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419690-setframeorigin?language=objc for details. +func (x gen_NSWindow) SetFrameOrigin( + point core.NSPoint, ) { - C.NSWindow_inst_setTitleWithRepresentedFilename_( + C.NSWindow_inst_SetFrameOrigin( unsafe.Pointer(x.Pointer()), - objc.RefPointer(filename), + *(*C.NSPoint)(unsafe.Pointer(&point)), ) + return } -func (x gen_NSWindow) Center() { - C.NSWindow_inst_center( +// SetFrameTopLeftPoint positions the top-left corner of the window’s frame rectangle at a given point in screen coordinates. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419658-setframetopleftpoint?language=objc for details. +func (x gen_NSWindow) SetFrameTopLeftPoint( + point core.NSPoint, +) { + C.NSWindow_inst_SetFrameTopLeftPoint( unsafe.Pointer(x.Pointer()), + *(*C.NSPoint)(unsafe.Pointer(&point)), ) + return } -func (x gen_NSWindow) PerformClose_( - sender objc.Ref, +// SetIsMiniaturized sets the window’s miniaturized state to the value you specify. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1449566-setisminiaturized?language=objc for details. +func (x gen_NSWindow) SetIsMiniaturized( + flag bool, ) { - C.NSWindow_inst_performClose_( + C.NSWindow_inst_SetIsMiniaturized( unsafe.Pointer(x.Pointer()), - objc.RefPointer(sender), + convertToObjCBool(flag), ) + return } -func (x gen_NSWindow) Close() { - C.NSWindow_inst_close( +// SetIsVisible sets the window’s visible state to the value you specify. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1449570-setisvisible?language=objc for details. +func (x gen_NSWindow) SetIsVisible( + flag bool, +) { + C.NSWindow_inst_SetIsVisible( unsafe.Pointer(x.Pointer()), + convertToObjCBool(flag), ) + return } -func (x gen_NSWindow) PerformMiniaturize_( - sender objc.Ref, +// SetIsZoomed sets the window’s zoomed state to the value you specify. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1449589-setiszoomed?language=objc for details. +func (x gen_NSWindow) SetIsZoomed( + flag bool, ) { - C.NSWindow_inst_performMiniaturize_( + C.NSWindow_inst_SetIsZoomed( unsafe.Pointer(x.Pointer()), - objc.RefPointer(sender), + convertToObjCBool(flag), ) + return } -func (x gen_NSWindow) Miniaturize_( - sender objc.Ref, +// SetTitleWithRepresentedFilename sets a given path as the window’s title, formatting it as a file-system path, and records this path as the window’s associated file. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419192-settitlewithrepresentedfilename?language=objc for details. +func (x gen_NSWindow) SetTitleWithRepresentedFilename( + filename core.NSStringRef, ) { - C.NSWindow_inst_miniaturize_( + C.NSWindow_inst_SetTitleWithRepresentedFilename( unsafe.Pointer(x.Pointer()), - objc.RefPointer(sender), + objc.RefPointer(filename), ) + return } -func (x gen_NSWindow) Deminiaturize_( +// ToggleFullScreen takes the window into or out of fullscreen mode, +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419527-togglefullscreen?language=objc for details. +func (x gen_NSWindow) ToggleFullScreen( sender objc.Ref, ) { - C.NSWindow_inst_deminiaturize_( + C.NSWindow_inst_ToggleFullScreen( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSWindow) Print_( +// ToggleTabBar shows or hides the tab bar. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1644517-toggletabbar?language=objc for details. +func (x gen_NSWindow) ToggleTabBar( sender objc.Ref, ) { - C.NSWindow_inst_print_( + C.NSWindow_inst_ToggleTabBar( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSWindow) DataWithEPSInsideRect_( - rect core.NSRect, -) ( - r0 core.NSData, +// ToggleTabOverview shows or hides the tab overview. +// +// See https://developer.apple.com/documentation/appkit/nswindow/2870175-toggletaboverview?language=objc for details. +func (x gen_NSWindow) ToggleTabOverview( + sender objc.Ref, ) { - ret := C.NSWindow_inst_dataWithEPSInsideRect_( + C.NSWindow_inst_ToggleTabOverview( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&rect)), + objc.RefPointer(sender), ) - r0 = core.NSData_fromPointer(ret) + return } -func (x gen_NSWindow) DataWithPDFInsideRect_( - rect core.NSRect, -) ( - r0 core.NSData, +// ToggleToolbarShown toggles the visibility of the window’s toolbar. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419554-toggletoolbarshown?language=objc for details. +func (x gen_NSWindow) ToggleToolbarShown( + sender objc.Ref, ) { - ret := C.NSWindow_inst_dataWithPDFInsideRect_( + C.NSWindow_inst_ToggleToolbarShown( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&rect)), + objc.RefPointer(sender), ) - r0 = core.NSData_fromPointer(ret) + return } -func (x gen_NSWindow) UpdateConstraintsIfNeeded() { - C.NSWindow_inst_updateConstraintsIfNeeded( +// TryToPerformWith dispatches action messages with a given argument. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419428-trytoperform?language=objc for details. +func (x gen_NSWindow) TryToPerformWith( + action objc.Selector, + object objc.Ref, +) bool { + ret := C.NSWindow_inst_TryToPerformWith( unsafe.Pointer(x.Pointer()), + action.SelectorAddress(), + objc.RefPointer(object), ) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWindow) LayoutIfNeeded() { - C.NSWindow_inst_layoutIfNeeded( +// UnregisterDraggedTypes unregisters the window as a possible destination for dragging operations. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419456-unregisterdraggedtypes?language=objc for details. +func (x gen_NSWindow) UnregisterDraggedTypes() { + C.NSWindow_inst_UnregisterDraggedTypes( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_NSWindow) VisualizeConstraints_( - constraints core.NSArrayRef, -) { - C.NSWindow_inst_visualizeConstraints_( +// Update updates the window. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419577-update?language=objc for details. +func (x gen_NSWindow) Update() { + C.NSWindow_inst_Update( unsafe.Pointer(x.Pointer()), - objc.RefPointer(constraints), ) + return } -func (x gen_NSWindow) SetIsMiniaturized_( - flag bool, -) { - C.NSWindow_inst_setIsMiniaturized_( +// UpdateConstraintsIfNeeded updates the constraints based on changes to views in the window since the last layout. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1526915-updateconstraintsifneeded?language=objc for details. +func (x gen_NSWindow) UpdateConstraintsIfNeeded() { + C.NSWindow_inst_UpdateConstraintsIfNeeded( unsafe.Pointer(x.Pointer()), - convertToObjCBool(flag), ) + return } -func (x gen_NSWindow) SetIsVisible_( - flag bool, +// VisualizeConstraints displays a visual representation of the supplied constraints in the window. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1526997-visualizeconstraints?language=objc for details. +func (x gen_NSWindow) VisualizeConstraints( + constraints core.NSArrayRef, ) { - C.NSWindow_inst_setIsVisible_( + C.NSWindow_inst_VisualizeConstraints( unsafe.Pointer(x.Pointer()), - convertToObjCBool(flag), + objc.RefPointer(constraints), ) + return } -func (x gen_NSWindow) SetIsZoomed_( - flag bool, +// Zoom toggles the size and location of the window between its standard state (which the application provides as the best size to display the window’s data) and its user state (a new size and location the user may have set by moving or resizing the window). +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419513-zoom?language=objc for details. +func (x gen_NSWindow) Zoom( + sender objc.Ref, ) { - C.NSWindow_inst_setIsZoomed_( + C.NSWindow_inst_Zoom( unsafe.Pointer(x.Pointer()), - convertToObjCBool(flag), + objc.RefPointer(sender), ) + return } -func (x gen_NSWindow) Init_asNSWindow() ( - r0 NSWindow, -) { - ret := C.NSWindow_inst_init( +// Init +// +// See for details. +func (x gen_NSWindow) Init_AsNSWindow() NSWindow { + ret := C.NSWindow_inst_Init( unsafe.Pointer(x.Pointer()), ) - r0 = NSWindow_fromPointer(ret) - return + + return NSWindow_FromPointer(ret) } -func (x gen_NSWindow) Delegate() ( - r0 objc.Object, -) { - ret := C.NSWindow_inst_delegate( +// Delegate returns the window’s delegate. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419060-delegate?language=objc for details. +func (x gen_NSWindow) Delegate() objc.Object { + ret := C.NSWindow_inst_Delegate( unsafe.Pointer(x.Pointer()), ) - r0 = objc.Object_fromPointer(ret) - return + + return objc.Object_FromPointer(ret) } -func (x gen_NSWindow) SetDelegate_( +// SetDelegate returns the window’s delegate. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419060-delegate?language=objc for details. +func (x gen_NSWindow) SetDelegate( value objc.Ref, ) { - C.NSWindow_inst_setDelegate_( + C.NSWindow_inst_SetDelegate( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSWindow) ContentViewController() ( - r0 NSViewController, -) { - ret := C.NSWindow_inst_contentViewController( +// ContentViewController returns the main content view controller for the window. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419615-contentviewcontroller?language=objc for details. +func (x gen_NSWindow) ContentViewController() NSViewController { + ret := C.NSWindow_inst_ContentViewController( unsafe.Pointer(x.Pointer()), ) - r0 = NSViewController_fromPointer(ret) - return + + return NSViewController_FromPointer(ret) } -func (x gen_NSWindow) SetContentViewController_( +// SetContentViewController returns the main content view controller for the window. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419615-contentviewcontroller?language=objc for details. +func (x gen_NSWindow) SetContentViewController( value NSViewControllerRef, ) { - C.NSWindow_inst_setContentViewController_( + C.NSWindow_inst_SetContentViewController( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSWindow) ContentView() ( - r0 NSView, -) { - ret := C.NSWindow_inst_contentView( +// ContentView returns the window’s content view, the highest accessible view object in the window’s view hierarchy. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419160-contentview?language=objc for details. +func (x gen_NSWindow) ContentView() NSView { + ret := C.NSWindow_inst_ContentView( unsafe.Pointer(x.Pointer()), ) - r0 = NSView_fromPointer(ret) - return + + return NSView_FromPointer(ret) } -func (x gen_NSWindow) SetContentView_( +// SetContentView returns the window’s content view, the highest accessible view object in the window’s view hierarchy. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419160-contentview?language=objc for details. +func (x gen_NSWindow) SetContentView( value NSViewRef, ) { - C.NSWindow_inst_setContentView_( + C.NSWindow_inst_SetContentView( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSWindow) StyleMask() ( - r0 core.NSUInteger, -) { - ret := C.NSWindow_inst_styleMask( +// StyleMask flags that describe the window’s current style, such as if it’s resizable or in full-screen mode. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419078-stylemask?language=objc for details. +func (x gen_NSWindow) StyleMask() core.NSUInteger { + ret := C.NSWindow_inst_StyleMask( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSUInteger(ret) - return + + return core.NSUInteger(ret) } -func (x gen_NSWindow) SetStyleMask_( +// SetStyleMask flags that describe the window’s current style, such as if it’s resizable or in full-screen mode. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419078-stylemask?language=objc for details. +func (x gen_NSWindow) SetStyleMask( value core.NSUInteger, ) { - C.NSWindow_inst_setStyleMask_( + C.NSWindow_inst_SetStyleMask( unsafe.Pointer(x.Pointer()), C.ulong(value), ) + return } -func (x gen_NSWindow) WorksWhenModal() ( - r0 bool, -) { - ret := C.NSWindow_inst_worksWhenModal( +// WorksWhenModal returns a boolean value that indicates whether the window is able to receive keyboard and mouse events even when some other window is being run modally. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419220-workswhenmodal?language=objc for details. +func (x gen_NSWindow) WorksWhenModal() bool { + ret := C.NSWindow_inst_WorksWhenModal( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWindow) AlphaValue() ( - r0 core.CGFloat, -) { - ret := C.NSWindow_inst_alphaValue( +// AlphaValue returns the window’s alpha value. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419186-alphavalue?language=objc for details. +func (x gen_NSWindow) AlphaValue() core.CGFloat { + ret := C.NSWindow_inst_AlphaValue( unsafe.Pointer(x.Pointer()), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } -func (x gen_NSWindow) SetAlphaValue_( +// SetAlphaValue returns the window’s alpha value. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419186-alphavalue?language=objc for details. +func (x gen_NSWindow) SetAlphaValue( value core.CGFloat, ) { - C.NSWindow_inst_setAlphaValue_( + C.NSWindow_inst_SetAlphaValue( unsafe.Pointer(x.Pointer()), C.double(value), ) + return } -func (x gen_NSWindow) BackgroundColor() ( - r0 NSColor, -) { - ret := C.NSWindow_inst_backgroundColor( +// BackgroundColor returns the color of the window’s background. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419751-backgroundcolor?language=objc for details. +func (x gen_NSWindow) BackgroundColor() NSColor { + ret := C.NSWindow_inst_BackgroundColor( unsafe.Pointer(x.Pointer()), ) - r0 = NSColor_fromPointer(ret) - return + + return NSColor_FromPointer(ret) } -func (x gen_NSWindow) SetBackgroundColor_( +// SetBackgroundColor returns the color of the window’s background. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419751-backgroundcolor?language=objc for details. +func (x gen_NSWindow) SetBackgroundColor( value NSColorRef, ) { - C.NSWindow_inst_setBackgroundColor_( + C.NSWindow_inst_SetBackgroundColor( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSWindow) CanHide() ( - r0 bool, -) { - ret := C.NSWindow_inst_canHide( +// CanHide returns a boolean value that indicates whether the window can hide when its application becomes hidden. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419725-canhide?language=objc for details. +func (x gen_NSWindow) CanHide() bool { + ret := C.NSWindow_inst_CanHide( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWindow) SetCanHide_( +// SetCanHide returns a boolean value that indicates whether the window can hide when its application becomes hidden. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419725-canhide?language=objc for details. +func (x gen_NSWindow) SetCanHide( value bool, ) { - C.NSWindow_inst_setCanHide_( + C.NSWindow_inst_SetCanHide( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSWindow) IsOnActiveSpace() ( - r0 bool, -) { - ret := C.NSWindow_inst_isOnActiveSpace( +// IsOnActiveSpace returns a boolean value that indicates whether the window is on the currently active space. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419707-onactivespace?language=objc for details. +func (x gen_NSWindow) IsOnActiveSpace() bool { + ret := C.NSWindow_inst_IsOnActiveSpace( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWindow) HidesOnDeactivate() ( - r0 bool, -) { - ret := C.NSWindow_inst_hidesOnDeactivate( +// HidesOnDeactivate returns a boolean value that indicates whether the window is removed from the screen when its application becomes inactive. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419777-hidesondeactivate?language=objc for details. +func (x gen_NSWindow) HidesOnDeactivate() bool { + ret := C.NSWindow_inst_HidesOnDeactivate( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWindow) SetHidesOnDeactivate_( +// SetHidesOnDeactivate returns a boolean value that indicates whether the window is removed from the screen when its application becomes inactive. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419777-hidesondeactivate?language=objc for details. +func (x gen_NSWindow) SetHidesOnDeactivate( value bool, ) { - C.NSWindow_inst_setHidesOnDeactivate_( + C.NSWindow_inst_SetHidesOnDeactivate( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSWindow) CollectionBehavior() ( - r0 core.NSUInteger, -) { - ret := C.NSWindow_inst_collectionBehavior( +// CollectionBehavior returns a value that identifies the window’s behavior in window collections. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419471-collectionbehavior?language=objc for details. +func (x gen_NSWindow) CollectionBehavior() core.NSUInteger { + ret := C.NSWindow_inst_CollectionBehavior( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSUInteger(ret) - return + + return core.NSUInteger(ret) } -func (x gen_NSWindow) SetCollectionBehavior_( +// SetCollectionBehavior returns a value that identifies the window’s behavior in window collections. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419471-collectionbehavior?language=objc for details. +func (x gen_NSWindow) SetCollectionBehavior( value core.NSUInteger, ) { - C.NSWindow_inst_setCollectionBehavior_( + C.NSWindow_inst_SetCollectionBehavior( unsafe.Pointer(x.Pointer()), C.ulong(value), ) + return } -func (x gen_NSWindow) IsOpaque() ( - r0 bool, -) { - ret := C.NSWindow_inst_isOpaque( +// IsOpaque returns a boolean value that indicates whether the window is opaque. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419086-opaque?language=objc for details. +func (x gen_NSWindow) IsOpaque() bool { + ret := C.NSWindow_inst_IsOpaque( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWindow) SetOpaque_( +// SetOpaque returns a boolean value that indicates whether the window is opaque. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419086-opaque?language=objc for details. +func (x gen_NSWindow) SetOpaque( value bool, ) { - C.NSWindow_inst_setOpaque_( + C.NSWindow_inst_SetOpaque( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSWindow) HasShadow() ( - r0 bool, -) { - ret := C.NSWindow_inst_hasShadow( +// HasShadow returns a boolean value that indicates whether the window has a shadow. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419234-hasshadow?language=objc for details. +func (x gen_NSWindow) HasShadow() bool { + ret := C.NSWindow_inst_HasShadow( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWindow) SetHasShadow_( +// SetHasShadow returns a boolean value that indicates whether the window has a shadow. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419234-hasshadow?language=objc for details. +func (x gen_NSWindow) SetHasShadow( value bool, ) { - C.NSWindow_inst_setHasShadow_( + C.NSWindow_inst_SetHasShadow( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSWindow) PreventsApplicationTerminationWhenModal() ( - r0 bool, -) { - ret := C.NSWindow_inst_preventsApplicationTerminationWhenModal( +// PreventsApplicationTerminationWhenModal returns a boolean value that indicates whether the window prevents application termination when modal. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419743-preventsapplicationterminationwh?language=objc for details. +func (x gen_NSWindow) PreventsApplicationTerminationWhenModal() bool { + ret := C.NSWindow_inst_PreventsApplicationTerminationWhenModal( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWindow) SetPreventsApplicationTerminationWhenModal_( +// SetPreventsApplicationTerminationWhenModal returns a boolean value that indicates whether the window prevents application termination when modal. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419743-preventsapplicationterminationwh?language=objc for details. +func (x gen_NSWindow) SetPreventsApplicationTerminationWhenModal( value bool, ) { - C.NSWindow_inst_setPreventsApplicationTerminationWhenModal_( + C.NSWindow_inst_SetPreventsApplicationTerminationWhenModal( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSWindow) HasDynamicDepthLimit() ( - r0 bool, -) { - ret := C.NSWindow_inst_hasDynamicDepthLimit( +// HasDynamicDepthLimit returns a boolean value that indicates whether the window’s depth limit can change to match the depth of the screen it’s on. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419330-hasdynamicdepthlimit?language=objc for details. +func (x gen_NSWindow) HasDynamicDepthLimit() bool { + ret := C.NSWindow_inst_HasDynamicDepthLimit( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWindow) WindowNumber() ( - r0 core.NSInteger, -) { - ret := C.NSWindow_inst_windowNumber( +// WindowNumber returns the window number of the window’s window device. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419068-windownumber?language=objc for details. +func (x gen_NSWindow) WindowNumber() core.NSInteger { + ret := C.NSWindow_inst_WindowNumber( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSInteger(ret) - return + + return core.NSInteger(ret) } -func (x gen_NSWindow) DeviceDescription() ( - r0 core.NSDictionary, -) { - ret := C.NSWindow_inst_deviceDescription( +// DeviceDescription returns a dictionary containing information about the window’s resolution, such as color, depth, and so on. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419741-devicedescription?language=objc for details. +func (x gen_NSWindow) DeviceDescription() core.NSDictionary { + ret := C.NSWindow_inst_DeviceDescription( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSDictionary_fromPointer(ret) - return + + return core.NSDictionary_FromPointer(ret) } -func (x gen_NSWindow) CanBecomeVisibleWithoutLogin() ( - r0 bool, -) { - ret := C.NSWindow_inst_canBecomeVisibleWithoutLogin( +// CanBecomeVisibleWithoutLogin returns a boolean value that indicates whether the window can be displayed at the login window. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419179-canbecomevisiblewithoutlogin?language=objc for details. +func (x gen_NSWindow) CanBecomeVisibleWithoutLogin() bool { + ret := C.NSWindow_inst_CanBecomeVisibleWithoutLogin( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWindow) SetCanBecomeVisibleWithoutLogin_( +// SetCanBecomeVisibleWithoutLogin returns a boolean value that indicates whether the window can be displayed at the login window. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419179-canbecomevisiblewithoutlogin?language=objc for details. +func (x gen_NSWindow) SetCanBecomeVisibleWithoutLogin( value bool, ) { - C.NSWindow_inst_setCanBecomeVisibleWithoutLogin_( + C.NSWindow_inst_SetCanBecomeVisibleWithoutLogin( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSWindow) BackingType() ( - r0 core.NSUInteger, -) { - ret := C.NSWindow_inst_backingType( +// BackingType returns the window’s backing store type. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419599-backingtype?language=objc for details. +func (x gen_NSWindow) BackingType() core.NSUInteger { + ret := C.NSWindow_inst_BackingType( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSUInteger(ret) - return + + return core.NSUInteger(ret) } -func (x gen_NSWindow) SetBackingType_( +// SetBackingType returns the window’s backing store type. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419599-backingtype?language=objc for details. +func (x gen_NSWindow) SetBackingType( value core.NSUInteger, ) { - C.NSWindow_inst_setBackingType_( + C.NSWindow_inst_SetBackingType( unsafe.Pointer(x.Pointer()), C.ulong(value), ) + return } -func (x gen_NSWindow) AttachedSheet() ( - r0 NSWindow, -) { - ret := C.NSWindow_inst_attachedSheet( +// AttachedSheet returns the sheet attached to the window. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419467-attachedsheet?language=objc for details. +func (x gen_NSWindow) AttachedSheet() NSWindow { + ret := C.NSWindow_inst_AttachedSheet( unsafe.Pointer(x.Pointer()), ) - r0 = NSWindow_fromPointer(ret) - return + + return NSWindow_FromPointer(ret) } -func (x gen_NSWindow) IsSheet() ( - r0 bool, -) { - ret := C.NSWindow_inst_isSheet( +// IsSheet returns a boolean value that indicates whether the window has ever run as a modal sheet. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419364-sheet?language=objc for details. +func (x gen_NSWindow) IsSheet() bool { + ret := C.NSWindow_inst_IsSheet( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWindow) SheetParent() ( - r0 NSWindow, -) { - ret := C.NSWindow_inst_sheetParent( +// SheetParent returns the window to which the sheet is attached. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419052-sheetparent?language=objc for details. +func (x gen_NSWindow) SheetParent() NSWindow { + ret := C.NSWindow_inst_SheetParent( unsafe.Pointer(x.Pointer()), ) - r0 = NSWindow_fromPointer(ret) - return + + return NSWindow_FromPointer(ret) } -func (x gen_NSWindow) Sheets() ( - r0 core.NSArray, -) { - ret := C.NSWindow_inst_sheets( +// Sheets an array of the sheets currently attached to the window. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419765-sheets?language=objc for details. +func (x gen_NSWindow) Sheets() core.NSArray { + ret := C.NSWindow_inst_Sheets( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSArray_fromPointer(ret) - return + + return core.NSArray_FromPointer(ret) } -func (x gen_NSWindow) Frame() ( - r0 core.NSRect, -) { - ret := C.NSWindow_inst_frame( +// Frame returns the window’s frame rectangle in screen coordinates, including the title bar. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419697-frame?language=objc for details. +func (x gen_NSWindow) Frame() core.NSRect { + ret := C.NSWindow_inst_Frame( unsafe.Pointer(x.Pointer()), ) - r0 = *(*core.NSRect)(unsafe.Pointer(&ret)) - return + + return *(*core.NSRect)(unsafe.Pointer(&ret)) } -func (x gen_NSWindow) AspectRatio() ( - r0 core.NSSize, -) { - ret := C.NSWindow_inst_aspectRatio( +// AspectRatio returns the window’s aspect ratio, which constrains the size of its frame rectangle to integral multiples of this ratio when the user resizes it. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419507-aspectratio?language=objc for details. +func (x gen_NSWindow) AspectRatio() core.NSSize { + ret := C.NSWindow_inst_AspectRatio( unsafe.Pointer(x.Pointer()), ) - r0 = *(*core.NSSize)(unsafe.Pointer(&ret)) - return + + return *(*core.NSSize)(unsafe.Pointer(&ret)) } -func (x gen_NSWindow) SetAspectRatio_( +// SetAspectRatio returns the window’s aspect ratio, which constrains the size of its frame rectangle to integral multiples of this ratio when the user resizes it. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419507-aspectratio?language=objc for details. +func (x gen_NSWindow) SetAspectRatio( value core.NSSize, ) { - C.NSWindow_inst_setAspectRatio_( + C.NSWindow_inst_SetAspectRatio( unsafe.Pointer(x.Pointer()), *(*C.NSSize)(unsafe.Pointer(&value)), ) + return } -func (x gen_NSWindow) MinSize() ( - r0 core.NSSize, -) { - ret := C.NSWindow_inst_minSize( +// MinSize returns the minimum size to which the window’s frame (including its title bar) can be sized. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419206-minsize?language=objc for details. +func (x gen_NSWindow) MinSize() core.NSSize { + ret := C.NSWindow_inst_MinSize( unsafe.Pointer(x.Pointer()), ) - r0 = *(*core.NSSize)(unsafe.Pointer(&ret)) - return + + return *(*core.NSSize)(unsafe.Pointer(&ret)) } -func (x gen_NSWindow) SetMinSize_( +// SetMinSize returns the minimum size to which the window’s frame (including its title bar) can be sized. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419206-minsize?language=objc for details. +func (x gen_NSWindow) SetMinSize( value core.NSSize, ) { - C.NSWindow_inst_setMinSize_( + C.NSWindow_inst_SetMinSize( unsafe.Pointer(x.Pointer()), *(*C.NSSize)(unsafe.Pointer(&value)), ) + return } -func (x gen_NSWindow) MaxSize() ( - r0 core.NSSize, -) { - ret := C.NSWindow_inst_maxSize( +// MaxSize returns the maximum size to which the window’s frame (including its title bar) can be sized. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419595-maxsize?language=objc for details. +func (x gen_NSWindow) MaxSize() core.NSSize { + ret := C.NSWindow_inst_MaxSize( unsafe.Pointer(x.Pointer()), ) - r0 = *(*core.NSSize)(unsafe.Pointer(&ret)) - return + + return *(*core.NSSize)(unsafe.Pointer(&ret)) } -func (x gen_NSWindow) SetMaxSize_( +// SetMaxSize returns the maximum size to which the window’s frame (including its title bar) can be sized. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419595-maxsize?language=objc for details. +func (x gen_NSWindow) SetMaxSize( value core.NSSize, ) { - C.NSWindow_inst_setMaxSize_( + C.NSWindow_inst_SetMaxSize( unsafe.Pointer(x.Pointer()), *(*C.NSSize)(unsafe.Pointer(&value)), ) + return } -func (x gen_NSWindow) IsZoomed() ( - r0 bool, -) { - ret := C.NSWindow_inst_isZoomed( +// IsZoomed returns a boolean value that indicates whether the window is in a zoomed state. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419398-zoomed?language=objc for details. +func (x gen_NSWindow) IsZoomed() bool { + ret := C.NSWindow_inst_IsZoomed( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWindow) ResizeIncrements() ( - r0 core.NSSize, -) { - ret := C.NSWindow_inst_resizeIncrements( +// ResizeIncrements returns the window’s resizing increments. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419390-resizeincrements?language=objc for details. +func (x gen_NSWindow) ResizeIncrements() core.NSSize { + ret := C.NSWindow_inst_ResizeIncrements( unsafe.Pointer(x.Pointer()), ) - r0 = *(*core.NSSize)(unsafe.Pointer(&ret)) - return + + return *(*core.NSSize)(unsafe.Pointer(&ret)) } -func (x gen_NSWindow) SetResizeIncrements_( +// SetResizeIncrements returns the window’s resizing increments. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419390-resizeincrements?language=objc for details. +func (x gen_NSWindow) SetResizeIncrements( value core.NSSize, ) { - C.NSWindow_inst_setResizeIncrements_( + C.NSWindow_inst_SetResizeIncrements( unsafe.Pointer(x.Pointer()), *(*C.NSSize)(unsafe.Pointer(&value)), ) + return } -func (x gen_NSWindow) PreservesContentDuringLiveResize() ( - r0 bool, -) { - ret := C.NSWindow_inst_preservesContentDuringLiveResize( +// PreservesContentDuringLiveResize returns a boolean value that indicates whether the window tries to optimize user-initiated resize operations by preserving the content of views that have not changed. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419588-preservescontentduringliveresize?language=objc for details. +func (x gen_NSWindow) PreservesContentDuringLiveResize() bool { + ret := C.NSWindow_inst_PreservesContentDuringLiveResize( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWindow) SetPreservesContentDuringLiveResize_( +// SetPreservesContentDuringLiveResize returns a boolean value that indicates whether the window tries to optimize user-initiated resize operations by preserving the content of views that have not changed. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419588-preservescontentduringliveresize?language=objc for details. +func (x gen_NSWindow) SetPreservesContentDuringLiveResize( value bool, ) { - C.NSWindow_inst_setPreservesContentDuringLiveResize_( + C.NSWindow_inst_SetPreservesContentDuringLiveResize( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSWindow) InLiveResize() ( - r0 bool, -) { - ret := C.NSWindow_inst_inLiveResize( +// InLiveResize returns a boolean value that indicates whether the window is being resized by the user. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419378-inliveresize?language=objc for details. +func (x gen_NSWindow) InLiveResize() bool { + ret := C.NSWindow_inst_InLiveResize( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWindow) ContentAspectRatio() ( - r0 core.NSSize, -) { - ret := C.NSWindow_inst_contentAspectRatio( +// ContentAspectRatio returns the window’s content aspect ratio. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419148-contentaspectratio?language=objc for details. +func (x gen_NSWindow) ContentAspectRatio() core.NSSize { + ret := C.NSWindow_inst_ContentAspectRatio( unsafe.Pointer(x.Pointer()), ) - r0 = *(*core.NSSize)(unsafe.Pointer(&ret)) - return + + return *(*core.NSSize)(unsafe.Pointer(&ret)) } -func (x gen_NSWindow) SetContentAspectRatio_( +// SetContentAspectRatio returns the window’s content aspect ratio. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419148-contentaspectratio?language=objc for details. +func (x gen_NSWindow) SetContentAspectRatio( value core.NSSize, ) { - C.NSWindow_inst_setContentAspectRatio_( + C.NSWindow_inst_SetContentAspectRatio( unsafe.Pointer(x.Pointer()), *(*C.NSSize)(unsafe.Pointer(&value)), ) + return } -func (x gen_NSWindow) ContentMinSize() ( - r0 core.NSSize, -) { - ret := C.NSWindow_inst_contentMinSize( +// ContentMinSize returns the minimum size of the window’s content view in the window’s base coordinate system. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419670-contentminsize?language=objc for details. +func (x gen_NSWindow) ContentMinSize() core.NSSize { + ret := C.NSWindow_inst_ContentMinSize( unsafe.Pointer(x.Pointer()), ) - r0 = *(*core.NSSize)(unsafe.Pointer(&ret)) - return + + return *(*core.NSSize)(unsafe.Pointer(&ret)) } -func (x gen_NSWindow) SetContentMinSize_( +// SetContentMinSize returns the minimum size of the window’s content view in the window’s base coordinate system. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419670-contentminsize?language=objc for details. +func (x gen_NSWindow) SetContentMinSize( value core.NSSize, ) { - C.NSWindow_inst_setContentMinSize_( + C.NSWindow_inst_SetContentMinSize( unsafe.Pointer(x.Pointer()), *(*C.NSSize)(unsafe.Pointer(&value)), ) + return } -func (x gen_NSWindow) ContentMaxSize() ( - r0 core.NSSize, -) { - ret := C.NSWindow_inst_contentMaxSize( +// ContentMaxSize returns the maximum size of the window’s content view in the window’s base coordinate system. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419154-contentmaxsize?language=objc for details. +func (x gen_NSWindow) ContentMaxSize() core.NSSize { + ret := C.NSWindow_inst_ContentMaxSize( unsafe.Pointer(x.Pointer()), ) - r0 = *(*core.NSSize)(unsafe.Pointer(&ret)) - return + + return *(*core.NSSize)(unsafe.Pointer(&ret)) } -func (x gen_NSWindow) SetContentMaxSize_( +// SetContentMaxSize returns the maximum size of the window’s content view in the window’s base coordinate system. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419154-contentmaxsize?language=objc for details. +func (x gen_NSWindow) SetContentMaxSize( value core.NSSize, ) { - C.NSWindow_inst_setContentMaxSize_( + C.NSWindow_inst_SetContentMaxSize( unsafe.Pointer(x.Pointer()), *(*C.NSSize)(unsafe.Pointer(&value)), ) + return } -func (x gen_NSWindow) ContentResizeIncrements() ( - r0 core.NSSize, -) { - ret := C.NSWindow_inst_contentResizeIncrements( +// ContentResizeIncrements returns the window’s content-view resizing increments. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419649-contentresizeincrements?language=objc for details. +func (x gen_NSWindow) ContentResizeIncrements() core.NSSize { + ret := C.NSWindow_inst_ContentResizeIncrements( unsafe.Pointer(x.Pointer()), ) - r0 = *(*core.NSSize)(unsafe.Pointer(&ret)) - return + + return *(*core.NSSize)(unsafe.Pointer(&ret)) } -func (x gen_NSWindow) SetContentResizeIncrements_( +// SetContentResizeIncrements returns the window’s content-view resizing increments. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419649-contentresizeincrements?language=objc for details. +func (x gen_NSWindow) SetContentResizeIncrements( value core.NSSize, ) { - C.NSWindow_inst_setContentResizeIncrements_( + C.NSWindow_inst_SetContentResizeIncrements( unsafe.Pointer(x.Pointer()), *(*C.NSSize)(unsafe.Pointer(&value)), ) + return } -func (x gen_NSWindow) ContentLayoutGuide() ( - r0 objc.Object, -) { - ret := C.NSWindow_inst_contentLayoutGuide( +// ContentLayoutGuide returns a value used by auto layout constraints to automatically bind to the value of contentlayoutrect. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419094-contentlayoutguide?language=objc for details. +func (x gen_NSWindow) ContentLayoutGuide() objc.Object { + ret := C.NSWindow_inst_ContentLayoutGuide( unsafe.Pointer(x.Pointer()), ) - r0 = objc.Object_fromPointer(ret) - return + + return objc.Object_FromPointer(ret) } -func (x gen_NSWindow) ContentLayoutRect() ( - r0 core.NSRect, -) { - ret := C.NSWindow_inst_contentLayoutRect( +// ContentLayoutRect returns the area inside the window that is for non-obscured content, in window coordinates. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419124-contentlayoutrect?language=objc for details. +func (x gen_NSWindow) ContentLayoutRect() core.NSRect { + ret := C.NSWindow_inst_ContentLayoutRect( unsafe.Pointer(x.Pointer()), ) - r0 = *(*core.NSRect)(unsafe.Pointer(&ret)) - return + + return *(*core.NSRect)(unsafe.Pointer(&ret)) } -func (x gen_NSWindow) MaxFullScreenContentSize() ( - r0 core.NSSize, -) { - ret := C.NSWindow_inst_maxFullScreenContentSize( +// MaxFullScreenContentSize returns a maximum size that is used to determine if a window can fit when it is in full screen in a tile. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419438-maxfullscreencontentsize?language=objc for details. +func (x gen_NSWindow) MaxFullScreenContentSize() core.NSSize { + ret := C.NSWindow_inst_MaxFullScreenContentSize( unsafe.Pointer(x.Pointer()), ) - r0 = *(*core.NSSize)(unsafe.Pointer(&ret)) - return + + return *(*core.NSSize)(unsafe.Pointer(&ret)) } -func (x gen_NSWindow) SetMaxFullScreenContentSize_( +// SetMaxFullScreenContentSize returns a maximum size that is used to determine if a window can fit when it is in full screen in a tile. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419438-maxfullscreencontentsize?language=objc for details. +func (x gen_NSWindow) SetMaxFullScreenContentSize( value core.NSSize, ) { - C.NSWindow_inst_setMaxFullScreenContentSize_( + C.NSWindow_inst_SetMaxFullScreenContentSize( unsafe.Pointer(x.Pointer()), *(*C.NSSize)(unsafe.Pointer(&value)), ) + return } -func (x gen_NSWindow) MinFullScreenContentSize() ( - r0 core.NSSize, -) { - ret := C.NSWindow_inst_minFullScreenContentSize( +// MinFullScreenContentSize returns a minimum size that is used to determine if a window can fit when it is in full screen in a tile. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419627-minfullscreencontentsize?language=objc for details. +func (x gen_NSWindow) MinFullScreenContentSize() core.NSSize { + ret := C.NSWindow_inst_MinFullScreenContentSize( unsafe.Pointer(x.Pointer()), ) - r0 = *(*core.NSSize)(unsafe.Pointer(&ret)) - return + + return *(*core.NSSize)(unsafe.Pointer(&ret)) } -func (x gen_NSWindow) SetMinFullScreenContentSize_( +// SetMinFullScreenContentSize returns a minimum size that is used to determine if a window can fit when it is in full screen in a tile. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419627-minfullscreencontentsize?language=objc for details. +func (x gen_NSWindow) SetMinFullScreenContentSize( value core.NSSize, ) { - C.NSWindow_inst_setMinFullScreenContentSize_( + C.NSWindow_inst_SetMinFullScreenContentSize( unsafe.Pointer(x.Pointer()), *(*C.NSSize)(unsafe.Pointer(&value)), ) + return } -func (x gen_NSWindow) Level() ( - r0 core.NSInteger, -) { - ret := C.NSWindow_inst_level( +// Level returns the window level of the window. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419511-level?language=objc for details. +func (x gen_NSWindow) Level() core.NSInteger { + ret := C.NSWindow_inst_Level( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSInteger(ret) - return + + return core.NSInteger(ret) } -func (x gen_NSWindow) SetLevel_( +// SetLevel returns the window level of the window. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419511-level?language=objc for details. +func (x gen_NSWindow) SetLevel( value core.NSInteger, ) { - C.NSWindow_inst_setLevel_( + C.NSWindow_inst_SetLevel( unsafe.Pointer(x.Pointer()), C.long(value), ) + return } -func (x gen_NSWindow) IsVisible() ( - r0 bool, -) { - ret := C.NSWindow_inst_isVisible( +// IsVisible returns a boolean value that indicates whether the window is visible onscreen (even when it’s obscured by other windows). +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419132-visible?language=objc for details. +func (x gen_NSWindow) IsVisible() bool { + ret := C.NSWindow_inst_IsVisible( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWindow) IsKeyWindow() ( - r0 bool, -) { - ret := C.NSWindow_inst_isKeyWindow( +// IsKeyWindow returns a boolean value that indicates whether the window is the key window for the application. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419735-keywindow?language=objc for details. +func (x gen_NSWindow) IsKeyWindow() bool { + ret := C.NSWindow_inst_IsKeyWindow( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWindow) CanBecomeKeyWindow() ( - r0 bool, -) { - ret := C.NSWindow_inst_canBecomeKeyWindow( +// CanBecomeKeyWindow returns a boolean value that indicates whether the window can become the key window. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419543-canbecomekeywindow?language=objc for details. +func (x gen_NSWindow) CanBecomeKeyWindow() bool { + ret := C.NSWindow_inst_CanBecomeKeyWindow( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWindow) IsMainWindow() ( - r0 bool, -) { - ret := C.NSWindow_inst_isMainWindow( +// IsMainWindow returns a boolean value that indicates whether the window is the application’s main window. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419130-mainwindow?language=objc for details. +func (x gen_NSWindow) IsMainWindow() bool { + ret := C.NSWindow_inst_IsMainWindow( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWindow) CanBecomeMainWindow() ( - r0 bool, -) { - ret := C.NSWindow_inst_canBecomeMainWindow( +// CanBecomeMainWindow returns a boolean value that indicates whether the window can become the application’s main window. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419162-canbecomemainwindow?language=objc for details. +func (x gen_NSWindow) CanBecomeMainWindow() bool { + ret := C.NSWindow_inst_CanBecomeMainWindow( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWindow) ChildWindows() ( - r0 core.NSArray, -) { - ret := C.NSWindow_inst_childWindows( +// ChildWindows an array of the window’s attached child windows. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419236-childwindows?language=objc for details. +func (x gen_NSWindow) ChildWindows() core.NSArray { + ret := C.NSWindow_inst_ChildWindows( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSArray_fromPointer(ret) - return + + return core.NSArray_FromPointer(ret) } -func (x gen_NSWindow) ParentWindow() ( - r0 NSWindow, -) { - ret := C.NSWindow_inst_parentWindow( +// ParentWindow returns the parent window to which the window is attached as a child. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419695-parentwindow?language=objc for details. +func (x gen_NSWindow) ParentWindow() NSWindow { + ret := C.NSWindow_inst_ParentWindow( unsafe.Pointer(x.Pointer()), ) - r0 = NSWindow_fromPointer(ret) - return + + return NSWindow_FromPointer(ret) } -func (x gen_NSWindow) SetParentWindow_( +// SetParentWindow returns the parent window to which the window is attached as a child. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419695-parentwindow?language=objc for details. +func (x gen_NSWindow) SetParentWindow( value NSWindowRef, ) { - C.NSWindow_inst_setParentWindow_( + C.NSWindow_inst_SetParentWindow( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSWindow) IsExcludedFromWindowsMenu() ( - r0 bool, -) { - ret := C.NSWindow_inst_isExcludedFromWindowsMenu( +// IsExcludedFromWindowsMenu returns a boolean value that indicates whether the window is excluded from the application’s windows menu. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419175-excludedfromwindowsmenu?language=objc for details. +func (x gen_NSWindow) IsExcludedFromWindowsMenu() bool { + ret := C.NSWindow_inst_IsExcludedFromWindowsMenu( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWindow) SetExcludedFromWindowsMenu_( +// SetExcludedFromWindowsMenu returns a boolean value that indicates whether the window is excluded from the application’s windows menu. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419175-excludedfromwindowsmenu?language=objc for details. +func (x gen_NSWindow) SetExcludedFromWindowsMenu( value bool, ) { - C.NSWindow_inst_setExcludedFromWindowsMenu_( + C.NSWindow_inst_SetExcludedFromWindowsMenu( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSWindow) AreCursorRectsEnabled() ( - r0 bool, -) { - ret := C.NSWindow_inst_areCursorRectsEnabled( +// AreCursorRectsEnabled returns a boolean value that indicates whether the window’s cursor rectangles are enabled. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419668-arecursorrectsenabled?language=objc for details. +func (x gen_NSWindow) AreCursorRectsEnabled() bool { + ret := C.NSWindow_inst_AreCursorRectsEnabled( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWindow) ShowsToolbarButton() ( - r0 bool, -) { - ret := C.NSWindow_inst_showsToolbarButton( +// ShowsToolbarButton returns a boolean value that indicates whether the toolbar control button is currently displayed. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419196-showstoolbarbutton?language=objc for details. +func (x gen_NSWindow) ShowsToolbarButton() bool { + ret := C.NSWindow_inst_ShowsToolbarButton( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWindow) SetShowsToolbarButton_( +// SetShowsToolbarButton returns a boolean value that indicates whether the toolbar control button is currently displayed. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419196-showstoolbarbutton?language=objc for details. +func (x gen_NSWindow) SetShowsToolbarButton( value bool, ) { - C.NSWindow_inst_setShowsToolbarButton_( + C.NSWindow_inst_SetShowsToolbarButton( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSWindow) TitlebarAppearsTransparent() ( - r0 bool, -) { - ret := C.NSWindow_inst_titlebarAppearsTransparent( +// TitlebarAppearsTransparent returns a boolean value that indicates whether the title bar draws its background. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419167-titlebarappearstransparent?language=objc for details. +func (x gen_NSWindow) TitlebarAppearsTransparent() bool { + ret := C.NSWindow_inst_TitlebarAppearsTransparent( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWindow) SetTitlebarAppearsTransparent_( +// SetTitlebarAppearsTransparent returns a boolean value that indicates whether the title bar draws its background. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419167-titlebarappearstransparent?language=objc for details. +func (x gen_NSWindow) SetTitlebarAppearsTransparent( value bool, ) { - C.NSWindow_inst_setTitlebarAppearsTransparent_( + C.NSWindow_inst_SetTitlebarAppearsTransparent( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSWindow) TitlebarAccessoryViewControllers() ( - r0 core.NSArray, -) { - ret := C.NSWindow_inst_titlebarAccessoryViewControllers( +// TitlebarAccessoryViewControllers an array of title bar accessory view controllers that are currently added to the window. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419547-titlebaraccessoryviewcontrollers?language=objc for details. +func (x gen_NSWindow) TitlebarAccessoryViewControllers() core.NSArray { + ret := C.NSWindow_inst_TitlebarAccessoryViewControllers( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSArray_fromPointer(ret) - return + + return core.NSArray_FromPointer(ret) } -func (x gen_NSWindow) SetTitlebarAccessoryViewControllers_( +// SetTitlebarAccessoryViewControllers an array of title bar accessory view controllers that are currently added to the window. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419547-titlebaraccessoryviewcontrollers?language=objc for details. +func (x gen_NSWindow) SetTitlebarAccessoryViewControllers( value core.NSArrayRef, ) { - C.NSWindow_inst_setTitlebarAccessoryViewControllers_( + C.NSWindow_inst_SetTitlebarAccessoryViewControllers( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSWindow) TabbedWindows() ( - r0 core.NSArray, -) { - ret := C.NSWindow_inst_tabbedWindows( +// TabbedWindows an array of windows that display as tabs. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1792044-tabbedwindows?language=objc for details. +func (x gen_NSWindow) TabbedWindows() core.NSArray { + ret := C.NSWindow_inst_TabbedWindows( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSArray_fromPointer(ret) - return + + return core.NSArray_FromPointer(ret) } -func (x gen_NSWindow) AllowsToolTipsWhenApplicationIsInactive() ( - r0 bool, -) { - ret := C.NSWindow_inst_allowsToolTipsWhenApplicationIsInactive( +// AllowsToolTipsWhenApplicationIsInactive returns a boolean value that indicates whether the window can display tooltips even when the application is in the background. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419138-allowstooltipswhenapplicationisi?language=objc for details. +func (x gen_NSWindow) AllowsToolTipsWhenApplicationIsInactive() bool { + ret := C.NSWindow_inst_AllowsToolTipsWhenApplicationIsInactive( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWindow) SetAllowsToolTipsWhenApplicationIsInactive_( +// SetAllowsToolTipsWhenApplicationIsInactive returns a boolean value that indicates whether the window can display tooltips even when the application is in the background. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419138-allowstooltipswhenapplicationisi?language=objc for details. +func (x gen_NSWindow) SetAllowsToolTipsWhenApplicationIsInactive( value bool, ) { - C.NSWindow_inst_setAllowsToolTipsWhenApplicationIsInactive_( + C.NSWindow_inst_SetAllowsToolTipsWhenApplicationIsInactive( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSWindow) CurrentEvent() ( - r0 NSEvent, -) { - ret := C.NSWindow_inst_currentEvent( +// CurrentEvent returns the event currently being processed by the application. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419298-currentevent?language=objc for details. +func (x gen_NSWindow) CurrentEvent() NSEvent { + ret := C.NSWindow_inst_CurrentEvent( unsafe.Pointer(x.Pointer()), ) - r0 = NSEvent_fromPointer(ret) - return + + return NSEvent_FromPointer(ret) } -func (x gen_NSWindow) InitialFirstResponder() ( - r0 NSView, -) { - ret := C.NSWindow_inst_initialFirstResponder( +// InitialFirstResponder returns the view that’s made first responder (also called the key view) the first time the window is placed onscreen. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419479-initialfirstresponder?language=objc for details. +func (x gen_NSWindow) InitialFirstResponder() NSView { + ret := C.NSWindow_inst_InitialFirstResponder( unsafe.Pointer(x.Pointer()), ) - r0 = NSView_fromPointer(ret) - return + + return NSView_FromPointer(ret) } -func (x gen_NSWindow) SetInitialFirstResponder_( +// SetInitialFirstResponder returns the view that’s made first responder (also called the key view) the first time the window is placed onscreen. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419479-initialfirstresponder?language=objc for details. +func (x gen_NSWindow) SetInitialFirstResponder( value NSViewRef, ) { - C.NSWindow_inst_setInitialFirstResponder_( + C.NSWindow_inst_SetInitialFirstResponder( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSWindow) AutorecalculatesKeyViewLoop() ( - r0 bool, -) { - ret := C.NSWindow_inst_autorecalculatesKeyViewLoop( +// AutorecalculatesKeyViewLoop returns a boolean value that indicates whether the window automatically recalculates the key view loop when views are added. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419214-autorecalculateskeyviewloop?language=objc for details. +func (x gen_NSWindow) AutorecalculatesKeyViewLoop() bool { + ret := C.NSWindow_inst_AutorecalculatesKeyViewLoop( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWindow) SetAutorecalculatesKeyViewLoop_( +// SetAutorecalculatesKeyViewLoop returns a boolean value that indicates whether the window automatically recalculates the key view loop when views are added. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419214-autorecalculateskeyviewloop?language=objc for details. +func (x gen_NSWindow) SetAutorecalculatesKeyViewLoop( value bool, ) { - C.NSWindow_inst_setAutorecalculatesKeyViewLoop_( + C.NSWindow_inst_SetAutorecalculatesKeyViewLoop( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSWindow) AcceptsMouseMovedEvents() ( - r0 bool, -) { - ret := C.NSWindow_inst_acceptsMouseMovedEvents( +// AcceptsMouseMovedEvents returns a boolean value that indicates whether the window accepts mouse-moved events. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419340-acceptsmousemovedevents?language=objc for details. +func (x gen_NSWindow) AcceptsMouseMovedEvents() bool { + ret := C.NSWindow_inst_AcceptsMouseMovedEvents( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWindow) SetAcceptsMouseMovedEvents_( +// SetAcceptsMouseMovedEvents returns a boolean value that indicates whether the window accepts mouse-moved events. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419340-acceptsmousemovedevents?language=objc for details. +func (x gen_NSWindow) SetAcceptsMouseMovedEvents( value bool, ) { - C.NSWindow_inst_setAcceptsMouseMovedEvents_( + C.NSWindow_inst_SetAcceptsMouseMovedEvents( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSWindow) IgnoresMouseEvents() ( - r0 bool, -) { - ret := C.NSWindow_inst_ignoresMouseEvents( +// IgnoresMouseEvents returns a boolean value that indicates whether the window is transparent to mouse events. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419354-ignoresmouseevents?language=objc for details. +func (x gen_NSWindow) IgnoresMouseEvents() bool { + ret := C.NSWindow_inst_IgnoresMouseEvents( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWindow) SetIgnoresMouseEvents_( +// SetIgnoresMouseEvents returns a boolean value that indicates whether the window is transparent to mouse events. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419354-ignoresmouseevents?language=objc for details. +func (x gen_NSWindow) SetIgnoresMouseEvents( value bool, ) { - C.NSWindow_inst_setIgnoresMouseEvents_( + C.NSWindow_inst_SetIgnoresMouseEvents( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSWindow) MouseLocationOutsideOfEventStream() ( - r0 core.NSPoint, -) { - ret := C.NSWindow_inst_mouseLocationOutsideOfEventStream( +// MouseLocationOutsideOfEventStream returns the current location of the pointer reckoned in the window’s base coordinate system, regardless of the current event being handled or of any events pending. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419280-mouselocationoutsideofeventstrea?language=objc for details. +func (x gen_NSWindow) MouseLocationOutsideOfEventStream() core.NSPoint { + ret := C.NSWindow_inst_MouseLocationOutsideOfEventStream( unsafe.Pointer(x.Pointer()), ) - r0 = *(*core.NSPoint)(unsafe.Pointer(&ret)) - return + + return *(*core.NSPoint)(unsafe.Pointer(&ret)) } -func (x gen_NSWindow) IsRestorable() ( - r0 bool, -) { - ret := C.NSWindow_inst_isRestorable( +// IsRestorable returns a boolean value indicating whether the window configuration is preserved between application launches. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1526255-restorable?language=objc for details. +func (x gen_NSWindow) IsRestorable() bool { + ret := C.NSWindow_inst_IsRestorable( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWindow) SetRestorable_( +// SetRestorable returns a boolean value indicating whether the window configuration is preserved between application launches. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1526255-restorable?language=objc for details. +func (x gen_NSWindow) SetRestorable( value bool, ) { - C.NSWindow_inst_setRestorable_( + C.NSWindow_inst_SetRestorable( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSWindow) ViewsNeedDisplay() ( - r0 bool, -) { - ret := C.NSWindow_inst_viewsNeedDisplay( +// ViewsNeedDisplay returns a boolean value that indicates whether any of the window’s views need to be displayed. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419609-viewsneeddisplay?language=objc for details. +func (x gen_NSWindow) ViewsNeedDisplay() bool { + ret := C.NSWindow_inst_ViewsNeedDisplay( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWindow) SetViewsNeedDisplay_( +// SetViewsNeedDisplay returns a boolean value that indicates whether any of the window’s views need to be displayed. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419609-viewsneeddisplay?language=objc for details. +func (x gen_NSWindow) SetViewsNeedDisplay( value bool, ) { - C.NSWindow_inst_setViewsNeedDisplay_( + C.NSWindow_inst_SetViewsNeedDisplay( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSWindow) AllowsConcurrentViewDrawing() ( - r0 bool, -) { - ret := C.NSWindow_inst_allowsConcurrentViewDrawing( +// AllowsConcurrentViewDrawing returns a boolean value that indicates whether the window allows multithreaded view drawing. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419300-allowsconcurrentviewdrawing?language=objc for details. +func (x gen_NSWindow) AllowsConcurrentViewDrawing() bool { + ret := C.NSWindow_inst_AllowsConcurrentViewDrawing( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWindow) SetAllowsConcurrentViewDrawing_( +// SetAllowsConcurrentViewDrawing returns a boolean value that indicates whether the window allows multithreaded view drawing. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419300-allowsconcurrentviewdrawing?language=objc for details. +func (x gen_NSWindow) SetAllowsConcurrentViewDrawing( value bool, ) { - C.NSWindow_inst_setAllowsConcurrentViewDrawing_( + C.NSWindow_inst_SetAllowsConcurrentViewDrawing( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSWindow) IsDocumentEdited() ( - r0 bool, -) { - ret := C.NSWindow_inst_isDocumentEdited( +// IsDocumentEdited returns a boolean value that indicates whether the window’s document has been edited. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419311-documentedited?language=objc for details. +func (x gen_NSWindow) IsDocumentEdited() bool { + ret := C.NSWindow_inst_IsDocumentEdited( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWindow) SetDocumentEdited_( +// SetDocumentEdited returns a boolean value that indicates whether the window’s document has been edited. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419311-documentedited?language=objc for details. +func (x gen_NSWindow) SetDocumentEdited( value bool, ) { - C.NSWindow_inst_setDocumentEdited_( + C.NSWindow_inst_SetDocumentEdited( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSWindow) BackingScaleFactor() ( - r0 core.CGFloat, -) { - ret := C.NSWindow_inst_backingScaleFactor( +// BackingScaleFactor returns the backing scale factor. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419459-backingscalefactor?language=objc for details. +func (x gen_NSWindow) BackingScaleFactor() core.CGFloat { + ret := C.NSWindow_inst_BackingScaleFactor( unsafe.Pointer(x.Pointer()), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } -func (x gen_NSWindow) Title() ( - r0 core.NSString, -) { - ret := C.NSWindow_inst_title( +// Title returns the string that appears in the title bar of the window or the path to the represented file. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419404-title?language=objc for details. +func (x gen_NSWindow) Title() core.NSString { + ret := C.NSWindow_inst_Title( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_NSWindow) SetTitle_( +// SetTitle returns the string that appears in the title bar of the window or the path to the represented file. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419404-title?language=objc for details. +func (x gen_NSWindow) SetTitle( value core.NSStringRef, ) { - C.NSWindow_inst_setTitle_( + C.NSWindow_inst_SetTitle( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSWindow) Subtitle() ( - r0 core.NSString, -) { - ret := C.NSWindow_inst_subtitle( +// Subtitle returns a secondary line of text that appears in the title bar of the window. +// +// See https://developer.apple.com/documentation/appkit/nswindow/3608198-subtitle?language=objc for details. +func (x gen_NSWindow) Subtitle() core.NSString { + ret := C.NSWindow_inst_Subtitle( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_NSWindow) SetSubtitle_( +// SetSubtitle returns a secondary line of text that appears in the title bar of the window. +// +// See https://developer.apple.com/documentation/appkit/nswindow/3608198-subtitle?language=objc for details. +func (x gen_NSWindow) SetSubtitle( value core.NSStringRef, ) { - C.NSWindow_inst_setSubtitle_( + C.NSWindow_inst_SetSubtitle( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSWindow) TitleVisibility() ( - r0 core.NSInteger, -) { - ret := C.NSWindow_inst_titleVisibility( +// TitleVisibility returns a value that indicates the visibility of the window’s title and title bar buttons. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419635-titlevisibility?language=objc for details. +func (x gen_NSWindow) TitleVisibility() core.NSInteger { + ret := C.NSWindow_inst_TitleVisibility( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSInteger(ret) - return + + return core.NSInteger(ret) } -func (x gen_NSWindow) SetTitleVisibility_( +// SetTitleVisibility returns a value that indicates the visibility of the window’s title and title bar buttons. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419635-titlevisibility?language=objc for details. +func (x gen_NSWindow) SetTitleVisibility( value core.NSInteger, ) { - C.NSWindow_inst_setTitleVisibility_( + C.NSWindow_inst_SetTitleVisibility( unsafe.Pointer(x.Pointer()), C.long(value), ) + return } -func (x gen_NSWindow) RepresentedFilename() ( - r0 core.NSString, -) { - ret := C.NSWindow_inst_representedFilename( +// RepresentedFilename returns the path to the file of the window’s represented file. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419631-representedfilename?language=objc for details. +func (x gen_NSWindow) RepresentedFilename() core.NSString { + ret := C.NSWindow_inst_RepresentedFilename( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_NSWindow) SetRepresentedFilename_( +// SetRepresentedFilename returns the path to the file of the window’s represented file. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419631-representedfilename?language=objc for details. +func (x gen_NSWindow) SetRepresentedFilename( value core.NSStringRef, ) { - C.NSWindow_inst_setRepresentedFilename_( + C.NSWindow_inst_SetRepresentedFilename( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSWindow) RepresentedURL() ( - r0 core.NSURL, -) { - ret := C.NSWindow_inst_representedURL( +// RepresentedURL returns the url of the file the window represents. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419066-representedurl?language=objc for details. +func (x gen_NSWindow) RepresentedURL() core.NSURL { + ret := C.NSWindow_inst_RepresentedURL( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSURL_fromPointer(ret) - return + + return core.NSURL_FromPointer(ret) } -func (x gen_NSWindow) SetRepresentedURL_( +// SetRepresentedURL returns the url of the file the window represents. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419066-representedurl?language=objc for details. +func (x gen_NSWindow) SetRepresentedURL( value core.NSURLRef, ) { - C.NSWindow_inst_setRepresentedURL_( + C.NSWindow_inst_SetRepresentedURL( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSWindow) Screen() ( - r0 NSScreen, -) { - ret := C.NSWindow_inst_screen( +// Screen returns the screen the window is on. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419232-screen?language=objc for details. +func (x gen_NSWindow) Screen() NSScreen { + ret := C.NSWindow_inst_Screen( unsafe.Pointer(x.Pointer()), ) - r0 = NSScreen_fromPointer(ret) - return + + return NSScreen_FromPointer(ret) } -func (x gen_NSWindow) DeepestScreen() ( - r0 NSScreen, -) { - ret := C.NSWindow_inst_deepestScreen( +// DeepestScreen returns the deepest screen the window is on (it may be split over several screens). +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419080-deepestscreen?language=objc for details. +func (x gen_NSWindow) DeepestScreen() NSScreen { + ret := C.NSWindow_inst_DeepestScreen( unsafe.Pointer(x.Pointer()), ) - r0 = NSScreen_fromPointer(ret) - return + + return NSScreen_FromPointer(ret) } -func (x gen_NSWindow) DisplaysWhenScreenProfileChanges() ( - r0 bool, -) { - ret := C.NSWindow_inst_displaysWhenScreenProfileChanges( +// DisplaysWhenScreenProfileChanges returns a boolean value that indicates whether the window context should be updated when the screen profile changes or when the window moves to a different screen. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419430-displayswhenscreenprofilechanges?language=objc for details. +func (x gen_NSWindow) DisplaysWhenScreenProfileChanges() bool { + ret := C.NSWindow_inst_DisplaysWhenScreenProfileChanges( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWindow) SetDisplaysWhenScreenProfileChanges_( +// SetDisplaysWhenScreenProfileChanges returns a boolean value that indicates whether the window context should be updated when the screen profile changes or when the window moves to a different screen. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419430-displayswhenscreenprofilechanges?language=objc for details. +func (x gen_NSWindow) SetDisplaysWhenScreenProfileChanges( value bool, ) { - C.NSWindow_inst_setDisplaysWhenScreenProfileChanges_( + C.NSWindow_inst_SetDisplaysWhenScreenProfileChanges( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSWindow) IsMovableByWindowBackground() ( - r0 bool, -) { - ret := C.NSWindow_inst_isMovableByWindowBackground( +// IsMovableByWindowBackground returns a boolean value that indicates whether the window is movable by clicking and dragging anywhere in its background. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419072-movablebywindowbackground?language=objc for details. +func (x gen_NSWindow) IsMovableByWindowBackground() bool { + ret := C.NSWindow_inst_IsMovableByWindowBackground( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWindow) SetMovableByWindowBackground_( +// SetMovableByWindowBackground returns a boolean value that indicates whether the window is movable by clicking and dragging anywhere in its background. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419072-movablebywindowbackground?language=objc for details. +func (x gen_NSWindow) SetMovableByWindowBackground( value bool, ) { - C.NSWindow_inst_setMovableByWindowBackground_( + C.NSWindow_inst_SetMovableByWindowBackground( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSWindow) IsMovable() ( - r0 bool, -) { - ret := C.NSWindow_inst_isMovable( +// IsMovable returns a boolean value that indicates whether the window can be dragged by clicking in its title bar or background. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419579-movable?language=objc for details. +func (x gen_NSWindow) IsMovable() bool { + ret := C.NSWindow_inst_IsMovable( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWindow) SetMovable_( +// SetMovable returns a boolean value that indicates whether the window can be dragged by clicking in its title bar or background. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419579-movable?language=objc for details. +func (x gen_NSWindow) SetMovable( value bool, ) { - C.NSWindow_inst_setMovable_( + C.NSWindow_inst_SetMovable( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSWindow) IsReleasedWhenClosed() ( - r0 bool, -) { - ret := C.NSWindow_inst_isReleasedWhenClosed( +// IsReleasedWhenClosed returns a boolean value that indicates whether the window is released when it receives the close message. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419062-releasedwhenclosed?language=objc for details. +func (x gen_NSWindow) IsReleasedWhenClosed() bool { + ret := C.NSWindow_inst_IsReleasedWhenClosed( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWindow) SetReleasedWhenClosed_( +// SetReleasedWhenClosed returns a boolean value that indicates whether the window is released when it receives the close message. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419062-releasedwhenclosed?language=objc for details. +func (x gen_NSWindow) SetReleasedWhenClosed( value bool, ) { - C.NSWindow_inst_setReleasedWhenClosed_( + C.NSWindow_inst_SetReleasedWhenClosed( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSWindow) IsMiniaturized() ( - r0 bool, -) { - ret := C.NSWindow_inst_isMiniaturized( +// IsMiniaturized returns a boolean value that indicates whether the window is minimized. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419699-miniaturized?language=objc for details. +func (x gen_NSWindow) IsMiniaturized() bool { + ret := C.NSWindow_inst_IsMiniaturized( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWindow) MiniwindowImage() ( - r0 NSImage, -) { - ret := C.NSWindow_inst_miniwindowImage( +// MiniwindowImage returns the custom miniaturized window image of the window. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419185-miniwindowimage?language=objc for details. +func (x gen_NSWindow) MiniwindowImage() NSImage { + ret := C.NSWindow_inst_MiniwindowImage( unsafe.Pointer(x.Pointer()), ) - r0 = NSImage_fromPointer(ret) - return + + return NSImage_FromPointer(ret) } -func (x gen_NSWindow) SetMiniwindowImage_( +// SetMiniwindowImage returns the custom miniaturized window image of the window. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419185-miniwindowimage?language=objc for details. +func (x gen_NSWindow) SetMiniwindowImage( value NSImageRef, ) { - C.NSWindow_inst_setMiniwindowImage_( + C.NSWindow_inst_SetMiniwindowImage( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSWindow) MiniwindowTitle() ( - r0 core.NSString, -) { - ret := C.NSWindow_inst_miniwindowTitle( +// MiniwindowTitle returns the title displayed in the window’s minimized window. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419571-miniwindowtitle?language=objc for details. +func (x gen_NSWindow) MiniwindowTitle() core.NSString { + ret := C.NSWindow_inst_MiniwindowTitle( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_NSWindow) SetMiniwindowTitle_( +// SetMiniwindowTitle returns the title displayed in the window’s minimized window. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1419571-miniwindowtitle?language=objc for details. +func (x gen_NSWindow) SetMiniwindowTitle( value core.NSStringRef, ) { - C.NSWindow_inst_setMiniwindowTitle_( + C.NSWindow_inst_SetMiniwindowTitle( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSWindow) HasCloseBox() ( - r0 bool, -) { - ret := C.NSWindow_inst_hasCloseBox( +// HasCloseBox returns a boolean value that indicates if the window has a close box. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1449574-hasclosebox?language=objc for details. +func (x gen_NSWindow) HasCloseBox() bool { + ret := C.NSWindow_inst_HasCloseBox( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWindow) HasTitleBar() ( - r0 bool, -) { - ret := C.NSWindow_inst_hasTitleBar( +// HasTitleBar returns a boolean value that indicates if the window has a title bar. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1449568-hastitlebar?language=objc for details. +func (x gen_NSWindow) HasTitleBar() bool { + ret := C.NSWindow_inst_HasTitleBar( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWindow) IsModalPanel() ( - r0 bool, -) { - ret := C.NSWindow_inst_isModalPanel( +// IsModalPanel returns a boolean value that indicates whether the window is a modal panel. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1449576-modalpanel?language=objc for details. +func (x gen_NSWindow) IsModalPanel() bool { + ret := C.NSWindow_inst_IsModalPanel( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWindow) IsFloatingPanel() ( - r0 bool, -) { - ret := C.NSWindow_inst_isFloatingPanel( +// IsFloatingPanel returns a boolean value that indicates whether the window is a floating panel. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1449579-floatingpanel?language=objc for details. +func (x gen_NSWindow) IsFloatingPanel() bool { + ret := C.NSWindow_inst_IsFloatingPanel( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWindow) IsZoomable() ( - r0 bool, -) { - ret := C.NSWindow_inst_isZoomable( +// IsZoomable returns a boolean value that indicates whether the window allows zooming. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1449587-zoomable?language=objc for details. +func (x gen_NSWindow) IsZoomable() bool { + ret := C.NSWindow_inst_IsZoomable( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWindow) IsResizable() ( - r0 bool, -) { - ret := C.NSWindow_inst_isResizable( +// IsResizable returns a boolean value that indicates if the user can resize the window. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1449572-resizable?language=objc for details. +func (x gen_NSWindow) IsResizable() bool { + ret := C.NSWindow_inst_IsResizable( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWindow) IsMiniaturizable() ( - r0 bool, -) { - ret := C.NSWindow_inst_isMiniaturizable( +// IsMiniaturizable returns a boolean value that indicates whether the window can minimize. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1449583-miniaturizable?language=objc for details. +func (x gen_NSWindow) IsMiniaturizable() bool { + ret := C.NSWindow_inst_IsMiniaturizable( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWindow) OrderedIndex() ( - r0 core.NSInteger, -) { - ret := C.NSWindow_inst_orderedIndex( +// OrderedIndex returns the zero-based position of the window, based on its order from front to back among all visible application windows. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1449577-orderedindex?language=objc for details. +func (x gen_NSWindow) OrderedIndex() core.NSInteger { + ret := C.NSWindow_inst_OrderedIndex( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSInteger(ret) - return + + return core.NSInteger(ret) } -func (x gen_NSWindow) SetOrderedIndex_( +// SetOrderedIndex returns the zero-based position of the window, based on its order from front to back among all visible application windows. +// +// See https://developer.apple.com/documentation/appkit/nswindow/1449577-orderedindex?language=objc for details. +func (x gen_NSWindow) SetOrderedIndex( value core.NSInteger, ) { - C.NSWindow_inst_setOrderedIndex_( + C.NSWindow_inst_SetOrderedIndex( unsafe.Pointer(x.Pointer()), C.long(value), ) + return } type NSWorkspaceRef interface { Pointer() uintptr - Init_asNSWorkspace() NSWorkspace + Init_AsNSWorkspace() NSWorkspace } type gen_NSWorkspace struct { objc.Object } -func NSWorkspace_fromPointer(ptr unsafe.Pointer) NSWorkspace { +func NSWorkspace_FromPointer(ptr unsafe.Pointer) NSWorkspace { return NSWorkspace{gen_NSWorkspace{ - objc.Object_fromPointer(ptr), + objc.Object_FromPointer(ptr), }} } -func NSWorkspace_fromRef(ref objc.Ref) NSWorkspace { - return NSWorkspace_fromPointer(unsafe.Pointer(ref.Pointer())) +func NSWorkspace_FromRef(ref objc.Ref) NSWorkspace { + return NSWorkspace_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_NSWorkspace) OpenURL_( +// URLForApplicationToOpenURL returns the url to the default app that would be opened. +// +// See https://developer.apple.com/documentation/appkit/nsworkspace/1533391-urlforapplicationtoopenurl?language=objc for details. +func (x gen_NSWorkspace) URLForApplicationToOpenURL( url core.NSURLRef, -) ( - r0 bool, -) { - ret := C.NSWorkspace_inst_openURL_( +) core.NSURL { + ret := C.NSWorkspace_inst_URLForApplicationToOpenURL( unsafe.Pointer(x.Pointer()), objc.RefPointer(url), ) - r0 = convertObjCBoolToGo(ret) - return + + return core.NSURL_FromPointer(ret) } -func (x gen_NSWorkspace) HideOtherApplications() { - C.NSWorkspace_inst_hideOtherApplications( +// URLForApplicationWithBundleIdentifier returns the url for the app with the specified identifier. +// +// See https://developer.apple.com/documentation/appkit/nsworkspace/1534053-urlforapplicationwithbundleident?language=objc for details. +func (x gen_NSWorkspace) URLForApplicationWithBundleIdentifier( + bundleIdentifier core.NSStringRef, +) core.NSURL { + ret := C.NSWorkspace_inst_URLForApplicationWithBundleIdentifier( unsafe.Pointer(x.Pointer()), + objc.RefPointer(bundleIdentifier), ) - return + + return core.NSURL_FromPointer(ret) +} + +// URLsForApplicationsToOpenURL +// +// See https://developer.apple.com/documentation/appkit/nsworkspace/3753000-urlsforapplicationstoopenurl?language=objc for details. +func (x gen_NSWorkspace) URLsForApplicationsToOpenURL( + url core.NSURLRef, +) core.NSArray { + ret := C.NSWorkspace_inst_URLsForApplicationsToOpenURL( + unsafe.Pointer(x.Pointer()), + objc.RefPointer(url), + ) + + return core.NSArray_FromPointer(ret) +} + +// URLsForApplicationsWithBundleIdentifier +// +// See https://developer.apple.com/documentation/appkit/nsworkspace/3753001-urlsforapplicationswithbundleide?language=objc for details. +func (x gen_NSWorkspace) URLsForApplicationsWithBundleIdentifier( + bundleIdentifier core.NSStringRef, +) core.NSArray { + ret := C.NSWorkspace_inst_URLsForApplicationsWithBundleIdentifier( + unsafe.Pointer(x.Pointer()), + objc.RefPointer(bundleIdentifier), + ) + + return core.NSArray_FromPointer(ret) } -func (x gen_NSWorkspace) ActivateFileViewerSelectingURLs_( +// ActivateFileViewerSelectingURLs activates the finder, and opens one or more windows selecting the specified files. +// +// See https://developer.apple.com/documentation/appkit/nsworkspace/1524549-activatefileviewerselectingurls?language=objc for details. +func (x gen_NSWorkspace) ActivateFileViewerSelectingURLs( fileURLs core.NSArrayRef, ) { - C.NSWorkspace_inst_activateFileViewerSelectingURLs_( + C.NSWorkspace_inst_ActivateFileViewerSelectingURLs( unsafe.Pointer(x.Pointer()), objc.RefPointer(fileURLs), ) + return } -func (x gen_NSWorkspace) SelectFile_inFileViewerRootedAtPath_( - fullPath core.NSStringRef, - rootFullPath core.NSStringRef, -) ( - r0 bool, -) { - ret := C.NSWorkspace_inst_selectFile_inFileViewerRootedAtPath_( +// DesktopImageOptionsForScreen returns the desktop image options for the given screen. +// +// See https://developer.apple.com/documentation/appkit/nsworkspace/1530855-desktopimageoptionsforscreen?language=objc for details. +func (x gen_NSWorkspace) DesktopImageOptionsForScreen( + screen NSScreenRef, +) core.NSDictionary { + ret := C.NSWorkspace_inst_DesktopImageOptionsForScreen( unsafe.Pointer(x.Pointer()), - objc.RefPointer(fullPath), - objc.RefPointer(rootFullPath), + objc.RefPointer(screen), ) - r0 = convertObjCBoolToGo(ret) - return + + return core.NSDictionary_FromPointer(ret) } -func (x gen_NSWorkspace) URLForApplicationWithBundleIdentifier_( - bundleIdentifier core.NSStringRef, -) ( - r0 core.NSURL, -) { - ret := C.NSWorkspace_inst_URLForApplicationWithBundleIdentifier_( +// DesktopImageURLForScreen returns the url for the desktop image for the given screen. +// +// See https://developer.apple.com/documentation/appkit/nsworkspace/1530635-desktopimageurlforscreen?language=objc for details. +func (x gen_NSWorkspace) DesktopImageURLForScreen( + screen NSScreenRef, +) core.NSURL { + ret := C.NSWorkspace_inst_DesktopImageURLForScreen( unsafe.Pointer(x.Pointer()), - objc.RefPointer(bundleIdentifier), + objc.RefPointer(screen), ) - r0 = core.NSURL_fromPointer(ret) - return + + return core.NSURL_FromPointer(ret) } -func (x gen_NSWorkspace) URLForApplicationToOpenURL_( - url core.NSURLRef, -) ( - r0 core.NSURL, -) { - ret := C.NSWorkspace_inst_URLForApplicationToOpenURL_( +// ExtendPowerOffBy requests the system wait for the specified amount of time before turning off the power or logging out the user. +// +// See https://developer.apple.com/documentation/appkit/nsworkspace/1533106-extendpoweroffby?language=objc for details. +func (x gen_NSWorkspace) ExtendPowerOffBy( + requested core.NSInteger, +) core.NSInteger { + ret := C.NSWorkspace_inst_ExtendPowerOffBy( unsafe.Pointer(x.Pointer()), - objc.RefPointer(url), + C.long(requested), ) - r0 = core.NSURL_fromPointer(ret) - return + + return core.NSInteger(ret) } -func (x gen_NSWorkspace) IsFilePackageAtPath_( - fullPath core.NSStringRef, -) ( - r0 bool, -) { - ret := C.NSWorkspace_inst_isFilePackageAtPath_( +// HideOtherApplications hides all applications other than the sender. +// +// See https://developer.apple.com/documentation/appkit/nsworkspace/1530417-hideotherapplications?language=objc for details. +func (x gen_NSWorkspace) HideOtherApplications() { + C.NSWorkspace_inst_HideOtherApplications( unsafe.Pointer(x.Pointer()), - objc.RefPointer(fullPath), ) - r0 = convertObjCBoolToGo(ret) + return } -func (x gen_NSWorkspace) IconForFile_( +// IconForFile returns an image containing the icon for the specified file. +// +// See https://developer.apple.com/documentation/appkit/nsworkspace/1528158-iconforfile?language=objc for details. +func (x gen_NSWorkspace) IconForFile( fullPath core.NSStringRef, -) ( - r0 NSImage, -) { - ret := C.NSWorkspace_inst_iconForFile_( +) NSImage { + ret := C.NSWorkspace_inst_IconForFile( unsafe.Pointer(x.Pointer()), objc.RefPointer(fullPath), ) - r0 = NSImage_fromPointer(ret) - return + + return NSImage_FromPointer(ret) } -func (x gen_NSWorkspace) IconForFiles_( +// IconForFiles returns an image containing the icon for the specified files. +// +// See https://developer.apple.com/documentation/appkit/nsworkspace/1525487-iconforfiles?language=objc for details. +func (x gen_NSWorkspace) IconForFiles( fullPaths core.NSArrayRef, -) ( - r0 NSImage, -) { - ret := C.NSWorkspace_inst_iconForFiles_( +) NSImage { + ret := C.NSWorkspace_inst_IconForFiles( unsafe.Pointer(x.Pointer()), objc.RefPointer(fullPaths), ) - r0 = NSImage_fromPointer(ret) - return + + return NSImage_FromPointer(ret) } -func (x gen_NSWorkspace) UnmountAndEjectDeviceAtPath_( - path core.NSStringRef, -) ( - r0 bool, -) { - ret := C.NSWorkspace_inst_unmountAndEjectDeviceAtPath_( +// IsFilePackageAtPath determines whether the specified path is a file package. +// +// See https://developer.apple.com/documentation/appkit/nsworkspace/1529991-isfilepackageatpath?language=objc for details. +func (x gen_NSWorkspace) IsFilePackageAtPath( + fullPath core.NSStringRef, +) bool { + ret := C.NSWorkspace_inst_IsFilePackageAtPath( unsafe.Pointer(x.Pointer()), - objc.RefPointer(path), + objc.RefPointer(fullPath), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWorkspace) DesktopImageURLForScreen_( - screen NSScreenRef, -) ( - r0 core.NSURL, +// NoteFileSystemChanged informs the workspace object that the file system changed at the specified path. +// +// See https://developer.apple.com/documentation/appkit/nsworkspace/1525376-notefilesystemchanged?language=objc for details. +func (x gen_NSWorkspace) NoteFileSystemChanged( + path core.NSStringRef, ) { - ret := C.NSWorkspace_inst_desktopImageURLForScreen_( + C.NSWorkspace_inst_NoteFileSystemChanged( unsafe.Pointer(x.Pointer()), - objc.RefPointer(screen), + objc.RefPointer(path), ) - r0 = core.NSURL_fromPointer(ret) + return } -func (x gen_NSWorkspace) DesktopImageOptionsForScreen_( - screen NSScreenRef, -) ( - r0 core.NSDictionary, -) { - ret := C.NSWorkspace_inst_desktopImageOptionsForScreen_( +// OpenURL opens the location at the specified url. +// +// See https://developer.apple.com/documentation/appkit/nsworkspace/1533463-openurl?language=objc for details. +func (x gen_NSWorkspace) OpenURL( + url core.NSURLRef, +) bool { + ret := C.NSWorkspace_inst_OpenURL( unsafe.Pointer(x.Pointer()), - objc.RefPointer(screen), + objc.RefPointer(url), ) - r0 = core.NSDictionary_fromPointer(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWorkspace) ShowSearchResultsForQueryString_( +// SelectFileInFileViewerRootedAtPath selects the file at the specified path. +// +// See https://developer.apple.com/documentation/appkit/nsworkspace/1524399-selectfile?language=objc for details. +func (x gen_NSWorkspace) SelectFileInFileViewerRootedAtPath( + fullPath core.NSStringRef, + rootFullPath core.NSStringRef, +) bool { + ret := C.NSWorkspace_inst_SelectFileInFileViewerRootedAtPath( + unsafe.Pointer(x.Pointer()), + objc.RefPointer(fullPath), + objc.RefPointer(rootFullPath), + ) + + return convertObjCBoolToGo(ret) +} + +// ShowSearchResultsForQueryString displays a spotlight search results window in finder for the specified query string. +// +// See https://developer.apple.com/documentation/appkit/nsworkspace/1532131-showsearchresultsforquerystring?language=objc for details. +func (x gen_NSWorkspace) ShowSearchResultsForQueryString( queryString core.NSStringRef, -) ( - r0 bool, -) { - ret := C.NSWorkspace_inst_showSearchResultsForQueryString_( +) bool { + ret := C.NSWorkspace_inst_ShowSearchResultsForQueryString( unsafe.Pointer(x.Pointer()), objc.RefPointer(queryString), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWorkspace) NoteFileSystemChanged_( +// UnmountAndEjectDeviceAtPath unmounts and ejects the device at the specified path. +// +// See https://developer.apple.com/documentation/appkit/nsworkspace/1527741-unmountandejectdeviceatpath?language=objc for details. +func (x gen_NSWorkspace) UnmountAndEjectDeviceAtPath( path core.NSStringRef, -) { - C.NSWorkspace_inst_noteFileSystemChanged_( +) bool { + ret := C.NSWorkspace_inst_UnmountAndEjectDeviceAtPath( unsafe.Pointer(x.Pointer()), objc.RefPointer(path), ) - return -} -func (x gen_NSWorkspace) ExtendPowerOffBy_( - requested core.NSInteger, -) ( - r0 core.NSInteger, -) { - ret := C.NSWorkspace_inst_extendPowerOffBy_( - unsafe.Pointer(x.Pointer()), - C.long(requested), - ) - r0 = core.NSInteger(ret) - return + return convertObjCBoolToGo(ret) } -func (x gen_NSWorkspace) URLsForApplicationsToOpenURL_( - url core.NSURLRef, -) ( - r0 core.NSArray, -) { - ret := C.NSWorkspace_inst_URLsForApplicationsToOpenURL_( +// Init +// +// See for details. +func (x gen_NSWorkspace) Init_AsNSWorkspace() NSWorkspace { + ret := C.NSWorkspace_inst_Init( unsafe.Pointer(x.Pointer()), - objc.RefPointer(url), ) - r0 = core.NSArray_fromPointer(ret) - return -} -func (x gen_NSWorkspace) URLsForApplicationsWithBundleIdentifier_( - bundleIdentifier core.NSStringRef, -) ( - r0 core.NSArray, -) { - ret := C.NSWorkspace_inst_URLsForApplicationsWithBundleIdentifier_( - unsafe.Pointer(x.Pointer()), - objc.RefPointer(bundleIdentifier), - ) - r0 = core.NSArray_fromPointer(ret) - return + return NSWorkspace_FromPointer(ret) } -func (x gen_NSWorkspace) Init_asNSWorkspace() ( - r0 NSWorkspace, -) { - ret := C.NSWorkspace_inst_init( +// FrontmostApplication returns the frontmost app, which is the app that receives key events. +// +// See https://developer.apple.com/documentation/appkit/nsworkspace/1532097-frontmostapplication?language=objc for details. +func (x gen_NSWorkspace) FrontmostApplication() NSRunningApplication { + ret := C.NSWorkspace_inst_FrontmostApplication( unsafe.Pointer(x.Pointer()), ) - r0 = NSWorkspace_fromPointer(ret) - return -} -func (x gen_NSWorkspace) FrontmostApplication() ( - r0 NSRunningApplication, -) { - ret := C.NSWorkspace_inst_frontmostApplication( - unsafe.Pointer(x.Pointer()), - ) - r0 = NSRunningApplication_fromPointer(ret) - return + return NSRunningApplication_FromPointer(ret) } -func (x gen_NSWorkspace) RunningApplications() ( - r0 core.NSArray, -) { - ret := C.NSWorkspace_inst_runningApplications( +// RunningApplications returns an array of running apps. +// +// See https://developer.apple.com/documentation/appkit/nsworkspace/1534059-runningapplications?language=objc for details. +func (x gen_NSWorkspace) RunningApplications() core.NSArray { + ret := C.NSWorkspace_inst_RunningApplications( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSArray_fromPointer(ret) - return + + return core.NSArray_FromPointer(ret) } -func (x gen_NSWorkspace) MenuBarOwningApplication() ( - r0 NSRunningApplication, -) { - ret := C.NSWorkspace_inst_menuBarOwningApplication( +// MenuBarOwningApplication returns the app that owns the currently displayed menu bar. +// +// See https://developer.apple.com/documentation/appkit/nsworkspace/1525848-menubarowningapplication?language=objc for details. +func (x gen_NSWorkspace) MenuBarOwningApplication() NSRunningApplication { + ret := C.NSWorkspace_inst_MenuBarOwningApplication( unsafe.Pointer(x.Pointer()), ) - r0 = NSRunningApplication_fromPointer(ret) - return + + return NSRunningApplication_FromPointer(ret) } -func (x gen_NSWorkspace) FileLabels() ( - r0 core.NSArray, -) { - ret := C.NSWorkspace_inst_fileLabels( +// FileLabels returns the array of file labels, returned as strings. +// +// See https://developer.apple.com/documentation/appkit/nsworkspace/1533953-filelabels?language=objc for details. +func (x gen_NSWorkspace) FileLabels() core.NSArray { + ret := C.NSWorkspace_inst_FileLabels( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSArray_fromPointer(ret) - return + + return core.NSArray_FromPointer(ret) } -func (x gen_NSWorkspace) FileLabelColors() ( - r0 core.NSArray, -) { - ret := C.NSWorkspace_inst_fileLabelColors( +// FileLabelColors returns the array of colors for the file labels. +// +// See https://developer.apple.com/documentation/appkit/nsworkspace/1527553-filelabelcolors?language=objc for details. +func (x gen_NSWorkspace) FileLabelColors() core.NSArray { + ret := C.NSWorkspace_inst_FileLabelColors( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSArray_fromPointer(ret) - return + + return core.NSArray_FromPointer(ret) } -func (x gen_NSWorkspace) AccessibilityDisplayShouldDifferentiateWithoutColor() ( - r0 bool, -) { - ret := C.NSWorkspace_inst_accessibilityDisplayShouldDifferentiateWithoutColor( +// AccessibilityDisplayShouldDifferentiateWithoutColor returns a boolean value that indicates whether the app avoids conveying information through color alone. +// +// See https://developer.apple.com/documentation/appkit/nsworkspace/1524656-accessibilitydisplayshoulddiffer?language=objc for details. +func (x gen_NSWorkspace) AccessibilityDisplayShouldDifferentiateWithoutColor() bool { + ret := C.NSWorkspace_inst_AccessibilityDisplayShouldDifferentiateWithoutColor( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWorkspace) AccessibilityDisplayShouldIncreaseContrast() ( - r0 bool, -) { - ret := C.NSWorkspace_inst_accessibilityDisplayShouldIncreaseContrast( +// AccessibilityDisplayShouldIncreaseContrast returns a boolean value that indicates whether the app presents a high-contrast user interface. +// +// See https://developer.apple.com/documentation/appkit/nsworkspace/1526290-accessibilitydisplayshouldincrea?language=objc for details. +func (x gen_NSWorkspace) AccessibilityDisplayShouldIncreaseContrast() bool { + ret := C.NSWorkspace_inst_AccessibilityDisplayShouldIncreaseContrast( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWorkspace) AccessibilityDisplayShouldReduceTransparency() ( - r0 bool, -) { - ret := C.NSWorkspace_inst_accessibilityDisplayShouldReduceTransparency( +// AccessibilityDisplayShouldReduceTransparency returns a boolean value that indicates whether the app avoids using semitransparent backgrounds. +// +// See https://developer.apple.com/documentation/appkit/nsworkspace/1533006-accessibilitydisplayshouldreduce?language=objc for details. +func (x gen_NSWorkspace) AccessibilityDisplayShouldReduceTransparency() bool { + ret := C.NSWorkspace_inst_AccessibilityDisplayShouldReduceTransparency( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWorkspace) AccessibilityDisplayShouldInvertColors() ( - r0 bool, -) { - ret := C.NSWorkspace_inst_accessibilityDisplayShouldInvertColors( +// AccessibilityDisplayShouldInvertColors returns a boolean value that indicates whether the accessibility option to invert colors is in an enabled state. +// +// See https://developer.apple.com/documentation/appkit/nsworkspace/1644068-accessibilitydisplayshouldinvert?language=objc for details. +func (x gen_NSWorkspace) AccessibilityDisplayShouldInvertColors() bool { + ret := C.NSWorkspace_inst_AccessibilityDisplayShouldInvertColors( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWorkspace) AccessibilityDisplayShouldReduceMotion() ( - r0 bool, -) { - ret := C.NSWorkspace_inst_accessibilityDisplayShouldReduceMotion( +// AccessibilityDisplayShouldReduceMotion returns a boolean value that indicates whether the accessibility option to reduce motion is in an enabled state. +// +// See https://developer.apple.com/documentation/appkit/nsworkspace/1644069-accessibilitydisplayshouldreduce?language=objc for details. +func (x gen_NSWorkspace) AccessibilityDisplayShouldReduceMotion() bool { + ret := C.NSWorkspace_inst_AccessibilityDisplayShouldReduceMotion( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWorkspace) IsSwitchControlEnabled() ( - r0 bool, -) { - ret := C.NSWorkspace_inst_isSwitchControlEnabled( +// IsSwitchControlEnabled returns a boolean value that indicates whether switch control is currently running. +// +// See https://developer.apple.com/documentation/appkit/nsworkspace/2880322-switchcontrolenabled?language=objc for details. +func (x gen_NSWorkspace) IsSwitchControlEnabled() bool { + ret := C.NSWorkspace_inst_IsSwitchControlEnabled( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSWorkspace) IsVoiceOverEnabled() ( - r0 bool, -) { - ret := C.NSWorkspace_inst_isVoiceOverEnabled( +// IsVoiceOverEnabled returns a boolean value that indicates whether voiceover is currently running. +// +// See https://developer.apple.com/documentation/appkit/nsworkspace/2880317-voiceoverenabled?language=objc for details. +func (x gen_NSWorkspace) IsVoiceOverEnabled() bool { + ret := C.NSWorkspace_inst_IsVoiceOverEnabled( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } type NSColorRef interface { Pointer() uintptr - Init_asNSColor() NSColor + Init_AsNSColor() NSColor } type gen_NSColor struct { objc.Object } -func NSColor_fromPointer(ptr unsafe.Pointer) NSColor { +func NSColor_FromPointer(ptr unsafe.Pointer) NSColor { return NSColor{gen_NSColor{ - objc.Object_fromPointer(ptr), + objc.Object_FromPointer(ptr), }} } -func NSColor_fromRef(ref objc.Ref) NSColor { - return NSColor_fromPointer(unsafe.Pointer(ref.Pointer())) +func NSColor_FromRef(ref objc.Ref) NSColor { + return NSColor_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_NSColor) BlendedColorWithFraction_ofColor_( +// BlendedColorWithFractionOfColor creates a new color object whose component values are a weighted sum of the current color object and the specified color object's. +// +// See https://developer.apple.com/documentation/appkit/nscolor/1524689-blendedcolorwithfraction?language=objc for details. +func (x gen_NSColor) BlendedColorWithFractionOfColor( fraction core.CGFloat, color NSColorRef, -) ( - r0 NSColor, -) { - ret := C.NSColor_inst_blendedColorWithFraction_ofColor_( +) NSColor { + ret := C.NSColor_inst_BlendedColorWithFractionOfColor( unsafe.Pointer(x.Pointer()), C.double(fraction), objc.RefPointer(color), ) - r0 = NSColor_fromPointer(ret) - return + + return NSColor_FromPointer(ret) } -func (x gen_NSColor) ColorWithAlphaComponent_( +// ColorWithAlphaComponent creates a new color object that has the same color space and component values as the current color object, but the specified alpha component. +// +// See https://developer.apple.com/documentation/appkit/nscolor/1526906-colorwithalphacomponent?language=objc for details. +func (x gen_NSColor) ColorWithAlphaComponent( alpha core.CGFloat, -) ( - r0 NSColor, -) { - ret := C.NSColor_inst_colorWithAlphaComponent_( +) NSColor { + ret := C.NSColor_inst_ColorWithAlphaComponent( unsafe.Pointer(x.Pointer()), C.double(alpha), ) - r0 = NSColor_fromPointer(ret) - return + + return NSColor_FromPointer(ret) } -func (x gen_NSColor) HighlightWithLevel_( - val core.CGFloat, -) ( - r0 NSColor, +// DrawSwatchInRect draws the current color in the specified rectangle. +// +// See https://developer.apple.com/documentation/appkit/nscolor/1531770-drawswatchinrect?language=objc for details. +func (x gen_NSColor) DrawSwatchInRect( + rect core.NSRect, ) { - ret := C.NSColor_inst_highlightWithLevel_( + C.NSColor_inst_DrawSwatchInRect( unsafe.Pointer(x.Pointer()), - C.double(val), + *(*C.NSRect)(unsafe.Pointer(&rect)), ) - r0 = NSColor_fromPointer(ret) + return } -func (x gen_NSColor) ShadowWithLevel_( +// HighlightWithLevel creates a new color object that represents a blend between the current color and the highlight color. +// +// See https://developer.apple.com/documentation/appkit/nscolor/1533061-highlightwithlevel?language=objc for details. +func (x gen_NSColor) HighlightWithLevel( val core.CGFloat, -) ( - r0 NSColor, -) { - ret := C.NSColor_inst_shadowWithLevel_( +) NSColor { + ret := C.NSColor_inst_HighlightWithLevel( unsafe.Pointer(x.Pointer()), C.double(val), ) - r0 = NSColor_fromPointer(ret) - return + + return NSColor_FromPointer(ret) } -func (x gen_NSColor) WriteToPasteboard_( - pasteBoard NSPasteboardRef, -) { - C.NSColor_inst_writeToPasteboard_( +// Set sets the color of subsequent drawing to the color that the color object represents. +// +// See https://developer.apple.com/documentation/appkit/nscolor/1527089-set?language=objc for details. +func (x gen_NSColor) Set() { + C.NSColor_inst_Set( unsafe.Pointer(x.Pointer()), - objc.RefPointer(pasteBoard), ) + return } -func (x gen_NSColor) DrawSwatchInRect_( - rect core.NSRect, -) { - C.NSColor_inst_drawSwatchInRect_( +// SetFill sets the fill color of subsequent drawing to the color object’s color. +// +// See https://developer.apple.com/documentation/appkit/nscolor/1524755-setfill?language=objc for details. +func (x gen_NSColor) SetFill() { + C.NSColor_inst_SetFill( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&rect)), ) + return } -func (x gen_NSColor) Set() { - C.NSColor_inst_set( +// SetStroke sets the stroke color of subsequent drawing to the color object’s color. +// +// See https://developer.apple.com/documentation/appkit/nscolor/1531019-setstroke?language=objc for details. +func (x gen_NSColor) SetStroke() { + C.NSColor_inst_SetStroke( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_NSColor) SetFill() { - C.NSColor_inst_setFill( +// ShadowWithLevel creates a new color object that represents a blend between the current color and the shadow color. +// +// See https://developer.apple.com/documentation/appkit/nscolor/1528523-shadowwithlevel?language=objc for details. +func (x gen_NSColor) ShadowWithLevel( + val core.CGFloat, +) NSColor { + ret := C.NSColor_inst_ShadowWithLevel( unsafe.Pointer(x.Pointer()), + C.double(val), ) - return + + return NSColor_FromPointer(ret) } -func (x gen_NSColor) SetStroke() { - C.NSColor_inst_setStroke( +// WriteToPasteboard writes the color object’s data to the specified pasteboard. +// +// See https://developer.apple.com/documentation/appkit/nscolor/1532199-writetopasteboard?language=objc for details. +func (x gen_NSColor) WriteToPasteboard( + pasteBoard NSPasteboardRef, +) { + C.NSColor_inst_WriteToPasteboard( unsafe.Pointer(x.Pointer()), + objc.RefPointer(pasteBoard), ) + return } -func (x gen_NSColor) Init_asNSColor() ( - r0 NSColor, -) { - ret := C.NSColor_inst_init( +// Init +// +// See for details. +func (x gen_NSColor) Init_AsNSColor() NSColor { + ret := C.NSColor_inst_Init( unsafe.Pointer(x.Pointer()), ) - r0 = NSColor_fromPointer(ret) - return + + return NSColor_FromPointer(ret) } -func (x gen_NSColor) NumberOfComponents() ( - r0 core.NSInteger, -) { - ret := C.NSColor_inst_numberOfComponents( +// NumberOfComponents returns the number of components in the color. +// +// See https://developer.apple.com/documentation/appkit/nscolor/1531308-numberofcomponents?language=objc for details. +func (x gen_NSColor) NumberOfComponents() core.NSInteger { + ret := C.NSColor_inst_NumberOfComponents( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSInteger(ret) - return + + return core.NSInteger(ret) } -func (x gen_NSColor) AlphaComponent() ( - r0 core.CGFloat, -) { - ret := C.NSColor_inst_alphaComponent( +// AlphaComponent returns the alpha (opacity) component value of the color. +// +// See https://developer.apple.com/documentation/appkit/nscolor/1532504-alphacomponent?language=objc for details. +func (x gen_NSColor) AlphaComponent() core.CGFloat { + ret := C.NSColor_inst_AlphaComponent( unsafe.Pointer(x.Pointer()), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } -func (x gen_NSColor) WhiteComponent() ( - r0 core.CGFloat, -) { - ret := C.NSColor_inst_whiteComponent( +// WhiteComponent returns the white component value of the color. +// +// See https://developer.apple.com/documentation/appkit/nscolor/1534051-whitecomponent?language=objc for details. +func (x gen_NSColor) WhiteComponent() core.CGFloat { + ret := C.NSColor_inst_WhiteComponent( unsafe.Pointer(x.Pointer()), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } -func (x gen_NSColor) RedComponent() ( - r0 core.CGFloat, -) { - ret := C.NSColor_inst_redComponent( +// RedComponent returns the red component value of the color. +// +// See https://developer.apple.com/documentation/appkit/nscolor/1530483-redcomponent?language=objc for details. +func (x gen_NSColor) RedComponent() core.CGFloat { + ret := C.NSColor_inst_RedComponent( unsafe.Pointer(x.Pointer()), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } -func (x gen_NSColor) GreenComponent() ( - r0 core.CGFloat, -) { - ret := C.NSColor_inst_greenComponent( +// GreenComponent returns the green component value of the color. +// +// See https://developer.apple.com/documentation/appkit/nscolor/1525935-greencomponent?language=objc for details. +func (x gen_NSColor) GreenComponent() core.CGFloat { + ret := C.NSColor_inst_GreenComponent( unsafe.Pointer(x.Pointer()), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } -func (x gen_NSColor) BlueComponent() ( - r0 core.CGFloat, -) { - ret := C.NSColor_inst_blueComponent( +// BlueComponent returns the blue component value of the color. +// +// See https://developer.apple.com/documentation/appkit/nscolor/1534229-bluecomponent?language=objc for details. +func (x gen_NSColor) BlueComponent() core.CGFloat { + ret := C.NSColor_inst_BlueComponent( unsafe.Pointer(x.Pointer()), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } -func (x gen_NSColor) CyanComponent() ( - r0 core.CGFloat, -) { - ret := C.NSColor_inst_cyanComponent( +// CyanComponent returns the cyan component value of the color. +// +// See https://developer.apple.com/documentation/appkit/nscolor/1528234-cyancomponent?language=objc for details. +func (x gen_NSColor) CyanComponent() core.CGFloat { + ret := C.NSColor_inst_CyanComponent( unsafe.Pointer(x.Pointer()), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } -func (x gen_NSColor) MagentaComponent() ( - r0 core.CGFloat, -) { - ret := C.NSColor_inst_magentaComponent( +// MagentaComponent returns the magenta component value of the color. +// +// See https://developer.apple.com/documentation/appkit/nscolor/1535560-magentacomponent?language=objc for details. +func (x gen_NSColor) MagentaComponent() core.CGFloat { + ret := C.NSColor_inst_MagentaComponent( unsafe.Pointer(x.Pointer()), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } -func (x gen_NSColor) YellowComponent() ( - r0 core.CGFloat, -) { - ret := C.NSColor_inst_yellowComponent( +// YellowComponent returns the yellow component value of the color. +// +// See https://developer.apple.com/documentation/appkit/nscolor/1531965-yellowcomponent?language=objc for details. +func (x gen_NSColor) YellowComponent() core.CGFloat { + ret := C.NSColor_inst_YellowComponent( unsafe.Pointer(x.Pointer()), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } -func (x gen_NSColor) BlackComponent() ( - r0 core.CGFloat, -) { - ret := C.NSColor_inst_blackComponent( +// BlackComponent returns the black component value of the color. +// +// See https://developer.apple.com/documentation/appkit/nscolor/1526883-blackcomponent?language=objc for details. +func (x gen_NSColor) BlackComponent() core.CGFloat { + ret := C.NSColor_inst_BlackComponent( unsafe.Pointer(x.Pointer()), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } -func (x gen_NSColor) HueComponent() ( - r0 core.CGFloat, -) { - ret := C.NSColor_inst_hueComponent( +// HueComponent returns the hue component value of the color. +// +// See https://developer.apple.com/documentation/appkit/nscolor/1531780-huecomponent?language=objc for details. +func (x gen_NSColor) HueComponent() core.CGFloat { + ret := C.NSColor_inst_HueComponent( unsafe.Pointer(x.Pointer()), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } -func (x gen_NSColor) SaturationComponent() ( - r0 core.CGFloat, -) { - ret := C.NSColor_inst_saturationComponent( +// SaturationComponent returns the saturation component value of the color. +// +// See https://developer.apple.com/documentation/appkit/nscolor/1526326-saturationcomponent?language=objc for details. +func (x gen_NSColor) SaturationComponent() core.CGFloat { + ret := C.NSColor_inst_SaturationComponent( unsafe.Pointer(x.Pointer()), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } -func (x gen_NSColor) BrightnessComponent() ( - r0 core.CGFloat, -) { - ret := C.NSColor_inst_brightnessComponent( +// BrightnessComponent returns the brightness component value of the color. +// +// See https://developer.apple.com/documentation/appkit/nscolor/1529355-brightnesscomponent?language=objc for details. +func (x gen_NSColor) BrightnessComponent() core.CGFloat { + ret := C.NSColor_inst_BrightnessComponent( unsafe.Pointer(x.Pointer()), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } -func (x gen_NSColor) LocalizedCatalogNameComponent() ( - r0 core.NSString, -) { - ret := C.NSColor_inst_localizedCatalogNameComponent( +// LocalizedCatalogNameComponent returns the localized version of the catalog name containing the color. +// +// See https://developer.apple.com/documentation/appkit/nscolor/1535351-localizedcatalognamecomponent?language=objc for details. +func (x gen_NSColor) LocalizedCatalogNameComponent() core.NSString { + ret := C.NSColor_inst_LocalizedCatalogNameComponent( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_NSColor) LocalizedColorNameComponent() ( - r0 core.NSString, -) { - ret := C.NSColor_inst_localizedColorNameComponent( +// LocalizedColorNameComponent returns the localized version of the color name. +// +// See https://developer.apple.com/documentation/appkit/nscolor/1527286-localizedcolornamecomponent?language=objc for details. +func (x gen_NSColor) LocalizedColorNameComponent() core.NSString { + ret := C.NSColor_inst_LocalizedColorNameComponent( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } type NSTextViewRef interface { Pointer() uintptr - Init_asNSTextView() NSTextView + Init_AsNSTextView() NSTextView } type gen_NSTextView struct { NSText } -func NSTextView_fromPointer(ptr unsafe.Pointer) NSTextView { +func NSTextView_FromPointer(ptr unsafe.Pointer) NSTextView { return NSTextView{gen_NSTextView{ - NSText_fromPointer(ptr), + NSText_FromPointer(ptr), }} } -func NSTextView_fromRef(ref objc.Ref) NSTextView { - return NSTextView_fromPointer(unsafe.Pointer(ref.Pointer())) +func NSTextView_FromRef(ref objc.Ref) NSTextView { + return NSTextView_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_NSTextView) InitWithFrame_textContainer__asNSTextView( - frameRect core.NSRect, - container NSTextContainerRef, -) ( - r0 NSTextView, +// AlignJustified applies full justification to selected paragraphs (or all text, if the receiver is a plain text object). +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449515-alignjustified?language=objc for details. +func (x gen_NSTextView) AlignJustified( + sender objc.Ref, ) { - ret := C.NSTextView_inst_initWithFrame_textContainer_( + C.NSTextView_inst_AlignJustified( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&frameRect)), - objc.RefPointer(container), + objc.RefPointer(sender), ) - r0 = NSTextView_fromPointer(ret) + return } -func (x gen_NSTextView) InitWithFrame__asNSTextView( - frameRect core.NSRect, -) ( - r0 NSTextView, -) { - ret := C.NSTextView_inst_initWithFrame_( +// BreakUndoCoalescing informs the receiver that it should begin coalescing successive typing operations in a new undo grouping. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449384-breakundocoalescing?language=objc for details. +func (x gen_NSTextView) BreakUndoCoalescing() { + C.NSTextView_inst_BreakUndoCoalescing( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&frameRect)), ) - r0 = NSTextView_fromPointer(ret) + return } -func (x gen_NSTextView) ReplaceTextContainer_( - newContainer NSTextContainerRef, +// ChangeAttributes changes the attributes of the current selection. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449216-changeattributes?language=objc for details. +func (x gen_NSTextView) ChangeAttributes( + sender objc.Ref, ) { - C.NSTextView_inst_replaceTextContainer_( + C.NSTextView_inst_ChangeAttributes( unsafe.Pointer(x.Pointer()), - objc.RefPointer(newContainer), + objc.RefPointer(sender), ) + return } -func (x gen_NSTextView) InvalidateTextContainerOrigin() { - C.NSTextView_inst_invalidateTextContainerOrigin( +// ChangeColor sets the color of the selected text. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449282-changecolor?language=objc for details. +func (x gen_NSTextView) ChangeColor( + sender objc.Ref, +) { + C.NSTextView_inst_ChangeColor( unsafe.Pointer(x.Pointer()), + objc.RefPointer(sender), ) + return } -func (x gen_NSTextView) ChangeDocumentBackgroundColor_( +// ChangeDocumentBackgroundColor an action method used to set the background color. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449475-changedocumentbackgroundcolor?language=objc for details. +func (x gen_NSTextView) ChangeDocumentBackgroundColor( sender objc.Ref, ) { - C.NSTextView_inst_changeDocumentBackgroundColor_( + C.NSTextView_inst_ChangeDocumentBackgroundColor( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSTextView) SetNeedsDisplayInRect_avoidAdditionalLayout_( - rect core.NSRect, - flag bool, +// ChangeLayoutOrientation an action method that sets the layout orientation of the text. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449286-changelayoutorientation?language=objc for details. +func (x gen_NSTextView) ChangeLayoutOrientation( + sender objc.Ref, ) { - C.NSTextView_inst_setNeedsDisplayInRect_avoidAdditionalLayout_( + C.NSTextView_inst_ChangeLayoutOrientation( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&rect)), - convertToObjCBool(flag), + objc.RefPointer(sender), ) + return } -func (x gen_NSTextView) DrawInsertionPointInRect_color_turnedOn_( - rect core.NSRect, - color NSColorRef, - flag bool, -) { - C.NSTextView_inst_drawInsertionPointInRect_color_turnedOn_( +// CharacterIndexForInsertionAtPoint returns a character index appropriate for placing a zero-length selection for an insertion point associated with the mouse at the given point. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449505-characterindexforinsertionatpoin?language=objc for details. +func (x gen_NSTextView) CharacterIndexForInsertionAtPoint( + point core.NSPoint, +) core.NSUInteger { + ret := C.NSTextView_inst_CharacterIndexForInsertionAtPoint( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&rect)), - objc.RefPointer(color), - convertToObjCBool(flag), + *(*C.NSPoint)(unsafe.Pointer(&point)), ) - return + + return core.NSUInteger(ret) } -func (x gen_NSTextView) DrawViewBackgroundInRect_( - rect core.NSRect, +// CheckTextInDocument performs the default text checking on the entire document. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449440-checktextindocument?language=objc for details. +func (x gen_NSTextView) CheckTextInDocument( + sender objc.Ref, ) { - C.NSTextView_inst_drawViewBackgroundInRect_( + C.NSTextView_inst_CheckTextInDocument( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&rect)), + objc.RefPointer(sender), ) + return } -func (x gen_NSTextView) SetConstrainedFrameSize_( - desiredSize core.NSSize, +// CheckTextInSelection performs the default text checking on the current selection. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449382-checktextinselection?language=objc for details. +func (x gen_NSTextView) CheckTextInSelection( + sender objc.Ref, ) { - C.NSTextView_inst_setConstrainedFrameSize_( + C.NSTextView_inst_CheckTextInSelection( unsafe.Pointer(x.Pointer()), - *(*C.NSSize)(unsafe.Pointer(&desiredSize)), + objc.RefPointer(sender), ) + return } +// CleanUpAfterDragOperation releases the drag information still existing after the dragging session has completed. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449202-cleanupafterdragoperation?language=objc for details. func (x gen_NSTextView) CleanUpAfterDragOperation() { - C.NSTextView_inst_cleanUpAfterDragOperation( + C.NSTextView_inst_CleanUpAfterDragOperation( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_NSTextView) Outline_( - sender objc.Ref, +// ClickedOnLinkAtIndex causes the text view to act as if the user clicked on some text with the given link as the value of a link attribute associated with the text. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449497-clickedonlink?language=objc for details. +func (x gen_NSTextView) ClickedOnLinkAtIndex( + link objc.Ref, + charIndex core.NSUInteger, ) { - C.NSTextView_inst_outline_( + C.NSTextView_inst_ClickedOnLinkAtIndex( unsafe.Pointer(x.Pointer()), - objc.RefPointer(sender), + objc.RefPointer(link), + C.ulong(charIndex), ) + return } -func (x gen_NSTextView) ToggleAutomaticQuoteSubstitution_( +// Complete invokes completion in a text view. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449359-complete?language=objc for details. +func (x gen_NSTextView) Complete( sender objc.Ref, ) { - C.NSTextView_inst_toggleAutomaticQuoteSubstitution_( + C.NSTextView_inst_Complete( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSTextView) ToggleAutomaticLinkDetection_( - sender objc.Ref, -) { - C.NSTextView_inst_toggleAutomaticLinkDetection_( +// DidChangeText sends out necessary notifications when a text change completes. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449296-didchangetext?language=objc for details. +func (x gen_NSTextView) DidChangeText() { + C.NSTextView_inst_DidChangeText( unsafe.Pointer(x.Pointer()), - objc.RefPointer(sender), ) + return } -func (x gen_NSTextView) ToggleAutomaticTextCompletion_( - sender objc.Ref, -) { - C.NSTextView_inst_toggleAutomaticTextCompletion_( +// DragSelectionWithEventOffsetSlideBack begins dragging the current selected text range. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449413-dragselectionwithevent?language=objc for details. +func (x gen_NSTextView) DragSelectionWithEventOffsetSlideBack( + event NSEventRef, + mouseOffset core.NSSize, + slideBack bool, +) bool { + ret := C.NSTextView_inst_DragSelectionWithEventOffsetSlideBack( unsafe.Pointer(x.Pointer()), - objc.RefPointer(sender), + objc.RefPointer(event), + *(*C.NSSize)(unsafe.Pointer(&mouseOffset)), + convertToObjCBool(slideBack), ) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextView) UpdateInsertionPointStateAndRestartTimer_( - restartFlag bool, +// DrawInsertionPointInRectColorTurnedOn draws or erases the insertion point. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449232-drawinsertionpointinrect?language=objc for details. +func (x gen_NSTextView) DrawInsertionPointInRectColorTurnedOn( + rect core.NSRect, + color NSColorRef, + flag bool, ) { - C.NSTextView_inst_updateInsertionPointStateAndRestartTimer_( + C.NSTextView_inst_DrawInsertionPointInRectColorTurnedOn( unsafe.Pointer(x.Pointer()), - convertToObjCBool(restartFlag), + *(*C.NSRect)(unsafe.Pointer(&rect)), + objc.RefPointer(color), + convertToObjCBool(flag), ) + return } -func (x gen_NSTextView) CharacterIndexForInsertionAtPoint_( - point core.NSPoint, -) ( - r0 core.NSUInteger, +// DrawViewBackgroundInRect draws the background of the text view. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449135-drawviewbackgroundinrect?language=objc for details. +func (x gen_NSTextView) DrawViewBackgroundInRect( + rect core.NSRect, ) { - ret := C.NSTextView_inst_characterIndexForInsertionAtPoint_( + C.NSTextView_inst_DrawViewBackgroundInRect( unsafe.Pointer(x.Pointer()), - *(*C.NSPoint)(unsafe.Pointer(&point)), + *(*C.NSRect)(unsafe.Pointer(&rect)), ) - r0 = core.NSUInteger(ret) + return } -func (x gen_NSTextView) UpdateCandidates() { - C.NSTextView_inst_updateCandidates( +// InitWithFrame initializes a text view. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449262-initwithframe?language=objc for details. +func (x gen_NSTextView) InitWithFrame_AsNSTextView( + frameRect core.NSRect, +) NSTextView { + ret := C.NSTextView_inst_InitWithFrame( unsafe.Pointer(x.Pointer()), + *(*C.NSRect)(unsafe.Pointer(&frameRect)), ) - return + + return NSTextView_FromPointer(ret) } -func (x gen_NSTextView) ReadSelectionFromPasteboard_( - pboard NSPasteboardRef, -) ( - r0 bool, -) { - ret := C.NSTextView_inst_readSelectionFromPasteboard_( +// InitWithFrameTextContainer initializes a text view. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449347-initwithframe?language=objc for details. +func (x gen_NSTextView) InitWithFrameTextContainer_AsNSTextView( + frameRect core.NSRect, + container NSTextContainerRef, +) NSTextView { + ret := C.NSTextView_inst_InitWithFrameTextContainer( unsafe.Pointer(x.Pointer()), - objc.RefPointer(pboard), + *(*C.NSRect)(unsafe.Pointer(&frameRect)), + objc.RefPointer(container), ) - r0 = convertObjCBoolToGo(ret) - return + + return NSTextView_FromPointer(ret) } -func (x gen_NSTextView) WriteSelectionToPasteboard_types_( - pboard NSPasteboardRef, - types core.NSArrayRef, -) ( - r0 bool, -) { - ret := C.NSTextView_inst_writeSelectionToPasteboard_types_( +// InvalidateTextContainerOrigin invalidates the calculated origin of the text container. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449546-invalidatetextcontainerorigin?language=objc for details. +func (x gen_NSTextView) InvalidateTextContainerOrigin() { + C.NSTextView_inst_InvalidateTextContainerOrigin( unsafe.Pointer(x.Pointer()), - objc.RefPointer(pboard), - objc.RefPointer(types), ) - r0 = convertObjCBoolToGo(ret) + return } -func (x gen_NSTextView) AlignJustified_( +// LoosenKerning increases the space between glyphs in the receiver’s selection, or in all text if the receiver is a plain text view. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449183-loosenkerning?language=objc for details. +func (x gen_NSTextView) LoosenKerning( sender objc.Ref, ) { - C.NSTextView_inst_alignJustified_( + C.NSTextView_inst_LoosenKerning( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSTextView) ChangeAttributes_( +// LowerBaseline lowers the baseline offset of selected text by 1 point, or of all text if the receiver is a plain text view. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449289-lowerbaseline?language=objc for details. +func (x gen_NSTextView) LowerBaseline( sender objc.Ref, ) { - C.NSTextView_inst_changeAttributes_( + C.NSTextView_inst_LowerBaseline( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSTextView) ChangeColor_( +// OrderFrontLinkPanel brings forward a panel allowing the user to manipulate links in the text view. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449238-orderfrontlinkpanel?language=objc for details. +func (x gen_NSTextView) OrderFrontLinkPanel( sender objc.Ref, ) { - C.NSTextView_inst_changeColor_( + C.NSTextView_inst_OrderFrontLinkPanel( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSTextView) UseStandardKerning_( +// OrderFrontListPanel brings forward a panel allowing the user to manipulate text lists in the text view. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449349-orderfrontlistpanel?language=objc for details. +func (x gen_NSTextView) OrderFrontListPanel( sender objc.Ref, ) { - C.NSTextView_inst_useStandardKerning_( + C.NSTextView_inst_OrderFrontListPanel( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSTextView) LowerBaseline_( +// OrderFrontSharingServicePicker creates and displays a new instance of the sharing service picker. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449150-orderfrontsharingservicepicker?language=objc for details. +func (x gen_NSTextView) OrderFrontSharingServicePicker( sender objc.Ref, ) { - C.NSTextView_inst_lowerBaseline_( + C.NSTextView_inst_OrderFrontSharingServicePicker( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSTextView) RaiseBaseline_( +// OrderFrontSpacingPanel brings forward a panel allowing the user to manipulate text line heights, interline spacing, and paragraph spacing, in the text view. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449438-orderfrontspacingpanel?language=objc for details. +func (x gen_NSTextView) OrderFrontSpacingPanel( sender objc.Ref, ) { - C.NSTextView_inst_raiseBaseline_( + C.NSTextView_inst_OrderFrontSpacingPanel( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSTextView) TurnOffKerning_( +// OrderFrontSubstitutionsPanel brings forward a panel allowing the user to specify string substitutions in the text view. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449327-orderfrontsubstitutionspanel?language=objc for details. +func (x gen_NSTextView) OrderFrontSubstitutionsPanel( sender objc.Ref, ) { - C.NSTextView_inst_turnOffKerning_( + C.NSTextView_inst_OrderFrontSubstitutionsPanel( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSTextView) LoosenKerning_( +// OrderFrontTablePanel brings forward a panel allowing the user to manipulate text tables in the text view. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449442-orderfronttablepanel?language=objc for details. +func (x gen_NSTextView) OrderFrontTablePanel( sender objc.Ref, ) { - C.NSTextView_inst_loosenKerning_( + C.NSTextView_inst_OrderFrontTablePanel( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSTextView) TightenKerning_( +// Outline adds the outline attribute to the selected text attributes if absent; removes the attribute if present. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449386-outline?language=objc for details. +func (x gen_NSTextView) Outline( sender objc.Ref, ) { - C.NSTextView_inst_tightenKerning_( + C.NSTextView_inst_Outline( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSTextView) UseStandardLigatures_( +// PasteAsPlainText inserts the contents of the pasteboard into the receiver’s text as plain text. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449250-pasteasplaintext?language=objc for details. +func (x gen_NSTextView) PasteAsPlainText( sender objc.Ref, ) { - C.NSTextView_inst_useStandardLigatures_( + C.NSTextView_inst_PasteAsPlainText( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSTextView) TurnOffLigatures_( +// PasteAsRichText this action method inserts the contents of the pasteboard into the receiver’s text as rich text, maintaining its attributes. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449395-pasteasrichtext?language=objc for details. +func (x gen_NSTextView) PasteAsRichText( sender objc.Ref, ) { - C.NSTextView_inst_turnOffLigatures_( + C.NSTextView_inst_PasteAsRichText( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSTextView) UseAllLigatures_( +// PerformFindPanelAction performs a find panel action specified by the sender's tag. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449525-performfindpanelaction?language=objc for details. +func (x gen_NSTextView) PerformFindPanelAction( sender objc.Ref, ) { - C.NSTextView_inst_useAllLigatures_( + C.NSTextView_inst_PerformFindPanelAction( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) - return -} -func (x gen_NSTextView) ClickedOnLink_atIndex_( - link objc.Ref, - charIndex core.NSUInteger, -) { - C.NSTextView_inst_clickedOnLink_atIndex_( - unsafe.Pointer(x.Pointer()), - objc.RefPointer(link), - C.ulong(charIndex), - ) return } -func (x gen_NSTextView) PasteAsPlainText_( - sender objc.Ref, -) { - C.NSTextView_inst_pasteAsPlainText_( +// QuickLookPreviewableItemsInRanges returns an array of urls for items that can be displayed by quicklook in the specified ranges. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449426-quicklookpreviewableitemsinrange?language=objc for details. +func (x gen_NSTextView) QuickLookPreviewableItemsInRanges( + ranges core.NSArrayRef, +) core.NSArray { + ret := C.NSTextView_inst_QuickLookPreviewableItemsInRanges( unsafe.Pointer(x.Pointer()), - objc.RefPointer(sender), + objc.RefPointer(ranges), ) - return + + return core.NSArray_FromPointer(ret) } -func (x gen_NSTextView) PasteAsRichText_( +// RaiseBaseline raises the baseline offset of selected text by 1 point, or of all text if the receiver is a plain text view. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449198-raisebaseline?language=objc for details. +func (x gen_NSTextView) RaiseBaseline( sender objc.Ref, ) { - C.NSTextView_inst_pasteAsRichText_( + C.NSTextView_inst_RaiseBaseline( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSTextView) BreakUndoCoalescing() { - C.NSTextView_inst_breakUndoCoalescing( +// ReadSelectionFromPasteboard reads the text view’s preferred type of data from the specified pasteboard. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449469-readselectionfrompasteboard?language=objc for details. +func (x gen_NSTextView) ReadSelectionFromPasteboard( + pboard NSPasteboardRef, +) bool { + ret := C.NSTextView_inst_ReadSelectionFromPasteboard( unsafe.Pointer(x.Pointer()), + objc.RefPointer(pboard), ) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextView) UpdateFontPanel() { - C.NSTextView_inst_updateFontPanel( +// ReplaceTextContainer replaces the text container for the group of text system objects containing the receiver, keeping the association between the receiver and its layout manager intact. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449479-replacetextcontainer?language=objc for details. +func (x gen_NSTextView) ReplaceTextContainer( + newContainer NSTextContainerRef, +) { + C.NSTextView_inst_ReplaceTextContainer( unsafe.Pointer(x.Pointer()), + objc.RefPointer(newContainer), ) + return } -func (x gen_NSTextView) UpdateRuler() { - C.NSTextView_inst_updateRuler( +// SetConstrainedFrameSize attempts to set the frame size as if by user action. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449230-setconstrainedframesize?language=objc for details. +func (x gen_NSTextView) SetConstrainedFrameSize( + desiredSize core.NSSize, +) { + C.NSTextView_inst_SetConstrainedFrameSize( unsafe.Pointer(x.Pointer()), + *(*C.NSSize)(unsafe.Pointer(&desiredSize)), ) + return } -func (x gen_NSTextView) UpdateDragTypeRegistration() { - C.NSTextView_inst_updateDragTypeRegistration( +// SetNeedsDisplayInRectAvoidAdditionalLayout marks the receiver as requiring display. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449279-setneedsdisplayinrect?language=objc for details. +func (x gen_NSTextView) SetNeedsDisplayInRectAvoidAdditionalLayout( + rect core.NSRect, + flag bool, +) { + C.NSTextView_inst_SetNeedsDisplayInRectAvoidAdditionalLayout( unsafe.Pointer(x.Pointer()), + *(*C.NSRect)(unsafe.Pointer(&rect)), + convertToObjCBool(flag), ) + return } -func (x gen_NSTextView) ShouldChangeTextInRanges_replacementStrings_( +// ShouldChangeTextInRangesReplacementStrings initiates a series of delegate messages (and general notifications) to determine whether modifications can be made to the characters and attributes of the receiver’s text. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449311-shouldchangetextinranges?language=objc for details. +func (x gen_NSTextView) ShouldChangeTextInRangesReplacementStrings( affectedRanges core.NSArrayRef, replacementStrings core.NSArrayRef, -) ( - r0 bool, -) { - ret := C.NSTextView_inst_shouldChangeTextInRanges_replacementStrings_( +) bool { + ret := C.NSTextView_inst_ShouldChangeTextInRangesReplacementStrings( unsafe.Pointer(x.Pointer()), objc.RefPointer(affectedRanges), objc.RefPointer(replacementStrings), ) - r0 = convertObjCBoolToGo(ret) - return -} -func (x gen_NSTextView) DidChangeText() { - C.NSTextView_inst_didChangeText( - unsafe.Pointer(x.Pointer()), - ) - return + return convertObjCBoolToGo(ret) } -func (x gen_NSTextView) ToggleSmartInsertDelete_( +// StartSpeaking speaks the selected text, or all text if no selection. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449519-startspeaking?language=objc for details. +func (x gen_NSTextView) StartSpeaking( sender objc.Ref, ) { - C.NSTextView_inst_toggleSmartInsertDelete_( + C.NSTextView_inst_StartSpeaking( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSTextView) ToggleContinuousSpellChecking_( +// StopSpeaking stops the speaking of text. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449172-stopspeaking?language=objc for details. +func (x gen_NSTextView) StopSpeaking( sender objc.Ref, ) { - C.NSTextView_inst_toggleContinuousSpellChecking_( + C.NSTextView_inst_StopSpeaking( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSTextView) ToggleGrammarChecking_( +// TightenKerning decreases the space between glyphs in the receiver’s selection, or for all glyphs if the receiver is a plain text view. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449137-tightenkerning?language=objc for details. +func (x gen_NSTextView) TightenKerning( sender objc.Ref, ) { - C.NSTextView_inst_toggleGrammarChecking_( + C.NSTextView_inst_TightenKerning( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSTextView) OrderFrontSharingServicePicker_( +// ToggleAutomaticDashSubstitution toggles the state of the automatic dash substitution. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449305-toggleautomaticdashsubstitution?language=objc for details. +func (x gen_NSTextView) ToggleAutomaticDashSubstitution( sender objc.Ref, ) { - C.NSTextView_inst_orderFrontSharingServicePicker_( + C.NSTextView_inst_ToggleAutomaticDashSubstitution( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSTextView) DragSelectionWithEvent_offset_slideBack_( - event NSEventRef, - mouseOffset core.NSSize, - slideBack bool, -) ( - r0 bool, +// ToggleAutomaticDataDetection toggles the state of the automatic data detection. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449499-toggleautomaticdatadetection?language=objc for details. +func (x gen_NSTextView) ToggleAutomaticDataDetection( + sender objc.Ref, ) { - ret := C.NSTextView_inst_dragSelectionWithEvent_offset_slideBack_( + C.NSTextView_inst_ToggleAutomaticDataDetection( unsafe.Pointer(x.Pointer()), - objc.RefPointer(event), - *(*C.NSSize)(unsafe.Pointer(&mouseOffset)), - convertToObjCBool(slideBack), + objc.RefPointer(sender), ) - r0 = convertObjCBoolToGo(ret) + return } -func (x gen_NSTextView) StartSpeaking_( +// ToggleAutomaticLinkDetection changes the state of automatic link detection from enabled to disabled and vice versa. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449353-toggleautomaticlinkdetection?language=objc for details. +func (x gen_NSTextView) ToggleAutomaticLinkDetection( sender objc.Ref, ) { - C.NSTextView_inst_startSpeaking_( + C.NSTextView_inst_ToggleAutomaticLinkDetection( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSTextView) StopSpeaking_( +// ToggleAutomaticQuoteSubstitution changes the state of automatic quotation mark substitution from enabled to disabled and vice versa. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449444-toggleautomaticquotesubstitution?language=objc for details. +func (x gen_NSTextView) ToggleAutomaticQuoteSubstitution( sender objc.Ref, ) { - C.NSTextView_inst_stopSpeaking_( + C.NSTextView_inst_ToggleAutomaticQuoteSubstitution( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSTextView) PerformFindPanelAction_( +// ToggleAutomaticSpellingCorrection toggles the state of the automatic spelling correction. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449178-toggleautomaticspellingcorrectio?language=objc for details. +func (x gen_NSTextView) ToggleAutomaticSpellingCorrection( sender objc.Ref, ) { - C.NSTextView_inst_performFindPanelAction_( + C.NSTextView_inst_ToggleAutomaticSpellingCorrection( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSTextView) OrderFrontLinkPanel_( +// ToggleAutomaticTextCompletion +// +// See https://developer.apple.com/documentation/appkit/nstextview/2544841-toggleautomatictextcompletion?language=objc for details. +func (x gen_NSTextView) ToggleAutomaticTextCompletion( sender objc.Ref, ) { - C.NSTextView_inst_orderFrontLinkPanel_( + C.NSTextView_inst_ToggleAutomaticTextCompletion( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSTextView) OrderFrontListPanel_( +// ToggleAutomaticTextReplacement toggles the state of the automatic text replacement. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449200-toggleautomatictextreplacement?language=objc for details. +func (x gen_NSTextView) ToggleAutomaticTextReplacement( sender objc.Ref, ) { - C.NSTextView_inst_orderFrontListPanel_( + C.NSTextView_inst_ToggleAutomaticTextReplacement( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSTextView) OrderFrontSpacingPanel_( +// ToggleContinuousSpellChecking toggles whether continuous spell checking is enabled for the receiver. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449471-togglecontinuousspellchecking?language=objc for details. +func (x gen_NSTextView) ToggleContinuousSpellChecking( sender objc.Ref, ) { - C.NSTextView_inst_orderFrontSpacingPanel_( + C.NSTextView_inst_ToggleContinuousSpellChecking( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSTextView) OrderFrontTablePanel_( +// ToggleGrammarChecking changes the state of grammar checking from enabled to disabled and vice versa. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449393-togglegrammarchecking?language=objc for details. +func (x gen_NSTextView) ToggleGrammarChecking( sender objc.Ref, ) { - C.NSTextView_inst_orderFrontTablePanel_( + C.NSTextView_inst_ToggleGrammarChecking( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSTextView) OrderFrontSubstitutionsPanel_( +// ToggleQuickLookPreviewPanel an action message that toggles the visibility state of the quick look preview panel. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449415-togglequicklookpreviewpanel?language=objc for details. +func (x gen_NSTextView) ToggleQuickLookPreviewPanel( sender objc.Ref, ) { - C.NSTextView_inst_orderFrontSubstitutionsPanel_( + C.NSTextView_inst_ToggleQuickLookPreviewPanel( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSTextView) Complete_( +// ToggleSmartInsertDelete changes the state of smart insert and delete from enabled to disabled and vice versa. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449273-togglesmartinsertdelete?language=objc for details. +func (x gen_NSTextView) ToggleSmartInsertDelete( sender objc.Ref, ) { - C.NSTextView_inst_complete_( + C.NSTextView_inst_ToggleSmartInsertDelete( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSTextView) CheckTextInDocument_( +// TurnOffKerning sets the receiver to use nominal glyph spacing for the glyphs in its selection, or for all glyphs if the receiver is a plain text view. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449464-turnoffkerning?language=objc for details. +func (x gen_NSTextView) TurnOffKerning( sender objc.Ref, ) { - C.NSTextView_inst_checkTextInDocument_( + C.NSTextView_inst_TurnOffKerning( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSTextView) CheckTextInSelection_( +// TurnOffLigatures sets the receiver to use only required ligatures when setting text, for the glyphs in the selection if the receiver is a rich text view, or for all glyphs if it’s a plain text view. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449436-turnoffligatures?language=objc for details. +func (x gen_NSTextView) TurnOffLigatures( sender objc.Ref, ) { - C.NSTextView_inst_checkTextInSelection_( + C.NSTextView_inst_TurnOffLigatures( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSTextView) ToggleAutomaticDashSubstitution_( - sender objc.Ref, -) { - C.NSTextView_inst_toggleAutomaticDashSubstitution_( +// UpdateCandidates +// +// See https://developer.apple.com/documentation/appkit/nstextview/2544833-updatecandidates?language=objc for details. +func (x gen_NSTextView) UpdateCandidates() { + C.NSTextView_inst_UpdateCandidates( unsafe.Pointer(x.Pointer()), - objc.RefPointer(sender), ) + return } -func (x gen_NSTextView) ToggleAutomaticDataDetection_( - sender objc.Ref, -) { - C.NSTextView_inst_toggleAutomaticDataDetection_( +// UpdateDragTypeRegistration updates the acceptable drag types of all text views associated with the receiver's layout manager. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449181-updatedragtyperegistration?language=objc for details. +func (x gen_NSTextView) UpdateDragTypeRegistration() { + C.NSTextView_inst_UpdateDragTypeRegistration( unsafe.Pointer(x.Pointer()), - objc.RefPointer(sender), ) + return } -func (x gen_NSTextView) ToggleAutomaticSpellingCorrection_( - sender objc.Ref, -) { - C.NSTextView_inst_toggleAutomaticSpellingCorrection_( +// UpdateFontPanel updates the font panel to contain the font attributes of the selection. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449401-updatefontpanel?language=objc for details. +func (x gen_NSTextView) UpdateFontPanel() { + C.NSTextView_inst_UpdateFontPanel( unsafe.Pointer(x.Pointer()), - objc.RefPointer(sender), ) + return } -func (x gen_NSTextView) ToggleAutomaticTextReplacement_( - sender objc.Ref, +// UpdateInsertionPointStateAndRestartTimer updates the insertion point’s location and optionally restarts the blinking cursor timer. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449268-updateinsertionpointstateandrest?language=objc for details. +func (x gen_NSTextView) UpdateInsertionPointStateAndRestartTimer( + restartFlag bool, ) { - C.NSTextView_inst_toggleAutomaticTextReplacement_( + C.NSTextView_inst_UpdateInsertionPointStateAndRestartTimer( unsafe.Pointer(x.Pointer()), - objc.RefPointer(sender), + convertToObjCBool(restartFlag), ) + return } +// UpdateQuickLookPreviewPanel notifies the quicklook panel that an update may be required. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449409-updatequicklookpreviewpanel?language=objc for details. func (x gen_NSTextView) UpdateQuickLookPreviewPanel() { - C.NSTextView_inst_updateQuickLookPreviewPanel( + C.NSTextView_inst_UpdateQuickLookPreviewPanel( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_NSTextView) ToggleQuickLookPreviewPanel_( - sender objc.Ref, -) { - C.NSTextView_inst_toggleQuickLookPreviewPanel_( +// UpdateRuler updates the ruler view in the receiver’s enclosing scroll view to reflect the selection’s paragraph and marker attributes. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449323-updateruler?language=objc for details. +func (x gen_NSTextView) UpdateRuler() { + C.NSTextView_inst_UpdateRuler( unsafe.Pointer(x.Pointer()), - objc.RefPointer(sender), ) + return } -func (x gen_NSTextView) QuickLookPreviewableItemsInRanges_( - ranges core.NSArrayRef, -) ( - r0 core.NSArray, -) { - ret := C.NSTextView_inst_quickLookPreviewableItemsInRanges_( +// UpdateTextTouchBarItems +// +// See https://developer.apple.com/documentation/appkit/nstextview/2544676-updatetexttouchbaritems?language=objc for details. +func (x gen_NSTextView) UpdateTextTouchBarItems() { + C.NSTextView_inst_UpdateTextTouchBarItems( + unsafe.Pointer(x.Pointer()), + ) + + return +} + +// UpdateTouchBarItemIdentifiers +// +// See https://developer.apple.com/documentation/appkit/nstextview/2544834-updatetouchbaritemidentifiers?language=objc for details. +func (x gen_NSTextView) UpdateTouchBarItemIdentifiers() { + C.NSTextView_inst_UpdateTouchBarItemIdentifiers( unsafe.Pointer(x.Pointer()), - objc.RefPointer(ranges), ) - r0 = core.NSArray_fromPointer(ret) + return } -func (x gen_NSTextView) ChangeLayoutOrientation_( +// UseAllLigatures sets the receiver to use all ligatures available for the fonts and languages used when setting text, for the glyphs in the selection if the receiver is a rich text view, or for all glyphs if it’s a plain text view. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449213-useallligatures?language=objc for details. +func (x gen_NSTextView) UseAllLigatures( sender objc.Ref, ) { - C.NSTextView_inst_changeLayoutOrientation_( + C.NSTextView_inst_UseAllLigatures( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_NSTextView) UpdateTextTouchBarItems() { - C.NSTextView_inst_updateTextTouchBarItems( +// UseStandardKerning set the receiver to use pair kerning data for the glyphs in its selection, or for all glyphs if the receiver is a plain text view. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449491-usestandardkerning?language=objc for details. +func (x gen_NSTextView) UseStandardKerning( + sender objc.Ref, +) { + C.NSTextView_inst_UseStandardKerning( unsafe.Pointer(x.Pointer()), + objc.RefPointer(sender), ) + return } -func (x gen_NSTextView) UpdateTouchBarItemIdentifiers() { - C.NSTextView_inst_updateTouchBarItemIdentifiers( +// UseStandardLigatures sets the receiver to use the standard ligatures available for the fonts and languages used when setting text, for the glyphs in the selection if the receiver is a rich text view, or for all glyphs if it’s a plain text view. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449144-usestandardligatures?language=objc for details. +func (x gen_NSTextView) UseStandardLigatures( + sender objc.Ref, +) { + C.NSTextView_inst_UseStandardLigatures( unsafe.Pointer(x.Pointer()), + objc.RefPointer(sender), ) + return } -func (x gen_NSTextView) Init_asNSTextView() ( - r0 NSTextView, -) { - ret := C.NSTextView_inst_init( +// WriteSelectionToPasteboardTypes writes the current selection to the specified pasteboard under each given type. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449277-writeselectiontopasteboard?language=objc for details. +func (x gen_NSTextView) WriteSelectionToPasteboardTypes( + pboard NSPasteboardRef, + types core.NSArrayRef, +) bool { + ret := C.NSTextView_inst_WriteSelectionToPasteboardTypes( unsafe.Pointer(x.Pointer()), + objc.RefPointer(pboard), + objc.RefPointer(types), ) - r0 = NSTextView_fromPointer(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextView) Delegate() ( - r0 objc.Object, -) { - ret := C.NSTextView_inst_delegate( +// Init +// +// See for details. +func (x gen_NSTextView) Init_AsNSTextView() NSTextView { + ret := C.NSTextView_inst_Init( unsafe.Pointer(x.Pointer()), ) - r0 = objc.Object_fromPointer(ret) - return + + return NSTextView_FromPointer(ret) } -func (x gen_NSTextView) SetDelegate_( +// Delegate returns the delegate for all text views sharing the receiver’s layout manager. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449521-delegate?language=objc for details. +func (x gen_NSTextView) Delegate() objc.Object { + ret := C.NSTextView_inst_Delegate( + unsafe.Pointer(x.Pointer()), + ) + + return objc.Object_FromPointer(ret) +} + +// SetDelegate returns the delegate for all text views sharing the receiver’s layout manager. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449521-delegate?language=objc for details. +func (x gen_NSTextView) SetDelegate( value objc.Ref, ) { - C.NSTextView_inst_setDelegate_( + C.NSTextView_inst_SetDelegate( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSTextView) TextContainer() ( - r0 NSTextContainer, -) { - ret := C.NSTextView_inst_textContainer( +// TextContainer returns the receiver’s text container. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449364-textcontainer?language=objc for details. +func (x gen_NSTextView) TextContainer() NSTextContainer { + ret := C.NSTextView_inst_TextContainer( unsafe.Pointer(x.Pointer()), ) - r0 = NSTextContainer_fromPointer(ret) - return + + return NSTextContainer_FromPointer(ret) } -func (x gen_NSTextView) SetTextContainer_( +// SetTextContainer returns the receiver’s text container. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449364-textcontainer?language=objc for details. +func (x gen_NSTextView) SetTextContainer( value NSTextContainerRef, ) { - C.NSTextView_inst_setTextContainer_( + C.NSTextView_inst_SetTextContainer( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSTextView) TextContainerInset() ( - r0 core.NSSize, -) { - ret := C.NSTextView_inst_textContainerInset( +// TextContainerInset returns the empty space the receiver leaves around its associated text container. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449168-textcontainerinset?language=objc for details. +func (x gen_NSTextView) TextContainerInset() core.NSSize { + ret := C.NSTextView_inst_TextContainerInset( unsafe.Pointer(x.Pointer()), ) - r0 = *(*core.NSSize)(unsafe.Pointer(&ret)) - return + + return *(*core.NSSize)(unsafe.Pointer(&ret)) } -func (x gen_NSTextView) SetTextContainerInset_( +// SetTextContainerInset returns the empty space the receiver leaves around its associated text container. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449168-textcontainerinset?language=objc for details. +func (x gen_NSTextView) SetTextContainerInset( value core.NSSize, ) { - C.NSTextView_inst_setTextContainerInset_( + C.NSTextView_inst_SetTextContainerInset( unsafe.Pointer(x.Pointer()), *(*C.NSSize)(unsafe.Pointer(&value)), ) + return } -func (x gen_NSTextView) TextContainerOrigin() ( - r0 core.NSPoint, -) { - ret := C.NSTextView_inst_textContainerOrigin( +// TextContainerOrigin returns the origin of the receiver’s text container. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449477-textcontainerorigin?language=objc for details. +func (x gen_NSTextView) TextContainerOrigin() core.NSPoint { + ret := C.NSTextView_inst_TextContainerOrigin( unsafe.Pointer(x.Pointer()), ) - r0 = *(*core.NSPoint)(unsafe.Pointer(&ret)) - return + + return *(*core.NSPoint)(unsafe.Pointer(&ret)) } -func (x gen_NSTextView) LayoutManager() ( - r0 NSLayoutManager, -) { - ret := C.NSTextView_inst_layoutManager( +// LayoutManager returns the layout manager that lays out text for the receiver’s text container. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449148-layoutmanager?language=objc for details. +func (x gen_NSTextView) LayoutManager() NSLayoutManager { + ret := C.NSTextView_inst_LayoutManager( unsafe.Pointer(x.Pointer()), ) - r0 = NSLayoutManager_fromPointer(ret) - return + + return NSLayoutManager_FromPointer(ret) } -func (x gen_NSTextView) BackgroundColor() ( - r0 NSColor, -) { - ret := C.NSTextView_inst_backgroundColor( +// BackgroundColor returns the receiver’s background color. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449501-backgroundcolor?language=objc for details. +func (x gen_NSTextView) BackgroundColor() NSColor { + ret := C.NSTextView_inst_BackgroundColor( unsafe.Pointer(x.Pointer()), ) - r0 = NSColor_fromPointer(ret) - return + + return NSColor_FromPointer(ret) } -func (x gen_NSTextView) SetBackgroundColor_( +// SetBackgroundColor returns the receiver’s background color. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449501-backgroundcolor?language=objc for details. +func (x gen_NSTextView) SetBackgroundColor( value NSColorRef, ) { - C.NSTextView_inst_setBackgroundColor_( + C.NSTextView_inst_SetBackgroundColor( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSTextView) DrawsBackground() ( - r0 bool, -) { - ret := C.NSTextView_inst_drawsBackground( +// DrawsBackground returns a boolean value that indicates whether the receiver draws its background. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449530-drawsbackground?language=objc for details. +func (x gen_NSTextView) DrawsBackground() bool { + ret := C.NSTextView_inst_DrawsBackground( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextView) SetDrawsBackground_( +// SetDrawsBackground returns a boolean value that indicates whether the receiver draws its background. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449530-drawsbackground?language=objc for details. +func (x gen_NSTextView) SetDrawsBackground( value bool, ) { - C.NSTextView_inst_setDrawsBackground_( + C.NSTextView_inst_SetDrawsBackground( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSTextView) AllowsDocumentBackgroundColorChange() ( - r0 bool, -) { - ret := C.NSTextView_inst_allowsDocumentBackgroundColorChange( +// AllowsDocumentBackgroundColorChange returns a boolean value that indicates whether the receiver allows its background color to change. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449397-allowsdocumentbackgroundcolorcha?language=objc for details. +func (x gen_NSTextView) AllowsDocumentBackgroundColorChange() bool { + ret := C.NSTextView_inst_AllowsDocumentBackgroundColorChange( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextView) SetAllowsDocumentBackgroundColorChange_( +// SetAllowsDocumentBackgroundColorChange returns a boolean value that indicates whether the receiver allows its background color to change. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449397-allowsdocumentbackgroundcolorcha?language=objc for details. +func (x gen_NSTextView) SetAllowsDocumentBackgroundColorChange( value bool, ) { - C.NSTextView_inst_setAllowsDocumentBackgroundColorChange_( + C.NSTextView_inst_SetAllowsDocumentBackgroundColorChange( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSTextView) ShouldDrawInsertionPoint() ( - r0 bool, -) { - ret := C.NSTextView_inst_shouldDrawInsertionPoint( +// ShouldDrawInsertionPoint returns a boolean value that determines whether the receiver should draw its insertion point. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449152-shoulddrawinsertionpoint?language=objc for details. +func (x gen_NSTextView) ShouldDrawInsertionPoint() bool { + ret := C.NSTextView_inst_ShouldDrawInsertionPoint( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextView) AllowedInputSourceLocales() ( - r0 core.NSArray, -) { - ret := C.NSTextView_inst_allowedInputSourceLocales( +// AllowedInputSourceLocales an array of locale identifiers representing input sources that are allowed to be enabled when the receiver has the keyboard focus. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449370-allowedinputsourcelocales?language=objc for details. +func (x gen_NSTextView) AllowedInputSourceLocales() core.NSArray { + ret := C.NSTextView_inst_AllowedInputSourceLocales( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSArray_fromPointer(ret) - return + + return core.NSArray_FromPointer(ret) } -func (x gen_NSTextView) SetAllowedInputSourceLocales_( +// SetAllowedInputSourceLocales an array of locale identifiers representing input sources that are allowed to be enabled when the receiver has the keyboard focus. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449370-allowedinputsourcelocales?language=objc for details. +func (x gen_NSTextView) SetAllowedInputSourceLocales( value core.NSArrayRef, ) { - C.NSTextView_inst_setAllowedInputSourceLocales_( + C.NSTextView_inst_SetAllowedInputSourceLocales( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSTextView) AllowsUndo() ( - r0 bool, -) { - ret := C.NSTextView_inst_allowsUndo( +// AllowsUndo returns a boolean value that indicates whether the receiver allows undo. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449450-allowsundo?language=objc for details. +func (x gen_NSTextView) AllowsUndo() bool { + ret := C.NSTextView_inst_AllowsUndo( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextView) SetAllowsUndo_( +// SetAllowsUndo returns a boolean value that indicates whether the receiver allows undo. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449450-allowsundo?language=objc for details. +func (x gen_NSTextView) SetAllowsUndo( value bool, ) { - C.NSTextView_inst_setAllowsUndo_( + C.NSTextView_inst_SetAllowsUndo( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSTextView) IsEditable() ( - r0 bool, -) { - ret := C.NSTextView_inst_isEditable( +// IsEditable returns a boolean value that controls whether the text views sharing the receiver’s layout manager allow the user to edit text. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449345-editable?language=objc for details. +func (x gen_NSTextView) IsEditable() bool { + ret := C.NSTextView_inst_IsEditable( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextView) SetEditable_( +// SetEditable returns a boolean value that controls whether the text views sharing the receiver’s layout manager allow the user to edit text. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449345-editable?language=objc for details. +func (x gen_NSTextView) SetEditable( value bool, ) { - C.NSTextView_inst_setEditable_( + C.NSTextView_inst_SetEditable( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSTextView) IsSelectable() ( - r0 bool, -) { - ret := C.NSTextView_inst_isSelectable( +// IsSelectable returns a boolean value that controls whether the text views sharing the receiver’s layout manager allow the user to select text. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449297-selectable?language=objc for details. +func (x gen_NSTextView) IsSelectable() bool { + ret := C.NSTextView_inst_IsSelectable( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextView) SetSelectable_( +// SetSelectable returns a boolean value that controls whether the text views sharing the receiver’s layout manager allow the user to select text. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449297-selectable?language=objc for details. +func (x gen_NSTextView) SetSelectable( value bool, ) { - C.NSTextView_inst_setSelectable_( + C.NSTextView_inst_SetSelectable( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSTextView) IsFieldEditor() ( - r0 bool, -) { - ret := C.NSTextView_inst_isFieldEditor( +// IsFieldEditor returns a boolean value that controls whether the text views sharing the receiver’s layout manager behave as field editors. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449156-fieldeditor?language=objc for details. +func (x gen_NSTextView) IsFieldEditor() bool { + ret := C.NSTextView_inst_IsFieldEditor( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextView) SetFieldEditor_( +// SetFieldEditor returns a boolean value that controls whether the text views sharing the receiver’s layout manager behave as field editors. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449156-fieldeditor?language=objc for details. +func (x gen_NSTextView) SetFieldEditor( value bool, ) { - C.NSTextView_inst_setFieldEditor_( + C.NSTextView_inst_SetFieldEditor( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSTextView) IsRichText() ( - r0 bool, -) { - ret := C.NSTextView_inst_isRichText( +// IsRichText returns a boolean value that controls whether the text views sharing the receiver’s layout manager allow the user to apply attributes to specific ranges of text. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449538-richtext?language=objc for details. +func (x gen_NSTextView) IsRichText() bool { + ret := C.NSTextView_inst_IsRichText( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextView) SetRichText_( +// SetRichText returns a boolean value that controls whether the text views sharing the receiver’s layout manager allow the user to apply attributes to specific ranges of text. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449538-richtext?language=objc for details. +func (x gen_NSTextView) SetRichText( value bool, ) { - C.NSTextView_inst_setRichText_( + C.NSTextView_inst_SetRichText( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSTextView) ImportsGraphics() ( - r0 bool, -) { - ret := C.NSTextView_inst_importsGraphics( +// ImportsGraphics returns a boolean value that controls whether the text views sharing the receiver’s layout manager allow the user to import files by dragging. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449266-importsgraphics?language=objc for details. +func (x gen_NSTextView) ImportsGraphics() bool { + ret := C.NSTextView_inst_ImportsGraphics( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextView) SetImportsGraphics_( +// SetImportsGraphics returns a boolean value that controls whether the text views sharing the receiver’s layout manager allow the user to import files by dragging. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449266-importsgraphics?language=objc for details. +func (x gen_NSTextView) SetImportsGraphics( value bool, ) { - C.NSTextView_inst_setImportsGraphics_( + C.NSTextView_inst_SetImportsGraphics( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSTextView) AllowsImageEditing() ( - r0 bool, -) { - ret := C.NSTextView_inst_allowsImageEditing( +// AllowsImageEditing indicates whether image attachments should permit editing of their images. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449425-allowsimageediting?language=objc for details. +func (x gen_NSTextView) AllowsImageEditing() bool { + ret := C.NSTextView_inst_AllowsImageEditing( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextView) SetAllowsImageEditing_( +// SetAllowsImageEditing indicates whether image attachments should permit editing of their images. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449425-allowsimageediting?language=objc for details. +func (x gen_NSTextView) SetAllowsImageEditing( value bool, ) { - C.NSTextView_inst_setAllowsImageEditing_( + C.NSTextView_inst_SetAllowsImageEditing( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSTextView) IsAutomaticQuoteSubstitutionEnabled() ( - r0 bool, -) { - ret := C.NSTextView_inst_isAutomaticQuoteSubstitutionEnabled( +// IsAutomaticQuoteSubstitutionEnabled returns a boolean value that enables and disables automatic quotation mark substitution. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449258-automaticquotesubstitutionenable?language=objc for details. +func (x gen_NSTextView) IsAutomaticQuoteSubstitutionEnabled() bool { + ret := C.NSTextView_inst_IsAutomaticQuoteSubstitutionEnabled( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextView) SetAutomaticQuoteSubstitutionEnabled_( +// SetAutomaticQuoteSubstitutionEnabled returns a boolean value that enables and disables automatic quotation mark substitution. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449258-automaticquotesubstitutionenable?language=objc for details. +func (x gen_NSTextView) SetAutomaticQuoteSubstitutionEnabled( value bool, ) { - C.NSTextView_inst_setAutomaticQuoteSubstitutionEnabled_( + C.NSTextView_inst_SetAutomaticQuoteSubstitutionEnabled( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSTextView) IsAutomaticLinkDetectionEnabled() ( - r0 bool, -) { - ret := C.NSTextView_inst_isAutomaticLinkDetectionEnabled( +// IsAutomaticLinkDetectionEnabled returns a boolean value that enables or disables automatic link detection. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449170-automaticlinkdetectionenabled?language=objc for details. +func (x gen_NSTextView) IsAutomaticLinkDetectionEnabled() bool { + ret := C.NSTextView_inst_IsAutomaticLinkDetectionEnabled( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextView) SetAutomaticLinkDetectionEnabled_( +// SetAutomaticLinkDetectionEnabled returns a boolean value that enables or disables automatic link detection. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449170-automaticlinkdetectionenabled?language=objc for details. +func (x gen_NSTextView) SetAutomaticLinkDetectionEnabled( value bool, ) { - C.NSTextView_inst_setAutomaticLinkDetectionEnabled_( + C.NSTextView_inst_SetAutomaticLinkDetectionEnabled( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSTextView) DisplaysLinkToolTips() ( - r0 bool, -) { - ret := C.NSTextView_inst_displaysLinkToolTips( +// DisplaysLinkToolTips returns a boolean value that indicates whether the text view automatically supplies the destination of a link as a tooltip for text that has a link attribute. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449204-displayslinktooltips?language=objc for details. +func (x gen_NSTextView) DisplaysLinkToolTips() bool { + ret := C.NSTextView_inst_DisplaysLinkToolTips( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextView) SetDisplaysLinkToolTips_( +// SetDisplaysLinkToolTips returns a boolean value that indicates whether the text view automatically supplies the destination of a link as a tooltip for text that has a link attribute. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449204-displayslinktooltips?language=objc for details. +func (x gen_NSTextView) SetDisplaysLinkToolTips( value bool, ) { - C.NSTextView_inst_setDisplaysLinkToolTips_( + C.NSTextView_inst_SetDisplaysLinkToolTips( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSTextView) IsAutomaticTextCompletionEnabled() ( - r0 bool, -) { - ret := C.NSTextView_inst_isAutomaticTextCompletionEnabled( +// IsAutomaticTextCompletionEnabled returns a boolean vlaue that inidcates whether the text view supplies autocompletion suggestions as the user types. +// +// See https://developer.apple.com/documentation/appkit/nstextview/2544655-automatictextcompletionenabled?language=objc for details. +func (x gen_NSTextView) IsAutomaticTextCompletionEnabled() bool { + ret := C.NSTextView_inst_IsAutomaticTextCompletionEnabled( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextView) SetAutomaticTextCompletionEnabled_( +// SetAutomaticTextCompletionEnabled returns a boolean vlaue that inidcates whether the text view supplies autocompletion suggestions as the user types. +// +// See https://developer.apple.com/documentation/appkit/nstextview/2544655-automatictextcompletionenabled?language=objc for details. +func (x gen_NSTextView) SetAutomaticTextCompletionEnabled( value bool, ) { - C.NSTextView_inst_setAutomaticTextCompletionEnabled_( + C.NSTextView_inst_SetAutomaticTextCompletionEnabled( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSTextView) UsesAdaptiveColorMappingForDarkAppearance() ( - r0 bool, -) { - ret := C.NSTextView_inst_usesAdaptiveColorMappingForDarkAppearance( +// UsesAdaptiveColorMappingForDarkAppearance returns a boolean vlaues that indicates whether the framework should use adaptive color mapping for dark appearance. +// +// See https://developer.apple.com/documentation/appkit/nstextview/3237223-usesadaptivecolormappingfordarka?language=objc for details. +func (x gen_NSTextView) UsesAdaptiveColorMappingForDarkAppearance() bool { + ret := C.NSTextView_inst_UsesAdaptiveColorMappingForDarkAppearance( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextView) SetUsesAdaptiveColorMappingForDarkAppearance_( +// SetUsesAdaptiveColorMappingForDarkAppearance returns a boolean vlaues that indicates whether the framework should use adaptive color mapping for dark appearance. +// +// See https://developer.apple.com/documentation/appkit/nstextview/3237223-usesadaptivecolormappingfordarka?language=objc for details. +func (x gen_NSTextView) SetUsesAdaptiveColorMappingForDarkAppearance( value bool, ) { - C.NSTextView_inst_setUsesAdaptiveColorMappingForDarkAppearance_( + C.NSTextView_inst_SetUsesAdaptiveColorMappingForDarkAppearance( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSTextView) UsesRolloverButtonForSelection() ( - r0 bool, -) { - ret := C.NSTextView_inst_usesRolloverButtonForSelection( +// UsesRolloverButtonForSelection +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449357-usesrolloverbuttonforselection?language=objc for details. +func (x gen_NSTextView) UsesRolloverButtonForSelection() bool { + ret := C.NSTextView_inst_UsesRolloverButtonForSelection( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextView) SetUsesRolloverButtonForSelection_( +// SetUsesRolloverButtonForSelection +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449357-usesrolloverbuttonforselection?language=objc for details. +func (x gen_NSTextView) SetUsesRolloverButtonForSelection( value bool, ) { - C.NSTextView_inst_setUsesRolloverButtonForSelection_( + C.NSTextView_inst_SetUsesRolloverButtonForSelection( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSTextView) UsesRuler() ( - r0 bool, -) { - ret := C.NSTextView_inst_usesRuler( +// UsesRuler returns a boolean value that controls whether the text views sharing the receiver’s layout manager use a ruler. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449218-usesruler?language=objc for details. +func (x gen_NSTextView) UsesRuler() bool { + ret := C.NSTextView_inst_UsesRuler( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextView) SetUsesRuler_( +// SetUsesRuler returns a boolean value that controls whether the text views sharing the receiver’s layout manager use a ruler. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449218-usesruler?language=objc for details. +func (x gen_NSTextView) SetUsesRuler( value bool, ) { - C.NSTextView_inst_setUsesRuler_( + C.NSTextView_inst_SetUsesRuler( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSTextView) IsRulerVisible() ( - r0 bool, -) { - ret := C.NSTextView_inst_isRulerVisible( +// IsRulerVisible returns a boolean value that controls whether the scroll view enclosing text views sharing the receiver’s layout manager displays the ruler. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449406-rulervisible?language=objc for details. +func (x gen_NSTextView) IsRulerVisible() bool { + ret := C.NSTextView_inst_IsRulerVisible( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextView) SetRulerVisible_( +// SetRulerVisible returns a boolean value that controls whether the scroll view enclosing text views sharing the receiver’s layout manager displays the ruler. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449406-rulervisible?language=objc for details. +func (x gen_NSTextView) SetRulerVisible( value bool, ) { - C.NSTextView_inst_setRulerVisible_( + C.NSTextView_inst_SetRulerVisible( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSTextView) UsesInspectorBar() ( - r0 bool, -) { - ret := C.NSTextView_inst_usesInspectorBar( +// UsesInspectorBar returns a boolean value that indicates whether this text view uses the inspector bar. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449407-usesinspectorbar?language=objc for details. +func (x gen_NSTextView) UsesInspectorBar() bool { + ret := C.NSTextView_inst_UsesInspectorBar( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextView) SetUsesInspectorBar_( +// SetUsesInspectorBar returns a boolean value that indicates whether this text view uses the inspector bar. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449407-usesinspectorbar?language=objc for details. +func (x gen_NSTextView) SetUsesInspectorBar( value bool, ) { - C.NSTextView_inst_setUsesInspectorBar_( + C.NSTextView_inst_SetUsesInspectorBar( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSTextView) SelectedRanges() ( - r0 core.NSArray, -) { - ret := C.NSTextView_inst_selectedRanges( +// SelectedRanges an array containing the ranges of characters selected in the receiver’s layout manager. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449129-selectedranges?language=objc for details. +func (x gen_NSTextView) SelectedRanges() core.NSArray { + ret := C.NSTextView_inst_SelectedRanges( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSArray_fromPointer(ret) - return + + return core.NSArray_FromPointer(ret) } -func (x gen_NSTextView) SetSelectedRanges_( +// SetSelectedRanges an array containing the ranges of characters selected in the receiver’s layout manager. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449129-selectedranges?language=objc for details. +func (x gen_NSTextView) SetSelectedRanges( value core.NSArrayRef, ) { - C.NSTextView_inst_setSelectedRanges_( + C.NSTextView_inst_SetSelectedRanges( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSTextView) InsertionPointColor() ( - r0 NSColor, -) { - ret := C.NSTextView_inst_insertionPointColor( +// InsertionPointColor returns the color of the insertion point. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449309-insertionpointcolor?language=objc for details. +func (x gen_NSTextView) InsertionPointColor() NSColor { + ret := C.NSTextView_inst_InsertionPointColor( unsafe.Pointer(x.Pointer()), ) - r0 = NSColor_fromPointer(ret) - return + + return NSColor_FromPointer(ret) } -func (x gen_NSTextView) SetInsertionPointColor_( +// SetInsertionPointColor returns the color of the insertion point. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449309-insertionpointcolor?language=objc for details. +func (x gen_NSTextView) SetInsertionPointColor( value NSColorRef, ) { - C.NSTextView_inst_setInsertionPointColor_( + C.NSTextView_inst_SetInsertionPointColor( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSTextView) SelectedTextAttributes() ( - r0 core.NSDictionary, -) { - ret := C.NSTextView_inst_selectedTextAttributes( +// SelectedTextAttributes returns the attributes used to indicate the selection. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449270-selectedtextattributes?language=objc for details. +func (x gen_NSTextView) SelectedTextAttributes() core.NSDictionary { + ret := C.NSTextView_inst_SelectedTextAttributes( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSDictionary_fromPointer(ret) - return + + return core.NSDictionary_FromPointer(ret) } -func (x gen_NSTextView) SetSelectedTextAttributes_( +// SetSelectedTextAttributes returns the attributes used to indicate the selection. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449270-selectedtextattributes?language=objc for details. +func (x gen_NSTextView) SetSelectedTextAttributes( value core.NSDictionaryRef, ) { - C.NSTextView_inst_setSelectedTextAttributes_( + C.NSTextView_inst_SetSelectedTextAttributes( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSTextView) MarkedTextAttributes() ( - r0 core.NSDictionary, -) { - ret := C.NSTextView_inst_markedTextAttributes( +// MarkedTextAttributes returns the attributes used to draw marked text. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449179-markedtextattributes?language=objc for details. +func (x gen_NSTextView) MarkedTextAttributes() core.NSDictionary { + ret := C.NSTextView_inst_MarkedTextAttributes( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSDictionary_fromPointer(ret) - return + + return core.NSDictionary_FromPointer(ret) } -func (x gen_NSTextView) SetMarkedTextAttributes_( +// SetMarkedTextAttributes returns the attributes used to draw marked text. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449179-markedtextattributes?language=objc for details. +func (x gen_NSTextView) SetMarkedTextAttributes( value core.NSDictionaryRef, ) { - C.NSTextView_inst_setMarkedTextAttributes_( + C.NSTextView_inst_SetMarkedTextAttributes( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSTextView) LinkTextAttributes() ( - r0 core.NSDictionary, -) { - ret := C.NSTextView_inst_linkTextAttributes( +// LinkTextAttributes returns the attributes used to draw the onscreen presentation of link text. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449452-linktextattributes?language=objc for details. +func (x gen_NSTextView) LinkTextAttributes() core.NSDictionary { + ret := C.NSTextView_inst_LinkTextAttributes( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSDictionary_fromPointer(ret) - return + + return core.NSDictionary_FromPointer(ret) } -func (x gen_NSTextView) SetLinkTextAttributes_( +// SetLinkTextAttributes returns the attributes used to draw the onscreen presentation of link text. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449452-linktextattributes?language=objc for details. +func (x gen_NSTextView) SetLinkTextAttributes( value core.NSDictionaryRef, ) { - C.NSTextView_inst_setLinkTextAttributes_( + C.NSTextView_inst_SetLinkTextAttributes( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSTextView) ReadablePasteboardTypes() ( - r0 core.NSArray, -) { - ret := C.NSTextView_inst_readablePasteboardTypes( +// ReadablePasteboardTypes returns the types this text view can read immediately from the pasteboard. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449361-readablepasteboardtypes?language=objc for details. +func (x gen_NSTextView) ReadablePasteboardTypes() core.NSArray { + ret := C.NSTextView_inst_ReadablePasteboardTypes( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSArray_fromPointer(ret) - return + + return core.NSArray_FromPointer(ret) } -func (x gen_NSTextView) WritablePasteboardTypes() ( - r0 core.NSArray, -) { - ret := C.NSTextView_inst_writablePasteboardTypes( +// WritablePasteboardTypes returns the pasteboard types that can be provided from the current selection. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449222-writablepasteboardtypes?language=objc for details. +func (x gen_NSTextView) WritablePasteboardTypes() core.NSArray { + ret := C.NSTextView_inst_WritablePasteboardTypes( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSArray_fromPointer(ret) - return + + return core.NSArray_FromPointer(ret) } -func (x gen_NSTextView) TypingAttributes() ( - r0 core.NSDictionary, -) { - ret := C.NSTextView_inst_typingAttributes( +// TypingAttributes returns the receiver’s typing attributes. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449487-typingattributes?language=objc for details. +func (x gen_NSTextView) TypingAttributes() core.NSDictionary { + ret := C.NSTextView_inst_TypingAttributes( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSDictionary_fromPointer(ret) - return + + return core.NSDictionary_FromPointer(ret) } -func (x gen_NSTextView) SetTypingAttributes_( +// SetTypingAttributes returns the receiver’s typing attributes. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449487-typingattributes?language=objc for details. +func (x gen_NSTextView) SetTypingAttributes( value core.NSDictionaryRef, ) { - C.NSTextView_inst_setTypingAttributes_( + C.NSTextView_inst_SetTypingAttributes( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSTextView) IsCoalescingUndo() ( - r0 bool, -) { - ret := C.NSTextView_inst_isCoalescingUndo( +// IsCoalescingUndo returns a boolean value that indicates whether undo coalescing is in progress. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449368-coalescingundo?language=objc for details. +func (x gen_NSTextView) IsCoalescingUndo() bool { + ret := C.NSTextView_inst_IsCoalescingUndo( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextView) AcceptableDragTypes() ( - r0 core.NSArray, -) { - ret := C.NSTextView_inst_acceptableDragTypes( +// AcceptableDragTypes returns the data types that the receiver accepts as the destination view of a dragging operation. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449234-acceptabledragtypes?language=objc for details. +func (x gen_NSTextView) AcceptableDragTypes() core.NSArray { + ret := C.NSTextView_inst_AcceptableDragTypes( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSArray_fromPointer(ret) - return + + return core.NSArray_FromPointer(ret) } -func (x gen_NSTextView) RangesForUserCharacterAttributeChange() ( - r0 core.NSArray, -) { - ret := C.NSTextView_inst_rangesForUserCharacterAttributeChange( +// RangesForUserCharacterAttributeChange an array containing the ranges of characters affected by an action method that changes character (not paragraph) attributes. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449503-rangesforusercharacterattributec?language=objc for details. +func (x gen_NSTextView) RangesForUserCharacterAttributeChange() core.NSArray { + ret := C.NSTextView_inst_RangesForUserCharacterAttributeChange( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSArray_fromPointer(ret) - return + + return core.NSArray_FromPointer(ret) } -func (x gen_NSTextView) RangesForUserParagraphAttributeChange() ( - r0 core.NSArray, -) { - ret := C.NSTextView_inst_rangesForUserParagraphAttributeChange( +// RangesForUserParagraphAttributeChange an array containing the ranges of characters affected by a method that changes paragraph (not character) attributes. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449161-rangesforuserparagraphattributec?language=objc for details. +func (x gen_NSTextView) RangesForUserParagraphAttributeChange() core.NSArray { + ret := C.NSTextView_inst_RangesForUserParagraphAttributeChange( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSArray_fromPointer(ret) - return + + return core.NSArray_FromPointer(ret) } -func (x gen_NSTextView) RangesForUserTextChange() ( - r0 core.NSArray, -) { - ret := C.NSTextView_inst_rangesForUserTextChange( +// RangesForUserTextChange an array containing the ranges of characters affected by a method that changes characters (as opposed to attributes). +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449434-rangesforusertextchange?language=objc for details. +func (x gen_NSTextView) RangesForUserTextChange() core.NSArray { + ret := C.NSTextView_inst_RangesForUserTextChange( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSArray_fromPointer(ret) - return + + return core.NSArray_FromPointer(ret) } -func (x gen_NSTextView) SmartInsertDeleteEnabled() ( - r0 bool, -) { - ret := C.NSTextView_inst_smartInsertDeleteEnabled( +// SmartInsertDeleteEnabled returns a boolean value that controls whether the receiver inserts or deletes space around selected words so as to preserve proper spacing and punctuation. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449236-smartinsertdeleteenabled?language=objc for details. +func (x gen_NSTextView) SmartInsertDeleteEnabled() bool { + ret := C.NSTextView_inst_SmartInsertDeleteEnabled( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextView) SetSmartInsertDeleteEnabled_( +// SetSmartInsertDeleteEnabled returns a boolean value that controls whether the receiver inserts or deletes space around selected words so as to preserve proper spacing and punctuation. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449236-smartinsertdeleteenabled?language=objc for details. +func (x gen_NSTextView) SetSmartInsertDeleteEnabled( value bool, ) { - C.NSTextView_inst_setSmartInsertDeleteEnabled_( + C.NSTextView_inst_SetSmartInsertDeleteEnabled( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSTextView) IsContinuousSpellCheckingEnabled() ( - r0 bool, -) { - ret := C.NSTextView_inst_isContinuousSpellCheckingEnabled( +// IsContinuousSpellCheckingEnabled returns a boolean value that indicates whether the receiver has continuous spell checking enabled. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449430-continuousspellcheckingenabled?language=objc for details. +func (x gen_NSTextView) IsContinuousSpellCheckingEnabled() bool { + ret := C.NSTextView_inst_IsContinuousSpellCheckingEnabled( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextView) SetContinuousSpellCheckingEnabled_( +// SetContinuousSpellCheckingEnabled returns a boolean value that indicates whether the receiver has continuous spell checking enabled. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449430-continuousspellcheckingenabled?language=objc for details. +func (x gen_NSTextView) SetContinuousSpellCheckingEnabled( value bool, ) { - C.NSTextView_inst_setContinuousSpellCheckingEnabled_( + C.NSTextView_inst_SetContinuousSpellCheckingEnabled( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSTextView) SpellCheckerDocumentTag() ( - r0 core.NSInteger, -) { - ret := C.NSTextView_inst_spellCheckerDocumentTag( +// SpellCheckerDocumentTag returns a tag identifying the text view's text as a document for the spell checker server. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449513-spellcheckerdocumenttag?language=objc for details. +func (x gen_NSTextView) SpellCheckerDocumentTag() core.NSInteger { + ret := C.NSTextView_inst_SpellCheckerDocumentTag( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSInteger(ret) - return + + return core.NSInteger(ret) } -func (x gen_NSTextView) IsGrammarCheckingEnabled() ( - r0 bool, -) { - ret := C.NSTextView_inst_isGrammarCheckingEnabled( +// IsGrammarCheckingEnabled enables and disables grammar checking. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449166-grammarcheckingenabled?language=objc for details. +func (x gen_NSTextView) IsGrammarCheckingEnabled() bool { + ret := C.NSTextView_inst_IsGrammarCheckingEnabled( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextView) SetGrammarCheckingEnabled_( +// SetGrammarCheckingEnabled enables and disables grammar checking. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449166-grammarcheckingenabled?language=objc for details. +func (x gen_NSTextView) SetGrammarCheckingEnabled( value bool, ) { - C.NSTextView_inst_setGrammarCheckingEnabled_( + C.NSTextView_inst_SetGrammarCheckingEnabled( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSTextView) AcceptsGlyphInfo() ( - r0 bool, -) { - ret := C.NSTextView_inst_acceptsGlyphInfo( +// AcceptsGlyphInfo returns a boolean value that indicates whether the receiver accepts the glyph info attribute. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449163-acceptsglyphinfo?language=objc for details. +func (x gen_NSTextView) AcceptsGlyphInfo() bool { + ret := C.NSTextView_inst_AcceptsGlyphInfo( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextView) SetAcceptsGlyphInfo_( +// SetAcceptsGlyphInfo returns a boolean value that indicates whether the receiver accepts the glyph info attribute. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449163-acceptsglyphinfo?language=objc for details. +func (x gen_NSTextView) SetAcceptsGlyphInfo( value bool, ) { - C.NSTextView_inst_setAcceptsGlyphInfo_( + C.NSTextView_inst_SetAcceptsGlyphInfo( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSTextView) UsesFontPanel() ( - r0 bool, -) { - ret := C.NSTextView_inst_usesFontPanel( +// UsesFontPanel returns a boolean value that controls whether the text views sharing the receiver’s layout manager use the font panel and font menu. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449534-usesfontpanel?language=objc for details. +func (x gen_NSTextView) UsesFontPanel() bool { + ret := C.NSTextView_inst_UsesFontPanel( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextView) SetUsesFontPanel_( +// SetUsesFontPanel returns a boolean value that controls whether the text views sharing the receiver’s layout manager use the font panel and font menu. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449534-usesfontpanel?language=objc for details. +func (x gen_NSTextView) SetUsesFontPanel( value bool, ) { - C.NSTextView_inst_setUsesFontPanel_( + C.NSTextView_inst_SetUsesFontPanel( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSTextView) UsesFindPanel() ( - r0 bool, -) { - ret := C.NSTextView_inst_usesFindPanel( +// UsesFindPanel returns a boolean value that indicates whether the receiver allows for a find panel. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449293-usesfindpanel?language=objc for details. +func (x gen_NSTextView) UsesFindPanel() bool { + ret := C.NSTextView_inst_UsesFindPanel( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextView) SetUsesFindPanel_( +// SetUsesFindPanel returns a boolean value that indicates whether the receiver allows for a find panel. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449293-usesfindpanel?language=objc for details. +func (x gen_NSTextView) SetUsesFindPanel( value bool, ) { - C.NSTextView_inst_setUsesFindPanel_( + C.NSTextView_inst_SetUsesFindPanel( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSTextView) IsAutomaticDashSubstitutionEnabled() ( - r0 bool, -) { - ret := C.NSTextView_inst_isAutomaticDashSubstitutionEnabled( +// IsAutomaticDashSubstitutionEnabled returns a boolean value that indicates whether automatic dash substitution is enabled. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449403-automaticdashsubstitutionenabled?language=objc for details. +func (x gen_NSTextView) IsAutomaticDashSubstitutionEnabled() bool { + ret := C.NSTextView_inst_IsAutomaticDashSubstitutionEnabled( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextView) SetAutomaticDashSubstitutionEnabled_( +// SetAutomaticDashSubstitutionEnabled returns a boolean value that indicates whether automatic dash substitution is enabled. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449403-automaticdashsubstitutionenabled?language=objc for details. +func (x gen_NSTextView) SetAutomaticDashSubstitutionEnabled( value bool, ) { - C.NSTextView_inst_setAutomaticDashSubstitutionEnabled_( + C.NSTextView_inst_SetAutomaticDashSubstitutionEnabled( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSTextView) IsAutomaticDataDetectionEnabled() ( - r0 bool, -) { - ret := C.NSTextView_inst_isAutomaticDataDetectionEnabled( +// IsAutomaticDataDetectionEnabled returns a boolean value that indicates whether automatic data detection is enabled. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449192-automaticdatadetectionenabled?language=objc for details. +func (x gen_NSTextView) IsAutomaticDataDetectionEnabled() bool { + ret := C.NSTextView_inst_IsAutomaticDataDetectionEnabled( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextView) SetAutomaticDataDetectionEnabled_( +// SetAutomaticDataDetectionEnabled returns a boolean value that indicates whether automatic data detection is enabled. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449192-automaticdatadetectionenabled?language=objc for details. +func (x gen_NSTextView) SetAutomaticDataDetectionEnabled( value bool, ) { - C.NSTextView_inst_setAutomaticDataDetectionEnabled_( + C.NSTextView_inst_SetAutomaticDataDetectionEnabled( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSTextView) IsAutomaticSpellingCorrectionEnabled() ( - r0 bool, -) { - ret := C.NSTextView_inst_isAutomaticSpellingCorrectionEnabled( +// IsAutomaticSpellingCorrectionEnabled returns a boolean value that indicates whether automatic spelling correction is enabled. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449254-automaticspellingcorrectionenabl?language=objc for details. +func (x gen_NSTextView) IsAutomaticSpellingCorrectionEnabled() bool { + ret := C.NSTextView_inst_IsAutomaticSpellingCorrectionEnabled( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextView) SetAutomaticSpellingCorrectionEnabled_( +// SetAutomaticSpellingCorrectionEnabled returns a boolean value that indicates whether automatic spelling correction is enabled. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449254-automaticspellingcorrectionenabl?language=objc for details. +func (x gen_NSTextView) SetAutomaticSpellingCorrectionEnabled( value bool, ) { - C.NSTextView_inst_setAutomaticSpellingCorrectionEnabled_( + C.NSTextView_inst_SetAutomaticSpellingCorrectionEnabled( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSTextView) IsAutomaticTextReplacementEnabled() ( - r0 bool, -) { - ret := C.NSTextView_inst_isAutomaticTextReplacementEnabled( +// IsAutomaticTextReplacementEnabled returns a boolean value that indicates whether automatic text replacement is enabled. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449210-automatictextreplacementenabled?language=objc for details. +func (x gen_NSTextView) IsAutomaticTextReplacementEnabled() bool { + ret := C.NSTextView_inst_IsAutomaticTextReplacementEnabled( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextView) SetAutomaticTextReplacementEnabled_( +// SetAutomaticTextReplacementEnabled returns a boolean value that indicates whether automatic text replacement is enabled. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449210-automatictextreplacementenabled?language=objc for details. +func (x gen_NSTextView) SetAutomaticTextReplacementEnabled( value bool, ) { - C.NSTextView_inst_setAutomaticTextReplacementEnabled_( + C.NSTextView_inst_SetAutomaticTextReplacementEnabled( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSTextView) UsesFindBar() ( - r0 bool, -) { - ret := C.NSTextView_inst_usesFindBar( +// UsesFindBar returns a boolean value that indicates whether to use the find bar for this text view. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449456-usesfindbar?language=objc for details. +func (x gen_NSTextView) UsesFindBar() bool { + ret := C.NSTextView_inst_UsesFindBar( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextView) SetUsesFindBar_( +// SetUsesFindBar returns a boolean value that indicates whether to use the find bar for this text view. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449456-usesfindbar?language=objc for details. +func (x gen_NSTextView) SetUsesFindBar( value bool, ) { - C.NSTextView_inst_setUsesFindBar_( + C.NSTextView_inst_SetUsesFindBar( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSTextView) IsIncrementalSearchingEnabled() ( - r0 bool, -) { - ret := C.NSTextView_inst_isIncrementalSearchingEnabled( +// IsIncrementalSearchingEnabled returns a boolean value that indicates whether incremental searching is enabled. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449458-incrementalsearchingenabled?language=objc for details. +func (x gen_NSTextView) IsIncrementalSearchingEnabled() bool { + ret := C.NSTextView_inst_IsIncrementalSearchingEnabled( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextView) SetIncrementalSearchingEnabled_( +// SetIncrementalSearchingEnabled returns a boolean value that indicates whether incremental searching is enabled. +// +// See https://developer.apple.com/documentation/appkit/nstextview/1449458-incrementalsearchingenabled?language=objc for details. +func (x gen_NSTextView) SetIncrementalSearchingEnabled( value bool, ) { - C.NSTextView_inst_setIncrementalSearchingEnabled_( + C.NSTextView_inst_SetIncrementalSearchingEnabled( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSTextView) AllowsCharacterPickerTouchBarItem() ( - r0 bool, -) { - ret := C.NSTextView_inst_allowsCharacterPickerTouchBarItem( +// AllowsCharacterPickerTouchBarItem +// +// See https://developer.apple.com/documentation/appkit/nstextview/2544680-allowscharacterpickertouchbarite?language=objc for details. +func (x gen_NSTextView) AllowsCharacterPickerTouchBarItem() bool { + ret := C.NSTextView_inst_AllowsCharacterPickerTouchBarItem( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSTextView) SetAllowsCharacterPickerTouchBarItem_( +// SetAllowsCharacterPickerTouchBarItem +// +// See https://developer.apple.com/documentation/appkit/nstextview/2544680-allowscharacterpickertouchbarite?language=objc for details. +func (x gen_NSTextView) SetAllowsCharacterPickerTouchBarItem( value bool, ) { - C.NSTextView_inst_setAllowsCharacterPickerTouchBarItem_( + C.NSTextView_inst_SetAllowsCharacterPickerTouchBarItem( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSTextView) Font() ( - r0 NSFont, -) { - ret := C.NSTextView_inst_font( +// Font +// +// See for details. +func (x gen_NSTextView) Font() NSFont { + ret := C.NSTextView_inst_Font( unsafe.Pointer(x.Pointer()), ) - r0 = NSFont_fromPointer(ret) - return + + return NSFont_FromPointer(ret) } -func (x gen_NSTextView) SetFont_( +// SetFont +// +// See for details. +func (x gen_NSTextView) SetFont( value NSFontRef, ) { - C.NSTextView_inst_setFont_( + C.NSTextView_inst_SetFont( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } type NSViewRef interface { Pointer() uintptr - Init_asNSView() NSView + Init_AsNSView() NSView } type gen_NSView struct { objc.Object } -func NSView_fromPointer(ptr unsafe.Pointer) NSView { +func NSView_FromPointer(ptr unsafe.Pointer) NSView { return NSView{gen_NSView{ - objc.Object_fromPointer(ptr), + objc.Object_FromPointer(ptr), }} } -func NSView_fromRef(ref objc.Ref) NSView { - return NSView_fromPointer(unsafe.Pointer(ref.Pointer())) +func NSView_FromRef(ref objc.Ref) NSView { + return NSView_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_NSView) InitWithFrame__asNSView( - frameRect core.NSRect, -) ( - r0 NSView, -) { - ret := C.NSView_inst_initWithFrame_( +// AcceptsFirstMouse overridden by subclasses to return yes if the view should be sent a mousedown: message for an initial mouse-down event, no if not. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483410-acceptsfirstmouse?language=objc for details. +func (x gen_NSView) AcceptsFirstMouse( + event NSEventRef, +) bool { + ret := C.NSView_inst_AcceptsFirstMouse( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&frameRect)), + objc.RefPointer(event), ) - r0 = NSView_fromPointer(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSView) PrepareForReuse() { - C.NSView_inst_prepareForReuse( +// AddConstraints adds multiple constraints on the layout of the receiving view or its subviews. +// +// See https://developer.apple.com/documentation/appkit/nsview/1526931-addconstraints?language=objc for details. +func (x gen_NSView) AddConstraints( + constraints core.NSArrayRef, +) { + C.NSView_inst_AddConstraints( unsafe.Pointer(x.Pointer()), + objc.RefPointer(constraints), ) + return } -func (x gen_NSView) AddSubview_( +// AddSubview adds a view to the view’s subviews so it’s displayed above its siblings. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483783-addsubview?language=objc for details. +func (x gen_NSView) AddSubview( view NSViewRef, ) { - C.NSView_inst_addSubview_( + C.NSView_inst_AddSubview( unsafe.Pointer(x.Pointer()), objc.RefPointer(view), ) + return } -func (x gen_NSView) AddSubview_positioned_relativeTo_( +// AddSubviewPositionedRelativeTo inserts a view among the view’s subviews so it’s displayed immediately above or below another view. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483640-addsubview?language=objc for details. +func (x gen_NSView) AddSubviewPositionedRelativeTo( view NSViewRef, place core.NSUInteger, otherView NSViewRef, ) { - C.NSView_inst_addSubview_positioned_relativeTo_( + C.NSView_inst_AddSubviewPositionedRelativeTo( unsafe.Pointer(x.Pointer()), objc.RefPointer(view), C.ulong(place), objc.RefPointer(otherView), ) + return } -func (x gen_NSView) DidAddSubview_( - subview NSViewRef, -) { - C.NSView_inst_didAddSubview_( +// AdjustScroll overridden by subclasses to modify a given rectangle, returning the altered rectangle. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483616-adjustscroll?language=objc for details. +func (x gen_NSView) AdjustScroll( + newVisible core.NSRect, +) core.NSRect { + ret := C.NSView_inst_AdjustScroll( unsafe.Pointer(x.Pointer()), - objc.RefPointer(subview), + *(*C.NSRect)(unsafe.Pointer(&newVisible)), ) - return + + return *(*core.NSRect)(unsafe.Pointer(&ret)) } -func (x gen_NSView) RemoveFromSuperview() { - C.NSView_inst_removeFromSuperview( +// AlignmentRectForFrame returns the view’s alignment rectangle for a given frame. +// +// See https://developer.apple.com/documentation/appkit/nsview/1526905-alignmentrectforframe?language=objc for details. +func (x gen_NSView) AlignmentRectForFrame( + frame core.NSRect, +) core.NSRect { + ret := C.NSView_inst_AlignmentRectForFrame( unsafe.Pointer(x.Pointer()), + *(*C.NSRect)(unsafe.Pointer(&frame)), ) - return + + return *(*core.NSRect)(unsafe.Pointer(&ret)) } -func (x gen_NSView) RemoveFromSuperviewWithoutNeedingDisplay() { - C.NSView_inst_removeFromSuperviewWithoutNeedingDisplay( +// AncestorSharedWithView returns the closest ancestor shared by the view and another specified view. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483353-ancestorsharedwithview?language=objc for details. +func (x gen_NSView) AncestorSharedWithView( + view NSViewRef, +) NSView { + ret := C.NSView_inst_AncestorSharedWithView( + unsafe.Pointer(x.Pointer()), + objc.RefPointer(view), + ) + + return NSView_FromPointer(ret) +} + +// Autoscroll scrolls the view’s closest ancestor nsclipview object proportionally to the distance of an event that occurs outside of it. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483471-autoscroll?language=objc for details. +func (x gen_NSView) Autoscroll( + event NSEventRef, +) bool { + ret := C.NSView_inst_Autoscroll( unsafe.Pointer(x.Pointer()), + objc.RefPointer(event), ) + + return convertObjCBoolToGo(ret) +} + +// BeginDocument invoked at the beginning of the printing session, this method sets up the current graphics context. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483423-begindocument?language=objc for details. +func (x gen_NSView) BeginDocument() { + C.NSView_inst_BeginDocument( + unsafe.Pointer(x.Pointer()), + ) + return } -func (x gen_NSView) ReplaceSubview_with_( - oldView NSViewRef, - newView NSViewRef, +// BeginPageInRectAtPlacement called at the beginning of each page, this method sets up the coordinate system so that a region inside the view’s bounds is translated to a specified location. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483438-beginpageinrect?language=objc for details. +func (x gen_NSView) BeginPageInRectAtPlacement( + rect core.NSRect, + location core.NSPoint, ) { - C.NSView_inst_replaceSubview_with_( + C.NSView_inst_BeginPageInRectAtPlacement( unsafe.Pointer(x.Pointer()), - objc.RefPointer(oldView), - objc.RefPointer(newView), + *(*C.NSRect)(unsafe.Pointer(&rect)), + *(*C.NSPoint)(unsafe.Pointer(&location)), ) + return } -func (x gen_NSView) IsDescendantOf_( +// CenterScanRect converts the corners of a specified rectangle to lie on the center of device pixels, which is useful in compensating for rendering overscanning when the coordinate system has been scaled. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483725-centerscanrect?language=objc for details. +func (x gen_NSView) CenterScanRect( + rect core.NSRect, +) core.NSRect { + ret := C.NSView_inst_CenterScanRect( + unsafe.Pointer(x.Pointer()), + *(*C.NSRect)(unsafe.Pointer(&rect)), + ) + + return *(*core.NSRect)(unsafe.Pointer(&ret)) +} + +// ConvertPointFromView converts a point from the coordinate system of a given view to that of the view. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483269-convertpoint?language=objc for details. +func (x gen_NSView) ConvertPointFromView( + point core.NSPoint, view NSViewRef, -) ( - r0 bool, -) { - ret := C.NSView_inst_isDescendantOf_( +) core.NSPoint { + ret := C.NSView_inst_ConvertPointFromView( unsafe.Pointer(x.Pointer()), + *(*C.NSPoint)(unsafe.Pointer(&point)), objc.RefPointer(view), ) - r0 = convertObjCBoolToGo(ret) - return + + return *(*core.NSPoint)(unsafe.Pointer(&ret)) } -func (x gen_NSView) AncestorSharedWithView_( +// ConvertPointToView converts a point from the view’s coordinate system to that of a given view. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483406-convertpoint?language=objc for details. +func (x gen_NSView) ConvertPointToView( + point core.NSPoint, view NSViewRef, -) ( - r0 NSView, -) { - ret := C.NSView_inst_ancestorSharedWithView_( +) core.NSPoint { + ret := C.NSView_inst_ConvertPointToView( unsafe.Pointer(x.Pointer()), + *(*C.NSPoint)(unsafe.Pointer(&point)), objc.RefPointer(view), ) - r0 = NSView_fromPointer(ret) - return + + return *(*core.NSPoint)(unsafe.Pointer(&ret)) } -func (x gen_NSView) ViewDidMoveToSuperview() { - C.NSView_inst_viewDidMoveToSuperview( +// ConvertPointFromBacking converts a point from its pixel aligned backing store coordinate system to the view’s interior coordinate system. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483456-convertpointfrombacking?language=objc for details. +func (x gen_NSView) ConvertPointFromBacking( + point core.NSPoint, +) core.NSPoint { + ret := C.NSView_inst_ConvertPointFromBacking( unsafe.Pointer(x.Pointer()), + *(*C.NSPoint)(unsafe.Pointer(&point)), ) - return + + return *(*core.NSPoint)(unsafe.Pointer(&ret)) } -func (x gen_NSView) ViewDidMoveToWindow() { - C.NSView_inst_viewDidMoveToWindow( +// ConvertPointFromLayer convert the point from the layer's interior coordinate system to the view’s interior coordinate system. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483554-convertpointfromlayer?language=objc for details. +func (x gen_NSView) ConvertPointFromLayer( + point core.NSPoint, +) core.NSPoint { + ret := C.NSView_inst_ConvertPointFromLayer( unsafe.Pointer(x.Pointer()), + *(*C.NSPoint)(unsafe.Pointer(&point)), ) - return + + return *(*core.NSPoint)(unsafe.Pointer(&ret)) } -func (x gen_NSView) ViewWillMoveToSuperview_( - newSuperview NSViewRef, -) { - C.NSView_inst_viewWillMoveToSuperview_( +// ConvertPointToBacking converts a point from the view’s interior coordinate system to its pixel aligned backing store coordinate system. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483803-convertpointtobacking?language=objc for details. +func (x gen_NSView) ConvertPointToBacking( + point core.NSPoint, +) core.NSPoint { + ret := C.NSView_inst_ConvertPointToBacking( unsafe.Pointer(x.Pointer()), - objc.RefPointer(newSuperview), + *(*C.NSPoint)(unsafe.Pointer(&point)), ) - return + + return *(*core.NSPoint)(unsafe.Pointer(&ret)) } -func (x gen_NSView) ViewWillMoveToWindow_( - newWindow NSWindowRef, -) { - C.NSView_inst_viewWillMoveToWindow_( +// ConvertPointToLayer convert the size from the view’s interior coordinate system to the layer's interior coordinate system. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483315-convertpointtolayer?language=objc for details. +func (x gen_NSView) ConvertPointToLayer( + point core.NSPoint, +) core.NSPoint { + ret := C.NSView_inst_ConvertPointToLayer( unsafe.Pointer(x.Pointer()), - objc.RefPointer(newWindow), + *(*C.NSPoint)(unsafe.Pointer(&point)), ) - return + + return *(*core.NSPoint)(unsafe.Pointer(&ret)) } -func (x gen_NSView) WillRemoveSubview_( - subview NSViewRef, -) { - C.NSView_inst_willRemoveSubview_( +// ConvertRectFromView converts a rectangle from the coordinate system of another view to that of the view. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483785-convertrect?language=objc for details. +func (x gen_NSView) ConvertRectFromView( + rect core.NSRect, + view NSViewRef, +) core.NSRect { + ret := C.NSView_inst_ConvertRectFromView( unsafe.Pointer(x.Pointer()), - objc.RefPointer(subview), + *(*C.NSRect)(unsafe.Pointer(&rect)), + objc.RefPointer(view), ) - return + + return *(*core.NSRect)(unsafe.Pointer(&ret)) } -func (x gen_NSView) SetFrameOrigin_( - newOrigin core.NSPoint, -) { - C.NSView_inst_setFrameOrigin_( +// ConvertRectToView converts a rectangle from the view’s coordinate system to that of another view. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483217-convertrect?language=objc for details. +func (x gen_NSView) ConvertRectToView( + rect core.NSRect, + view NSViewRef, +) core.NSRect { + ret := C.NSView_inst_ConvertRectToView( unsafe.Pointer(x.Pointer()), - *(*C.NSPoint)(unsafe.Pointer(&newOrigin)), + *(*C.NSRect)(unsafe.Pointer(&rect)), + objc.RefPointer(view), ) - return + + return *(*core.NSRect)(unsafe.Pointer(&ret)) } -func (x gen_NSView) SetFrameSize_( - newSize core.NSSize, -) { - C.NSView_inst_setFrameSize_( +// ConvertRectFromBacking converts a rectangle from its pixel aligned backing store coordinate system to the view’s interior coordinate system. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483819-convertrectfrombacking?language=objc for details. +func (x gen_NSView) ConvertRectFromBacking( + rect core.NSRect, +) core.NSRect { + ret := C.NSView_inst_ConvertRectFromBacking( unsafe.Pointer(x.Pointer()), - *(*C.NSSize)(unsafe.Pointer(&newSize)), + *(*C.NSRect)(unsafe.Pointer(&rect)), ) - return + + return *(*core.NSRect)(unsafe.Pointer(&ret)) } -func (x gen_NSView) SetBoundsOrigin_( - newOrigin core.NSPoint, -) { - C.NSView_inst_setBoundsOrigin_( +// ConvertRectFromLayer convert the rectangle from the layer's interior coordinate system to the view’s interior coordinate system. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483404-convertrectfromlayer?language=objc for details. +func (x gen_NSView) ConvertRectFromLayer( + rect core.NSRect, +) core.NSRect { + ret := C.NSView_inst_ConvertRectFromLayer( unsafe.Pointer(x.Pointer()), - *(*C.NSPoint)(unsafe.Pointer(&newOrigin)), + *(*C.NSRect)(unsafe.Pointer(&rect)), ) - return + + return *(*core.NSRect)(unsafe.Pointer(&ret)) } -func (x gen_NSView) SetBoundsSize_( - newSize core.NSSize, -) { - C.NSView_inst_setBoundsSize_( +// ConvertRectToBacking converts a rectangle from the view’s interior coordinate system to its pixel aligned backing store coordinate system. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483648-convertrecttobacking?language=objc for details. +func (x gen_NSView) ConvertRectToBacking( + rect core.NSRect, +) core.NSRect { + ret := C.NSView_inst_ConvertRectToBacking( unsafe.Pointer(x.Pointer()), - *(*C.NSSize)(unsafe.Pointer(&newSize)), + *(*C.NSRect)(unsafe.Pointer(&rect)), ) - return + + return *(*core.NSRect)(unsafe.Pointer(&ret)) } -func (x gen_NSView) MakeBackingLayer() ( - r0 core.CALayer, -) { - ret := C.NSView_inst_makeBackingLayer( +// ConvertRectToLayer convert the size from the view’s interior coordinate system to the layer's interior coordinate system. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483776-convertrecttolayer?language=objc for details. +func (x gen_NSView) ConvertRectToLayer( + rect core.NSRect, +) core.NSRect { + ret := C.NSView_inst_ConvertRectToLayer( unsafe.Pointer(x.Pointer()), + *(*C.NSRect)(unsafe.Pointer(&rect)), ) - r0 = core.CALayer_fromPointer(ret) - return + + return *(*core.NSRect)(unsafe.Pointer(&ret)) } -func (x gen_NSView) UpdateLayer() { - C.NSView_inst_updateLayer( +// ConvertSizeFromView converts a size from another view’s coordinate system to that of the view. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483307-convertsize?language=objc for details. +func (x gen_NSView) ConvertSizeFromView( + size core.NSSize, + view NSViewRef, +) core.NSSize { + ret := C.NSView_inst_ConvertSizeFromView( unsafe.Pointer(x.Pointer()), + *(*C.NSSize)(unsafe.Pointer(&size)), + objc.RefPointer(view), ) - return + + return *(*core.NSSize)(unsafe.Pointer(&ret)) } -func (x gen_NSView) DrawRect_( - dirtyRect core.NSRect, -) { - C.NSView_inst_drawRect_( +// ConvertSizeToView converts a size from the view’s coordinate system to that of another view. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483744-convertsize?language=objc for details. +func (x gen_NSView) ConvertSizeToView( + size core.NSSize, + view NSViewRef, +) core.NSSize { + ret := C.NSView_inst_ConvertSizeToView( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&dirtyRect)), + *(*C.NSSize)(unsafe.Pointer(&size)), + objc.RefPointer(view), ) - return + + return *(*core.NSSize)(unsafe.Pointer(&ret)) } -func (x gen_NSView) NeedsToDrawRect_( - rect core.NSRect, -) ( - r0 bool, -) { - ret := C.NSView_inst_needsToDrawRect_( +// ConvertSizeFromBacking converts a size from its pixel aligned backing store coordinate system to the view’s interior coordinate system. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483319-convertsizefrombacking?language=objc for details. +func (x gen_NSView) ConvertSizeFromBacking( + size core.NSSize, +) core.NSSize { + ret := C.NSView_inst_ConvertSizeFromBacking( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&rect)), + *(*C.NSSize)(unsafe.Pointer(&size)), ) - r0 = convertObjCBoolToGo(ret) - return + + return *(*core.NSSize)(unsafe.Pointer(&ret)) } -func (x gen_NSView) Print_( - sender objc.Ref, -) { - C.NSView_inst_print_( +// ConvertSizeFromLayer convert the size from the layer's interior coordinate system to the view’s interior coordinate system. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483479-convertsizefromlayer?language=objc for details. +func (x gen_NSView) ConvertSizeFromLayer( + size core.NSSize, +) core.NSSize { + ret := C.NSView_inst_ConvertSizeFromLayer( unsafe.Pointer(x.Pointer()), - objc.RefPointer(sender), + *(*C.NSSize)(unsafe.Pointer(&size)), ) - return + + return *(*core.NSSize)(unsafe.Pointer(&ret)) } -func (x gen_NSView) BeginPageInRect_atPlacement_( - rect core.NSRect, - location core.NSPoint, -) { - C.NSView_inst_beginPageInRect_atPlacement_( +// ConvertSizeToBacking converts a size from the view’s interior coordinate system to its pixel aligned backing store coordinate system. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483227-convertsizetobacking?language=objc for details. +func (x gen_NSView) ConvertSizeToBacking( + size core.NSSize, +) core.NSSize { + ret := C.NSView_inst_ConvertSizeToBacking( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&rect)), - *(*C.NSPoint)(unsafe.Pointer(&location)), + *(*C.NSSize)(unsafe.Pointer(&size)), ) - return + + return *(*core.NSSize)(unsafe.Pointer(&ret)) } -func (x gen_NSView) DataWithEPSInsideRect_( - rect core.NSRect, -) ( - r0 core.NSData, -) { - ret := C.NSView_inst_dataWithEPSInsideRect_( +// ConvertSizeToLayer convert the size from the view’s interior coordinate system to the layer's interior coordinate system. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483701-convertsizetolayer?language=objc for details. +func (x gen_NSView) ConvertSizeToLayer( + size core.NSSize, +) core.NSSize { + ret := C.NSView_inst_ConvertSizeToLayer( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&rect)), + *(*C.NSSize)(unsafe.Pointer(&size)), ) - r0 = core.NSData_fromPointer(ret) - return + + return *(*core.NSSize)(unsafe.Pointer(&ret)) } -func (x gen_NSView) DataWithPDFInsideRect_( +// DataWithEPSInsideRect returns eps data that draws the region of the view within a specified rectangle. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483735-datawithepsinsiderect?language=objc for details. +func (x gen_NSView) DataWithEPSInsideRect( rect core.NSRect, -) ( - r0 core.NSData, -) { - ret := C.NSView_inst_dataWithPDFInsideRect_( +) core.NSData { + ret := C.NSView_inst_DataWithEPSInsideRect( unsafe.Pointer(x.Pointer()), *(*C.NSRect)(unsafe.Pointer(&rect)), ) - r0 = core.NSData_fromPointer(ret) - return + + return core.NSData_FromPointer(ret) } -func (x gen_NSView) WriteEPSInsideRect_toPasteboard_( +// DataWithPDFInsideRect returns pdf data that draws the region of the view within a specified rectangle. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483797-datawithpdfinsiderect?language=objc for details. +func (x gen_NSView) DataWithPDFInsideRect( rect core.NSRect, - pasteboard NSPasteboardRef, -) { - C.NSView_inst_writeEPSInsideRect_toPasteboard_( +) core.NSData { + ret := C.NSView_inst_DataWithPDFInsideRect( unsafe.Pointer(x.Pointer()), *(*C.NSRect)(unsafe.Pointer(&rect)), - objc.RefPointer(pasteboard), ) - return + + return core.NSData_FromPointer(ret) } -func (x gen_NSView) WritePDFInsideRect_toPasteboard_( - rect core.NSRect, - pasteboard NSPasteboardRef, +// DidAddSubview overridden by subclasses to perform additional actions when subviews are added to the view. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483454-didaddsubview?language=objc for details. +func (x gen_NSView) DidAddSubview( + subview NSViewRef, ) { - C.NSView_inst_writePDFInsideRect_toPasteboard_( + C.NSView_inst_DidAddSubview( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&rect)), - objc.RefPointer(pasteboard), + objc.RefPointer(subview), ) + return } -func (x gen_NSView) DrawPageBorderWithSize_( - borderSize core.NSSize, +// DidCloseMenuWithEvent called after a contextual menu that was displayed from the receiving view has been closed. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483770-didclosemenu?language=objc for details. +func (x gen_NSView) DidCloseMenuWithEvent( + menu NSMenuRef, + event NSEventRef, ) { - C.NSView_inst_drawPageBorderWithSize_( + C.NSView_inst_DidCloseMenuWithEvent( unsafe.Pointer(x.Pointer()), - *(*C.NSSize)(unsafe.Pointer(&borderSize)), + objc.RefPointer(menu), + objc.RefPointer(event), ) + return } -func (x gen_NSView) RectForPage_( - page core.NSInteger, -) ( - r0 core.NSRect, -) { - ret := C.NSView_inst_rectForPage_( +// DiscardCursorRects invalidates all cursor rectangles set up using addcursorrect:cursor:. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483733-discardcursorrects?language=objc for details. +func (x gen_NSView) DiscardCursorRects() { + C.NSView_inst_DiscardCursorRects( unsafe.Pointer(x.Pointer()), - C.long(page), ) - r0 = *(*core.NSRect)(unsafe.Pointer(&ret)) + return } -func (x gen_NSView) LocationOfPrintRect_( - rect core.NSRect, -) ( - r0 core.NSPoint, -) { - ret := C.NSView_inst_locationOfPrintRect_( +// Display displays the view and all its subviews if possible, invoking each of the nsview methods lockfocus, drawrect:, and unlockfocus as necessary. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483487-display?language=objc for details. +func (x gen_NSView) Display() { + C.NSView_inst_Display( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&rect)), ) - r0 = *(*core.NSPoint)(unsafe.Pointer(&ret)) + return } -func (x gen_NSView) SetNeedsDisplayInRect_( - invalidRect core.NSRect, -) { - C.NSView_inst_setNeedsDisplayInRect_( +// DisplayIfNeeded displays the view and all its subviews if any part of the view has been marked as needing display. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483566-displayifneeded?language=objc for details. +func (x gen_NSView) DisplayIfNeeded() { + C.NSView_inst_DisplayIfNeeded( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&invalidRect)), ) + return } -func (x gen_NSView) Display() { - C.NSView_inst_display( +// DisplayIfNeededIgnoringOpacity acts as displayifneeded, except that this method doesn’t back up to the first opaque ancestor—it simply causes the view and its descendants to execute their drawing code. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483526-displayifneededignoringopacity?language=objc for details. +func (x gen_NSView) DisplayIfNeededIgnoringOpacity() { + C.NSView_inst_DisplayIfNeededIgnoringOpacity( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_NSView) DisplayRect_( +// DisplayIfNeededInRect acts as displayifneeded, confining drawing to a specified region of the view. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483813-displayifneededinrect?language=objc for details. +func (x gen_NSView) DisplayIfNeededInRect( rect core.NSRect, ) { - C.NSView_inst_displayRect_( + C.NSView_inst_DisplayIfNeededInRect( unsafe.Pointer(x.Pointer()), *(*C.NSRect)(unsafe.Pointer(&rect)), ) + return } -func (x gen_NSView) DisplayRectIgnoringOpacity_( +// DisplayIfNeededInRectIgnoringOpacity acts as displayifneeded, but confining drawing to arect and not backing up to the first opaque ancestor—it simply causes the view and its descendants to execute their drawing code. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483481-displayifneededinrectignoringopa?language=objc for details. +func (x gen_NSView) DisplayIfNeededInRectIgnoringOpacity( rect core.NSRect, ) { - C.NSView_inst_displayRectIgnoringOpacity_( + C.NSView_inst_DisplayIfNeededInRectIgnoringOpacity( unsafe.Pointer(x.Pointer()), *(*C.NSRect)(unsafe.Pointer(&rect)), ) + return } -func (x gen_NSView) DisplayIfNeeded() { - C.NSView_inst_displayIfNeeded( +// DisplayRect acts as display, but confining drawing to a rectangular region of the view. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483518-displayrect?language=objc for details. +func (x gen_NSView) DisplayRect( + rect core.NSRect, +) { + C.NSView_inst_DisplayRect( unsafe.Pointer(x.Pointer()), + *(*C.NSRect)(unsafe.Pointer(&rect)), ) + return } -func (x gen_NSView) DisplayIfNeededInRect_( +// DisplayRectIgnoringOpacity displays the view but confines drawing to a specified region and does not back up to the first opaque ancestor—it simply causes the view and its descendants to execute their drawing code. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483699-displayrectignoringopacity?language=objc for details. +func (x gen_NSView) DisplayRectIgnoringOpacity( rect core.NSRect, ) { - C.NSView_inst_displayIfNeededInRect_( + C.NSView_inst_DisplayRectIgnoringOpacity( unsafe.Pointer(x.Pointer()), *(*C.NSRect)(unsafe.Pointer(&rect)), ) + return } -func (x gen_NSView) DisplayIfNeededIgnoringOpacity() { - C.NSView_inst_displayIfNeededIgnoringOpacity( +// DrawFocusRingMask draws the focus ring mask for the view. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483335-drawfocusringmask?language=objc for details. +func (x gen_NSView) DrawFocusRingMask() { + C.NSView_inst_DrawFocusRingMask( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_NSView) DisplayIfNeededInRectIgnoringOpacity_( - rect core.NSRect, +// DrawPageBorderWithSize allows applications that use the appkit pagination facility to draw additional marks on each logical page. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483292-drawpageborderwithsize?language=objc for details. +func (x gen_NSView) DrawPageBorderWithSize( + borderSize core.NSSize, ) { - C.NSView_inst_displayIfNeededInRectIgnoringOpacity_( + C.NSView_inst_DrawPageBorderWithSize( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&rect)), + *(*C.NSSize)(unsafe.Pointer(&borderSize)), ) + return } -func (x gen_NSView) TranslateRectsNeedingDisplayInRect_by_( - clipRect core.NSRect, - delta core.NSSize, +// DrawRect overridden by subclasses to draw the view’s image within the specified rectangle. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483686-drawrect?language=objc for details. +func (x gen_NSView) DrawRect( + dirtyRect core.NSRect, ) { - C.NSView_inst_translateRectsNeedingDisplayInRect_by_( + C.NSView_inst_DrawRect( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&clipRect)), - *(*C.NSSize)(unsafe.Pointer(&delta)), + *(*C.NSRect)(unsafe.Pointer(&dirtyRect)), ) + return } -func (x gen_NSView) ViewWillDraw() { - C.NSView_inst_viewWillDraw( +// EndDocument this method is invoked at the end of the printing session. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483610-enddocument?language=objc for details. +func (x gen_NSView) EndDocument() { + C.NSView_inst_EndDocument( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_NSView) ConvertPointFromBacking_( - point core.NSPoint, -) ( - r0 core.NSPoint, -) { - ret := C.NSView_inst_convertPointFromBacking_( +// EndPage writes the end of a conforming page. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483549-endpage?language=objc for details. +func (x gen_NSView) EndPage() { + C.NSView_inst_EndPage( unsafe.Pointer(x.Pointer()), - *(*C.NSPoint)(unsafe.Pointer(&point)), ) - r0 = *(*core.NSPoint)(unsafe.Pointer(&ret)) + return } -func (x gen_NSView) ConvertPointToBacking_( - point core.NSPoint, -) ( - r0 core.NSPoint, -) { - ret := C.NSView_inst_convertPointToBacking_( +// EnterFullScreenModeWithOptions sets the view to full screen mode. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483780-enterfullscreenmode?language=objc for details. +func (x gen_NSView) EnterFullScreenModeWithOptions( + screen NSScreenRef, + options core.NSDictionaryRef, +) bool { + ret := C.NSView_inst_EnterFullScreenModeWithOptions( unsafe.Pointer(x.Pointer()), - *(*C.NSPoint)(unsafe.Pointer(&point)), + objc.RefPointer(screen), + objc.RefPointer(options), ) - r0 = *(*core.NSPoint)(unsafe.Pointer(&ret)) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSView) ConvertPointFromLayer_( - point core.NSPoint, -) ( - r0 core.NSPoint, -) { - ret := C.NSView_inst_convertPointFromLayer_( +// ExerciseAmbiguityInLayout randomly changes the frame of a view with an ambiguous layout between the different valid values. +// +// See https://developer.apple.com/documentation/appkit/nsview/1526934-exerciseambiguityinlayout?language=objc for details. +func (x gen_NSView) ExerciseAmbiguityInLayout() { + C.NSView_inst_ExerciseAmbiguityInLayout( unsafe.Pointer(x.Pointer()), - *(*C.NSPoint)(unsafe.Pointer(&point)), ) - r0 = *(*core.NSPoint)(unsafe.Pointer(&ret)) + return } -func (x gen_NSView) ConvertPointToLayer_( - point core.NSPoint, -) ( - r0 core.NSPoint, +// ExitFullScreenModeWithOptions instructs the view to exit full screen mode. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483256-exitfullscreenmodewithoptions?language=objc for details. +func (x gen_NSView) ExitFullScreenModeWithOptions( + options core.NSDictionaryRef, ) { - ret := C.NSView_inst_convertPointToLayer_( + C.NSView_inst_ExitFullScreenModeWithOptions( unsafe.Pointer(x.Pointer()), - *(*C.NSPoint)(unsafe.Pointer(&point)), + objc.RefPointer(options), ) - r0 = *(*core.NSPoint)(unsafe.Pointer(&ret)) + return } -func (x gen_NSView) ConvertRectFromBacking_( - rect core.NSRect, -) ( - r0 core.NSRect, -) { - ret := C.NSView_inst_convertRectFromBacking_( +// FrameForAlignmentRect returns the view’s frame for a given alignment rectangle. +// +// See https://developer.apple.com/documentation/appkit/nsview/1525584-frameforalignmentrect?language=objc for details. +func (x gen_NSView) FrameForAlignmentRect( + alignmentRect core.NSRect, +) core.NSRect { + ret := C.NSView_inst_FrameForAlignmentRect( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&rect)), + *(*C.NSRect)(unsafe.Pointer(&alignmentRect)), ) - r0 = *(*core.NSRect)(unsafe.Pointer(&ret)) - return + + return *(*core.NSRect)(unsafe.Pointer(&ret)) } -func (x gen_NSView) ConvertRectToBacking_( - rect core.NSRect, -) ( - r0 core.NSRect, -) { - ret := C.NSView_inst_convertRectToBacking_( +// HitTest returns the farthest descendant of the view in the view hierarchy (including itself) that contains a specified point, or nil if that point lies completely outside the view. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483364-hittest?language=objc for details. +func (x gen_NSView) HitTest( + point core.NSPoint, +) NSView { + ret := C.NSView_inst_HitTest( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&rect)), + *(*C.NSPoint)(unsafe.Pointer(&point)), ) - r0 = *(*core.NSRect)(unsafe.Pointer(&ret)) - return + + return NSView_FromPointer(ret) } -func (x gen_NSView) ConvertRectFromLayer_( - rect core.NSRect, -) ( - r0 core.NSRect, -) { - ret := C.NSView_inst_convertRectFromLayer_( +// InitWithFrame initializes and returns a newly allocated nsview object with a specified frame rectangle. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483458-initwithframe?language=objc for details. +func (x gen_NSView) InitWithFrame_AsNSView( + frameRect core.NSRect, +) NSView { + ret := C.NSView_inst_InitWithFrame( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&rect)), + *(*C.NSRect)(unsafe.Pointer(&frameRect)), ) - r0 = *(*core.NSRect)(unsafe.Pointer(&ret)) - return + + return NSView_FromPointer(ret) } -func (x gen_NSView) ConvertRectToLayer_( - rect core.NSRect, -) ( - r0 core.NSRect, -) { - ret := C.NSView_inst_convertRectToLayer_( +// InvalidateIntrinsicContentSize invalidates the view’s intrinsic content size. +// +// See https://developer.apple.com/documentation/appkit/nsview/1526864-invalidateintrinsiccontentsize?language=objc for details. +func (x gen_NSView) InvalidateIntrinsicContentSize() { + C.NSView_inst_InvalidateIntrinsicContentSize( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&rect)), ) - r0 = *(*core.NSRect)(unsafe.Pointer(&ret)) + return } -func (x gen_NSView) ConvertSizeFromBacking_( - size core.NSSize, -) ( - r0 core.NSSize, -) { - ret := C.NSView_inst_convertSizeFromBacking_( +// IsDescendantOf returns yes if the view is a subview of a given view or if it’s identical to that view; otherwise, it returns no. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483219-isdescendantof?language=objc for details. +func (x gen_NSView) IsDescendantOf( + view NSViewRef, +) bool { + ret := C.NSView_inst_IsDescendantOf( unsafe.Pointer(x.Pointer()), - *(*C.NSSize)(unsafe.Pointer(&size)), + objc.RefPointer(view), ) - r0 = *(*core.NSSize)(unsafe.Pointer(&ret)) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSView) ConvertSizeToBacking_( - size core.NSSize, -) ( - r0 core.NSSize, -) { - ret := C.NSView_inst_convertSizeToBacking_( +// Layout perform layout in concert with the constraint-based layout system. +// +// See https://developer.apple.com/documentation/appkit/nsview/1526146-layout?language=objc for details. +func (x gen_NSView) Layout() { + C.NSView_inst_Layout( unsafe.Pointer(x.Pointer()), - *(*C.NSSize)(unsafe.Pointer(&size)), ) - r0 = *(*core.NSSize)(unsafe.Pointer(&ret)) + return } -func (x gen_NSView) ConvertSizeFromLayer_( - size core.NSSize, -) ( - r0 core.NSSize, -) { - ret := C.NSView_inst_convertSizeFromLayer_( +// LayoutSubtreeIfNeeded updates the layout of the receiving view and its subviews based on the current views and constraints. +// +// See https://developer.apple.com/documentation/appkit/nsview/1526871-layoutsubtreeifneeded?language=objc for details. +func (x gen_NSView) LayoutSubtreeIfNeeded() { + C.NSView_inst_LayoutSubtreeIfNeeded( unsafe.Pointer(x.Pointer()), - *(*C.NSSize)(unsafe.Pointer(&size)), ) - r0 = *(*core.NSSize)(unsafe.Pointer(&ret)) + return } -func (x gen_NSView) ConvertSizeToLayer_( - size core.NSSize, -) ( - r0 core.NSSize, -) { - ret := C.NSView_inst_convertSizeToLayer_( +// LocationOfPrintRect invoked by print: to determine the location of the region of the view being printed on the physical page. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483223-locationofprintrect?language=objc for details. +func (x gen_NSView) LocationOfPrintRect( + rect core.NSRect, +) core.NSPoint { + ret := C.NSView_inst_LocationOfPrintRect( unsafe.Pointer(x.Pointer()), - *(*C.NSSize)(unsafe.Pointer(&size)), + *(*C.NSRect)(unsafe.Pointer(&rect)), ) - r0 = *(*core.NSSize)(unsafe.Pointer(&ret)) - return + + return *(*core.NSPoint)(unsafe.Pointer(&ret)) } -func (x gen_NSView) ConvertPoint_fromView_( - point core.NSPoint, - view NSViewRef, -) ( - r0 core.NSPoint, -) { - ret := C.NSView_inst_convertPoint_fromView_( +// MakeBackingLayer creates the view’s backing layer. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483687-makebackinglayer?language=objc for details. +func (x gen_NSView) MakeBackingLayer() core.CALayer { + ret := C.NSView_inst_MakeBackingLayer( unsafe.Pointer(x.Pointer()), - *(*C.NSPoint)(unsafe.Pointer(&point)), - objc.RefPointer(view), ) - r0 = *(*core.NSPoint)(unsafe.Pointer(&ret)) - return + + return core.CALayer_FromPointer(ret) } -func (x gen_NSView) ConvertPoint_toView_( - point core.NSPoint, - view NSViewRef, -) ( - r0 core.NSPoint, -) { - ret := C.NSView_inst_convertPoint_toView_( +// MenuForEvent overridden by subclasses to return a context-sensitive pop-up menu for a given mouse-down event. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483231-menuforevent?language=objc for details. +func (x gen_NSView) MenuForEvent( + event NSEventRef, +) NSMenu { + ret := C.NSView_inst_MenuForEvent( unsafe.Pointer(x.Pointer()), - *(*C.NSPoint)(unsafe.Pointer(&point)), - objc.RefPointer(view), + objc.RefPointer(event), ) - r0 = *(*core.NSPoint)(unsafe.Pointer(&ret)) - return + + return NSMenu_FromPointer(ret) } -func (x gen_NSView) ConvertSize_fromView_( - size core.NSSize, - view NSViewRef, -) ( - r0 core.NSSize, -) { - ret := C.NSView_inst_convertSize_fromView_( +// MouseInRect returns whether a region of the view contains a specified point, accounting for whether the view is flipped or not. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483237-mouse?language=objc for details. +func (x gen_NSView) MouseInRect( + point core.NSPoint, + rect core.NSRect, +) bool { + ret := C.NSView_inst_MouseInRect( unsafe.Pointer(x.Pointer()), - *(*C.NSSize)(unsafe.Pointer(&size)), - objc.RefPointer(view), + *(*C.NSPoint)(unsafe.Pointer(&point)), + *(*C.NSRect)(unsafe.Pointer(&rect)), ) - r0 = *(*core.NSSize)(unsafe.Pointer(&ret)) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSView) ConvertSize_toView_( - size core.NSSize, - view NSViewRef, -) ( - r0 core.NSSize, -) { - ret := C.NSView_inst_convertSize_toView_( +// NeedsToDrawRect returns a boolean value indicating whether the specified rectangle intersects any part of the area that the view is being asked to draw. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483570-needstodrawrect?language=objc for details. +func (x gen_NSView) NeedsToDrawRect( + rect core.NSRect, +) bool { + ret := C.NSView_inst_NeedsToDrawRect( unsafe.Pointer(x.Pointer()), - *(*C.NSSize)(unsafe.Pointer(&size)), - objc.RefPointer(view), + *(*C.NSRect)(unsafe.Pointer(&rect)), ) - r0 = *(*core.NSSize)(unsafe.Pointer(&ret)) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSView) ConvertRect_fromView_( - rect core.NSRect, - view NSViewRef, -) ( - r0 core.NSRect, -) { - ret := C.NSView_inst_convertRect_fromView_( +// NoteFocusRingMaskChanged invoked to notify the view that the focus ring mask requires updating. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483809-notefocusringmaskchanged?language=objc for details. +func (x gen_NSView) NoteFocusRingMaskChanged() { + C.NSView_inst_NoteFocusRingMaskChanged( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&rect)), - objc.RefPointer(view), ) - r0 = *(*core.NSRect)(unsafe.Pointer(&ret)) + return } -func (x gen_NSView) ConvertRect_toView_( - rect core.NSRect, - view NSViewRef, -) ( - r0 core.NSRect, -) { - ret := C.NSView_inst_convertRect_toView_( +// PerformKeyEquivalent implemented by subclasses to respond to key equivalents (also known as keyboard shortcuts). +// +// See https://developer.apple.com/documentation/appkit/nsview/1483664-performkeyequivalent?language=objc for details. +func (x gen_NSView) PerformKeyEquivalent( + event NSEventRef, +) bool { + ret := C.NSView_inst_PerformKeyEquivalent( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&rect)), - objc.RefPointer(view), + objc.RefPointer(event), ) - r0 = *(*core.NSRect)(unsafe.Pointer(&ret)) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSView) CenterScanRect_( +// PrepareContentInRect prepares the overdraw region for drawing. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483427-preparecontentinrect?language=objc for details. +func (x gen_NSView) PrepareContentInRect( rect core.NSRect, -) ( - r0 core.NSRect, ) { - ret := C.NSView_inst_centerScanRect_( + C.NSView_inst_PrepareContentInRect( unsafe.Pointer(x.Pointer()), *(*C.NSRect)(unsafe.Pointer(&rect)), ) - r0 = *(*core.NSRect)(unsafe.Pointer(&ret)) + return } -func (x gen_NSView) TranslateOriginToPoint_( - translation core.NSPoint, -) { - C.NSView_inst_translateOriginToPoint_( +// PrepareForReuse restores the view to an initial state so that it can be reused. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483626-prepareforreuse?language=objc for details. +func (x gen_NSView) PrepareForReuse() { + C.NSView_inst_PrepareForReuse( unsafe.Pointer(x.Pointer()), - *(*C.NSPoint)(unsafe.Pointer(&translation)), ) + return } -func (x gen_NSView) ScaleUnitSquareToSize_( - newUnitSize core.NSSize, +// Print this action method opens the print panel, and if the user chooses an option other than canceling, prints the view and all its subviews to the device specified in the print panel. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483705-print?language=objc for details. +func (x gen_NSView) Print( + sender objc.Ref, ) { - C.NSView_inst_scaleUnitSquareToSize_( + C.NSView_inst_Print( unsafe.Pointer(x.Pointer()), - *(*C.NSSize)(unsafe.Pointer(&newUnitSize)), + objc.RefPointer(sender), ) + return } -func (x gen_NSView) RotateByAngle_( - angle core.CGFloat, -) { - C.NSView_inst_rotateByAngle_( +// RectForPage implemented by subclasses to determine the portion of the view to be printed for the specified page number. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483252-rectforpage?language=objc for details. +func (x gen_NSView) RectForPage( + page core.NSInteger, +) core.NSRect { + ret := C.NSView_inst_RectForPage( unsafe.Pointer(x.Pointer()), - C.double(angle), + C.long(page), ) - return + + return *(*core.NSRect)(unsafe.Pointer(&ret)) } -func (x gen_NSView) ResizeSubviewsWithOldSize_( - oldSize core.NSSize, -) { - C.NSView_inst_resizeSubviewsWithOldSize_( +// RectForSmartMagnificationAtPointInRect returns the appropriate rectangle to use when magnifying around the specified point. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483305-rectforsmartmagnificationatpoint?language=objc for details. +func (x gen_NSView) RectForSmartMagnificationAtPointInRect( + location core.NSPoint, + visibleRect core.NSRect, +) core.NSRect { + ret := C.NSView_inst_RectForSmartMagnificationAtPointInRect( unsafe.Pointer(x.Pointer()), - *(*C.NSSize)(unsafe.Pointer(&oldSize)), + *(*C.NSPoint)(unsafe.Pointer(&location)), + *(*C.NSRect)(unsafe.Pointer(&visibleRect)), ) - return + + return *(*core.NSRect)(unsafe.Pointer(&ret)) } -func (x gen_NSView) ResizeWithOldSuperviewSize_( - oldSize core.NSSize, +// RegisterForDraggedTypes registers the pasteboard types that the view will accept as the destination of an image-dragging session. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483578-registerfordraggedtypes?language=objc for details. +func (x gen_NSView) RegisterForDraggedTypes( + newTypes core.NSArrayRef, ) { - C.NSView_inst_resizeWithOldSuperviewSize_( + C.NSView_inst_RegisterForDraggedTypes( unsafe.Pointer(x.Pointer()), - *(*C.NSSize)(unsafe.Pointer(&oldSize)), + objc.RefPointer(newTypes), ) + return } -func (x gen_NSView) AddConstraints_( - constraints core.NSArrayRef, -) { - C.NSView_inst_addConstraints_( +// RemoveAllToolTips removes all tooltips assigned to the view. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483801-removealltooltips?language=objc for details. +func (x gen_NSView) RemoveAllToolTips() { + C.NSView_inst_RemoveAllToolTips( unsafe.Pointer(x.Pointer()), - objc.RefPointer(constraints), ) + return } -func (x gen_NSView) RemoveConstraints_( +// RemoveConstraints removes the specified constraints from the view. +// +// See https://developer.apple.com/documentation/appkit/nsview/1526932-removeconstraints?language=objc for details. +func (x gen_NSView) RemoveConstraints( constraints core.NSArrayRef, ) { - C.NSView_inst_removeConstraints_( + C.NSView_inst_RemoveConstraints( unsafe.Pointer(x.Pointer()), objc.RefPointer(constraints), ) + return } -func (x gen_NSView) InvalidateIntrinsicContentSize() { - C.NSView_inst_invalidateIntrinsicContentSize( +// RemoveFromSuperview unlinks the view from its superview and its window, removes it from the responder chain, and invalidates its cursor rectangles. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483265-removefromsuperview?language=objc for details. +func (x gen_NSView) RemoveFromSuperview() { + C.NSView_inst_RemoveFromSuperview( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_NSView) AlignmentRectForFrame_( - frame core.NSRect, -) ( - r0 core.NSRect, -) { - ret := C.NSView_inst_alignmentRectForFrame_( +// RemoveFromSuperviewWithoutNeedingDisplay unlinks the view from its superview and its window and removes it from the responder chain, but does not invalidate its cursor rectangles to cause redrawing. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483644-removefromsuperviewwithoutneedin?language=objc for details. +func (x gen_NSView) RemoveFromSuperviewWithoutNeedingDisplay() { + C.NSView_inst_RemoveFromSuperviewWithoutNeedingDisplay( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&frame)), ) - r0 = *(*core.NSRect)(unsafe.Pointer(&ret)) + return } -func (x gen_NSView) FrameForAlignmentRect_( - alignmentRect core.NSRect, -) ( - r0 core.NSRect, +// ReplaceSubviewWith replaces one of the view’s subviews with another view. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483632-replacesubview?language=objc for details. +func (x gen_NSView) ReplaceSubviewWith( + oldView NSViewRef, + newView NSViewRef, ) { - ret := C.NSView_inst_frameForAlignmentRect_( + C.NSView_inst_ReplaceSubviewWith( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&alignmentRect)), + objc.RefPointer(oldView), + objc.RefPointer(newView), ) - r0 = *(*core.NSRect)(unsafe.Pointer(&ret)) - return -} -func (x gen_NSView) Layout() { - C.NSView_inst_layout( - unsafe.Pointer(x.Pointer()), - ) return } -func (x gen_NSView) LayoutSubtreeIfNeeded() { - C.NSView_inst_layoutSubtreeIfNeeded( +// ResetCursorRects overridden by subclasses to define their default cursor rectangles. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483448-resetcursorrects?language=objc for details. +func (x gen_NSView) ResetCursorRects() { + C.NSView_inst_ResetCursorRects( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_NSView) UpdateConstraints() { - C.NSView_inst_updateConstraints( +// ResizeSubviewsWithOldSize informs the view’s subviews that the view’s bounds rectangle size has changed. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483495-resizesubviewswitholdsize?language=objc for details. +func (x gen_NSView) ResizeSubviewsWithOldSize( + oldSize core.NSSize, +) { + C.NSView_inst_ResizeSubviewsWithOldSize( unsafe.Pointer(x.Pointer()), + *(*C.NSSize)(unsafe.Pointer(&oldSize)), ) + return } -func (x gen_NSView) UpdateConstraintsForSubtreeIfNeeded() { - C.NSView_inst_updateConstraintsForSubtreeIfNeeded( +// ResizeWithOldSuperviewSize informs the view that the bounds size of its superview has changed. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483697-resizewitholdsuperviewsize?language=objc for details. +func (x gen_NSView) ResizeWithOldSuperviewSize( + oldSize core.NSSize, +) { + C.NSView_inst_ResizeWithOldSuperviewSize( unsafe.Pointer(x.Pointer()), + *(*C.NSSize)(unsafe.Pointer(&oldSize)), ) + return } -func (x gen_NSView) ExerciseAmbiguityInLayout() { - C.NSView_inst_exerciseAmbiguityInLayout( +// RotateByAngle rotates the view’s bounds rectangle by a specified degree value around the origin of the coordinate system, (0.0, 0.0). +// +// See https://developer.apple.com/documentation/appkit/nsview/1483444-rotatebyangle?language=objc for details. +func (x gen_NSView) RotateByAngle( + angle core.CGFloat, +) { + C.NSView_inst_RotateByAngle( unsafe.Pointer(x.Pointer()), + C.double(angle), ) + return } -func (x gen_NSView) DrawFocusRingMask() { - C.NSView_inst_drawFocusRingMask( +// ScaleUnitSquareToSize scales the view’s coordinate system so that the unit square scales to the specified dimensions. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483721-scaleunitsquaretosize?language=objc for details. +func (x gen_NSView) ScaleUnitSquareToSize( + newUnitSize core.NSSize, +) { + C.NSView_inst_ScaleUnitSquareToSize( unsafe.Pointer(x.Pointer()), + *(*C.NSSize)(unsafe.Pointer(&newUnitSize)), ) + return } -func (x gen_NSView) NoteFocusRingMaskChanged() { - C.NSView_inst_noteFocusRingMaskChanged( +// ScrollPoint scrolls the view’s closest ancestor nsclipview object so a point in the view lies at the origin of the clip view's bounds rectangle. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483394-scrollpoint?language=objc for details. +func (x gen_NSView) ScrollPoint( + point core.NSPoint, +) { + C.NSView_inst_ScrollPoint( unsafe.Pointer(x.Pointer()), + *(*C.NSPoint)(unsafe.Pointer(&point)), ) + return } -func (x gen_NSView) SetKeyboardFocusRingNeedsDisplayInRect_( +// ScrollRectToVisible scrolls the view’s closest ancestor nsclipview object the minimum distance needed so a specified region of the view becomes visible in the clip view. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483811-scrollrecttovisible?language=objc for details. +func (x gen_NSView) ScrollRectToVisible( rect core.NSRect, -) { - C.NSView_inst_setKeyboardFocusRingNeedsDisplayInRect_( +) bool { + ret := C.NSView_inst_ScrollRectToVisible( unsafe.Pointer(x.Pointer()), *(*C.NSRect)(unsafe.Pointer(&rect)), ) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSView) EnterFullScreenMode_withOptions_( - screen NSScreenRef, - options core.NSDictionaryRef, -) ( - r0 bool, +// SetBoundsOrigin sets the origin of the view’s bounds rectangle to a specified point. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483345-setboundsorigin?language=objc for details. +func (x gen_NSView) SetBoundsOrigin( + newOrigin core.NSPoint, ) { - ret := C.NSView_inst_enterFullScreenMode_withOptions_( + C.NSView_inst_SetBoundsOrigin( unsafe.Pointer(x.Pointer()), - objc.RefPointer(screen), - objc.RefPointer(options), + *(*C.NSPoint)(unsafe.Pointer(&newOrigin)), ) - r0 = convertObjCBoolToGo(ret) + return } -func (x gen_NSView) ExitFullScreenModeWithOptions_( - options core.NSDictionaryRef, +// SetBoundsSize sets the size of the view’s bounds rectangle to specified dimensions, inversely scaling its coordinate system relative to its frame rectangle. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483399-setboundssize?language=objc for details. +func (x gen_NSView) SetBoundsSize( + newSize core.NSSize, ) { - C.NSView_inst_exitFullScreenModeWithOptions_( + C.NSView_inst_SetBoundsSize( unsafe.Pointer(x.Pointer()), - objc.RefPointer(options), + *(*C.NSSize)(unsafe.Pointer(&newSize)), ) + return } -func (x gen_NSView) ViewDidHide() { - C.NSView_inst_viewDidHide( +// SetFrameOrigin sets the origin of the view’s frame rectangle to the specified point, effectively repositioning it within its superview. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483283-setframeorigin?language=objc for details. +func (x gen_NSView) SetFrameOrigin( + newOrigin core.NSPoint, +) { + C.NSView_inst_SetFrameOrigin( unsafe.Pointer(x.Pointer()), + *(*C.NSPoint)(unsafe.Pointer(&newOrigin)), ) + return } -func (x gen_NSView) ViewDidUnhide() { - C.NSView_inst_viewDidUnhide( +// SetFrameSize sets the size of the view’s frame rectangle to the specified dimensions, resizing it within its superview without affecting its coordinate system. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483530-setframesize?language=objc for details. +func (x gen_NSView) SetFrameSize( + newSize core.NSSize, +) { + C.NSView_inst_SetFrameSize( unsafe.Pointer(x.Pointer()), + *(*C.NSSize)(unsafe.Pointer(&newSize)), ) + return } -func (x gen_NSView) ViewWillStartLiveResize() { - C.NSView_inst_viewWillStartLiveResize( +// SetKeyboardFocusRingNeedsDisplayInRect invalidates the area around the focus ring. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483556-setkeyboardfocusringneedsdisplay?language=objc for details. +func (x gen_NSView) SetKeyboardFocusRingNeedsDisplayInRect( + rect core.NSRect, +) { + C.NSView_inst_SetKeyboardFocusRingNeedsDisplayInRect( unsafe.Pointer(x.Pointer()), + *(*C.NSRect)(unsafe.Pointer(&rect)), ) + return } -func (x gen_NSView) ViewDidEndLiveResize() { - C.NSView_inst_viewDidEndLiveResize( +// SetNeedsDisplayInRect marks the region of the view within the specified rectangle as needing display, increasing the view’s existing invalid region to include it. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483475-setneedsdisplayinrect?language=objc for details. +func (x gen_NSView) SetNeedsDisplayInRect( + invalidRect core.NSRect, +) { + C.NSView_inst_SetNeedsDisplayInRect( unsafe.Pointer(x.Pointer()), + *(*C.NSRect)(unsafe.Pointer(&invalidRect)), ) + return } -func (x gen_NSView) AcceptsFirstMouse_( +// ShouldDelayWindowOrderingForEvent allows the user to drag objects from the view without activating the app or moving the window of the view forward, possibly obscuring the destination. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483244-shoulddelaywindoworderingforeven?language=objc for details. +func (x gen_NSView) ShouldDelayWindowOrderingForEvent( event NSEventRef, -) ( - r0 bool, -) { - ret := C.NSView_inst_acceptsFirstMouse_( +) bool { + ret := C.NSView_inst_ShouldDelayWindowOrderingForEvent( unsafe.Pointer(x.Pointer()), objc.RefPointer(event), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSView) HitTest_( - point core.NSPoint, -) ( - r0 NSView, +// ShowDefinitionForAttributedStringAtPoint shows a window displaying the definition of the attributed string at the specified point. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483747-showdefinitionforattributedstrin?language=objc for details. +func (x gen_NSView) ShowDefinitionForAttributedStringAtPoint( + attrString core.NSAttributedStringRef, + textBaselineOrigin core.NSPoint, ) { - ret := C.NSView_inst_hitTest_( + C.NSView_inst_ShowDefinitionForAttributedStringAtPoint( unsafe.Pointer(x.Pointer()), - *(*C.NSPoint)(unsafe.Pointer(&point)), + objc.RefPointer(attrString), + *(*C.NSPoint)(unsafe.Pointer(&textBaselineOrigin)), ) - r0 = NSView_fromPointer(ret) + return } -func (x gen_NSView) Mouse_inRect_( - point core.NSPoint, - rect core.NSRect, -) ( - r0 bool, +// TranslateOriginToPoint translates the view’s coordinate system so that its origin moves to a new location. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483385-translateorigintopoint?language=objc for details. +func (x gen_NSView) TranslateOriginToPoint( + translation core.NSPoint, ) { - ret := C.NSView_inst_mouse_inRect_( + C.NSView_inst_TranslateOriginToPoint( unsafe.Pointer(x.Pointer()), - *(*C.NSPoint)(unsafe.Pointer(&point)), - *(*C.NSRect)(unsafe.Pointer(&rect)), + *(*C.NSPoint)(unsafe.Pointer(&translation)), ) - r0 = convertObjCBoolToGo(ret) + return } -func (x gen_NSView) PerformKeyEquivalent_( - event NSEventRef, -) ( - r0 bool, +// TranslateRectsNeedingDisplayInRectBy translates the display rectangles by the specified delta. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483731-translaterectsneedingdisplayinre?language=objc for details. +func (x gen_NSView) TranslateRectsNeedingDisplayInRectBy( + clipRect core.NSRect, + delta core.NSSize, ) { - ret := C.NSView_inst_performKeyEquivalent_( + C.NSView_inst_TranslateRectsNeedingDisplayInRectBy( unsafe.Pointer(x.Pointer()), - objc.RefPointer(event), + *(*C.NSRect)(unsafe.Pointer(&clipRect)), + *(*C.NSSize)(unsafe.Pointer(&delta)), ) - r0 = convertObjCBoolToGo(ret) + return } -func (x gen_NSView) PrepareContentInRect_( - rect core.NSRect, -) { - C.NSView_inst_prepareContentInRect_( +// UnregisterDraggedTypes unregisters the view as a possible destination in a dragging session. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483602-unregisterdraggedtypes?language=objc for details. +func (x gen_NSView) UnregisterDraggedTypes() { + C.NSView_inst_UnregisterDraggedTypes( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&rect)), ) + return } -func (x gen_NSView) ScrollPoint_( - point core.NSPoint, -) { - C.NSView_inst_scrollPoint_( +// UpdateConstraints update constraints for the view. +// +// See https://developer.apple.com/documentation/appkit/nsview/1526891-updateconstraints?language=objc for details. +func (x gen_NSView) UpdateConstraints() { + C.NSView_inst_UpdateConstraints( unsafe.Pointer(x.Pointer()), - *(*C.NSPoint)(unsafe.Pointer(&point)), ) + return } -func (x gen_NSView) ScrollRectToVisible_( - rect core.NSRect, -) ( - r0 bool, -) { - ret := C.NSView_inst_scrollRectToVisible_( +// UpdateConstraintsForSubtreeIfNeeded updates the constraints for the receiving view and its subviews. +// +// See https://developer.apple.com/documentation/appkit/nsview/1526939-updateconstraintsforsubtreeifnee?language=objc for details. +func (x gen_NSView) UpdateConstraintsForSubtreeIfNeeded() { + C.NSView_inst_UpdateConstraintsForSubtreeIfNeeded( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&rect)), ) - r0 = convertObjCBoolToGo(ret) + return } -func (x gen_NSView) Autoscroll_( - event NSEventRef, -) ( - r0 bool, -) { - ret := C.NSView_inst_autoscroll_( +// UpdateLayer updates the view’s content by modifying its underlying layer. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483580-updatelayer?language=objc for details. +func (x gen_NSView) UpdateLayer() { + C.NSView_inst_UpdateLayer( unsafe.Pointer(x.Pointer()), - objc.RefPointer(event), ) - r0 = convertObjCBoolToGo(ret) + return } -func (x gen_NSView) AdjustScroll_( - newVisible core.NSRect, -) ( - r0 core.NSRect, -) { - ret := C.NSView_inst_adjustScroll_( +// UpdateTrackingAreas invoked automatically when the view’s geometry changes such that its tracking areas need to be recalculated. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483719-updatetrackingareas?language=objc for details. +func (x gen_NSView) UpdateTrackingAreas() { + C.NSView_inst_UpdateTrackingAreas( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&newVisible)), ) - r0 = *(*core.NSRect)(unsafe.Pointer(&ret)) + return } -func (x gen_NSView) RegisterForDraggedTypes_( - newTypes core.NSArrayRef, -) { - C.NSView_inst_registerForDraggedTypes_( +// ViewDidChangeBackingProperties responds when the view’s backing store properties change. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483742-viewdidchangebackingproperties?language=objc for details. +func (x gen_NSView) ViewDidChangeBackingProperties() { + C.NSView_inst_ViewDidChangeBackingProperties( unsafe.Pointer(x.Pointer()), - objc.RefPointer(newTypes), ) + return } -func (x gen_NSView) UnregisterDraggedTypes() { - C.NSView_inst_unregisterDraggedTypes( +// ViewDidChangeEffectiveAppearance +// +// See https://developer.apple.com/documentation/appkit/nsview/2977088-viewdidchangeeffectiveappearance?language=objc for details. +func (x gen_NSView) ViewDidChangeEffectiveAppearance() { + C.NSView_inst_ViewDidChangeEffectiveAppearance( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_NSView) ShouldDelayWindowOrderingForEvent_( - event NSEventRef, -) ( - r0 bool, -) { - ret := C.NSView_inst_shouldDelayWindowOrderingForEvent_( +// ViewDidEndLiveResize informs the view of the end of a live resize—the user has finished resizing the view. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483543-viewdidendliveresize?language=objc for details. +func (x gen_NSView) ViewDidEndLiveResize() { + C.NSView_inst_ViewDidEndLiveResize( unsafe.Pointer(x.Pointer()), - objc.RefPointer(event), ) - r0 = convertObjCBoolToGo(ret) + return } -func (x gen_NSView) RectForSmartMagnificationAtPoint_inRect_( - location core.NSPoint, - visibleRect core.NSRect, -) ( - r0 core.NSRect, -) { - ret := C.NSView_inst_rectForSmartMagnificationAtPoint_inRect_( +// ViewDidHide invoked when the view is hidden, either directly, or in response to an ancestor being hidden. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483596-viewdidhide?language=objc for details. +func (x gen_NSView) ViewDidHide() { + C.NSView_inst_ViewDidHide( unsafe.Pointer(x.Pointer()), - *(*C.NSPoint)(unsafe.Pointer(&location)), - *(*C.NSRect)(unsafe.Pointer(&visibleRect)), ) - r0 = *(*core.NSRect)(unsafe.Pointer(&ret)) + return } -func (x gen_NSView) ViewDidChangeBackingProperties() { - C.NSView_inst_viewDidChangeBackingProperties( +// ViewDidMoveToSuperview informs the view that its superview has changed (possibly to nil). +// +// See https://developer.apple.com/documentation/appkit/nsview/1483568-viewdidmovetosuperview?language=objc for details. +func (x gen_NSView) ViewDidMoveToSuperview() { + C.NSView_inst_ViewDidMoveToSuperview( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_NSView) ViewWithTag_( - tag core.NSInteger, -) ( - r0 NSView, -) { - ret := C.NSView_inst_viewWithTag_( +// ViewDidMoveToWindow informs the view that it has been added to a new view hierarchy. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483329-viewdidmovetowindow?language=objc for details. +func (x gen_NSView) ViewDidMoveToWindow() { + C.NSView_inst_ViewDidMoveToWindow( unsafe.Pointer(x.Pointer()), - C.long(tag), ) - r0 = NSView_fromPointer(ret) + return } -func (x gen_NSView) RemoveAllToolTips() { - C.NSView_inst_removeAllToolTips( +// ViewDidUnhide invoked when the view is unhidden, either directly, or in response to an ancestor being unhidden +// +// See https://developer.apple.com/documentation/appkit/nsview/1483275-viewdidunhide?language=objc for details. +func (x gen_NSView) ViewDidUnhide() { + C.NSView_inst_ViewDidUnhide( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_NSView) UpdateTrackingAreas() { - C.NSView_inst_updateTrackingAreas( +// ViewWillDraw informs the view that it’s required to draw content. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483351-viewwilldraw?language=objc for details. +func (x gen_NSView) ViewWillDraw() { + C.NSView_inst_ViewWillDraw( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_NSView) DiscardCursorRects() { - C.NSView_inst_discardCursorRects( +// ViewWillMoveToSuperview informs the view that its superview is about to change to the specified superview (which may be nil). +// +// See https://developer.apple.com/documentation/appkit/nsview/1483545-viewwillmovetosuperview?language=objc for details. +func (x gen_NSView) ViewWillMoveToSuperview( + newSuperview NSViewRef, +) { + C.NSView_inst_ViewWillMoveToSuperview( unsafe.Pointer(x.Pointer()), + objc.RefPointer(newSuperview), ) + return } -func (x gen_NSView) ResetCursorRects() { - C.NSView_inst_resetCursorRects( +// ViewWillMoveToWindow informs the view that it’s being added to the view hierarchy of the specified window object (which may be nil). +// +// See https://developer.apple.com/documentation/appkit/nsview/1483415-viewwillmovetowindow?language=objc for details. +func (x gen_NSView) ViewWillMoveToWindow( + newWindow NSWindowRef, +) { + C.NSView_inst_ViewWillMoveToWindow( unsafe.Pointer(x.Pointer()), + objc.RefPointer(newWindow), ) + return } -func (x gen_NSView) MenuForEvent_( - event NSEventRef, -) ( - r0 NSMenu, -) { - ret := C.NSView_inst_menuForEvent_( +// ViewWillStartLiveResize informs the view of the start of a live resize—the user has started resizing the view. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483620-viewwillstartliveresize?language=objc for details. +func (x gen_NSView) ViewWillStartLiveResize() { + C.NSView_inst_ViewWillStartLiveResize( unsafe.Pointer(x.Pointer()), - objc.RefPointer(event), ) - r0 = NSMenu_fromPointer(ret) + return } -func (x gen_NSView) WillOpenMenu_withEvent_( - menu NSMenuRef, - event NSEventRef, -) { - C.NSView_inst_willOpenMenu_withEvent_( +// ViewWithTag returns the view’s nearest descendant (including itself) with a specific tag, or nil if no subview has that tag. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483294-viewwithtag?language=objc for details. +func (x gen_NSView) ViewWithTag( + tag core.NSInteger, +) NSView { + ret := C.NSView_inst_ViewWithTag( unsafe.Pointer(x.Pointer()), - objc.RefPointer(menu), - objc.RefPointer(event), + C.long(tag), ) - return + + return NSView_FromPointer(ret) } -func (x gen_NSView) DidCloseMenu_withEvent_( +// WillOpenMenuWithEvent called just before a contextual menu for a view is opened on screen. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483429-willopenmenu?language=objc for details. +func (x gen_NSView) WillOpenMenuWithEvent( menu NSMenuRef, event NSEventRef, ) { - C.NSView_inst_didCloseMenu_withEvent_( + C.NSView_inst_WillOpenMenuWithEvent( unsafe.Pointer(x.Pointer()), objc.RefPointer(menu), objc.RefPointer(event), ) - return -} -func (x gen_NSView) BeginDocument() { - C.NSView_inst_beginDocument( - unsafe.Pointer(x.Pointer()), - ) return } -func (x gen_NSView) EndDocument() { - C.NSView_inst_endDocument( +// WillRemoveSubview overridden by subclasses to perform additional actions before subviews are removed from the view. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483624-willremovesubview?language=objc for details. +func (x gen_NSView) WillRemoveSubview( + subview NSViewRef, +) { + C.NSView_inst_WillRemoveSubview( unsafe.Pointer(x.Pointer()), + objc.RefPointer(subview), ) - return -} -func (x gen_NSView) EndPage() { - C.NSView_inst_endPage( - unsafe.Pointer(x.Pointer()), - ) return } -func (x gen_NSView) ShowDefinitionForAttributedString_atPoint_( - attrString core.NSAttributedStringRef, - textBaselineOrigin core.NSPoint, +// WriteEPSInsideRectToPasteboard writes eps data that draws the region of the view within a specified rectangle onto a pasteboard. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483235-writeepsinsiderect?language=objc for details. +func (x gen_NSView) WriteEPSInsideRectToPasteboard( + rect core.NSRect, + pasteboard NSPasteboardRef, ) { - C.NSView_inst_showDefinitionForAttributedString_atPoint_( + C.NSView_inst_WriteEPSInsideRectToPasteboard( unsafe.Pointer(x.Pointer()), - objc.RefPointer(attrString), - *(*C.NSPoint)(unsafe.Pointer(&textBaselineOrigin)), + *(*C.NSRect)(unsafe.Pointer(&rect)), + objc.RefPointer(pasteboard), ) + return } -func (x gen_NSView) ViewDidChangeEffectiveAppearance() { - C.NSView_inst_viewDidChangeEffectiveAppearance( +// WritePDFInsideRectToPasteboard writes pdf data that draws the region of the view within a specified rectangle onto a pasteboard. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483499-writepdfinsiderect?language=objc for details. +func (x gen_NSView) WritePDFInsideRectToPasteboard( + rect core.NSRect, + pasteboard NSPasteboardRef, +) { + C.NSView_inst_WritePDFInsideRectToPasteboard( unsafe.Pointer(x.Pointer()), + *(*C.NSRect)(unsafe.Pointer(&rect)), + objc.RefPointer(pasteboard), ) + return } -func (x gen_NSView) Init_asNSView() ( - r0 NSView, -) { - ret := C.NSView_inst_init( +// Init +// +// See for details. +func (x gen_NSView) Init_AsNSView() NSView { + ret := C.NSView_inst_Init( unsafe.Pointer(x.Pointer()), ) - r0 = NSView_fromPointer(ret) - return + + return NSView_FromPointer(ret) } -func (x gen_NSView) Superview() ( - r0 NSView, -) { - ret := C.NSView_inst_superview( +// Superview returns the view that is the parent of the current view. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483737-superview?language=objc for details. +func (x gen_NSView) Superview() NSView { + ret := C.NSView_inst_Superview( unsafe.Pointer(x.Pointer()), ) - r0 = NSView_fromPointer(ret) - return + + return NSView_FromPointer(ret) } -func (x gen_NSView) Subviews() ( - r0 core.NSArray, -) { - ret := C.NSView_inst_subviews( +// Subviews returns the array of views embedded in the current view. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483539-subviews?language=objc for details. +func (x gen_NSView) Subviews() core.NSArray { + ret := C.NSView_inst_Subviews( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSArray_fromPointer(ret) - return + + return core.NSArray_FromPointer(ret) } -func (x gen_NSView) SetSubviews_( +// SetSubviews returns the array of views embedded in the current view. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483539-subviews?language=objc for details. +func (x gen_NSView) SetSubviews( value core.NSArrayRef, ) { - C.NSView_inst_setSubviews_( + C.NSView_inst_SetSubviews( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSView) Window() ( - r0 NSWindow, -) { - ret := C.NSView_inst_window( +// Window returns the view’s window object, if it is installed in a window. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483301-window?language=objc for details. +func (x gen_NSView) Window() NSWindow { + ret := C.NSView_inst_Window( unsafe.Pointer(x.Pointer()), ) - r0 = NSWindow_fromPointer(ret) - return + + return NSWindow_FromPointer(ret) } -func (x gen_NSView) OpaqueAncestor() ( - r0 NSView, -) { - ret := C.NSView_inst_opaqueAncestor( +// OpaqueAncestor returns the view’s closest opaque ancestor, which might be the view itself. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483383-opaqueancestor?language=objc for details. +func (x gen_NSView) OpaqueAncestor() NSView { + ret := C.NSView_inst_OpaqueAncestor( unsafe.Pointer(x.Pointer()), ) - r0 = NSView_fromPointer(ret) - return + + return NSView_FromPointer(ret) } -func (x gen_NSView) EnclosingMenuItem() ( - r0 NSMenuItem, -) { - ret := C.NSView_inst_enclosingMenuItem( +// EnclosingMenuItem returns the menu item containing the view or any of its superviews in the view hierarchy. +// +// See https://developer.apple.com/documentation/appkit/nsview/1514865-enclosingmenuitem?language=objc for details. +func (x gen_NSView) EnclosingMenuItem() NSMenuItem { + ret := C.NSView_inst_EnclosingMenuItem( unsafe.Pointer(x.Pointer()), ) - r0 = NSMenuItem_fromPointer(ret) - return + + return NSMenuItem_FromPointer(ret) } -func (x gen_NSView) Frame() ( - r0 core.NSRect, -) { - ret := C.NSView_inst_frame( +// Frame returns the view’s frame rectangle, which defines its position and size in its superview’s coordinate system. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483713-frame?language=objc for details. +func (x gen_NSView) Frame() core.NSRect { + ret := C.NSView_inst_Frame( unsafe.Pointer(x.Pointer()), ) - r0 = *(*core.NSRect)(unsafe.Pointer(&ret)) - return + + return *(*core.NSRect)(unsafe.Pointer(&ret)) } -func (x gen_NSView) SetFrame_( +// SetFrame returns the view’s frame rectangle, which defines its position and size in its superview’s coordinate system. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483713-frame?language=objc for details. +func (x gen_NSView) SetFrame( value core.NSRect, ) { - C.NSView_inst_setFrame_( + C.NSView_inst_SetFrame( unsafe.Pointer(x.Pointer()), *(*C.NSRect)(unsafe.Pointer(&value)), ) + return } -func (x gen_NSView) FrameRotation() ( - r0 core.CGFloat, -) { - ret := C.NSView_inst_frameRotation( +// FrameRotation returns the angle of rotation, measured in degrees, applied to the view’s frame rectangle relative to its superview’s coordinate system. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483412-framerotation?language=objc for details. +func (x gen_NSView) FrameRotation() core.CGFloat { + ret := C.NSView_inst_FrameRotation( unsafe.Pointer(x.Pointer()), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } -func (x gen_NSView) SetFrameRotation_( +// SetFrameRotation returns the angle of rotation, measured in degrees, applied to the view’s frame rectangle relative to its superview’s coordinate system. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483412-framerotation?language=objc for details. +func (x gen_NSView) SetFrameRotation( value core.CGFloat, ) { - C.NSView_inst_setFrameRotation_( + C.NSView_inst_SetFrameRotation( unsafe.Pointer(x.Pointer()), C.double(value), ) + return } -func (x gen_NSView) Bounds() ( - r0 core.NSRect, -) { - ret := C.NSView_inst_bounds( +// Bounds returns the view’s bounds rectangle, which expresses its location and size in its own coordinate system. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483817-bounds?language=objc for details. +func (x gen_NSView) Bounds() core.NSRect { + ret := C.NSView_inst_Bounds( unsafe.Pointer(x.Pointer()), ) - r0 = *(*core.NSRect)(unsafe.Pointer(&ret)) - return + + return *(*core.NSRect)(unsafe.Pointer(&ret)) } -func (x gen_NSView) SetBounds_( +// SetBounds returns the view’s bounds rectangle, which expresses its location and size in its own coordinate system. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483817-bounds?language=objc for details. +func (x gen_NSView) SetBounds( value core.NSRect, ) { - C.NSView_inst_setBounds_( + C.NSView_inst_SetBounds( unsafe.Pointer(x.Pointer()), *(*C.NSRect)(unsafe.Pointer(&value)), ) + return } -func (x gen_NSView) BoundsRotation() ( - r0 core.CGFloat, -) { - ret := C.NSView_inst_boundsRotation( +// BoundsRotation returns the angle of rotation, measured in degrees, applied to the view’s bounds rectangle relative to its frame rectangle. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483746-boundsrotation?language=objc for details. +func (x gen_NSView) BoundsRotation() core.CGFloat { + ret := C.NSView_inst_BoundsRotation( unsafe.Pointer(x.Pointer()), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } -func (x gen_NSView) SetBoundsRotation_( +// SetBoundsRotation returns the angle of rotation, measured in degrees, applied to the view’s bounds rectangle relative to its frame rectangle. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483746-boundsrotation?language=objc for details. +func (x gen_NSView) SetBoundsRotation( value core.CGFloat, ) { - C.NSView_inst_setBoundsRotation_( + C.NSView_inst_SetBoundsRotation( unsafe.Pointer(x.Pointer()), C.double(value), ) + return } -func (x gen_NSView) WantsLayer() ( - r0 bool, -) { - ret := C.NSView_inst_wantsLayer( +// WantsLayer returns a boolean value indicating whether the view uses a layer as its backing store. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483695-wantslayer?language=objc for details. +func (x gen_NSView) WantsLayer() bool { + ret := C.NSView_inst_WantsLayer( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSView) SetWantsLayer_( +// SetWantsLayer returns a boolean value indicating whether the view uses a layer as its backing store. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483695-wantslayer?language=objc for details. +func (x gen_NSView) SetWantsLayer( value bool, ) { - C.NSView_inst_setWantsLayer_( + C.NSView_inst_SetWantsLayer( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSView) WantsUpdateLayer() ( - r0 bool, -) { - ret := C.NSView_inst_wantsUpdateLayer( +// WantsUpdateLayer returns a boolean value indicating which drawing path the view takes when updating its contents. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483461-wantsupdatelayer?language=objc for details. +func (x gen_NSView) WantsUpdateLayer() bool { + ret := C.NSView_inst_WantsUpdateLayer( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSView) Layer() ( - r0 core.CALayer, -) { - ret := C.NSView_inst_layer( +// Layer returns the core animation layer that the view uses as its backing store. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483298-layer?language=objc for details. +func (x gen_NSView) Layer() core.CALayer { + ret := C.NSView_inst_Layer( unsafe.Pointer(x.Pointer()), ) - r0 = core.CALayer_fromPointer(ret) - return + + return core.CALayer_FromPointer(ret) } -func (x gen_NSView) SetLayer_( +// SetLayer returns the core animation layer that the view uses as its backing store. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483298-layer?language=objc for details. +func (x gen_NSView) SetLayer( value core.CALayerRef, ) { - C.NSView_inst_setLayer_( + C.NSView_inst_SetLayer( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSView) CanDrawSubviewsIntoLayer() ( - r0 bool, -) { - ret := C.NSView_inst_canDrawSubviewsIntoLayer( +// CanDrawSubviewsIntoLayer returns a boolean value indicating whether the view incorporates content from its subviews into its own layer. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483347-candrawsubviewsintolayer?language=objc for details. +func (x gen_NSView) CanDrawSubviewsIntoLayer() bool { + ret := C.NSView_inst_CanDrawSubviewsIntoLayer( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSView) SetCanDrawSubviewsIntoLayer_( +// SetCanDrawSubviewsIntoLayer returns a boolean value indicating whether the view incorporates content from its subviews into its own layer. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483347-candrawsubviewsintolayer?language=objc for details. +func (x gen_NSView) SetCanDrawSubviewsIntoLayer( value bool, ) { - C.NSView_inst_setCanDrawSubviewsIntoLayer_( + C.NSView_inst_SetCanDrawSubviewsIntoLayer( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSView) LayerUsesCoreImageFilters() ( - r0 bool, -) { - ret := C.NSView_inst_layerUsesCoreImageFilters( +// LayerUsesCoreImageFilters returns a boolean value indicating whether the view’s layer uses core image filters and needs in-process rendering. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483576-layerusescoreimagefilters?language=objc for details. +func (x gen_NSView) LayerUsesCoreImageFilters() bool { + ret := C.NSView_inst_LayerUsesCoreImageFilters( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSView) SetLayerUsesCoreImageFilters_( +// SetLayerUsesCoreImageFilters returns a boolean value indicating whether the view’s layer uses core image filters and needs in-process rendering. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483576-layerusescoreimagefilters?language=objc for details. +func (x gen_NSView) SetLayerUsesCoreImageFilters( value bool, ) { - C.NSView_inst_setLayerUsesCoreImageFilters_( + C.NSView_inst_SetLayerUsesCoreImageFilters( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSView) AlphaValue() ( - r0 core.CGFloat, -) { - ret := C.NSView_inst_alphaValue( +// AlphaValue returns the opacity of the view. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483560-alphavalue?language=objc for details. +func (x gen_NSView) AlphaValue() core.CGFloat { + ret := C.NSView_inst_AlphaValue( unsafe.Pointer(x.Pointer()), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } -func (x gen_NSView) SetAlphaValue_( +// SetAlphaValue returns the opacity of the view. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483560-alphavalue?language=objc for details. +func (x gen_NSView) SetAlphaValue( value core.CGFloat, ) { - C.NSView_inst_setAlphaValue_( + C.NSView_inst_SetAlphaValue( unsafe.Pointer(x.Pointer()), C.double(value), ) + return } -func (x gen_NSView) FrameCenterRotation() ( - r0 core.CGFloat, -) { - ret := C.NSView_inst_frameCenterRotation( +// FrameCenterRotation returns the rotation angle of the view around the center of its layer. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483367-framecenterrotation?language=objc for details. +func (x gen_NSView) FrameCenterRotation() core.CGFloat { + ret := C.NSView_inst_FrameCenterRotation( unsafe.Pointer(x.Pointer()), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } -func (x gen_NSView) SetFrameCenterRotation_( +// SetFrameCenterRotation returns the rotation angle of the view around the center of its layer. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483367-framecenterrotation?language=objc for details. +func (x gen_NSView) SetFrameCenterRotation( value core.CGFloat, ) { - C.NSView_inst_setFrameCenterRotation_( + C.NSView_inst_SetFrameCenterRotation( unsafe.Pointer(x.Pointer()), C.double(value), ) + return } -func (x gen_NSView) BackgroundFilters() ( - r0 core.NSArray, -) { - ret := C.NSView_inst_backgroundFilters( +// BackgroundFilters an array of core image filters to apply to the view’s background. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483689-backgroundfilters?language=objc for details. +func (x gen_NSView) BackgroundFilters() core.NSArray { + ret := C.NSView_inst_BackgroundFilters( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSArray_fromPointer(ret) - return + + return core.NSArray_FromPointer(ret) } -func (x gen_NSView) SetBackgroundFilters_( +// SetBackgroundFilters an array of core image filters to apply to the view’s background. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483689-backgroundfilters?language=objc for details. +func (x gen_NSView) SetBackgroundFilters( value core.NSArrayRef, ) { - C.NSView_inst_setBackgroundFilters_( + C.NSView_inst_SetBackgroundFilters( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSView) ContentFilters() ( - r0 core.NSArray, -) { - ret := C.NSView_inst_contentFilters( +// ContentFilters an array of core image filters to apply to the contents of the view and its sublayers. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483703-contentfilters?language=objc for details. +func (x gen_NSView) ContentFilters() core.NSArray { + ret := C.NSView_inst_ContentFilters( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSArray_fromPointer(ret) - return + + return core.NSArray_FromPointer(ret) } -func (x gen_NSView) SetContentFilters_( +// SetContentFilters an array of core image filters to apply to the contents of the view and its sublayers. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483703-contentfilters?language=objc for details. +func (x gen_NSView) SetContentFilters( value core.NSArrayRef, ) { - C.NSView_inst_setContentFilters_( + C.NSView_inst_SetContentFilters( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSView) CanDrawConcurrently() ( - r0 bool, -) { - ret := C.NSView_inst_canDrawConcurrently( +// CanDrawConcurrently returns a boolean value indicating whether the view can draw its contents on a background thread. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483425-candrawconcurrently?language=objc for details. +func (x gen_NSView) CanDrawConcurrently() bool { + ret := C.NSView_inst_CanDrawConcurrently( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSView) SetCanDrawConcurrently_( +// SetCanDrawConcurrently returns a boolean value indicating whether the view can draw its contents on a background thread. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483425-candrawconcurrently?language=objc for details. +func (x gen_NSView) SetCanDrawConcurrently( value bool, ) { - C.NSView_inst_setCanDrawConcurrently_( + C.NSView_inst_SetCanDrawConcurrently( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSView) VisibleRect() ( - r0 core.NSRect, -) { - ret := C.NSView_inst_visibleRect( +// VisibleRect returns the portion of the view that is not clipped by its superviews. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483446-visiblerect?language=objc for details. +func (x gen_NSView) VisibleRect() core.NSRect { + ret := C.NSView_inst_VisibleRect( unsafe.Pointer(x.Pointer()), ) - r0 = *(*core.NSRect)(unsafe.Pointer(&ret)) - return + + return *(*core.NSRect)(unsafe.Pointer(&ret)) } -func (x gen_NSView) WantsDefaultClipping() ( - r0 bool, -) { - ret := C.NSView_inst_wantsDefaultClipping( +// WantsDefaultClipping returns a boolean value indicating whether appkit’s default clipping behavior is in effect. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483365-wantsdefaultclipping?language=objc for details. +func (x gen_NSView) WantsDefaultClipping() bool { + ret := C.NSView_inst_WantsDefaultClipping( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSView) PrintJobTitle() ( - r0 core.NSString, -) { - ret := C.NSView_inst_printJobTitle( +// PrintJobTitle returns the view’s print job title. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483753-printjobtitle?language=objc for details. +func (x gen_NSView) PrintJobTitle() core.NSString { + ret := C.NSView_inst_PrintJobTitle( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_NSView) PageHeader() ( - r0 core.NSAttributedString, -) { - ret := C.NSView_inst_pageHeader( +// PageHeader returns a default header string that includes the print job title and date. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483674-pageheader?language=objc for details. +func (x gen_NSView) PageHeader() core.NSAttributedString { + ret := C.NSView_inst_PageHeader( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSAttributedString_fromPointer(ret) - return + + return core.NSAttributedString_FromPointer(ret) } -func (x gen_NSView) PageFooter() ( - r0 core.NSAttributedString, -) { - ret := C.NSView_inst_pageFooter( +// PageFooter returns a default footer string that includes the current page number and page count. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483355-pagefooter?language=objc for details. +func (x gen_NSView) PageFooter() core.NSAttributedString { + ret := C.NSView_inst_PageFooter( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSAttributedString_fromPointer(ret) - return + + return core.NSAttributedString_FromPointer(ret) } -func (x gen_NSView) HeightAdjustLimit() ( - r0 core.CGFloat, -) { - ret := C.NSView_inst_heightAdjustLimit( +// HeightAdjustLimit returns the fraction of the page that can be pushed onto the next page during automatic pagination to prevent items such as lines of text from being divided across pages. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483691-heightadjustlimit?language=objc for details. +func (x gen_NSView) HeightAdjustLimit() core.CGFloat { + ret := C.NSView_inst_HeightAdjustLimit( unsafe.Pointer(x.Pointer()), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } -func (x gen_NSView) WidthAdjustLimit() ( - r0 core.CGFloat, -) { - ret := C.NSView_inst_widthAdjustLimit( +// WidthAdjustLimit returns the fraction of the page that can be pushed onto the next page during automatic pagination to prevent items such as small images or text columns from being divided across pages. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483392-widthadjustlimit?language=objc for details. +func (x gen_NSView) WidthAdjustLimit() core.CGFloat { + ret := C.NSView_inst_WidthAdjustLimit( unsafe.Pointer(x.Pointer()), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } -func (x gen_NSView) NeedsDisplay() ( - r0 bool, -) { - ret := C.NSView_inst_needsDisplay( +// NeedsDisplay returns a boolean value that determines whether the view needs to be redrawn before being displayed. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483360-needsdisplay?language=objc for details. +func (x gen_NSView) NeedsDisplay() bool { + ret := C.NSView_inst_NeedsDisplay( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSView) SetNeedsDisplay_( +// SetNeedsDisplay returns a boolean value that determines whether the view needs to be redrawn before being displayed. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483360-needsdisplay?language=objc for details. +func (x gen_NSView) SetNeedsDisplay( value bool, ) { - C.NSView_inst_setNeedsDisplay_( + C.NSView_inst_SetNeedsDisplay( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSView) IsOpaque() ( - r0 bool, -) { - ret := C.NSView_inst_isOpaque( +// IsOpaque returns a boolean value indicating whether the view fills its frame rectangle with opaque content. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483558-opaque?language=objc for details. +func (x gen_NSView) IsOpaque() bool { + ret := C.NSView_inst_IsOpaque( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSView) IsFlipped() ( - r0 bool, -) { - ret := C.NSView_inst_isFlipped( +// IsFlipped returns a boolean value indicating whether the view uses a flipped coordinate system. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483532-flipped?language=objc for details. +func (x gen_NSView) IsFlipped() bool { + ret := C.NSView_inst_IsFlipped( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSView) IsRotatedFromBase() ( - r0 bool, -) { - ret := C.NSView_inst_isRotatedFromBase( +// IsRotatedFromBase returns a boolean value indicating whether the view or any of its ancestors has ever had a rotation factor applied to its frame or bounds. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483709-rotatedfrombase?language=objc for details. +func (x gen_NSView) IsRotatedFromBase() bool { + ret := C.NSView_inst_IsRotatedFromBase( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSView) IsRotatedOrScaledFromBase() ( - r0 bool, -) { - ret := C.NSView_inst_isRotatedOrScaledFromBase( +// IsRotatedOrScaledFromBase returns a boolean value indicating whether the view or any of its ancestors has ever had a rotation factor applied to its frame or bounds, or has been scaled from the window’s base coordinate system. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483390-rotatedorscaledfrombase?language=objc for details. +func (x gen_NSView) IsRotatedOrScaledFromBase() bool { + ret := C.NSView_inst_IsRotatedOrScaledFromBase( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSView) AutoresizesSubviews() ( - r0 bool, -) { - ret := C.NSView_inst_autoresizesSubviews( +// AutoresizesSubviews returns a boolean value indicating whether the view applies the autoresizing behavior to its subviews when its frame size changes. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483358-autoresizessubviews?language=objc for details. +func (x gen_NSView) AutoresizesSubviews() bool { + ret := C.NSView_inst_AutoresizesSubviews( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSView) SetAutoresizesSubviews_( +// SetAutoresizesSubviews returns a boolean value indicating whether the view applies the autoresizing behavior to its subviews when its frame size changes. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483358-autoresizessubviews?language=objc for details. +func (x gen_NSView) SetAutoresizesSubviews( value bool, ) { - C.NSView_inst_setAutoresizesSubviews_( + C.NSView_inst_SetAutoresizesSubviews( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSView) Constraints() ( - r0 core.NSArray, -) { - ret := C.NSView_inst_constraints( +// Constraints returns the constraints held by the view. +// +// See https://developer.apple.com/documentation/appkit/nsview/1526917-constraints?language=objc for details. +func (x gen_NSView) Constraints() core.NSArray { + ret := C.NSView_inst_Constraints( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSArray_fromPointer(ret) - return + + return core.NSArray_FromPointer(ret) } -func (x gen_NSView) LayoutGuides() ( - r0 core.NSArray, -) { - ret := C.NSView_inst_layoutGuides( +// LayoutGuides returns the array of layout guide objects owned by this view. +// +// See https://developer.apple.com/documentation/appkit/nsview/1534395-layoutguides?language=objc for details. +func (x gen_NSView) LayoutGuides() core.NSArray { + ret := C.NSView_inst_LayoutGuides( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSArray_fromPointer(ret) - return + + return core.NSArray_FromPointer(ret) } -func (x gen_NSView) FittingSize() ( - r0 core.NSSize, -) { - ret := C.NSView_inst_fittingSize( +// FittingSize returns the minimum size of the view that satisfies the constraints it holds. +// +// See https://developer.apple.com/documentation/appkit/nsview/1526904-fittingsize?language=objc for details. +func (x gen_NSView) FittingSize() core.NSSize { + ret := C.NSView_inst_FittingSize( unsafe.Pointer(x.Pointer()), ) - r0 = *(*core.NSSize)(unsafe.Pointer(&ret)) - return + + return *(*core.NSSize)(unsafe.Pointer(&ret)) } -func (x gen_NSView) IntrinsicContentSize() ( - r0 core.NSSize, -) { - ret := C.NSView_inst_intrinsicContentSize( +// IntrinsicContentSize returns the natural size for the receiving view, considering only properties of the view itself. +// +// See https://developer.apple.com/documentation/appkit/nsview/1526996-intrinsiccontentsize?language=objc for details. +func (x gen_NSView) IntrinsicContentSize() core.NSSize { + ret := C.NSView_inst_IntrinsicContentSize( unsafe.Pointer(x.Pointer()), ) - r0 = *(*core.NSSize)(unsafe.Pointer(&ret)) - return + + return *(*core.NSSize)(unsafe.Pointer(&ret)) } -func (x gen_NSView) BaselineOffsetFromBottom() ( - r0 core.CGFloat, -) { - ret := C.NSView_inst_baselineOffsetFromBottom( +// BaselineOffsetFromBottom returns the distance (in points) between the bottom of the view’s alignment rectangle and its baseline. +// +// See https://developer.apple.com/documentation/appkit/nsview/1526949-baselineoffsetfrombottom?language=objc for details. +func (x gen_NSView) BaselineOffsetFromBottom() core.CGFloat { + ret := C.NSView_inst_BaselineOffsetFromBottom( unsafe.Pointer(x.Pointer()), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } -func (x gen_NSView) FirstBaselineOffsetFromTop() ( - r0 core.CGFloat, -) { - ret := C.NSView_inst_firstBaselineOffsetFromTop( +// FirstBaselineOffsetFromTop returns the distance (in points) between the top of the view’s alignment rectangle and its topmost baseline. +// +// See https://developer.apple.com/documentation/appkit/nsview/1526963-firstbaselineoffsetfromtop?language=objc for details. +func (x gen_NSView) FirstBaselineOffsetFromTop() core.CGFloat { + ret := C.NSView_inst_FirstBaselineOffsetFromTop( unsafe.Pointer(x.Pointer()), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } -func (x gen_NSView) LastBaselineOffsetFromBottom() ( - r0 core.CGFloat, -) { - ret := C.NSView_inst_lastBaselineOffsetFromBottom( +// LastBaselineOffsetFromBottom returns the distance (in points) between the bottom of the view’s alignment rectangle and its bottommost baseline. +// +// See https://developer.apple.com/documentation/appkit/nsview/1525942-lastbaselineoffsetfrombottom?language=objc for details. +func (x gen_NSView) LastBaselineOffsetFromBottom() core.CGFloat { + ret := C.NSView_inst_LastBaselineOffsetFromBottom( unsafe.Pointer(x.Pointer()), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } -func (x gen_NSView) NeedsLayout() ( - r0 bool, -) { - ret := C.NSView_inst_needsLayout( +// NeedsLayout returns a boolean value indicating whether the view needs a layout pass before it can be drawn. +// +// See https://developer.apple.com/documentation/appkit/nsview/1526912-needslayout?language=objc for details. +func (x gen_NSView) NeedsLayout() bool { + ret := C.NSView_inst_NeedsLayout( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSView) SetNeedsLayout_( +// SetNeedsLayout returns a boolean value indicating whether the view needs a layout pass before it can be drawn. +// +// See https://developer.apple.com/documentation/appkit/nsview/1526912-needslayout?language=objc for details. +func (x gen_NSView) SetNeedsLayout( value bool, ) { - C.NSView_inst_setNeedsLayout_( + C.NSView_inst_SetNeedsLayout( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSView) NeedsUpdateConstraints() ( - r0 bool, -) { - ret := C.NSView_inst_needsUpdateConstraints( +// NeedsUpdateConstraints returns a boolean value indicating whether the view’s constraints need to be updated. +// +// See https://developer.apple.com/documentation/appkit/nsview/1526856-needsupdateconstraints?language=objc for details. +func (x gen_NSView) NeedsUpdateConstraints() bool { + ret := C.NSView_inst_NeedsUpdateConstraints( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSView) SetNeedsUpdateConstraints_( +// SetNeedsUpdateConstraints returns a boolean value indicating whether the view’s constraints need to be updated. +// +// See https://developer.apple.com/documentation/appkit/nsview/1526856-needsupdateconstraints?language=objc for details. +func (x gen_NSView) SetNeedsUpdateConstraints( value bool, ) { - C.NSView_inst_setNeedsUpdateConstraints_( + C.NSView_inst_SetNeedsUpdateConstraints( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSView) TranslatesAutoresizingMaskIntoConstraints() ( - r0 bool, -) { - ret := C.NSView_inst_translatesAutoresizingMaskIntoConstraints( +// TranslatesAutoresizingMaskIntoConstraints returns a boolean value indicating whether the view’s autoresizing mask is translated into constraints for the constraint-based layout system. +// +// See https://developer.apple.com/documentation/appkit/nsview/1526961-translatesautoresizingmaskintoco?language=objc for details. +func (x gen_NSView) TranslatesAutoresizingMaskIntoConstraints() bool { + ret := C.NSView_inst_TranslatesAutoresizingMaskIntoConstraints( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSView) SetTranslatesAutoresizingMaskIntoConstraints_( +// SetTranslatesAutoresizingMaskIntoConstraints returns a boolean value indicating whether the view’s autoresizing mask is translated into constraints for the constraint-based layout system. +// +// See https://developer.apple.com/documentation/appkit/nsview/1526961-translatesautoresizingmaskintoco?language=objc for details. +func (x gen_NSView) SetTranslatesAutoresizingMaskIntoConstraints( value bool, ) { - C.NSView_inst_setTranslatesAutoresizingMaskIntoConstraints_( + C.NSView_inst_SetTranslatesAutoresizingMaskIntoConstraints( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSView) HasAmbiguousLayout() ( - r0 bool, -) { - ret := C.NSView_inst_hasAmbiguousLayout( +// HasAmbiguousLayout returns a boolean value indicating whether the constraints impacting the layout of the view incompletely specify the location of the view. +// +// See https://developer.apple.com/documentation/appkit/nsview/1526907-hasambiguouslayout?language=objc for details. +func (x gen_NSView) HasAmbiguousLayout() bool { + ret := C.NSView_inst_HasAmbiguousLayout( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSView) FocusRingMaskBounds() ( - r0 core.NSRect, -) { - ret := C.NSView_inst_focusRingMaskBounds( +// FocusRingMaskBounds returns the focus ring mask bounds, specified in the view’s coordinate space. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483287-focusringmaskbounds?language=objc for details. +func (x gen_NSView) FocusRingMaskBounds() core.NSRect { + ret := C.NSView_inst_FocusRingMaskBounds( unsafe.Pointer(x.Pointer()), ) - r0 = *(*core.NSRect)(unsafe.Pointer(&ret)) - return + + return *(*core.NSRect)(unsafe.Pointer(&ret)) } -func (x gen_NSView) AllowsVibrancy() ( - r0 bool, -) { - ret := C.NSView_inst_allowsVibrancy( +// AllowsVibrancy returns a boolean value indicating whether the view ensures it is vibrant on top of other content. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483793-allowsvibrancy?language=objc for details. +func (x gen_NSView) AllowsVibrancy() bool { + ret := C.NSView_inst_AllowsVibrancy( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSView) IsInFullScreenMode() ( - r0 bool, -) { - ret := C.NSView_inst_isInFullScreenMode( +// IsInFullScreenMode returns a boolean value indicating whether the view is in full screen mode. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483337-infullscreenmode?language=objc for details. +func (x gen_NSView) IsInFullScreenMode() bool { + ret := C.NSView_inst_IsInFullScreenMode( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSView) IsHidden() ( - r0 bool, -) { - ret := C.NSView_inst_isHidden( +// IsHidden returns a boolean value indicating whether the view is hidden. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483369-hidden?language=objc for details. +func (x gen_NSView) IsHidden() bool { + ret := C.NSView_inst_IsHidden( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSView) SetHidden_( +// SetHidden returns a boolean value indicating whether the view is hidden. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483369-hidden?language=objc for details. +func (x gen_NSView) SetHidden( value bool, ) { - C.NSView_inst_setHidden_( + C.NSView_inst_SetHidden( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSView) IsHiddenOrHasHiddenAncestor() ( - r0 bool, -) { - ret := C.NSView_inst_isHiddenOrHasHiddenAncestor( +// IsHiddenOrHasHiddenAncestor returns a boolean value indicating whether the view is hidden from sight because it, or one of its ancestors, is marked as hidden. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483473-hiddenorhashiddenancestor?language=objc for details. +func (x gen_NSView) IsHiddenOrHasHiddenAncestor() bool { + ret := C.NSView_inst_IsHiddenOrHasHiddenAncestor( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSView) InLiveResize() ( - r0 bool, -) { - ret := C.NSView_inst_inLiveResize( +// InLiveResize returns a boolean value indicating whether the view is being rendered as part of a live resizing operation. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483267-inliveresize?language=objc for details. +func (x gen_NSView) InLiveResize() bool { + ret := C.NSView_inst_InLiveResize( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSView) PreservesContentDuringLiveResize() ( - r0 bool, -) { - ret := C.NSView_inst_preservesContentDuringLiveResize( +// PreservesContentDuringLiveResize returns a boolean value indicating whether the view optimizes live-resize operations by preserving content that has not moved. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483795-preservescontentduringliveresize?language=objc for details. +func (x gen_NSView) PreservesContentDuringLiveResize() bool { + ret := C.NSView_inst_PreservesContentDuringLiveResize( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSView) RectPreservedDuringLiveResize() ( - r0 core.NSRect, -) { - ret := C.NSView_inst_rectPreservedDuringLiveResize( +// RectPreservedDuringLiveResize returns the rectangle identifying the portion of your view that did not change during a live resize operation. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483528-rectpreservedduringliveresize?language=objc for details. +func (x gen_NSView) RectPreservedDuringLiveResize() core.NSRect { + ret := C.NSView_inst_RectPreservedDuringLiveResize( unsafe.Pointer(x.Pointer()), ) - r0 = *(*core.NSRect)(unsafe.Pointer(&ret)) - return + + return *(*core.NSRect)(unsafe.Pointer(&ret)) } -func (x gen_NSView) GestureRecognizers() ( - r0 core.NSArray, -) { - ret := C.NSView_inst_gestureRecognizers( +// GestureRecognizers returns the gesture recognize objects currently attached to the view. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483658-gesturerecognizers?language=objc for details. +func (x gen_NSView) GestureRecognizers() core.NSArray { + ret := C.NSView_inst_GestureRecognizers( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSArray_fromPointer(ret) - return + + return core.NSArray_FromPointer(ret) } -func (x gen_NSView) SetGestureRecognizers_( +// SetGestureRecognizers returns the gesture recognize objects currently attached to the view. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483658-gesturerecognizers?language=objc for details. +func (x gen_NSView) SetGestureRecognizers( value core.NSArrayRef, ) { - C.NSView_inst_setGestureRecognizers_( + C.NSView_inst_SetGestureRecognizers( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSView) MouseDownCanMoveWindow() ( - r0 bool, -) { - ret := C.NSView_inst_mouseDownCanMoveWindow( +// MouseDownCanMoveWindow returns a boolean value indicating whether the view can pass mouse down events through to its superviews. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483666-mousedowncanmovewindow?language=objc for details. +func (x gen_NSView) MouseDownCanMoveWindow() bool { + ret := C.NSView_inst_MouseDownCanMoveWindow( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSView) WantsRestingTouches() ( - r0 bool, -) { - ret := C.NSView_inst_wantsRestingTouches( +// WantsRestingTouches returns a boolean value indicating whether the view wants resting touches. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483594-wantsrestingtouches?language=objc for details. +func (x gen_NSView) WantsRestingTouches() bool { + ret := C.NSView_inst_WantsRestingTouches( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSView) SetWantsRestingTouches_( +// SetWantsRestingTouches returns a boolean value indicating whether the view wants resting touches. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483594-wantsrestingtouches?language=objc for details. +func (x gen_NSView) SetWantsRestingTouches( value bool, ) { - C.NSView_inst_setWantsRestingTouches_( + C.NSView_inst_SetWantsRestingTouches( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSView) CanBecomeKeyView() ( - r0 bool, -) { - ret := C.NSView_inst_canBecomeKeyView( +// CanBecomeKeyView returns a boolean value indicating whether the view can become key view. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483759-canbecomekeyview?language=objc for details. +func (x gen_NSView) CanBecomeKeyView() bool { + ret := C.NSView_inst_CanBecomeKeyView( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSView) NeedsPanelToBecomeKey() ( - r0 bool, -) { - ret := C.NSView_inst_needsPanelToBecomeKey( +// NeedsPanelToBecomeKey returns a boolean value indicating whether the view needs its panel to become the key window before it can handle keyboard input and navigation. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483512-needspaneltobecomekey?language=objc for details. +func (x gen_NSView) NeedsPanelToBecomeKey() bool { + ret := C.NSView_inst_NeedsPanelToBecomeKey( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSView) NextKeyView() ( - r0 NSView, -) { - ret := C.NSView_inst_nextKeyView( +// NextKeyView returns the view object that follows the current view in the key view loop. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483465-nextkeyview?language=objc for details. +func (x gen_NSView) NextKeyView() NSView { + ret := C.NSView_inst_NextKeyView( unsafe.Pointer(x.Pointer()), ) - r0 = NSView_fromPointer(ret) - return + + return NSView_FromPointer(ret) } -func (x gen_NSView) SetNextKeyView_( +// SetNextKeyView returns the view object that follows the current view in the key view loop. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483465-nextkeyview?language=objc for details. +func (x gen_NSView) SetNextKeyView( value NSViewRef, ) { - C.NSView_inst_setNextKeyView_( + C.NSView_inst_SetNextKeyView( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSView) NextValidKeyView() ( - r0 NSView, -) { - ret := C.NSView_inst_nextValidKeyView( +// NextValidKeyView returns the closest view object in the key view loop that follows the current view in the key view loop and accepts first responder status. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483572-nextvalidkeyview?language=objc for details. +func (x gen_NSView) NextValidKeyView() NSView { + ret := C.NSView_inst_NextValidKeyView( unsafe.Pointer(x.Pointer()), ) - r0 = NSView_fromPointer(ret) - return + + return NSView_FromPointer(ret) } -func (x gen_NSView) PreviousKeyView() ( - r0 NSView, -) { - ret := C.NSView_inst_previousKeyView( +// PreviousKeyView returns the view object preceding the current view in the key view loop. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483646-previouskeyview?language=objc for details. +func (x gen_NSView) PreviousKeyView() NSView { + ret := C.NSView_inst_PreviousKeyView( unsafe.Pointer(x.Pointer()), ) - r0 = NSView_fromPointer(ret) - return + + return NSView_FromPointer(ret) } -func (x gen_NSView) PreviousValidKeyView() ( - r0 NSView, -) { - ret := C.NSView_inst_previousValidKeyView( +// PreviousValidKeyView returns the closest view object in the key view loop that precedes the current view and accepts first responder status. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483371-previousvalidkeyview?language=objc for details. +func (x gen_NSView) PreviousValidKeyView() NSView { + ret := C.NSView_inst_PreviousValidKeyView( unsafe.Pointer(x.Pointer()), ) - r0 = NSView_fromPointer(ret) - return + + return NSView_FromPointer(ret) } -func (x gen_NSView) PreparedContentRect() ( - r0 core.NSRect, -) { - ret := C.NSView_inst_preparedContentRect( +// PreparedContentRect returns the portion of the view that has been rendered and is available for responsive scrolling. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483215-preparedcontentrect?language=objc for details. +func (x gen_NSView) PreparedContentRect() core.NSRect { + ret := C.NSView_inst_PreparedContentRect( unsafe.Pointer(x.Pointer()), ) - r0 = *(*core.NSRect)(unsafe.Pointer(&ret)) - return + + return *(*core.NSRect)(unsafe.Pointer(&ret)) } -func (x gen_NSView) SetPreparedContentRect_( +// SetPreparedContentRect returns the portion of the view that has been rendered and is available for responsive scrolling. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483215-preparedcontentrect?language=objc for details. +func (x gen_NSView) SetPreparedContentRect( value core.NSRect, ) { - C.NSView_inst_setPreparedContentRect_( + C.NSView_inst_SetPreparedContentRect( unsafe.Pointer(x.Pointer()), *(*C.NSRect)(unsafe.Pointer(&value)), ) + return } -func (x gen_NSView) RegisteredDraggedTypes() ( - r0 core.NSArray, -) { - ret := C.NSView_inst_registeredDraggedTypes( +// RegisteredDraggedTypes returns the array of pasteboard drag types that the view can accept. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483564-registereddraggedtypes?language=objc for details. +func (x gen_NSView) RegisteredDraggedTypes() core.NSArray { + ret := C.NSView_inst_RegisteredDraggedTypes( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSArray_fromPointer(ret) - return + + return core.NSArray_FromPointer(ret) } -func (x gen_NSView) PostsFrameChangedNotifications() ( - r0 bool, -) { - ret := C.NSView_inst_postsFrameChangedNotifications( +// PostsFrameChangedNotifications returns a boolean value indicating whether the view posts notifications when its frame rectangle changes. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483524-postsframechangednotifications?language=objc for details. +func (x gen_NSView) PostsFrameChangedNotifications() bool { + ret := C.NSView_inst_PostsFrameChangedNotifications( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSView) SetPostsFrameChangedNotifications_( +// SetPostsFrameChangedNotifications returns a boolean value indicating whether the view posts notifications when its frame rectangle changes. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483524-postsframechangednotifications?language=objc for details. +func (x gen_NSView) SetPostsFrameChangedNotifications( value bool, ) { - C.NSView_inst_setPostsFrameChangedNotifications_( + C.NSView_inst_SetPostsFrameChangedNotifications( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSView) PostsBoundsChangedNotifications() ( - r0 bool, -) { - ret := C.NSView_inst_postsBoundsChangedNotifications( +// PostsBoundsChangedNotifications returns a boolean value indicating whether the view posts notifications when its bounds rectangle changes. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483239-postsboundschangednotifications?language=objc for details. +func (x gen_NSView) PostsBoundsChangedNotifications() bool { + ret := C.NSView_inst_PostsBoundsChangedNotifications( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSView) SetPostsBoundsChangedNotifications_( +// SetPostsBoundsChangedNotifications returns a boolean value indicating whether the view posts notifications when its bounds rectangle changes. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483239-postsboundschangednotifications?language=objc for details. +func (x gen_NSView) SetPostsBoundsChangedNotifications( value bool, ) { - C.NSView_inst_setPostsBoundsChangedNotifications_( + C.NSView_inst_SetPostsBoundsChangedNotifications( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSView) Tag() ( - r0 core.NSInteger, -) { - ret := C.NSView_inst_tag( +// Tag returns the view’s tag, which is an integer that you use to identify the view within your app. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483248-tag?language=objc for details. +func (x gen_NSView) Tag() core.NSInteger { + ret := C.NSView_inst_Tag( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSInteger(ret) - return + + return core.NSInteger(ret) } -func (x gen_NSView) ToolTip() ( - r0 core.NSString, -) { - ret := C.NSView_inst_toolTip( +// ToolTip returns the text for the view’s tooltip. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483541-tooltip?language=objc for details. +func (x gen_NSView) ToolTip() core.NSString { + ret := C.NSView_inst_ToolTip( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_NSView) SetToolTip_( +// SetToolTip returns the text for the view’s tooltip. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483541-tooltip?language=objc for details. +func (x gen_NSView) SetToolTip( value core.NSStringRef, ) { - C.NSView_inst_setToolTip_( + C.NSView_inst_SetToolTip( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSView) TrackingAreas() ( - r0 core.NSArray, -) { - ret := C.NSView_inst_trackingAreas( +// TrackingAreas an array of the view’s tracking areas. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483333-trackingareas?language=objc for details. +func (x gen_NSView) TrackingAreas() core.NSArray { + ret := C.NSView_inst_TrackingAreas( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSArray_fromPointer(ret) - return + + return core.NSArray_FromPointer(ret) } -func (x gen_NSView) IsDrawingFindIndicator() ( - r0 bool, -) { - ret := C.NSView_inst_isDrawingFindIndicator( +// IsDrawingFindIndicator returns a boolean value indicating whether the view or one of its ancestors is being drawn for a find indicator. +// +// See https://developer.apple.com/documentation/appkit/nsview/1483317-drawingfindindicator?language=objc for details. +func (x gen_NSView) IsDrawingFindIndicator() bool { + ret := C.NSView_inst_IsDrawingFindIndicator( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSView) IsHorizontalContentSizeConstraintActive() ( - r0 bool, -) { - ret := C.NSView_inst_isHorizontalContentSizeConstraintActive( +// IsHorizontalContentSizeConstraintActive +// +// See https://developer.apple.com/documentation/appkit/nsview/3353053-horizontalcontentsizeconstrainta?language=objc for details. +func (x gen_NSView) IsHorizontalContentSizeConstraintActive() bool { + ret := C.NSView_inst_IsHorizontalContentSizeConstraintActive( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSView) SetHorizontalContentSizeConstraintActive_( +// SetHorizontalContentSizeConstraintActive +// +// See https://developer.apple.com/documentation/appkit/nsview/3353053-horizontalcontentsizeconstrainta?language=objc for details. +func (x gen_NSView) SetHorizontalContentSizeConstraintActive( value bool, ) { - C.NSView_inst_setHorizontalContentSizeConstraintActive_( + C.NSView_inst_SetHorizontalContentSizeConstraintActive( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSView) IsVerticalContentSizeConstraintActive() ( - r0 bool, -) { - ret := C.NSView_inst_isVerticalContentSizeConstraintActive( +// IsVerticalContentSizeConstraintActive +// +// See https://developer.apple.com/documentation/appkit/nsview/3353054-verticalcontentsizeconstraintact?language=objc for details. +func (x gen_NSView) IsVerticalContentSizeConstraintActive() bool { + ret := C.NSView_inst_IsVerticalContentSizeConstraintActive( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSView) SetVerticalContentSizeConstraintActive_( +// SetVerticalContentSizeConstraintActive +// +// See https://developer.apple.com/documentation/appkit/nsview/3353054-verticalcontentsizeconstraintact?language=objc for details. +func (x gen_NSView) SetVerticalContentSizeConstraintActive( value bool, ) { - C.NSView_inst_setVerticalContentSizeConstraintActive_( + C.NSView_inst_SetVerticalContentSizeConstraintActive( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_NSView) BackgroundColor() ( - r0 NSColor, -) { - ret := C.NSView_inst_backgroundColor( +// BackgroundColor +// +// See for details. +func (x gen_NSView) BackgroundColor() NSColor { + ret := C.NSView_inst_BackgroundColor( unsafe.Pointer(x.Pointer()), ) - r0 = NSColor_fromPointer(ret) - return + + return NSColor_FromPointer(ret) } -func (x gen_NSView) SetBackgroundColor_( +// SetBackgroundColor +// +// See for details. +func (x gen_NSView) SetBackgroundColor( value NSColorRef, ) { - C.NSView_inst_setBackgroundColor_( + C.NSView_inst_SetBackgroundColor( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } diff --git a/core/CALayer.go b/core/CALayer.go index 900a70ae..ad1d1ebd 100644 --- a/core/CALayer.go +++ b/core/CALayer.go @@ -13,9 +13,9 @@ func (l CALayer) CornerRadius() float64 { } func (l CALayer) SetCornerRadius(r float64) { - l.SetCornerRadius_(CGFloat(r)) + l.gen_CALayer.SetCornerRadius(CGFloat(r)) } func (l CALayer) SetContents(o objc.Object) { - l.SetContents_(objc.Object_fromRef(o)) + l.gen_CALayer.SetContents(objc.Object_FromRef(o)) } diff --git a/core/NSArray.go b/core/NSArray.go index 0e1dad37..f9581b1c 100644 --- a/core/NSArray.go +++ b/core/NSArray.go @@ -19,7 +19,7 @@ func NSArray_WithObjects(objs ...objc.Object) NSArray { for i, obj := range objs { objsInterface[i] = obj } - return NSArray_fromRef(objc.Get("NSArray").Send("arrayWithObjects:", objsInterface...)) + return NSArray_FromRef(objc.Get("NSArray").Send("arrayWithObjects:", objsInterface...)) } // Count returns the number of objects in the array. diff --git a/core/NSAttributedString.go b/core/NSAttributedString.go index 04df5b83..112bc04c 100644 --- a/core/NSAttributedString.go +++ b/core/NSAttributedString.go @@ -14,9 +14,9 @@ type NSAttributedString struct { // https://developer.apple.com/documentation/foundation/nsattributedstring/1407481-initwithstring?language=objc func NSAttributedString_FromString(str string) NSAttributedString { nsstr := NSString_FromString(str) - return NSAttributedString_alloc().InitWithString__asNSAttributedString(nsstr) + return NSAttributedString_Alloc().InitWithString_AsNSAttributedString(nsstr) } func NSAttributedString_FromObject(obj objc.Object) NSAttributedString { - return NSAttributedString_fromRef(obj) + return NSAttributedString_FromRef(obj) } diff --git a/core/NSData.go b/core/NSData.go index 203a9317..03afedb7 100644 --- a/core/NSData.go +++ b/core/NSData.go @@ -14,7 +14,7 @@ type NSData struct { func NSData_WithBytes(b []byte, length uint64) NSData { buf := C.CBytes(b) defer C.free(buf) - return NSData_dataWithBytes_length_(buf, NSUInteger(length)) + return NSData_DataWithBytesLength(buf, NSUInteger(length)) } // Length is the number of bytes contained by the data object. diff --git a/core/NSDictionary.go b/core/NSDictionary.go index 42b7ddb7..817a4af1 100644 --- a/core/NSDictionary.go +++ b/core/NSDictionary.go @@ -9,12 +9,12 @@ type NSDictionary struct { } func NSDictionary_New() NSDictionary { - return NSDictionary_alloc().Init_asNSDictionary() + return NSDictionary_Alloc().Init_AsNSDictionary() } func NSDictionary_Init(valueKeys ...interface{}) NSDictionary { - return NSDictionary_fromRef( - NSDictionary_alloc().Send("initWithObjectsAndKeys:", valueKeys...)) + return NSDictionary_FromRef( + NSDictionary_Alloc().Send("initWithObjectsAndKeys:", valueKeys...)) } func (d NSDictionary) ObjectForKey(key objc.Object) objc.Object { diff --git a/core/NSNumber.go b/core/NSNumber.go index c93f30c8..3bc80d0e 100644 --- a/core/NSNumber.go +++ b/core/NSNumber.go @@ -5,9 +5,9 @@ type NSNumber struct { } func NSNumber_WithBool(b bool) NSNumber { - return NSNumber_numberWithBool_(b) + return NSNumber_NumberWithBool(b) } func NSNumber_WithInt(n int32) NSNumber { - return NSNumber_numberWithInt_(n) + return NSNumber_NumberWithInt(n) } diff --git a/core/NSRunLoop.go b/core/NSRunLoop.go index c417beee..868b0658 100644 --- a/core/NSRunLoop.go +++ b/core/NSRunLoop.go @@ -5,9 +5,9 @@ type NSRunLoop struct { } func NSRunLoop_Current() NSRunLoop { - return NSRunLoop_currentRunLoop() + return NSRunLoop_CurrentRunLoop() } func NSRunLoop_Main() NSRunLoop { - return NSRunLoop_mainRunLoop() + return NSRunLoop_MainRunLoop() } diff --git a/core/NSString.go b/core/NSString.go index 1ad0780a..640614bb 100644 --- a/core/NSString.go +++ b/core/NSString.go @@ -30,14 +30,14 @@ func NSString_FromString(s string) NSString { b := []byte(s) c := C.CBytes(b) defer C.free(unsafe.Pointer(c)) - ret := NSString_alloc().InitWithBytes_length_encoding__asNSString(c, NSUInteger(len(b)), NSUTF8StringEncoding) + ret := NSString_Alloc().InitWithBytesLengthEncoding_AsNSString(c, NSUInteger(len(b)), NSUTF8StringEncoding) return ret } func NSString_FromObject(obj objc.Object) NSString { - return NSString_fromRef(obj) + return NSString_FromRef(obj) } func (s NSString) SizeWithAttributes(attrs NSDictionary) NSSize { - return s.gen_NSString.SizeWithAttributes_(attrs) + return s.gen_NSString.SizeWithAttributes(attrs) } diff --git a/core/NSThread.go b/core/NSThread.go index f633ea1f..0fd54cdc 100644 --- a/core/NSThread.go +++ b/core/NSThread.go @@ -3,7 +3,3 @@ package core type NSThread struct { gen_NSThread } - -func NSThread_IsMainThread() bool { - return NSThread_isMainThread() -} diff --git a/core/NSURL.go b/core/NSURL.go index 31ec949d..c594a8e3 100644 --- a/core/NSURL.go +++ b/core/NSURL.go @@ -3,5 +3,5 @@ package core type NSURL struct{ gen_NSURL } func NSURL_Init(url string) NSURL { - return NSURL_URLWithString_(String(url)) + return NSURL_URLWithString(String(url)) } diff --git a/core/NSURLRequest.go b/core/NSURLRequest.go index 537b7baf..d2a469cb 100644 --- a/core/NSURLRequest.go +++ b/core/NSURLRequest.go @@ -5,5 +5,5 @@ type NSURLRequest struct { } func NSURLRequest_Init(url NSURL) NSURLRequest { - return NSURLRequest_requestWithURL_(url) + return NSURLRequest_RequestWithURL(url) } diff --git a/core/core_objc.gen.go b/core/core_objc.gen.go index c7e08de6..27f9c216 100755 --- a/core/core_objc.gen.go +++ b/core/core_objc.gen.go @@ -22,1269 +22,1276 @@ bool core_convertObjCBool(BOOL b) { } -void* CALayer_type_alloc() { +void* CALayer_type_Alloc() { return [CALayer alloc]; } -void* CALayer_type_layer() { +void* CALayer_type_Layer() { return [CALayer layer]; } -BOOL CALayer_type_needsDisplayForKey_(void* key) { +BOOL CALayer_type_NeedsDisplayForKey(void* key) { return [CALayer needsDisplayForKey: key]; } -void* CALayer_type_defaultActionForKey_(void* event) { +void* CALayer_type_DefaultActionForKey(void* event) { return [CALayer defaultActionForKey: event]; } -void* CALayer_type_defaultValueForKey_(void* key) { +void* CALayer_type_DefaultValueForKey(void* key) { return [CALayer defaultValueForKey: key]; } -void* NSArray_type_alloc() { +void* NSArray_type_Alloc() { return [NSArray alloc]; } -void* NSArray_type_array() { +void* NSArray_type_Array() { return [NSArray array]; } -void* NSArray_type_arrayWithArray_(void* array) { +void* NSArray_type_ArrayWithArray(void* array) { return [NSArray arrayWithArray: array]; } -void* NSAttributedString_type_alloc() { +void* NSAttributedString_type_Alloc() { return [NSAttributedString alloc]; } -void* NSAttributedString_type_textTypes() { +void* NSAttributedString_type_TextTypes() { return [NSAttributedString textTypes]; } -void* NSAttributedString_type_textUnfilteredTypes() { +void* NSAttributedString_type_TextUnfilteredTypes() { return [NSAttributedString textUnfilteredTypes]; } -void* NSData_type_alloc() { +void* NSData_type_Alloc() { return [NSData alloc]; } -void* NSData_type_data() { +void* NSData_type_Data() { return [NSData data]; } -void* NSData_type_dataWithBytes_length_(void* bytes, unsigned long length) { +void* NSData_type_DataWithBytesLength(void* bytes, unsigned long length) { return [NSData dataWithBytes: bytes length: length]; } -void* NSData_type_dataWithBytesNoCopy_length_(void* bytes, unsigned long length) { +void* NSData_type_DataWithBytesNoCopyLength(void* bytes, unsigned long length) { return [NSData dataWithBytesNoCopy: bytes length: length]; } -void* NSData_type_dataWithBytesNoCopy_length_freeWhenDone_(void* bytes, unsigned long length, BOOL b) { +void* NSData_type_DataWithBytesNoCopyLengthFreeWhenDone(void* bytes, unsigned long length, BOOL b) { return [NSData dataWithBytesNoCopy: bytes length: length freeWhenDone: b]; } -void* NSData_type_dataWithData_(void* data) { +void* NSData_type_DataWithData(void* data) { return [NSData dataWithData: data]; } -void* NSData_type_dataWithContentsOfFile_(void* path) { +void* NSData_type_DataWithContentsOfFile(void* path) { return [NSData dataWithContentsOfFile: path]; } -void* NSData_type_dataWithContentsOfURL_(void* url) { +void* NSData_type_DataWithContentsOfURL(void* url) { return [NSData dataWithContentsOfURL: url]; } -void* NSDictionary_type_alloc() { +void* NSDictionary_type_Alloc() { return [NSDictionary alloc]; } -void* NSDictionary_type_dictionary() { +void* NSDictionary_type_Dictionary() { return [NSDictionary dictionary]; } -void* NSDictionary_type_dictionaryWithObjects_forKeys_(void* objects, void* keys) { +void* NSDictionary_type_DictionaryWithObjectsForKeys(void* objects, void* keys) { return [NSDictionary dictionaryWithObjects: objects forKeys: keys]; } -void* NSDictionary_type_dictionaryWithDictionary_(void* dict) { +void* NSDictionary_type_DictionaryWithDictionary(void* dict) { return [NSDictionary dictionaryWithDictionary: dict]; } -void* NSDictionary_type_sharedKeySetForKeys_(void* keys) { +void* NSDictionary_type_SharedKeySetForKeys(void* keys) { return [NSDictionary sharedKeySetForKeys: keys]; } -void* NSNumber_type_alloc() { +void* NSNumber_type_Alloc() { return [NSNumber alloc]; } -void* NSNumber_type_numberWithBool_(BOOL value) { +void* NSNumber_type_NumberWithBool(BOOL value) { return [NSNumber numberWithBool: value]; } -void* NSNumber_type_numberWithInt_(int value) { +void* NSNumber_type_NumberWithInt(int value) { return [NSNumber numberWithInt: value]; } -void* NSNumber_type_numberWithInteger_(long value) { +void* NSNumber_type_NumberWithInteger(long value) { return [NSNumber numberWithInteger: value]; } -void* NSNumber_type_numberWithUnsignedInt_(int value) { +void* NSNumber_type_NumberWithUnsignedInt(int value) { return [NSNumber numberWithUnsignedInt: value]; } -void* NSNumber_type_numberWithUnsignedInteger_(unsigned long value) { +void* NSNumber_type_NumberWithUnsignedInteger(unsigned long value) { return [NSNumber numberWithUnsignedInteger: value]; } -void* NSRunLoop_type_alloc() { +void* NSRunLoop_type_Alloc() { return [NSRunLoop alloc]; } -void* NSRunLoop_type_currentRunLoop() { +void* NSRunLoop_type_CurrentRunLoop() { return [NSRunLoop currentRunLoop]; } -void* NSRunLoop_type_mainRunLoop() { +void* NSRunLoop_type_MainRunLoop() { return [NSRunLoop mainRunLoop]; } -void* NSString_type_alloc() { +void* NSString_type_Alloc() { return [NSString alloc]; } -void* NSString_type_string() { +void* NSString_type_String() { return [NSString string]; } -void* NSString_type_localizedUserNotificationStringForKey_arguments_(void* key, void* arguments) { +void* NSString_type_LocalizedUserNotificationStringForKeyArguments(void* key, void* arguments) { return [NSString localizedUserNotificationStringForKey: key arguments: arguments]; } -void* NSString_type_stringWithString_(void* string) { +void* NSString_type_StringWithString(void* string) { return [NSString stringWithString: string]; } -void* NSString_type_localizedNameOfStringEncoding_(unsigned long encoding) { +void* NSString_type_LocalizedNameOfStringEncoding(unsigned long encoding) { return [NSString localizedNameOfStringEncoding: encoding]; } -void* NSString_type_pathWithComponents_(void* components) { +void* NSString_type_PathWithComponents(void* components) { return [NSString pathWithComponents: components]; } -unsigned long NSString_type_defaultCStringEncoding() { +unsigned long NSString_type_DefaultCStringEncoding() { return [NSString defaultCStringEncoding]; } -void* NSThread_type_alloc() { +void* NSThread_type_Alloc() { return [NSThread alloc]; } -void NSThread_type_detachNewThreadSelector_toTarget_withObject_(void* selector, void* target, void* argument) { +void NSThread_type_DetachNewThreadSelectorToTargetWithObject(void* selector, void* target, void* argument) { [NSThread detachNewThreadSelector: selector toTarget: target withObject: argument]; } -void NSThread_type_exit() { +void NSThread_type_Exit() { [NSThread exit]; } -BOOL NSThread_type_isMultiThreaded() { +BOOL NSThread_type_IsMultiThreaded() { return [NSThread isMultiThreaded]; } -BOOL NSThread_type_isMainThread() { +BOOL NSThread_type_IsMainThread() { return [NSThread isMainThread]; } -void* NSThread_type_mainThread() { +void* NSThread_type_MainThread() { return [NSThread mainThread]; } -void* NSThread_type_currentThread() { +void* NSThread_type_CurrentThread() { return [NSThread currentThread]; } -void* NSThread_type_callStackReturnAddresses() { +void* NSThread_type_CallStackReturnAddresses() { return [NSThread callStackReturnAddresses]; } -void* NSThread_type_callStackSymbols() { +void* NSThread_type_CallStackSymbols() { return [NSThread callStackSymbols]; } -void* NSURL_type_alloc() { +void* NSURL_type_Alloc() { return [NSURL alloc]; } -void* NSURL_type_URLWithString_(void* URLString) { +void* NSURL_type_URLWithString(void* URLString) { return [NSURL URLWithString: URLString]; } -void* NSURL_type_URLWithString_relativeToURL_(void* URLString, void* baseURL) { +void* NSURL_type_URLWithStringRelativeToURL(void* URLString, void* baseURL) { return [NSURL URLWithString: URLString relativeToURL: baseURL]; } -void* NSURL_type_fileURLWithPath_isDirectory_(void* path, BOOL isDir) { +void* NSURL_type_FileURLWithPathIsDirectory(void* path, BOOL isDir) { return [NSURL fileURLWithPath: path isDirectory: isDir]; } -void* NSURL_type_fileURLWithPath_relativeToURL_(void* path, void* baseURL) { +void* NSURL_type_FileURLWithPathRelativeToURL(void* path, void* baseURL) { return [NSURL fileURLWithPath: path relativeToURL: baseURL]; } -void* NSURL_type_fileURLWithPath_isDirectory_relativeToURL_(void* path, BOOL isDir, void* baseURL) { +void* NSURL_type_FileURLWithPathIsDirectoryRelativeToURL(void* path, BOOL isDir, void* baseURL) { return [NSURL fileURLWithPath: path isDirectory: isDir relativeToURL: baseURL]; } -void* NSURL_type_fileURLWithPath_(void* path) { +void* NSURL_type_FileURLWithPath(void* path) { return [NSURL fileURLWithPath: path]; } -void* NSURL_type_fileURLWithPathComponents_(void* components) { +void* NSURL_type_FileURLWithPathComponents(void* components) { return [NSURL fileURLWithPathComponents: components]; } -void* NSURL_type_absoluteURLWithDataRepresentation_relativeToURL_(void* data, void* baseURL) { +void* NSURL_type_AbsoluteURLWithDataRepresentationRelativeToURL(void* data, void* baseURL) { return [NSURL absoluteURLWithDataRepresentation: data relativeToURL: baseURL]; } -void* NSURL_type_URLWithDataRepresentation_relativeToURL_(void* data, void* baseURL) { +void* NSURL_type_URLWithDataRepresentationRelativeToURL(void* data, void* baseURL) { return [NSURL URLWithDataRepresentation: data relativeToURL: baseURL]; } -void* NSURL_type_resourceValuesForKeys_fromBookmarkData_(void* keys, void* bookmarkData) { +void* NSURL_type_ResourceValuesForKeysFromBookmarkData(void* keys, void* bookmarkData) { return [NSURL resourceValuesForKeys: keys fromBookmarkData: bookmarkData]; } -void* NSURLRequest_type_alloc() { +void* NSURLRequest_type_Alloc() { return [NSURLRequest alloc]; } -void* NSURLRequest_type_requestWithURL_(void* URL) { +void* NSURLRequest_type_RequestWithURL(void* URL) { return [NSURLRequest requestWithURL: URL]; } -BOOL NSURLRequest_type_supportsSecureCoding() { +BOOL NSURLRequest_type_SupportsSecureCoding() { return [NSURLRequest supportsSecureCoding]; } -void* NSUserDefaults_type_alloc() { +void* NSUserDefaults_type_Alloc() { return [NSUserDefaults alloc]; } -void NSUserDefaults_type_resetStandardUserDefaults() { +void NSUserDefaults_type_ResetStandardUserDefaults() { [NSUserDefaults resetStandardUserDefaults]; } -void* NSUserDefaults_type_standardUserDefaults() { +void* NSUserDefaults_type_StandardUserDefaults() { return [NSUserDefaults standardUserDefaults]; } -void* CALayer_inst_init(void *id) { +void* CALayer_inst_ActionForKey(void *id, void* event) { return [(CALayer*)id - init]; + actionForKey: event]; } -void* CALayer_inst_initWithLayer_(void *id, void* layer) { - return [(CALayer*)id - initWithLayer: layer]; +void CALayer_inst_AddSublayer(void *id, void* layer) { + [(CALayer*)id + addSublayer: layer]; } -void* CALayer_inst_presentationLayer(void *id) { +void* CALayer_inst_AnimationKeys(void *id) { return [(CALayer*)id - presentationLayer]; + animationKeys]; } -void* CALayer_inst_modelLayer(void *id) { +BOOL CALayer_inst_ContentsAreFlipped(void *id) { return [(CALayer*)id - modelLayer]; + contentsAreFlipped]; } -void CALayer_inst_display(void *id) { - [(CALayer*)id - display]; +NSRect CALayer_inst_ConvertRectFromLayer(void *id, NSRect r, void* l) { + return [(CALayer*)id + convertRect: r + fromLayer: l]; } -BOOL CALayer_inst_contentsAreFlipped(void *id) { +NSRect CALayer_inst_ConvertRectToLayer(void *id, NSRect r, void* l) { return [(CALayer*)id - contentsAreFlipped]; + convertRect: r + toLayer: l]; } -void CALayer_inst_addSublayer_(void *id, void* layer) { +void CALayer_inst_Display(void *id) { [(CALayer*)id - addSublayer: layer]; + display]; } -void CALayer_inst_removeFromSuperlayer(void *id) { +void CALayer_inst_DisplayIfNeeded(void *id) { [(CALayer*)id - removeFromSuperlayer]; + displayIfNeeded]; } -void CALayer_inst_insertSublayer_atIndex_(void *id, void* layer, int idx) { - [(CALayer*)id - insertSublayer: layer - atIndex: idx]; +void* CALayer_inst_Init(void *id) { + return [(CALayer*)id + init]; } -void CALayer_inst_insertSublayer_below_(void *id, void* layer, void* sibling) { - [(CALayer*)id - insertSublayer: layer - below: sibling]; +void* CALayer_inst_InitWithLayer(void *id, void* layer) { + return [(CALayer*)id + initWithLayer: layer]; } -void CALayer_inst_insertSublayer_above_(void *id, void* layer, void* sibling) { +void CALayer_inst_InsertSublayerAbove(void *id, void* layer, void* sibling) { [(CALayer*)id insertSublayer: layer above: sibling]; } -void CALayer_inst_replaceSublayer_with_(void *id, void* oldLayer, void* newLayer) { +void CALayer_inst_InsertSublayerAtIndex(void *id, void* layer, int idx) { [(CALayer*)id - replaceSublayer: oldLayer - with: newLayer]; + insertSublayer: layer + atIndex: idx]; } -void CALayer_inst_setNeedsDisplay(void *id) { +void CALayer_inst_InsertSublayerBelow(void *id, void* layer, void* sibling) { [(CALayer*)id - setNeedsDisplay]; + insertSublayer: layer + below: sibling]; } -void CALayer_inst_setNeedsDisplayInRect_(void *id, NSRect r) { +void CALayer_inst_LayoutIfNeeded(void *id) { [(CALayer*)id - setNeedsDisplayInRect: r]; + layoutIfNeeded]; } -void CALayer_inst_displayIfNeeded(void *id) { +void CALayer_inst_LayoutSublayers(void *id) { [(CALayer*)id - displayIfNeeded]; + layoutSublayers]; } -BOOL CALayer_inst_needsDisplay(void *id) { +void* CALayer_inst_ModelLayer(void *id) { return [(CALayer*)id - needsDisplay]; + modelLayer]; } -void CALayer_inst_removeAllAnimations(void *id) { - [(CALayer*)id - removeAllAnimations]; +BOOL CALayer_inst_NeedsDisplay(void *id) { + return [(CALayer*)id + needsDisplay]; } -void CALayer_inst_removeAnimationForKey_(void *id, void* key) { - [(CALayer*)id - removeAnimationForKey: key]; +BOOL CALayer_inst_NeedsLayout(void *id) { + return [(CALayer*)id + needsLayout]; } -void* CALayer_inst_animationKeys(void *id) { +NSSize CALayer_inst_PreferredFrameSize(void *id) { return [(CALayer*)id - animationKeys]; + preferredFrameSize]; } -void CALayer_inst_setNeedsLayout(void *id) { - [(CALayer*)id - setNeedsLayout]; +void* CALayer_inst_PresentationLayer(void *id) { + return [(CALayer*)id + presentationLayer]; } -void CALayer_inst_layoutSublayers(void *id) { +void CALayer_inst_RemoveAllAnimations(void *id) { [(CALayer*)id - layoutSublayers]; + removeAllAnimations]; } -void CALayer_inst_layoutIfNeeded(void *id) { +void CALayer_inst_RemoveAnimationForKey(void *id, void* key) { [(CALayer*)id - layoutIfNeeded]; + removeAnimationForKey: key]; } -BOOL CALayer_inst_needsLayout(void *id) { - return [(CALayer*)id - needsLayout]; +void CALayer_inst_RemoveFromSuperlayer(void *id) { + [(CALayer*)id + removeFromSuperlayer]; } -void CALayer_inst_resizeWithOldSuperlayerSize_(void *id, NSSize size) { +void CALayer_inst_ReplaceSublayerWith(void *id, void* oldLayer, void* newLayer) { [(CALayer*)id - resizeWithOldSuperlayerSize: size]; + replaceSublayer: oldLayer + with: newLayer]; } -void CALayer_inst_resizeSublayersWithOldSize_(void *id, NSSize size) { +void CALayer_inst_ResizeSublayersWithOldSize(void *id, NSSize size) { [(CALayer*)id resizeSublayersWithOldSize: size]; } -NSSize CALayer_inst_preferredFrameSize(void *id) { - return [(CALayer*)id - preferredFrameSize]; +void CALayer_inst_ResizeWithOldSuperlayerSize(void *id, NSSize size) { + [(CALayer*)id + resizeWithOldSuperlayerSize: size]; } -void* CALayer_inst_actionForKey_(void *id, void* event) { - return [(CALayer*)id - actionForKey: event]; +void CALayer_inst_ScrollRectToVisible(void *id, NSRect r) { + [(CALayer*)id + scrollRectToVisible: r]; } -NSRect CALayer_inst_convertRect_fromLayer_(void *id, NSRect r, void* l) { - return [(CALayer*)id - convertRect: r - fromLayer: l]; +void CALayer_inst_SetNeedsDisplay(void *id) { + [(CALayer*)id + setNeedsDisplay]; } -NSRect CALayer_inst_convertRect_toLayer_(void *id, NSRect r, void* l) { - return [(CALayer*)id - convertRect: r - toLayer: l]; +void CALayer_inst_SetNeedsDisplayInRect(void *id, NSRect r) { + [(CALayer*)id + setNeedsDisplayInRect: r]; } -void CALayer_inst_scrollRectToVisible_(void *id, NSRect r) { +void CALayer_inst_SetNeedsLayout(void *id) { [(CALayer*)id - scrollRectToVisible: r]; + setNeedsLayout]; } -BOOL CALayer_inst_shouldArchiveValueForKey_(void *id, void* key) { +BOOL CALayer_inst_ShouldArchiveValueForKey(void *id, void* key) { return [(CALayer*)id shouldArchiveValueForKey: key]; } -void* CALayer_inst_delegate(void *id) { +void* CALayer_inst_Delegate(void *id) { return [(CALayer*)id delegate]; } -void CALayer_inst_setDelegate_(void *id, void* value) { +void CALayer_inst_SetDelegate(void *id, void* value) { [(CALayer*)id setDelegate: value]; } -void* CALayer_inst_contents(void *id) { +void* CALayer_inst_Contents(void *id) { return [(CALayer*)id contents]; } -void CALayer_inst_setContents_(void *id, void* value) { +void CALayer_inst_SetContents(void *id, void* value) { [(CALayer*)id setContents: value]; } -NSRect CALayer_inst_contentsRect(void *id) { +NSRect CALayer_inst_ContentsRect(void *id) { return [(CALayer*)id contentsRect]; } -void CALayer_inst_setContentsRect_(void *id, NSRect value) { +void CALayer_inst_SetContentsRect(void *id, NSRect value) { [(CALayer*)id setContentsRect: value]; } -NSRect CALayer_inst_contentsCenter(void *id) { +NSRect CALayer_inst_ContentsCenter(void *id) { return [(CALayer*)id contentsCenter]; } -void CALayer_inst_setContentsCenter_(void *id, NSRect value) { +void CALayer_inst_SetContentsCenter(void *id, NSRect value) { [(CALayer*)id setContentsCenter: value]; } -BOOL CALayer_inst_isHidden(void *id) { +BOOL CALayer_inst_IsHidden(void *id) { return [(CALayer*)id isHidden]; } -void CALayer_inst_setHidden_(void *id, BOOL value) { +void CALayer_inst_SetHidden(void *id, BOOL value) { [(CALayer*)id setHidden: value]; } -BOOL CALayer_inst_masksToBounds(void *id) { +BOOL CALayer_inst_MasksToBounds(void *id) { return [(CALayer*)id masksToBounds]; } -void CALayer_inst_setMasksToBounds_(void *id, BOOL value) { +void CALayer_inst_SetMasksToBounds(void *id, BOOL value) { [(CALayer*)id setMasksToBounds: value]; } -void* CALayer_inst_mask(void *id) { +void* CALayer_inst_Mask(void *id) { return [(CALayer*)id mask]; } -void CALayer_inst_setMask_(void *id, void* value) { +void CALayer_inst_SetMask(void *id, void* value) { [(CALayer*)id setMask: value]; } -BOOL CALayer_inst_isDoubleSided(void *id) { +BOOL CALayer_inst_IsDoubleSided(void *id) { return [(CALayer*)id isDoubleSided]; } -void CALayer_inst_setDoubleSided_(void *id, BOOL value) { +void CALayer_inst_SetDoubleSided(void *id, BOOL value) { [(CALayer*)id setDoubleSided: value]; } -double CALayer_inst_cornerRadius(void *id) { +double CALayer_inst_CornerRadius(void *id) { return [(CALayer*)id cornerRadius]; } -void CALayer_inst_setCornerRadius_(void *id, double value) { +void CALayer_inst_SetCornerRadius(void *id, double value) { [(CALayer*)id setCornerRadius: value]; } -double CALayer_inst_borderWidth(void *id) { +double CALayer_inst_BorderWidth(void *id) { return [(CALayer*)id borderWidth]; } -void CALayer_inst_setBorderWidth_(void *id, double value) { +void CALayer_inst_SetBorderWidth(void *id, double value) { [(CALayer*)id setBorderWidth: value]; } -double CALayer_inst_shadowRadius(void *id) { +double CALayer_inst_ShadowRadius(void *id) { return [(CALayer*)id shadowRadius]; } -void CALayer_inst_setShadowRadius_(void *id, double value) { +void CALayer_inst_SetShadowRadius(void *id, double value) { [(CALayer*)id setShadowRadius: value]; } -NSSize CALayer_inst_shadowOffset(void *id) { +NSSize CALayer_inst_ShadowOffset(void *id) { return [(CALayer*)id shadowOffset]; } -void CALayer_inst_setShadowOffset_(void *id, NSSize value) { +void CALayer_inst_SetShadowOffset(void *id, NSSize value) { [(CALayer*)id setShadowOffset: value]; } -void* CALayer_inst_style(void *id) { +void* CALayer_inst_Style(void *id) { return [(CALayer*)id style]; } -void CALayer_inst_setStyle_(void *id, void* value) { +void CALayer_inst_SetStyle(void *id, void* value) { [(CALayer*)id setStyle: value]; } -BOOL CALayer_inst_allowsEdgeAntialiasing(void *id) { +BOOL CALayer_inst_AllowsEdgeAntialiasing(void *id) { return [(CALayer*)id allowsEdgeAntialiasing]; } -void CALayer_inst_setAllowsEdgeAntialiasing_(void *id, BOOL value) { +void CALayer_inst_SetAllowsEdgeAntialiasing(void *id, BOOL value) { [(CALayer*)id setAllowsEdgeAntialiasing: value]; } -BOOL CALayer_inst_allowsGroupOpacity(void *id) { +BOOL CALayer_inst_AllowsGroupOpacity(void *id) { return [(CALayer*)id allowsGroupOpacity]; } -void CALayer_inst_setAllowsGroupOpacity_(void *id, BOOL value) { +void CALayer_inst_SetAllowsGroupOpacity(void *id, BOOL value) { [(CALayer*)id setAllowsGroupOpacity: value]; } -void* CALayer_inst_filters(void *id) { +void* CALayer_inst_Filters(void *id) { return [(CALayer*)id filters]; } -void CALayer_inst_setFilters_(void *id, void* value) { +void CALayer_inst_SetFilters(void *id, void* value) { [(CALayer*)id setFilters: value]; } -void* CALayer_inst_compositingFilter(void *id) { +void* CALayer_inst_CompositingFilter(void *id) { return [(CALayer*)id compositingFilter]; } -void CALayer_inst_setCompositingFilter_(void *id, void* value) { +void CALayer_inst_SetCompositingFilter(void *id, void* value) { [(CALayer*)id setCompositingFilter: value]; } -void* CALayer_inst_backgroundFilters(void *id) { +void* CALayer_inst_BackgroundFilters(void *id) { return [(CALayer*)id backgroundFilters]; } -void CALayer_inst_setBackgroundFilters_(void *id, void* value) { +void CALayer_inst_SetBackgroundFilters(void *id, void* value) { [(CALayer*)id setBackgroundFilters: value]; } -BOOL CALayer_inst_isOpaque(void *id) { +BOOL CALayer_inst_IsOpaque(void *id) { return [(CALayer*)id isOpaque]; } -void CALayer_inst_setOpaque_(void *id, BOOL value) { +void CALayer_inst_SetOpaque(void *id, BOOL value) { [(CALayer*)id setOpaque: value]; } -BOOL CALayer_inst_isGeometryFlipped(void *id) { +BOOL CALayer_inst_IsGeometryFlipped(void *id) { return [(CALayer*)id isGeometryFlipped]; } -void CALayer_inst_setGeometryFlipped_(void *id, BOOL value) { +void CALayer_inst_SetGeometryFlipped(void *id, BOOL value) { [(CALayer*)id setGeometryFlipped: value]; } -BOOL CALayer_inst_drawsAsynchronously(void *id) { +BOOL CALayer_inst_DrawsAsynchronously(void *id) { return [(CALayer*)id drawsAsynchronously]; } -void CALayer_inst_setDrawsAsynchronously_(void *id, BOOL value) { +void CALayer_inst_SetDrawsAsynchronously(void *id, BOOL value) { [(CALayer*)id setDrawsAsynchronously: value]; } -BOOL CALayer_inst_shouldRasterize(void *id) { +BOOL CALayer_inst_ShouldRasterize(void *id) { return [(CALayer*)id shouldRasterize]; } -void CALayer_inst_setShouldRasterize_(void *id, BOOL value) { +void CALayer_inst_SetShouldRasterize(void *id, BOOL value) { [(CALayer*)id setShouldRasterize: value]; } -double CALayer_inst_rasterizationScale(void *id) { +double CALayer_inst_RasterizationScale(void *id) { return [(CALayer*)id rasterizationScale]; } -void CALayer_inst_setRasterizationScale_(void *id, double value) { +void CALayer_inst_SetRasterizationScale(void *id, double value) { [(CALayer*)id setRasterizationScale: value]; } -NSRect CALayer_inst_frame(void *id) { +NSRect CALayer_inst_Frame(void *id) { return [(CALayer*)id frame]; } -void CALayer_inst_setFrame_(void *id, NSRect value) { +void CALayer_inst_SetFrame(void *id, NSRect value) { [(CALayer*)id setFrame: value]; } -NSRect CALayer_inst_bounds(void *id) { +NSRect CALayer_inst_Bounds(void *id) { return [(CALayer*)id bounds]; } -void CALayer_inst_setBounds_(void *id, NSRect value) { +void CALayer_inst_SetBounds(void *id, NSRect value) { [(CALayer*)id setBounds: value]; } -double CALayer_inst_zPosition(void *id) { +double CALayer_inst_ZPosition(void *id) { return [(CALayer*)id zPosition]; } -void CALayer_inst_setZPosition_(void *id, double value) { +void CALayer_inst_SetZPosition(void *id, double value) { [(CALayer*)id setZPosition: value]; } -double CALayer_inst_anchorPointZ(void *id) { +double CALayer_inst_AnchorPointZ(void *id) { return [(CALayer*)id anchorPointZ]; } -void CALayer_inst_setAnchorPointZ_(void *id, double value) { +void CALayer_inst_SetAnchorPointZ(void *id, double value) { [(CALayer*)id setAnchorPointZ: value]; } -double CALayer_inst_contentsScale(void *id) { +double CALayer_inst_ContentsScale(void *id) { return [(CALayer*)id contentsScale]; } -void CALayer_inst_setContentsScale_(void *id, double value) { +void CALayer_inst_SetContentsScale(void *id, double value) { [(CALayer*)id setContentsScale: value]; } -void* CALayer_inst_sublayers(void *id) { +void* CALayer_inst_Sublayers(void *id) { return [(CALayer*)id sublayers]; } -void CALayer_inst_setSublayers_(void *id, void* value) { +void CALayer_inst_SetSublayers(void *id, void* value) { [(CALayer*)id setSublayers: value]; } -void* CALayer_inst_superlayer(void *id) { +void* CALayer_inst_Superlayer(void *id) { return [(CALayer*)id superlayer]; } -BOOL CALayer_inst_needsDisplayOnBoundsChange(void *id) { +BOOL CALayer_inst_NeedsDisplayOnBoundsChange(void *id) { return [(CALayer*)id needsDisplayOnBoundsChange]; } -void CALayer_inst_setNeedsDisplayOnBoundsChange_(void *id, BOOL value) { +void CALayer_inst_SetNeedsDisplayOnBoundsChange(void *id, BOOL value) { [(CALayer*)id setNeedsDisplayOnBoundsChange: value]; } -void* CALayer_inst_layoutManager(void *id) { +void* CALayer_inst_LayoutManager(void *id) { return [(CALayer*)id layoutManager]; } -void CALayer_inst_setLayoutManager_(void *id, void* value) { +void CALayer_inst_SetLayoutManager(void *id, void* value) { [(CALayer*)id setLayoutManager: value]; } -void* CALayer_inst_constraints(void *id) { +void* CALayer_inst_Constraints(void *id) { return [(CALayer*)id constraints]; } -void CALayer_inst_setConstraints_(void *id, void* value) { +void CALayer_inst_SetConstraints(void *id, void* value) { [(CALayer*)id setConstraints: value]; } -void* CALayer_inst_actions(void *id) { +void* CALayer_inst_Actions(void *id) { return [(CALayer*)id actions]; } -void CALayer_inst_setActions_(void *id, void* value) { +void CALayer_inst_SetActions(void *id, void* value) { [(CALayer*)id setActions: value]; } -NSRect CALayer_inst_visibleRect(void *id) { +NSRect CALayer_inst_VisibleRect(void *id) { return [(CALayer*)id visibleRect]; } -void* CALayer_inst_name(void *id) { +void* CALayer_inst_Name(void *id) { return [(CALayer*)id name]; } -void CALayer_inst_setName_(void *id, void* value) { +void CALayer_inst_SetName(void *id, void* value) { [(CALayer*)id setName: value]; } -void* NSArray_inst_init(void *id) { +void* NSArray_inst_ArrayByAddingObjectsFromArray(void *id, void* otherArray) { return [(NSArray*)id - init]; + arrayByAddingObjectsFromArray: otherArray]; } -void* NSArray_inst_initWithArray_(void *id, void* array) { +void* NSArray_inst_ComponentsJoinedByString(void *id, void* separator) { return [(NSArray*)id - initWithArray: array]; + componentsJoinedByString: separator]; } -void* NSArray_inst_initWithArray_copyItems_(void *id, void* array, BOOL flag) { +void* NSArray_inst_DescriptionWithLocale(void *id, void* locale) { return [(NSArray*)id - initWithArray: array - copyItems: flag]; -} - -void NSArray_inst_makeObjectsPerformSelector_(void *id, void* aSelector) { - [(NSArray*)id - makeObjectsPerformSelector: aSelector]; -} - -void NSArray_inst_makeObjectsPerformSelector_withObject_(void *id, void* aSelector, void* argument) { - [(NSArray*)id - makeObjectsPerformSelector: aSelector - withObject: argument]; + descriptionWithLocale: locale]; } -BOOL NSArray_inst_isEqualToArray_(void *id, void* otherArray) { +void* NSArray_inst_DescriptionWithLocaleIndent(void *id, void* locale, unsigned long level) { return [(NSArray*)id - isEqualToArray: otherArray]; + descriptionWithLocale: locale + indent: level]; } -void* NSArray_inst_arrayByAddingObjectsFromArray_(void *id, void* otherArray) { +void* NSArray_inst_Init(void *id) { return [(NSArray*)id - arrayByAddingObjectsFromArray: otherArray]; + init]; } -void* NSArray_inst_sortedArrayUsingDescriptors_(void *id, void* sortDescriptors) { +void* NSArray_inst_InitWithArray(void *id, void* array) { return [(NSArray*)id - sortedArrayUsingDescriptors: sortDescriptors]; + initWithArray: array]; } -void* NSArray_inst_sortedArrayUsingSelector_(void *id, void* comparator) { +void* NSArray_inst_InitWithArrayCopyItems(void *id, void* array, BOOL flag) { return [(NSArray*)id - sortedArrayUsingSelector: comparator]; + initWithArray: array + copyItems: flag]; } -void* NSArray_inst_componentsJoinedByString_(void *id, void* separator) { +BOOL NSArray_inst_IsEqualToArray(void *id, void* otherArray) { return [(NSArray*)id - componentsJoinedByString: separator]; + isEqualToArray: otherArray]; } -void* NSArray_inst_descriptionWithLocale_(void *id, void* locale) { - return [(NSArray*)id - descriptionWithLocale: locale]; +void NSArray_inst_MakeObjectsPerformSelector(void *id, void* aSelector) { + [(NSArray*)id + makeObjectsPerformSelector: aSelector]; } -void* NSArray_inst_descriptionWithLocale_indent_(void *id, void* locale, unsigned long level) { - return [(NSArray*)id - descriptionWithLocale: locale - indent: level]; +void NSArray_inst_MakeObjectsPerformSelectorWithObject(void *id, void* aSelector, void* argument) { + [(NSArray*)id + makeObjectsPerformSelector: aSelector + withObject: argument]; } -void* NSArray_inst_pathsMatchingExtensions_(void *id, void* filterTypes) { +void* NSArray_inst_PathsMatchingExtensions(void *id, void* filterTypes) { return [(NSArray*)id pathsMatchingExtensions: filterTypes]; } -void NSArray_inst_setValue_forKey_(void *id, void* value, void* key) { +void NSArray_inst_SetValueForKey(void *id, void* value, void* key) { [(NSArray*)id setValue: value forKey: key]; } -void* NSArray_inst_valueForKey_(void *id, void* key) { +void* NSArray_inst_ShuffledArray(void *id) { return [(NSArray*)id - valueForKey: key]; + shuffledArray]; } -void* NSArray_inst_shuffledArray(void *id) { +void* NSArray_inst_SortedArrayUsingDescriptors(void *id, void* sortDescriptors) { return [(NSArray*)id - shuffledArray]; + sortedArrayUsingDescriptors: sortDescriptors]; +} + +void* NSArray_inst_SortedArrayUsingSelector(void *id, void* comparator) { + return [(NSArray*)id + sortedArrayUsingSelector: comparator]; } -unsigned long NSArray_inst_count(void *id) { +void* NSArray_inst_ValueForKey(void *id, void* key) { + return [(NSArray*)id + valueForKey: key]; +} + +unsigned long NSArray_inst_Count(void *id) { return [(NSArray*)id count]; } -void* NSArray_inst_sortedArrayHint(void *id) { +void* NSArray_inst_SortedArrayHint(void *id) { return [(NSArray*)id sortedArrayHint]; } -void* NSArray_inst_description(void *id) { +void* NSArray_inst_Description(void *id) { return [(NSArray*)id description]; } -void* NSAttributedString_inst_initWithString_(void *id, void* str) { +void* NSAttributedString_inst_AttributedStringByInflectingString(void *id) { return [(NSAttributedString*)id - initWithString: str]; + attributedStringByInflectingString]; } -void* NSAttributedString_inst_initWithString_attributes_(void *id, void* str, void* attrs) { - return [(NSAttributedString*)id - initWithString: str - attributes: attrs]; +void NSAttributedString_inst_DrawInRect(void *id, NSRect rect) { + [(NSAttributedString*)id + drawInRect: rect]; } -void* NSAttributedString_inst_initWithAttributedString_(void *id, void* attrStr) { +void* NSAttributedString_inst_InitWithAttributedString(void *id, void* attrStr) { return [(NSAttributedString*)id initWithAttributedString: attrStr]; } -void* NSAttributedString_inst_initWithDocFormat_documentAttributes_(void *id, void* data, void* dict) { +void* NSAttributedString_inst_InitWithDocFormatDocumentAttributes(void *id, void* data, void* dict) { return [(NSAttributedString*)id initWithDocFormat: data documentAttributes: dict]; } -void* NSAttributedString_inst_initWithHTML_documentAttributes_(void *id, void* data, void* dict) { +void* NSAttributedString_inst_InitWithHTMLBaseURLDocumentAttributes(void *id, void* data, void* base, void* dict) { return [(NSAttributedString*)id initWithHTML: data + baseURL: base documentAttributes: dict]; } -void* NSAttributedString_inst_initWithHTML_baseURL_documentAttributes_(void *id, void* data, void* base, void* dict) { +void* NSAttributedString_inst_InitWithHTMLDocumentAttributes(void *id, void* data, void* dict) { return [(NSAttributedString*)id initWithHTML: data - baseURL: base documentAttributes: dict]; } -void* NSAttributedString_inst_initWithHTML_options_documentAttributes_(void *id, void* data, void* options, void* dict) { +void* NSAttributedString_inst_InitWithHTMLOptionsDocumentAttributes(void *id, void* data, void* options, void* dict) { return [(NSAttributedString*)id initWithHTML: data options: options documentAttributes: dict]; } -void* NSAttributedString_inst_initWithRTF_documentAttributes_(void *id, void* data, void* dict) { +void* NSAttributedString_inst_InitWithRTFDocumentAttributes(void *id, void* data, void* dict) { return [(NSAttributedString*)id initWithRTF: data documentAttributes: dict]; } -void* NSAttributedString_inst_initWithRTFD_documentAttributes_(void *id, void* data, void* dict) { +void* NSAttributedString_inst_InitWithRTFDDocumentAttributes(void *id, void* data, void* dict) { return [(NSAttributedString*)id initWithRTFD: data documentAttributes: dict]; } -BOOL NSAttributedString_inst_isEqualToAttributedString_(void *id, void* other) { +void* NSAttributedString_inst_InitWithString(void *id, void* str) { return [(NSAttributedString*)id - isEqualToAttributedString: other]; + initWithString: str]; } -unsigned long NSAttributedString_inst_nextWordFromIndex_forward_(void *id, unsigned long location, BOOL isForward) { +void* NSAttributedString_inst_InitWithStringAttributes(void *id, void* str, void* attrs) { return [(NSAttributedString*)id - nextWordFromIndex: location - forward: isForward]; + initWithString: str + attributes: attrs]; } -void* NSAttributedString_inst_attributedStringByInflectingString(void *id) { +BOOL NSAttributedString_inst_IsEqualToAttributedString(void *id, void* other) { return [(NSAttributedString*)id - attributedStringByInflectingString]; + isEqualToAttributedString: other]; } -void NSAttributedString_inst_drawInRect_(void *id, NSRect rect) { - [(NSAttributedString*)id - drawInRect: rect]; +unsigned long NSAttributedString_inst_NextWordFromIndexForward(void *id, unsigned long location, BOOL isForward) { + return [(NSAttributedString*)id + nextWordFromIndex: location + forward: isForward]; } -NSSize NSAttributedString_inst_size(void *id) { +NSSize NSAttributedString_inst_Size(void *id) { return [(NSAttributedString*)id size]; } -void* NSAttributedString_inst_init(void *id) { +void* NSAttributedString_inst_Init(void *id) { return [(NSAttributedString*)id init]; } -void* NSAttributedString_inst_string(void *id) { +void* NSAttributedString_inst_String(void *id) { return [(NSAttributedString*)id string]; } -unsigned long NSAttributedString_inst_length(void *id) { +unsigned long NSAttributedString_inst_Length(void *id) { return [(NSAttributedString*)id length]; } -void* NSData_inst_initWithBytes_length_(void *id, void* bytes, unsigned long length) { +void NSData_inst_GetBytesLength(void *id, void* buffer, unsigned long length) { + [(NSData*)id + getBytes: buffer + length: length]; +} + +void* NSData_inst_InitWithBytesLength(void *id, void* bytes, unsigned long length) { return [(NSData*)id initWithBytes: bytes length: length]; } -void* NSData_inst_initWithBytesNoCopy_length_(void *id, void* bytes, unsigned long length) { +void* NSData_inst_InitWithBytesNoCopyLength(void *id, void* bytes, unsigned long length) { return [(NSData*)id initWithBytesNoCopy: bytes length: length]; } -void* NSData_inst_initWithBytesNoCopy_length_freeWhenDone_(void *id, void* bytes, unsigned long length, BOOL b) { +void* NSData_inst_InitWithBytesNoCopyLengthFreeWhenDone(void *id, void* bytes, unsigned long length, BOOL b) { return [(NSData*)id initWithBytesNoCopy: bytes length: length freeWhenDone: b]; } -void* NSData_inst_initWithData_(void *id, void* data) { - return [(NSData*)id - initWithData: data]; -} - -void* NSData_inst_initWithContentsOfFile_(void *id, void* path) { +void* NSData_inst_InitWithContentsOfFile(void *id, void* path) { return [(NSData*)id initWithContentsOfFile: path]; } -void* NSData_inst_initWithContentsOfURL_(void *id, void* url) { +void* NSData_inst_InitWithContentsOfURL(void *id, void* url) { return [(NSData*)id initWithContentsOfURL: url]; } -BOOL NSData_inst_writeToFile_atomically_(void *id, void* path, BOOL useAuxiliaryFile) { +void* NSData_inst_InitWithData(void *id, void* data) { return [(NSData*)id - writeToFile: path - atomically: useAuxiliaryFile]; + initWithData: data]; } -BOOL NSData_inst_writeToURL_atomically_(void *id, void* url, BOOL atomically) { +BOOL NSData_inst_IsEqualToData(void *id, void* other) { return [(NSData*)id - writeToURL: url - atomically: atomically]; + isEqualToData: other]; } -void NSData_inst_getBytes_length_(void *id, void* buffer, unsigned long length) { - [(NSData*)id - getBytes: buffer - length: length]; +BOOL NSData_inst_WriteToFileAtomically(void *id, void* path, BOOL useAuxiliaryFile) { + return [(NSData*)id + writeToFile: path + atomically: useAuxiliaryFile]; } -BOOL NSData_inst_isEqualToData_(void *id, void* other) { +BOOL NSData_inst_WriteToURLAtomically(void *id, void* url, BOOL atomically) { return [(NSData*)id - isEqualToData: other]; + writeToURL: url + atomically: atomically]; } -void* NSData_inst_init(void *id) { +void* NSData_inst_Init(void *id) { return [(NSData*)id init]; } -void* NSData_inst_bytes(void *id) { +void* NSData_inst_Bytes(void *id) { return [(NSData*)id bytes]; } -unsigned long NSData_inst_length(void *id) { +unsigned long NSData_inst_Length(void *id) { return [(NSData*)id length]; } -void* NSData_inst_description(void *id) { +void* NSData_inst_Description(void *id) { return [(NSData*)id description]; } -void* NSDictionary_inst_init(void *id) { +void* NSDictionary_inst_DescriptionWithLocale(void *id, void* locale) { return [(NSDictionary*)id - init]; + descriptionWithLocale: locale]; } -void* NSDictionary_inst_initWithObjects_forKeys_(void *id, void* objects, void* keys) { +void* NSDictionary_inst_DescriptionWithLocaleIndent(void *id, void* locale, unsigned long level) { return [(NSDictionary*)id - initWithObjects: objects - forKeys: keys]; + descriptionWithLocale: locale + indent: level]; } -void* NSDictionary_inst_initWithDictionary_(void *id, void* otherDictionary) { +BOOL NSDictionary_inst_FileExtensionHidden(void *id) { return [(NSDictionary*)id - initWithDictionary: otherDictionary]; + fileExtensionHidden]; } -void* NSDictionary_inst_initWithDictionary_copyItems_(void *id, void* otherDictionary, BOOL flag) { +void* NSDictionary_inst_FileGroupOwnerAccountID(void *id) { return [(NSDictionary*)id - initWithDictionary: otherDictionary - copyItems: flag]; + fileGroupOwnerAccountID]; } -BOOL NSDictionary_inst_isEqualToDictionary_(void *id, void* otherDictionary) { +void* NSDictionary_inst_FileGroupOwnerAccountName(void *id) { return [(NSDictionary*)id - isEqualToDictionary: otherDictionary]; + fileGroupOwnerAccountName]; } -void* NSDictionary_inst_keysSortedByValueUsingSelector_(void *id, void* comparator) { +BOOL NSDictionary_inst_FileIsAppendOnly(void *id) { return [(NSDictionary*)id - keysSortedByValueUsingSelector: comparator]; + fileIsAppendOnly]; } -void* NSDictionary_inst_fileType(void *id) { +BOOL NSDictionary_inst_FileIsImmutable(void *id) { return [(NSDictionary*)id - fileType]; + fileIsImmutable]; } -unsigned long NSDictionary_inst_filePosixPermissions(void *id) { +void* NSDictionary_inst_FileOwnerAccountID(void *id) { return [(NSDictionary*)id - filePosixPermissions]; + fileOwnerAccountID]; } -void* NSDictionary_inst_fileOwnerAccountID(void *id) { +void* NSDictionary_inst_FileOwnerAccountName(void *id) { return [(NSDictionary*)id - fileOwnerAccountID]; + fileOwnerAccountName]; } -void* NSDictionary_inst_fileOwnerAccountName(void *id) { +unsigned long NSDictionary_inst_FilePosixPermissions(void *id) { return [(NSDictionary*)id - fileOwnerAccountName]; + filePosixPermissions]; } -void* NSDictionary_inst_fileGroupOwnerAccountID(void *id) { +unsigned long NSDictionary_inst_FileSystemFileNumber(void *id) { return [(NSDictionary*)id - fileGroupOwnerAccountID]; + fileSystemFileNumber]; } -void* NSDictionary_inst_fileGroupOwnerAccountName(void *id) { +long NSDictionary_inst_FileSystemNumber(void *id) { return [(NSDictionary*)id - fileGroupOwnerAccountName]; + fileSystemNumber]; } -BOOL NSDictionary_inst_fileExtensionHidden(void *id) { +void* NSDictionary_inst_FileType(void *id) { return [(NSDictionary*)id - fileExtensionHidden]; + fileType]; } -BOOL NSDictionary_inst_fileIsImmutable(void *id) { +void* NSDictionary_inst_Init(void *id) { return [(NSDictionary*)id - fileIsImmutable]; + init]; } -BOOL NSDictionary_inst_fileIsAppendOnly(void *id) { +void* NSDictionary_inst_InitWithDictionary(void *id, void* otherDictionary) { return [(NSDictionary*)id - fileIsAppendOnly]; + initWithDictionary: otherDictionary]; } -unsigned long NSDictionary_inst_fileSystemFileNumber(void *id) { +void* NSDictionary_inst_InitWithDictionaryCopyItems(void *id, void* otherDictionary, BOOL flag) { return [(NSDictionary*)id - fileSystemFileNumber]; + initWithDictionary: otherDictionary + copyItems: flag]; } -long NSDictionary_inst_fileSystemNumber(void *id) { +void* NSDictionary_inst_InitWithObjectsForKeys(void *id, void* objects, void* keys) { return [(NSDictionary*)id - fileSystemNumber]; + initWithObjects: objects + forKeys: keys]; } -void* NSDictionary_inst_descriptionWithLocale_(void *id, void* locale) { +BOOL NSDictionary_inst_IsEqualToDictionary(void *id, void* otherDictionary) { return [(NSDictionary*)id - descriptionWithLocale: locale]; + isEqualToDictionary: otherDictionary]; } -void* NSDictionary_inst_descriptionWithLocale_indent_(void *id, void* locale, unsigned long level) { +void* NSDictionary_inst_KeysSortedByValueUsingSelector(void *id, void* comparator) { return [(NSDictionary*)id - descriptionWithLocale: locale - indent: level]; + keysSortedByValueUsingSelector: comparator]; } -unsigned long NSDictionary_inst_count(void *id) { +unsigned long NSDictionary_inst_Count(void *id) { return [(NSDictionary*)id count]; } -void* NSDictionary_inst_allKeys(void *id) { +void* NSDictionary_inst_AllKeys(void *id) { return [(NSDictionary*)id allKeys]; } -void* NSDictionary_inst_allValues(void *id) { +void* NSDictionary_inst_AllValues(void *id) { return [(NSDictionary*)id allValues]; } -void* NSDictionary_inst_description(void *id) { +void* NSDictionary_inst_Description(void *id) { return [(NSDictionary*)id description]; } -void* NSDictionary_inst_descriptionInStringsFileFormat(void *id) { +void* NSDictionary_inst_DescriptionInStringsFileFormat(void *id) { return [(NSDictionary*)id descriptionInStringsFileFormat]; } -void* NSNumber_inst_initWithBool_(void *id, BOOL value) { +void* NSNumber_inst_DescriptionWithLocale(void *id, void* locale) { + return [(NSNumber*)id + descriptionWithLocale: locale]; +} + +void* NSNumber_inst_InitWithBool(void *id, BOOL value) { return [(NSNumber*)id initWithBool: value]; } -void* NSNumber_inst_initWithInt_(void *id, int value) { +void* NSNumber_inst_InitWithInt(void *id, int value) { return [(NSNumber*)id initWithInt: value]; } -void* NSNumber_inst_initWithInteger_(void *id, long value) { +void* NSNumber_inst_InitWithInteger(void *id, long value) { return [(NSNumber*)id initWithInteger: value]; } -void* NSNumber_inst_initWithUnsignedInt_(void *id, int value) { +void* NSNumber_inst_InitWithUnsignedInt(void *id, int value) { return [(NSNumber*)id initWithUnsignedInt: value]; } -void* NSNumber_inst_initWithUnsignedInteger_(void *id, unsigned long value) { +void* NSNumber_inst_InitWithUnsignedInteger(void *id, unsigned long value) { return [(NSNumber*)id initWithUnsignedInteger: value]; } -void* NSNumber_inst_descriptionWithLocale_(void *id, void* locale) { - return [(NSNumber*)id - descriptionWithLocale: locale]; -} - -BOOL NSNumber_inst_isEqualToNumber_(void *id, void* number) { +BOOL NSNumber_inst_IsEqualToNumber(void *id, void* number) { return [(NSNumber*)id isEqualToNumber: number]; } -void* NSNumber_inst_init(void *id) { +void* NSNumber_inst_Init(void *id) { return [(NSNumber*)id init]; } -BOOL NSNumber_inst_boolValue(void *id) { +BOOL NSNumber_inst_BoolValue(void *id) { return [(NSNumber*)id boolValue]; } -int NSNumber_inst_intValue(void *id) { +int NSNumber_inst_IntValue(void *id) { return [(NSNumber*)id intValue]; } -long NSNumber_inst_integerValue(void *id) { +long NSNumber_inst_IntegerValue(void *id) { return [(NSNumber*)id integerValue]; } -unsigned long NSNumber_inst_unsignedIntegerValue(void *id) { +unsigned long NSNumber_inst_UnsignedIntegerValue(void *id) { return [(NSNumber*)id unsignedIntegerValue]; } -int NSNumber_inst_unsignedIntValue(void *id) { +int NSNumber_inst_UnsignedIntValue(void *id) { return [(NSNumber*)id unsignedIntValue]; } -void* NSNumber_inst_stringValue(void *id) { +void* NSNumber_inst_StringValue(void *id) { return [(NSNumber*)id stringValue]; } -void NSRunLoop_inst_run(void *id) { +void NSRunLoop_inst_CancelPerformSelectorTargetArgument(void *id, void* aSelector, void* target, void* arg) { [(NSRunLoop*)id - run]; + cancelPerformSelector: aSelector + target: target + argument: arg]; +} + +void NSRunLoop_inst_CancelPerformSelectorsWithTarget(void *id, void* target) { + [(NSRunLoop*)id + cancelPerformSelectorsWithTarget: target]; } -void NSRunLoop_inst_performSelector_target_argument_order_modes_(void *id, void* aSelector, void* target, void* arg, unsigned long order, void* modes) { +void NSRunLoop_inst_PerformSelectorTargetArgumentOrderModes(void *id, void* aSelector, void* target, void* arg, unsigned long order, void* modes) { [(NSRunLoop*)id performSelector: aSelector target: target @@ -1293,603 +1300,596 @@ void NSRunLoop_inst_performSelector_target_argument_order_modes_(void *id, void* modes: modes]; } -void NSRunLoop_inst_cancelPerformSelector_target_argument_(void *id, void* aSelector, void* target, void* arg) { - [(NSRunLoop*)id - cancelPerformSelector: aSelector - target: target - argument: arg]; -} - -void NSRunLoop_inst_cancelPerformSelectorsWithTarget_(void *id, void* target) { +void NSRunLoop_inst_Run(void *id) { [(NSRunLoop*)id - cancelPerformSelectorsWithTarget: target]; + run]; } -void* NSRunLoop_inst_init(void *id) { +void* NSRunLoop_inst_Init(void *id) { return [(NSRunLoop*)id init]; } -void* NSString_inst_init(void *id) { +BOOL NSString_inst_CanBeConvertedToEncoding(void *id, unsigned long encoding) { return [(NSString*)id - init]; + canBeConvertedToEncoding: encoding]; } -void* NSString_inst_initWithBytes_length_encoding_(void *id, void* bytes, unsigned long len, unsigned long encoding) { +unsigned short NSString_inst_CharacterAtIndex(void *id, unsigned long index) { return [(NSString*)id - initWithBytes: bytes - length: len - encoding: encoding]; + characterAtIndex: index]; } -void* NSString_inst_initWithBytesNoCopy_length_encoding_freeWhenDone_(void *id, void* bytes, unsigned long len, unsigned long encoding, BOOL freeBuffer) { +unsigned long NSString_inst_CompletePathIntoStringCaseSensitiveMatchesIntoArrayFilterTypes(void *id, void* outputName, BOOL flag, void* outputArray, void* filterTypes) { return [(NSString*)id - initWithBytesNoCopy: bytes - length: len - encoding: encoding - freeWhenDone: freeBuffer]; + completePathIntoString: outputName + caseSensitive: flag + matchesIntoArray: outputArray + filterTypes: filterTypes]; } -void* NSString_inst_initWithString_(void *id, void* aString) { +void* NSString_inst_ComponentsSeparatedByString(void *id, void* separator) { return [(NSString*)id - initWithString: aString]; + componentsSeparatedByString: separator]; } -void* NSString_inst_initWithData_encoding_(void *id, void* data, unsigned long encoding) { +BOOL NSString_inst_ContainsString(void *id, void* str) { return [(NSString*)id - initWithData: data - encoding: encoding]; + containsString: str]; } -unsigned long NSString_inst_lengthOfBytesUsingEncoding_(void *id, unsigned long enc) { +void* NSString_inst_DataUsingEncoding(void *id, unsigned long encoding) { return [(NSString*)id - lengthOfBytesUsingEncoding: enc]; + dataUsingEncoding: encoding]; } -unsigned long NSString_inst_maximumLengthOfBytesUsingEncoding_(void *id, unsigned long enc) { +void* NSString_inst_DataUsingEncodingAllowLossyConversion(void *id, unsigned long encoding, BOOL lossy) { return [(NSString*)id - maximumLengthOfBytesUsingEncoding: enc]; + dataUsingEncoding: encoding + allowLossyConversion: lossy]; } -unsigned short NSString_inst_characterAtIndex_(void *id, unsigned long index) { - return [(NSString*)id - characterAtIndex: index]; +void NSString_inst_DrawInRectWithAttributes(void *id, NSRect rect, void* attrs) { + [(NSString*)id + drawInRect: rect + withAttributes: attrs]; } -BOOL NSString_inst_hasPrefix_(void *id, void* str) { +BOOL NSString_inst_HasPrefix(void *id, void* str) { return [(NSString*)id hasPrefix: str]; } -BOOL NSString_inst_hasSuffix_(void *id, void* str) { +BOOL NSString_inst_HasSuffix(void *id, void* str) { return [(NSString*)id hasSuffix: str]; } -BOOL NSString_inst_isEqualToString_(void *id, void* aString) { +void* NSString_inst_Init(void *id) { return [(NSString*)id - isEqualToString: aString]; + init]; } -void* NSString_inst_stringByAppendingString_(void *id, void* aString) { +void* NSString_inst_InitWithBytesLengthEncoding(void *id, void* bytes, unsigned long len, unsigned long encoding) { return [(NSString*)id - stringByAppendingString: aString]; + initWithBytes: bytes + length: len + encoding: encoding]; } -void* NSString_inst_stringByPaddingToLength_withString_startingAtIndex_(void *id, unsigned long newLength, void* padString, unsigned long padIndex) { +void* NSString_inst_InitWithBytesNoCopyLengthEncodingFreeWhenDone(void *id, void* bytes, unsigned long len, unsigned long encoding, BOOL freeBuffer) { return [(NSString*)id - stringByPaddingToLength: newLength - withString: padString - startingAtIndex: padIndex]; + initWithBytesNoCopy: bytes + length: len + encoding: encoding + freeWhenDone: freeBuffer]; } -void* NSString_inst_componentsSeparatedByString_(void *id, void* separator) { +void* NSString_inst_InitWithDataEncoding(void *id, void* data, unsigned long encoding) { return [(NSString*)id - componentsSeparatedByString: separator]; + initWithData: data + encoding: encoding]; } -void* NSString_inst_substringFromIndex_(void *id, unsigned long from) { +void* NSString_inst_InitWithString(void *id, void* aString) { return [(NSString*)id - substringFromIndex: from]; + initWithString: aString]; } -void* NSString_inst_substringToIndex_(void *id, unsigned long to) { +BOOL NSString_inst_IsEqualToString(void *id, void* aString) { return [(NSString*)id - substringToIndex: to]; + isEqualToString: aString]; } -BOOL NSString_inst_containsString_(void *id, void* str) { +unsigned long NSString_inst_LengthOfBytesUsingEncoding(void *id, unsigned long enc) { return [(NSString*)id - containsString: str]; + lengthOfBytesUsingEncoding: enc]; } -BOOL NSString_inst_localizedCaseInsensitiveContainsString_(void *id, void* str) { +BOOL NSString_inst_LocalizedCaseInsensitiveContainsString(void *id, void* str) { return [(NSString*)id localizedCaseInsensitiveContainsString: str]; } -BOOL NSString_inst_localizedStandardContainsString_(void *id, void* str) { +BOOL NSString_inst_LocalizedStandardContainsString(void *id, void* str) { return [(NSString*)id localizedStandardContainsString: str]; } -void* NSString_inst_stringByReplacingOccurrencesOfString_withString_(void *id, void* target, void* replacement) { +unsigned long NSString_inst_MaximumLengthOfBytesUsingEncoding(void *id, unsigned long enc) { return [(NSString*)id - stringByReplacingOccurrencesOfString: target - withString: replacement]; + maximumLengthOfBytesUsingEncoding: enc]; } -void* NSString_inst_propertyList(void *id) { +void* NSString_inst_PropertyList(void *id) { return [(NSString*)id propertyList]; } -void* NSString_inst_propertyListFromStringsFileFormat(void *id) { +void* NSString_inst_PropertyListFromStringsFileFormat(void *id) { return [(NSString*)id propertyListFromStringsFileFormat]; } -void NSString_inst_drawInRect_withAttributes_(void *id, NSRect rect, void* attrs) { - [(NSString*)id - drawInRect: rect - withAttributes: attrs]; +NSSize NSString_inst_SizeWithAttributes(void *id, void* attrs) { + return [(NSString*)id + sizeWithAttributes: attrs]; } -NSSize NSString_inst_sizeWithAttributes_(void *id, void* attrs) { +void* NSString_inst_StringByAppendingPathComponent(void *id, void* str) { return [(NSString*)id - sizeWithAttributes: attrs]; + stringByAppendingPathComponent: str]; } -void* NSString_inst_variantFittingPresentationWidth_(void *id, long width) { +void* NSString_inst_StringByAppendingPathExtension(void *id, void* str) { return [(NSString*)id - variantFittingPresentationWidth: width]; + stringByAppendingPathExtension: str]; } -BOOL NSString_inst_canBeConvertedToEncoding_(void *id, unsigned long encoding) { +void* NSString_inst_StringByAppendingString(void *id, void* aString) { return [(NSString*)id - canBeConvertedToEncoding: encoding]; + stringByAppendingString: aString]; } -void* NSString_inst_dataUsingEncoding_(void *id, unsigned long encoding) { +void* NSString_inst_StringByPaddingToLengthWithStringStartingAtIndex(void *id, unsigned long newLength, void* padString, unsigned long padIndex) { return [(NSString*)id - dataUsingEncoding: encoding]; + stringByPaddingToLength: newLength + withString: padString + startingAtIndex: padIndex]; } -void* NSString_inst_dataUsingEncoding_allowLossyConversion_(void *id, unsigned long encoding, BOOL lossy) { +void* NSString_inst_StringByReplacingOccurrencesOfStringWithString(void *id, void* target, void* replacement) { return [(NSString*)id - dataUsingEncoding: encoding - allowLossyConversion: lossy]; + stringByReplacingOccurrencesOfString: target + withString: replacement]; } -unsigned long NSString_inst_completePathIntoString_caseSensitive_matchesIntoArray_filterTypes_(void *id, void* outputName, BOOL flag, void* outputArray, void* filterTypes) { +void* NSString_inst_StringsByAppendingPaths(void *id, void* paths) { return [(NSString*)id - completePathIntoString: outputName - caseSensitive: flag - matchesIntoArray: outputArray - filterTypes: filterTypes]; + stringsByAppendingPaths: paths]; } -void* NSString_inst_stringByAppendingPathComponent_(void *id, void* str) { +void* NSString_inst_SubstringFromIndex(void *id, unsigned long from) { return [(NSString*)id - stringByAppendingPathComponent: str]; + substringFromIndex: from]; } -void* NSString_inst_stringByAppendingPathExtension_(void *id, void* str) { +void* NSString_inst_SubstringToIndex(void *id, unsigned long to) { return [(NSString*)id - stringByAppendingPathExtension: str]; + substringToIndex: to]; } -void* NSString_inst_stringsByAppendingPaths_(void *id, void* paths) { +void* NSString_inst_VariantFittingPresentationWidth(void *id, long width) { return [(NSString*)id - stringsByAppendingPaths: paths]; + variantFittingPresentationWidth: width]; } -unsigned long NSString_inst_length(void *id) { +unsigned long NSString_inst_Length(void *id) { return [(NSString*)id length]; } -unsigned long NSString_inst_hash(void *id) { +unsigned long NSString_inst_Hash(void *id) { return [(NSString*)id hash]; } -void* NSString_inst_lowercaseString(void *id) { +void* NSString_inst_LowercaseString(void *id) { return [(NSString*)id lowercaseString]; } -void* NSString_inst_localizedLowercaseString(void *id) { +void* NSString_inst_LocalizedLowercaseString(void *id) { return [(NSString*)id localizedLowercaseString]; } -void* NSString_inst_uppercaseString(void *id) { +void* NSString_inst_UppercaseString(void *id) { return [(NSString*)id uppercaseString]; } -void* NSString_inst_localizedUppercaseString(void *id) { +void* NSString_inst_LocalizedUppercaseString(void *id) { return [(NSString*)id localizedUppercaseString]; } -void* NSString_inst_capitalizedString(void *id) { +void* NSString_inst_CapitalizedString(void *id) { return [(NSString*)id capitalizedString]; } -void* NSString_inst_localizedCapitalizedString(void *id) { +void* NSString_inst_LocalizedCapitalizedString(void *id) { return [(NSString*)id localizedCapitalizedString]; } -void* NSString_inst_decomposedStringWithCanonicalMapping(void *id) { +void* NSString_inst_DecomposedStringWithCanonicalMapping(void *id) { return [(NSString*)id decomposedStringWithCanonicalMapping]; } -void* NSString_inst_decomposedStringWithCompatibilityMapping(void *id) { +void* NSString_inst_DecomposedStringWithCompatibilityMapping(void *id) { return [(NSString*)id decomposedStringWithCompatibilityMapping]; } -void* NSString_inst_precomposedStringWithCanonicalMapping(void *id) { +void* NSString_inst_PrecomposedStringWithCanonicalMapping(void *id) { return [(NSString*)id precomposedStringWithCanonicalMapping]; } -void* NSString_inst_precomposedStringWithCompatibilityMapping(void *id) { +void* NSString_inst_PrecomposedStringWithCompatibilityMapping(void *id) { return [(NSString*)id precomposedStringWithCompatibilityMapping]; } -int NSString_inst_intValue(void *id) { +int NSString_inst_IntValue(void *id) { return [(NSString*)id intValue]; } -long NSString_inst_integerValue(void *id) { +long NSString_inst_IntegerValue(void *id) { return [(NSString*)id integerValue]; } -BOOL NSString_inst_boolValue(void *id) { +BOOL NSString_inst_BoolValue(void *id) { return [(NSString*)id boolValue]; } -void* NSString_inst_description(void *id) { +void* NSString_inst_Description(void *id) { return [(NSString*)id description]; } -unsigned long NSString_inst_fastestEncoding(void *id) { +unsigned long NSString_inst_FastestEncoding(void *id) { return [(NSString*)id fastestEncoding]; } -unsigned long NSString_inst_smallestEncoding(void *id) { +unsigned long NSString_inst_SmallestEncoding(void *id) { return [(NSString*)id smallestEncoding]; } -void* NSString_inst_pathComponents(void *id) { +void* NSString_inst_PathComponents(void *id) { return [(NSString*)id pathComponents]; } -BOOL NSString_inst_isAbsolutePath(void *id) { +BOOL NSString_inst_IsAbsolutePath(void *id) { return [(NSString*)id isAbsolutePath]; } -void* NSString_inst_lastPathComponent(void *id) { +void* NSString_inst_LastPathComponent(void *id) { return [(NSString*)id lastPathComponent]; } -void* NSString_inst_pathExtension(void *id) { +void* NSString_inst_PathExtension(void *id) { return [(NSString*)id pathExtension]; } -void* NSString_inst_stringByAbbreviatingWithTildeInPath(void *id) { +void* NSString_inst_StringByAbbreviatingWithTildeInPath(void *id) { return [(NSString*)id stringByAbbreviatingWithTildeInPath]; } -void* NSString_inst_stringByDeletingLastPathComponent(void *id) { +void* NSString_inst_StringByDeletingLastPathComponent(void *id) { return [(NSString*)id stringByDeletingLastPathComponent]; } -void* NSString_inst_stringByDeletingPathExtension(void *id) { +void* NSString_inst_StringByDeletingPathExtension(void *id) { return [(NSString*)id stringByDeletingPathExtension]; } -void* NSString_inst_stringByExpandingTildeInPath(void *id) { +void* NSString_inst_StringByExpandingTildeInPath(void *id) { return [(NSString*)id stringByExpandingTildeInPath]; } -void* NSString_inst_stringByResolvingSymlinksInPath(void *id) { +void* NSString_inst_StringByResolvingSymlinksInPath(void *id) { return [(NSString*)id stringByResolvingSymlinksInPath]; } -void* NSString_inst_stringByStandardizingPath(void *id) { +void* NSString_inst_StringByStandardizingPath(void *id) { return [(NSString*)id stringByStandardizingPath]; } -void* NSString_inst_stringByRemovingPercentEncoding(void *id) { +void* NSString_inst_StringByRemovingPercentEncoding(void *id) { return [(NSString*)id stringByRemovingPercentEncoding]; } -void* NSThread_inst_init(void *id) { +void NSThread_inst_Cancel(void *id) { + [(NSThread*)id + cancel]; +} + +void* NSThread_inst_Init(void *id) { return [(NSThread*)id init]; } -void* NSThread_inst_initWithTarget_selector_object_(void *id, void* target, void* selector, void* argument) { +void* NSThread_inst_InitWithTargetSelectorObject(void *id, void* target, void* selector, void* argument) { return [(NSThread*)id initWithTarget: target selector: selector object: argument]; } -void NSThread_inst_start(void *id) { - [(NSThread*)id - start]; -} - -void NSThread_inst_main(void *id) { +void NSThread_inst_Main(void *id) { [(NSThread*)id main]; } -void NSThread_inst_cancel(void *id) { +void NSThread_inst_Start(void *id) { [(NSThread*)id - cancel]; + start]; } -BOOL NSThread_inst_isExecuting(void *id) { +BOOL NSThread_inst_IsExecuting(void *id) { return [(NSThread*)id isExecuting]; } -BOOL NSThread_inst_isFinished(void *id) { +BOOL NSThread_inst_IsFinished(void *id) { return [(NSThread*)id isFinished]; } -BOOL NSThread_inst_isCancelled(void *id) { +BOOL NSThread_inst_IsCancelled(void *id) { return [(NSThread*)id isCancelled]; } -BOOL NSThread_inst_isMainThread(void *id) { +BOOL NSThread_inst_IsMainThread(void *id) { return [(NSThread*)id isMainThread]; } -void* NSThread_inst_name(void *id) { +void* NSThread_inst_Name(void *id) { return [(NSThread*)id name]; } -void NSThread_inst_setName_(void *id, void* value) { +void NSThread_inst_SetName(void *id, void* value) { [(NSThread*)id setName: value]; } -unsigned long NSThread_inst_stackSize(void *id) { +unsigned long NSThread_inst_StackSize(void *id) { return [(NSThread*)id stackSize]; } -void NSThread_inst_setStackSize_(void *id, unsigned long value) { +void NSThread_inst_SetStackSize(void *id, unsigned long value) { [(NSThread*)id setStackSize: value]; } -void* NSURL_inst_initWithString_(void *id, void* URLString) { +void* NSURL_inst_URLByAppendingPathComponent(void *id, void* pathComponent) { return [(NSURL*)id - initWithString: URLString]; + URLByAppendingPathComponent: pathComponent]; } -void* NSURL_inst_initWithString_relativeToURL_(void *id, void* URLString, void* baseURL) { +void* NSURL_inst_URLByAppendingPathComponentIsDirectory(void *id, void* pathComponent, BOOL isDirectory) { return [(NSURL*)id - initWithString: URLString - relativeToURL: baseURL]; + URLByAppendingPathComponent: pathComponent + isDirectory: isDirectory]; } -void* NSURL_inst_initFileURLWithPath_isDirectory_(void *id, void* path, BOOL isDir) { +void* NSURL_inst_URLByAppendingPathExtension(void *id, void* pathExtension) { return [(NSURL*)id - initFileURLWithPath: path - isDirectory: isDir]; + URLByAppendingPathExtension: pathExtension]; } -void* NSURL_inst_initFileURLWithPath_relativeToURL_(void *id, void* path, void* baseURL) { +void* NSURL_inst_FileReferenceURL(void *id) { return [(NSURL*)id - initFileURLWithPath: path - relativeToURL: baseURL]; + fileReferenceURL]; } -void* NSURL_inst_initFileURLWithPath_isDirectory_relativeToURL_(void *id, void* path, BOOL isDir, void* baseURL) { +void* NSURL_inst_InitAbsoluteURLWithDataRepresentationRelativeToURL(void *id, void* data, void* baseURL) { return [(NSURL*)id - initFileURLWithPath: path - isDirectory: isDir + initAbsoluteURLWithDataRepresentation: data relativeToURL: baseURL]; } -void* NSURL_inst_initFileURLWithPath_(void *id, void* path) { +void* NSURL_inst_InitFileURLWithPath(void *id, void* path) { return [(NSURL*)id initFileURLWithPath: path]; } -void* NSURL_inst_initAbsoluteURLWithDataRepresentation_relativeToURL_(void *id, void* data, void* baseURL) { +void* NSURL_inst_InitFileURLWithPathIsDirectory(void *id, void* path, BOOL isDir) { return [(NSURL*)id - initAbsoluteURLWithDataRepresentation: data - relativeToURL: baseURL]; + initFileURLWithPath: path + isDirectory: isDir]; } -void* NSURL_inst_initWithDataRepresentation_relativeToURL_(void *id, void* data, void* baseURL) { +void* NSURL_inst_InitFileURLWithPathIsDirectoryRelativeToURL(void *id, void* path, BOOL isDir, void* baseURL) { return [(NSURL*)id - initWithDataRepresentation: data + initFileURLWithPath: path + isDirectory: isDir relativeToURL: baseURL]; } -BOOL NSURL_inst_isFileReferenceURL(void *id) { +void* NSURL_inst_InitFileURLWithPathRelativeToURL(void *id, void* path, void* baseURL) { return [(NSURL*)id - isFileReferenceURL]; + initFileURLWithPath: path + relativeToURL: baseURL]; } -void NSURL_inst_removeAllCachedResourceValues(void *id) { - [(NSURL*)id - removeAllCachedResourceValues]; +void* NSURL_inst_InitWithDataRepresentationRelativeToURL(void *id, void* data, void* baseURL) { + return [(NSURL*)id + initWithDataRepresentation: data + relativeToURL: baseURL]; } -void* NSURL_inst_fileReferenceURL(void *id) { +void* NSURL_inst_InitWithString(void *id, void* URLString) { return [(NSURL*)id - fileReferenceURL]; + initWithString: URLString]; } -void* NSURL_inst_URLByAppendingPathComponent_(void *id, void* pathComponent) { +void* NSURL_inst_InitWithStringRelativeToURL(void *id, void* URLString, void* baseURL) { return [(NSURL*)id - URLByAppendingPathComponent: pathComponent]; + initWithString: URLString + relativeToURL: baseURL]; } -void* NSURL_inst_URLByAppendingPathComponent_isDirectory_(void *id, void* pathComponent, BOOL isDirectory) { +BOOL NSURL_inst_IsFileReferenceURL(void *id) { return [(NSURL*)id - URLByAppendingPathComponent: pathComponent - isDirectory: isDirectory]; + isFileReferenceURL]; } -void* NSURL_inst_URLByAppendingPathExtension_(void *id, void* pathExtension) { - return [(NSURL*)id - URLByAppendingPathExtension: pathExtension]; +void NSURL_inst_RemoveAllCachedResourceValues(void *id) { + [(NSURL*)id + removeAllCachedResourceValues]; } -BOOL NSURL_inst_startAccessingSecurityScopedResource(void *id) { +BOOL NSURL_inst_StartAccessingSecurityScopedResource(void *id) { return [(NSURL*)id startAccessingSecurityScopedResource]; } -void NSURL_inst_stopAccessingSecurityScopedResource(void *id) { +void NSURL_inst_StopAccessingSecurityScopedResource(void *id) { [(NSURL*)id stopAccessingSecurityScopedResource]; } -void* NSURL_inst_init(void *id) { +void* NSURL_inst_Init(void *id) { return [(NSURL*)id init]; } -void* NSURL_inst_dataRepresentation(void *id) { +void* NSURL_inst_DataRepresentation(void *id) { return [(NSURL*)id dataRepresentation]; } -BOOL NSURL_inst_isFileURL(void *id) { +BOOL NSURL_inst_IsFileURL(void *id) { return [(NSURL*)id isFileURL]; } -void* NSURL_inst_absoluteString(void *id) { +void* NSURL_inst_AbsoluteString(void *id) { return [(NSURL*)id absoluteString]; } -void* NSURL_inst_absoluteURL(void *id) { +void* NSURL_inst_AbsoluteURL(void *id) { return [(NSURL*)id absoluteURL]; } -void* NSURL_inst_baseURL(void *id) { +void* NSURL_inst_BaseURL(void *id) { return [(NSURL*)id baseURL]; } -void* NSURL_inst_fragment(void *id) { +void* NSURL_inst_Fragment(void *id) { return [(NSURL*)id fragment]; } -void* NSURL_inst_host(void *id) { +void* NSURL_inst_Host(void *id) { return [(NSURL*)id host]; } -void* NSURL_inst_lastPathComponent(void *id) { +void* NSURL_inst_LastPathComponent(void *id) { return [(NSURL*)id lastPathComponent]; } -void* NSURL_inst_password(void *id) { +void* NSURL_inst_Password(void *id) { return [(NSURL*)id password]; } -void* NSURL_inst_path(void *id) { +void* NSURL_inst_Path(void *id) { return [(NSURL*)id path]; } -void* NSURL_inst_pathComponents(void *id) { +void* NSURL_inst_PathComponents(void *id) { return [(NSURL*)id pathComponents]; } -void* NSURL_inst_pathExtension(void *id) { +void* NSURL_inst_PathExtension(void *id) { return [(NSURL*)id pathExtension]; } -void* NSURL_inst_port(void *id) { +void* NSURL_inst_Port(void *id) { return [(NSURL*)id port]; } -void* NSURL_inst_query(void *id) { +void* NSURL_inst_Query(void *id) { return [(NSURL*)id query]; } -void* NSURL_inst_relativePath(void *id) { +void* NSURL_inst_RelativePath(void *id) { return [(NSURL*)id relativePath]; } -void* NSURL_inst_relativeString(void *id) { +void* NSURL_inst_RelativeString(void *id) { return [(NSURL*)id relativeString]; } -void* NSURL_inst_resourceSpecifier(void *id) { +void* NSURL_inst_ResourceSpecifier(void *id) { return [(NSURL*)id resourceSpecifier]; } -void* NSURL_inst_scheme(void *id) { +void* NSURL_inst_Scheme(void *id) { return [(NSURL*)id scheme]; } -void* NSURL_inst_standardizedURL(void *id) { +void* NSURL_inst_StandardizedURL(void *id) { return [(NSURL*)id standardizedURL]; } -void* NSURL_inst_user(void *id) { +void* NSURL_inst_User(void *id) { return [(NSURL*)id user]; } -void* NSURL_inst_filePathURL(void *id) { +void* NSURL_inst_FilePathURL(void *id) { return [(NSURL*)id filePathURL]; } @@ -1914,22 +1914,22 @@ void* NSURL_inst_URLByStandardizingPath(void *id) { URLByStandardizingPath]; } -BOOL NSURL_inst_hasDirectoryPath(void *id) { +BOOL NSURL_inst_HasDirectoryPath(void *id) { return [(NSURL*)id hasDirectoryPath]; } -void* NSURLRequest_inst_initWithURL_(void *id, void* URL) { +void* NSURLRequest_inst_InitWithURL(void *id, void* URL) { return [(NSURLRequest*)id initWithURL: URL]; } -void* NSURLRequest_inst_valueForHTTPHeaderField_(void *id, void* field) { +void* NSURLRequest_inst_ValueForHTTPHeaderField(void *id, void* field) { return [(NSURLRequest*)id valueForHTTPHeaderField: field]; } -void* NSURLRequest_inst_init(void *id) { +void* NSURLRequest_inst_Init(void *id) { return [(NSURLRequest*)id init]; } @@ -1949,12 +1949,12 @@ void* NSURLRequest_inst_HTTPBody(void *id) { HTTPBody]; } -void* NSURLRequest_inst_mainDocumentURL(void *id) { +void* NSURLRequest_inst_MainDocumentURL(void *id) { return [(NSURLRequest*)id mainDocumentURL]; } -void* NSURLRequest_inst_allHTTPHeaderFields(void *id) { +void* NSURLRequest_inst_AllHTTPHeaderFields(void *id) { return [(NSURLRequest*)id allHTTPHeaderFields]; } @@ -1969,179 +1969,179 @@ BOOL NSURLRequest_inst_HTTPShouldUsePipelining(void *id) { HTTPShouldUsePipelining]; } -BOOL NSURLRequest_inst_allowsCellularAccess(void *id) { +BOOL NSURLRequest_inst_AllowsCellularAccess(void *id) { return [(NSURLRequest*)id allowsCellularAccess]; } -BOOL NSURLRequest_inst_allowsConstrainedNetworkAccess(void *id) { +BOOL NSURLRequest_inst_AllowsConstrainedNetworkAccess(void *id) { return [(NSURLRequest*)id allowsConstrainedNetworkAccess]; } -BOOL NSURLRequest_inst_allowsExpensiveNetworkAccess(void *id) { +BOOL NSURLRequest_inst_AllowsExpensiveNetworkAccess(void *id) { return [(NSURLRequest*)id allowsExpensiveNetworkAccess]; } -BOOL NSURLRequest_inst_assumesHTTP3Capable(void *id) { +BOOL NSURLRequest_inst_AssumesHTTP3Capable(void *id) { return [(NSURLRequest*)id assumesHTTP3Capable]; } -void* NSUserDefaults_inst_init(void *id) { +void* NSUserDefaults_inst_URLForKey(void *id, void* defaultName) { return [(NSUserDefaults*)id - init]; + URLForKey: defaultName]; } -void* NSUserDefaults_inst_initWithSuiteName_(void *id, void* suitename) { - return [(NSUserDefaults*)id - initWithSuiteName: suitename]; +void NSUserDefaults_inst_AddSuiteNamed(void *id, void* suiteName) { + [(NSUserDefaults*)id + addSuiteNamed: suiteName]; } -void* NSUserDefaults_inst_objectForKey_(void *id, void* defaultName) { +void* NSUserDefaults_inst_ArrayForKey(void *id, void* defaultName) { return [(NSUserDefaults*)id - objectForKey: defaultName]; + arrayForKey: defaultName]; } -void* NSUserDefaults_inst_URLForKey_(void *id, void* defaultName) { +BOOL NSUserDefaults_inst_BoolForKey(void *id, void* defaultName) { return [(NSUserDefaults*)id - URLForKey: defaultName]; + boolForKey: defaultName]; } -void* NSUserDefaults_inst_arrayForKey_(void *id, void* defaultName) { +void* NSUserDefaults_inst_DataForKey(void *id, void* defaultName) { return [(NSUserDefaults*)id - arrayForKey: defaultName]; + dataForKey: defaultName]; } -void* NSUserDefaults_inst_dictionaryForKey_(void *id, void* defaultName) { +void* NSUserDefaults_inst_DictionaryForKey(void *id, void* defaultName) { return [(NSUserDefaults*)id dictionaryForKey: defaultName]; } -void* NSUserDefaults_inst_stringForKey_(void *id, void* defaultName) { +void* NSUserDefaults_inst_DictionaryRepresentation(void *id) { return [(NSUserDefaults*)id - stringForKey: defaultName]; + dictionaryRepresentation]; } -void* NSUserDefaults_inst_stringArrayForKey_(void *id, void* defaultName) { +void* NSUserDefaults_inst_Init(void *id) { return [(NSUserDefaults*)id - stringArrayForKey: defaultName]; + init]; } -void* NSUserDefaults_inst_dataForKey_(void *id, void* defaultName) { +void* NSUserDefaults_inst_InitWithSuiteName(void *id, void* suitename) { return [(NSUserDefaults*)id - dataForKey: defaultName]; + initWithSuiteName: suitename]; } -BOOL NSUserDefaults_inst_boolForKey_(void *id, void* defaultName) { +long NSUserDefaults_inst_IntegerForKey(void *id, void* defaultName) { return [(NSUserDefaults*)id - boolForKey: defaultName]; + integerForKey: defaultName]; } -long NSUserDefaults_inst_integerForKey_(void *id, void* defaultName) { +void* NSUserDefaults_inst_ObjectForKey(void *id, void* defaultName) { return [(NSUserDefaults*)id - integerForKey: defaultName]; + objectForKey: defaultName]; } -void* NSUserDefaults_inst_dictionaryRepresentation(void *id) { +BOOL NSUserDefaults_inst_ObjectIsForcedForKey(void *id, void* key) { return [(NSUserDefaults*)id - dictionaryRepresentation]; + objectIsForcedForKey: key]; } -void NSUserDefaults_inst_setObject_forKey_(void *id, void* value, void* defaultName) { - [(NSUserDefaults*)id - setObject: value - forKey: defaultName]; +BOOL NSUserDefaults_inst_ObjectIsForcedForKeyInDomain(void *id, void* key, void* domain) { + return [(NSUserDefaults*)id + objectIsForcedForKey: key + inDomain: domain]; +} + +void* NSUserDefaults_inst_PersistentDomainForName(void *id, void* domainName) { + return [(NSUserDefaults*)id + persistentDomainForName: domainName]; } -void NSUserDefaults_inst_setInteger_forKey_(void *id, long value, void* defaultName) { +void NSUserDefaults_inst_RegisterDefaults(void *id, void* registrationDictionary) { [(NSUserDefaults*)id - setInteger: value - forKey: defaultName]; + registerDefaults: registrationDictionary]; } -void NSUserDefaults_inst_setBool_forKey_(void *id, BOOL value, void* defaultName) { +void NSUserDefaults_inst_RemoveObjectForKey(void *id, void* defaultName) { [(NSUserDefaults*)id - setBool: value - forKey: defaultName]; + removeObjectForKey: defaultName]; } -void NSUserDefaults_inst_setURL_forKey_(void *id, void* url, void* defaultName) { +void NSUserDefaults_inst_RemovePersistentDomainForName(void *id, void* domainName) { [(NSUserDefaults*)id - setURL: url - forKey: defaultName]; + removePersistentDomainForName: domainName]; } -void NSUserDefaults_inst_removeObjectForKey_(void *id, void* defaultName) { +void NSUserDefaults_inst_RemoveSuiteNamed(void *id, void* suiteName) { [(NSUserDefaults*)id - removeObjectForKey: defaultName]; + removeSuiteNamed: suiteName]; } -void NSUserDefaults_inst_addSuiteNamed_(void *id, void* suiteName) { +void NSUserDefaults_inst_RemoveVolatileDomainForName(void *id, void* domainName) { [(NSUserDefaults*)id - addSuiteNamed: suiteName]; + removeVolatileDomainForName: domainName]; } -void NSUserDefaults_inst_removeSuiteNamed_(void *id, void* suiteName) { +void NSUserDefaults_inst_SetBoolForKey(void *id, BOOL value, void* defaultName) { [(NSUserDefaults*)id - removeSuiteNamed: suiteName]; + setBool: value + forKey: defaultName]; } -void NSUserDefaults_inst_registerDefaults_(void *id, void* registrationDictionary) { +void NSUserDefaults_inst_SetIntegerForKey(void *id, long value, void* defaultName) { [(NSUserDefaults*)id - registerDefaults: registrationDictionary]; + setInteger: value + forKey: defaultName]; } -void* NSUserDefaults_inst_persistentDomainForName_(void *id, void* domainName) { - return [(NSUserDefaults*)id - persistentDomainForName: domainName]; +void NSUserDefaults_inst_SetObjectForKey(void *id, void* value, void* defaultName) { + [(NSUserDefaults*)id + setObject: value + forKey: defaultName]; } -void NSUserDefaults_inst_setPersistentDomain_forName_(void *id, void* domain, void* domainName) { +void NSUserDefaults_inst_SetPersistentDomainForName(void *id, void* domain, void* domainName) { [(NSUserDefaults*)id setPersistentDomain: domain forName: domainName]; } -void NSUserDefaults_inst_removePersistentDomainForName_(void *id, void* domainName) { +void NSUserDefaults_inst_SetURLForKey(void *id, void* url, void* defaultName) { [(NSUserDefaults*)id - removePersistentDomainForName: domainName]; -} - -void* NSUserDefaults_inst_volatileDomainForName_(void *id, void* domainName) { - return [(NSUserDefaults*)id - volatileDomainForName: domainName]; + setURL: url + forKey: defaultName]; } -void NSUserDefaults_inst_setVolatileDomain_forName_(void *id, void* domain, void* domainName) { +void NSUserDefaults_inst_SetVolatileDomainForName(void *id, void* domain, void* domainName) { [(NSUserDefaults*)id setVolatileDomain: domain forName: domainName]; } -void NSUserDefaults_inst_removeVolatileDomainForName_(void *id, void* domainName) { - [(NSUserDefaults*)id - removeVolatileDomainForName: domainName]; +void* NSUserDefaults_inst_StringArrayForKey(void *id, void* defaultName) { + return [(NSUserDefaults*)id + stringArrayForKey: defaultName]; } -BOOL NSUserDefaults_inst_objectIsForcedForKey_(void *id, void* key) { +void* NSUserDefaults_inst_StringForKey(void *id, void* defaultName) { return [(NSUserDefaults*)id - objectIsForcedForKey: key]; + stringForKey: defaultName]; } -BOOL NSUserDefaults_inst_objectIsForcedForKey_inDomain_(void *id, void* key, void* domain) { +BOOL NSUserDefaults_inst_Synchronize(void *id) { return [(NSUserDefaults*)id - objectIsForcedForKey: key - inDomain: domain]; + synchronize]; } -BOOL NSUserDefaults_inst_synchronize(void *id) { +void* NSUserDefaults_inst_VolatileDomainForName(void *id, void* domainName) { return [(NSUserDefaults*)id - synchronize]; + volatileDomainForName: domainName]; } -void* NSUserDefaults_inst_volatileDomainNames(void *id) { +void* NSUserDefaults_inst_VolatileDomainNames(void *id) { return [(NSUserDefaults*)id volatileDomainNames]; } @@ -2167,4877 +2167,5466 @@ func convertToObjCBool(b bool) C.BOOL { return C.core_objc_bool_false } -func CALayer_alloc() ( - r0 CALayer, -) { - ret := C.CALayer_type_alloc() - r0 = CALayer_fromPointer(ret) - return +// CALayer_Alloc +// +// See for details. +func CALayer_Alloc() CALayer { + ret := C.CALayer_type_Alloc() + + return CALayer_FromPointer(ret) } -func CALayer_layer() ( - r0 CALayer, -) { - ret := C.CALayer_type_layer() - r0 = CALayer_fromPointer(ret) - return +// CALayer_Layer creates and returns an instance of the layer object. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410793-layer?language=objc for details. +func CALayer_Layer() CALayer { + ret := C.CALayer_type_Layer() + + return CALayer_FromPointer(ret) } -func CALayer_needsDisplayForKey_( - key NSStringRef, -) ( - r0 bool, -) { - ret := C.CALayer_type_needsDisplayForKey_( +// CALayer_NeedsDisplayForKey returns a boolean indicating whether changes to the specified key require the layer to be redisplayed. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410769-needsdisplayforkey?language=objc for details. +func CALayer_NeedsDisplayForKey(key NSStringRef) bool { + ret := C.CALayer_type_NeedsDisplayForKey( objc.RefPointer(key), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func CALayer_defaultActionForKey_( - event NSStringRef, -) ( - r0 objc.Object, -) { - ret := C.CALayer_type_defaultActionForKey_( +// CALayer_DefaultActionForKey returns the default action for the current class. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410954-defaultactionforkey?language=objc for details. +func CALayer_DefaultActionForKey(event NSStringRef) objc.Object { + ret := C.CALayer_type_DefaultActionForKey( objc.RefPointer(event), ) - r0 = objc.Object_fromPointer(ret) - return + + return objc.Object_FromPointer(ret) } -func CALayer_defaultValueForKey_( - key NSStringRef, -) ( - r0 objc.Object, -) { - ret := C.CALayer_type_defaultValueForKey_( +// CALayer_DefaultValueForKey specifies the default value associated with the specified key. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410886-defaultvalueforkey?language=objc for details. +func CALayer_DefaultValueForKey(key NSStringRef) objc.Object { + ret := C.CALayer_type_DefaultValueForKey( objc.RefPointer(key), ) - r0 = objc.Object_fromPointer(ret) - return + + return objc.Object_FromPointer(ret) } -func NSArray_alloc() ( - r0 NSArray, -) { - ret := C.NSArray_type_alloc() - r0 = NSArray_fromPointer(ret) - return +// NSArray_Alloc +// +// See for details. +func NSArray_Alloc() NSArray { + ret := C.NSArray_type_Alloc() + + return NSArray_FromPointer(ret) } -func NSArray_array() ( - r0 NSArray, -) { - ret := C.NSArray_type_array() - r0 = NSArray_fromPointer(ret) - return +// NSArray_Array creates and returns an empty array. +// +// See https://developer.apple.com/documentation/foundation/nsarray/1460120-array?language=objc for details. +func NSArray_Array() NSArray { + ret := C.NSArray_type_Array() + + return NSArray_FromPointer(ret) } -func NSArray_arrayWithArray_( - array NSArrayRef, -) ( - r0 NSArray, -) { - ret := C.NSArray_type_arrayWithArray_( +// NSArray_ArrayWithArray creates and returns an array containing the objects in another given array. +// +// See https://developer.apple.com/documentation/foundation/nsarray/1460122-arraywitharray?language=objc for details. +func NSArray_ArrayWithArray(array NSArrayRef) NSArray { + ret := C.NSArray_type_ArrayWithArray( objc.RefPointer(array), ) - r0 = NSArray_fromPointer(ret) - return + + return NSArray_FromPointer(ret) } -func NSAttributedString_alloc() ( - r0 NSAttributedString, -) { - ret := C.NSAttributedString_type_alloc() - r0 = NSAttributedString_fromPointer(ret) - return +// NSAttributedString_Alloc +// +// See for details. +func NSAttributedString_Alloc() NSAttributedString { + ret := C.NSAttributedString_type_Alloc() + + return NSAttributedString_FromPointer(ret) } -func NSAttributedString_textTypes() ( - r0 NSArray, -) { - ret := C.NSAttributedString_type_textTypes() - r0 = NSArray_fromPointer(ret) - return +// NSAttributedString_TextTypes an array of uti strings that identify the file types that attributed strings support, either directly or through a user-installed filter service. +// +// See https://developer.apple.com/documentation/foundation/nsattributedstring/1535409-texttypes?language=objc for details. +func NSAttributedString_TextTypes() NSArray { + ret := C.NSAttributedString_type_TextTypes() + + return NSArray_FromPointer(ret) } -func NSAttributedString_textUnfilteredTypes() ( - r0 NSArray, -) { - ret := C.NSAttributedString_type_textUnfilteredTypes() - r0 = NSArray_fromPointer(ret) - return +// NSAttributedString_TextUnfilteredTypes an array of uti strings that identify the file types that attributed strings support directly. +// +// See https://developer.apple.com/documentation/foundation/nsattributedstring/1528269-textunfilteredtypes?language=objc for details. +func NSAttributedString_TextUnfilteredTypes() NSArray { + ret := C.NSAttributedString_type_TextUnfilteredTypes() + + return NSArray_FromPointer(ret) } -func NSData_alloc() ( - r0 NSData, -) { - ret := C.NSData_type_alloc() - r0 = NSData_fromPointer(ret) - return +// NSData_Alloc +// +// See for details. +func NSData_Alloc() NSData { + ret := C.NSData_type_Alloc() + + return NSData_FromPointer(ret) } -func NSData_data() ( - r0 NSData, -) { - ret := C.NSData_type_data() - r0 = NSData_fromPointer(ret) - return +// NSData_Data creates an empty data object. +// +// See https://developer.apple.com/documentation/foundation/nsdata/1547234-data?language=objc for details. +func NSData_Data() NSData { + ret := C.NSData_type_Data() + + return NSData_FromPointer(ret) } -func NSData_dataWithBytes_length_( - bytes unsafe.Pointer, - length NSUInteger, -) ( - r0 NSData, -) { - ret := C.NSData_type_dataWithBytes_length_( +// NSData_DataWithBytesLength creates a data object containing a given number of bytes copied from a given buffer. +// +// See https://developer.apple.com/documentation/foundation/nsdata/1547231-datawithbytes?language=objc for details. +func NSData_DataWithBytesLength(bytes unsafe.Pointer, length NSUInteger) NSData { + ret := C.NSData_type_DataWithBytesLength( bytes, C.ulong(length), ) - r0 = NSData_fromPointer(ret) - return + + return NSData_FromPointer(ret) } -func NSData_dataWithBytesNoCopy_length_( - bytes unsafe.Pointer, - length NSUInteger, -) ( - r0 NSData, -) { - ret := C.NSData_type_dataWithBytesNoCopy_length_( +// NSData_DataWithBytesNoCopyLength creates a data object that holds a given number of bytes from a given buffer. +// +// See https://developer.apple.com/documentation/foundation/nsdata/1547229-datawithbytesnocopy?language=objc for details. +func NSData_DataWithBytesNoCopyLength(bytes unsafe.Pointer, length NSUInteger) NSData { + ret := C.NSData_type_DataWithBytesNoCopyLength( bytes, C.ulong(length), ) - r0 = NSData_fromPointer(ret) - return + + return NSData_FromPointer(ret) } -func NSData_dataWithBytesNoCopy_length_freeWhenDone_( - bytes unsafe.Pointer, - length NSUInteger, - b bool, -) ( - r0 NSData, -) { - ret := C.NSData_type_dataWithBytesNoCopy_length_freeWhenDone_( +// NSData_DataWithBytesNoCopyLengthFreeWhenDone creates a data object that holds a given number of bytes from a given buffer. +// +// See https://developer.apple.com/documentation/foundation/nsdata/1547240-datawithbytesnocopy?language=objc for details. +func NSData_DataWithBytesNoCopyLengthFreeWhenDone(bytes unsafe.Pointer, length NSUInteger, b bool) NSData { + ret := C.NSData_type_DataWithBytesNoCopyLengthFreeWhenDone( bytes, C.ulong(length), convertToObjCBool(b), ) - r0 = NSData_fromPointer(ret) - return + + return NSData_FromPointer(ret) } -func NSData_dataWithData_( - data NSDataRef, -) ( - r0 NSData, -) { - ret := C.NSData_type_dataWithData_( +// NSData_DataWithData creates a data object containing the contents of another data object. +// +// See https://developer.apple.com/documentation/foundation/nsdata/1547230-datawithdata?language=objc for details. +func NSData_DataWithData(data NSDataRef) NSData { + ret := C.NSData_type_DataWithData( objc.RefPointer(data), ) - r0 = NSData_fromPointer(ret) - return + + return NSData_FromPointer(ret) } -func NSData_dataWithContentsOfFile_( - path NSStringRef, -) ( - r0 NSData, -) { - ret := C.NSData_type_dataWithContentsOfFile_( +// NSData_DataWithContentsOfFile creates a data object by reading every byte from the file at a given path. +// +// See https://developer.apple.com/documentation/foundation/nsdata/1547226-datawithcontentsoffile?language=objc for details. +func NSData_DataWithContentsOfFile(path NSStringRef) NSData { + ret := C.NSData_type_DataWithContentsOfFile( objc.RefPointer(path), ) - r0 = NSData_fromPointer(ret) - return + + return NSData_FromPointer(ret) } -func NSData_dataWithContentsOfURL_( - url NSURLRef, -) ( - r0 NSData, -) { - ret := C.NSData_type_dataWithContentsOfURL_( +// NSData_DataWithContentsOfURL creates a data object containing the data from the location specified by a given url. +// +// See https://developer.apple.com/documentation/foundation/nsdata/1547245-datawithcontentsofurl?language=objc for details. +func NSData_DataWithContentsOfURL(url NSURLRef) NSData { + ret := C.NSData_type_DataWithContentsOfURL( objc.RefPointer(url), ) - r0 = NSData_fromPointer(ret) - return + + return NSData_FromPointer(ret) } -func NSDictionary_alloc() ( - r0 NSDictionary, -) { - ret := C.NSDictionary_type_alloc() - r0 = NSDictionary_fromPointer(ret) - return +// NSDictionary_Alloc +// +// See for details. +func NSDictionary_Alloc() NSDictionary { + ret := C.NSDictionary_type_Alloc() + + return NSDictionary_FromPointer(ret) } -func NSDictionary_dictionary() ( - r0 NSDictionary, -) { - ret := C.NSDictionary_type_dictionary() - r0 = NSDictionary_fromPointer(ret) - return +// NSDictionary_Dictionary creates an empty dictionary. +// +// See https://developer.apple.com/documentation/foundation/nsdictionary/1574180-dictionary?language=objc for details. +func NSDictionary_Dictionary() NSDictionary { + ret := C.NSDictionary_type_Dictionary() + + return NSDictionary_FromPointer(ret) } -func NSDictionary_dictionaryWithObjects_forKeys_( - objects NSArrayRef, - keys NSArrayRef, -) ( - r0 NSDictionary, -) { - ret := C.NSDictionary_type_dictionaryWithObjects_forKeys_( +// NSDictionary_DictionaryWithObjectsForKeys creates a dictionary containing entries constructed from the contents of an array of keys and an array of values. +// +// See https://developer.apple.com/documentation/foundation/nsdictionary/1574183-dictionarywithobjects?language=objc for details. +func NSDictionary_DictionaryWithObjectsForKeys(objects NSArrayRef, keys NSArrayRef) NSDictionary { + ret := C.NSDictionary_type_DictionaryWithObjectsForKeys( objc.RefPointer(objects), objc.RefPointer(keys), ) - r0 = NSDictionary_fromPointer(ret) - return + + return NSDictionary_FromPointer(ret) } -func NSDictionary_dictionaryWithDictionary_( - dict NSDictionaryRef, -) ( - r0 NSDictionary, -) { - ret := C.NSDictionary_type_dictionaryWithDictionary_( +// NSDictionary_DictionaryWithDictionary creates a dictionary containing the keys and values from another given dictionary. +// +// See https://developer.apple.com/documentation/foundation/nsdictionary/1574191-dictionarywithdictionary?language=objc for details. +func NSDictionary_DictionaryWithDictionary(dict NSDictionaryRef) NSDictionary { + ret := C.NSDictionary_type_DictionaryWithDictionary( objc.RefPointer(dict), ) - r0 = NSDictionary_fromPointer(ret) - return + + return NSDictionary_FromPointer(ret) } -func NSDictionary_sharedKeySetForKeys_( - keys NSArrayRef, -) ( - r0 objc.Object, -) { - ret := C.NSDictionary_type_sharedKeySetForKeys_( +// NSDictionary_SharedKeySetForKeys creates a shared key set object for the specified keys. +// +// See https://developer.apple.com/documentation/foundation/nsdictionary/1408190-sharedkeysetforkeys?language=objc for details. +func NSDictionary_SharedKeySetForKeys(keys NSArrayRef) objc.Object { + ret := C.NSDictionary_type_SharedKeySetForKeys( objc.RefPointer(keys), ) - r0 = objc.Object_fromPointer(ret) - return + + return objc.Object_FromPointer(ret) } -func NSNumber_alloc() ( - r0 NSNumber, -) { - ret := C.NSNumber_type_alloc() - r0 = NSNumber_fromPointer(ret) - return +// NSNumber_Alloc +// +// See for details. +func NSNumber_Alloc() NSNumber { + ret := C.NSNumber_type_Alloc() + + return NSNumber_FromPointer(ret) } -func NSNumber_numberWithBool_( - value bool, -) ( - r0 NSNumber, -) { - ret := C.NSNumber_type_numberWithBool_( +// NSNumber_NumberWithBool creates and returns an nsnumber object containing a given value, treating it as a bool. +// +// See https://developer.apple.com/documentation/foundation/nsnumber/1551475-numberwithbool?language=objc for details. +func NSNumber_NumberWithBool(value bool) NSNumber { + ret := C.NSNumber_type_NumberWithBool( convertToObjCBool(value), ) - r0 = NSNumber_fromPointer(ret) - return + + return NSNumber_FromPointer(ret) } -func NSNumber_numberWithInt_( - value int32, -) ( - r0 NSNumber, -) { - ret := C.NSNumber_type_numberWithInt_( +// NSNumber_NumberWithInt creates and returns an nsnumber object containing a given value, treating it as a signed int. +// +// See https://developer.apple.com/documentation/foundation/nsnumber/1551470-numberwithint?language=objc for details. +func NSNumber_NumberWithInt(value int32) NSNumber { + ret := C.NSNumber_type_NumberWithInt( C.int(value), ) - r0 = NSNumber_fromPointer(ret) - return + + return NSNumber_FromPointer(ret) } -func NSNumber_numberWithInteger_( - value NSInteger, -) ( - r0 NSNumber, -) { - ret := C.NSNumber_type_numberWithInteger_( +// NSNumber_NumberWithInteger creates and returns an nsnumber object containing a given value, treating it as an nsinteger. +// +// See https://developer.apple.com/documentation/foundation/nsnumber/1551473-numberwithinteger?language=objc for details. +func NSNumber_NumberWithInteger(value NSInteger) NSNumber { + ret := C.NSNumber_type_NumberWithInteger( C.long(value), ) - r0 = NSNumber_fromPointer(ret) - return + + return NSNumber_FromPointer(ret) } -func NSNumber_numberWithUnsignedInt_( - value int32, -) ( - r0 NSNumber, -) { - ret := C.NSNumber_type_numberWithUnsignedInt_( +// NSNumber_NumberWithUnsignedInt creates and returns an nsnumber object containing a given value, treating it as an unsigned int. +// +// See https://developer.apple.com/documentation/foundation/nsnumber/1551472-numberwithunsignedint?language=objc for details. +func NSNumber_NumberWithUnsignedInt(value int32) NSNumber { + ret := C.NSNumber_type_NumberWithUnsignedInt( C.int(value), ) - r0 = NSNumber_fromPointer(ret) - return + + return NSNumber_FromPointer(ret) } -func NSNumber_numberWithUnsignedInteger_( - value NSUInteger, -) ( - r0 NSNumber, -) { - ret := C.NSNumber_type_numberWithUnsignedInteger_( +// NSNumber_NumberWithUnsignedInteger creates and returns an nsnumber object containing a given value, treating it as an nsuinteger. +// +// See https://developer.apple.com/documentation/foundation/nsnumber/1551469-numberwithunsignedinteger?language=objc for details. +func NSNumber_NumberWithUnsignedInteger(value NSUInteger) NSNumber { + ret := C.NSNumber_type_NumberWithUnsignedInteger( C.ulong(value), ) - r0 = NSNumber_fromPointer(ret) - return + + return NSNumber_FromPointer(ret) } -func NSRunLoop_alloc() ( - r0 NSRunLoop, -) { - ret := C.NSRunLoop_type_alloc() - r0 = NSRunLoop_fromPointer(ret) - return +// NSRunLoop_Alloc +// +// See for details. +func NSRunLoop_Alloc() NSRunLoop { + ret := C.NSRunLoop_type_Alloc() + + return NSRunLoop_FromPointer(ret) } -func NSRunLoop_currentRunLoop() ( - r0 NSRunLoop, -) { - ret := C.NSRunLoop_type_currentRunLoop() - r0 = NSRunLoop_fromPointer(ret) - return +// NSRunLoop_CurrentRunLoop returns the run loop for the current thread. +// +// See https://developer.apple.com/documentation/foundation/nsrunloop/1412291-currentrunloop?language=objc for details. +func NSRunLoop_CurrentRunLoop() NSRunLoop { + ret := C.NSRunLoop_type_CurrentRunLoop() + + return NSRunLoop_FromPointer(ret) } -func NSRunLoop_mainRunLoop() ( - r0 NSRunLoop, -) { - ret := C.NSRunLoop_type_mainRunLoop() - r0 = NSRunLoop_fromPointer(ret) - return +// NSRunLoop_MainRunLoop returns the run loop of the main thread. +// +// See https://developer.apple.com/documentation/foundation/nsrunloop/1418388-mainrunloop?language=objc for details. +func NSRunLoop_MainRunLoop() NSRunLoop { + ret := C.NSRunLoop_type_MainRunLoop() + + return NSRunLoop_FromPointer(ret) } -func NSString_alloc() ( - r0 NSString, -) { - ret := C.NSString_type_alloc() - r0 = NSString_fromPointer(ret) - return +// NSString_Alloc +// +// See for details. +func NSString_Alloc() NSString { + ret := C.NSString_type_Alloc() + + return NSString_FromPointer(ret) } -func NSString_string() ( - r0 NSString, -) { - ret := C.NSString_type_string() - r0 = NSString_fromPointer(ret) - return +// NSString_String returns an empty string. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1497312-string?language=objc for details. +func NSString_String() NSString { + ret := C.NSString_type_String() + + return NSString_FromPointer(ret) } -func NSString_localizedUserNotificationStringForKey_arguments_( - key NSStringRef, - arguments NSArrayRef, -) ( - r0 NSString, -) { - ret := C.NSString_type_localizedUserNotificationStringForKey_arguments_( +// NSString_LocalizedUserNotificationStringForKeyArguments returns a localized string intended for display in a notification alert. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1649585-localizedusernotificationstringf?language=objc for details. +func NSString_LocalizedUserNotificationStringForKeyArguments(key NSStringRef, arguments NSArrayRef) NSString { + ret := C.NSString_type_LocalizedUserNotificationStringForKeyArguments( objc.RefPointer(key), objc.RefPointer(arguments), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func NSString_stringWithString_( - string NSStringRef, -) ( - r0 NSString, -) { - ret := C.NSString_type_stringWithString_( +// NSString_StringWithString returns a string created by copying the characters from another given string. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1497372-stringwithstring?language=objc for details. +func NSString_StringWithString(string NSStringRef) NSString { + ret := C.NSString_type_StringWithString( objc.RefPointer(string), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func NSString_localizedNameOfStringEncoding_( - encoding NSStringEncoding, -) ( - r0 NSString, -) { - ret := C.NSString_type_localizedNameOfStringEncoding_( +// NSString_LocalizedNameOfStringEncoding returns a human-readable string giving the name of a given encoding. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1408318-localizednameofstringencoding?language=objc for details. +func NSString_LocalizedNameOfStringEncoding(encoding NSStringEncoding) NSString { + ret := C.NSString_type_LocalizedNameOfStringEncoding( C.ulong(encoding), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func NSString_pathWithComponents_( - components NSArrayRef, -) ( - r0 NSString, -) { - ret := C.NSString_type_pathWithComponents_( +// NSString_PathWithComponents returns a string built from the strings in a given array by concatenating them with a path separator between each pair. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1417198-pathwithcomponents?language=objc for details. +func NSString_PathWithComponents(components NSArrayRef) NSString { + ret := C.NSString_type_PathWithComponents( objc.RefPointer(components), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func NSString_defaultCStringEncoding() ( - r0 NSStringEncoding, -) { - ret := C.NSString_type_defaultCStringEncoding() - r0 = NSStringEncoding(ret) - return +// NSString_DefaultCStringEncoding returns the c-string encoding assumed for any method accepting a c string as an argument. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1410091-defaultcstringencoding?language=objc for details. +func NSString_DefaultCStringEncoding() NSStringEncoding { + ret := C.NSString_type_DefaultCStringEncoding() + + return NSStringEncoding(ret) } -func NSThread_alloc() ( - r0 NSThread, -) { - ret := C.NSThread_type_alloc() - r0 = NSThread_fromPointer(ret) - return +// NSThread_Alloc +// +// See for details. +func NSThread_Alloc() NSThread { + ret := C.NSThread_type_Alloc() + + return NSThread_FromPointer(ret) } -func NSThread_detachNewThreadSelector_toTarget_withObject_( - selector objc.Selector, - target objc.Ref, - argument objc.Ref, -) { - C.NSThread_type_detachNewThreadSelector_toTarget_withObject_( +// NSThread_DetachNewThreadSelectorToTargetWithObject detaches a new thread and uses the specified selector as the thread entry point. +// +// See https://developer.apple.com/documentation/foundation/nsthread/1415633-detachnewthreadselector?language=objc for details. +func NSThread_DetachNewThreadSelectorToTargetWithObject(selector objc.Selector, target objc.Ref, argument objc.Ref) { + C.NSThread_type_DetachNewThreadSelectorToTargetWithObject( selector.SelectorAddress(), objc.RefPointer(target), objc.RefPointer(argument), ) + return } -func NSThread_exit() { - C.NSThread_type_exit() +// NSThread_Exit terminates the current thread. +// +// See https://developer.apple.com/documentation/foundation/nsthread/1409404-exit?language=objc for details. +func NSThread_Exit() { + C.NSThread_type_Exit() + return } -func NSThread_isMultiThreaded() ( - r0 bool, -) { - ret := C.NSThread_type_isMultiThreaded() - r0 = convertObjCBoolToGo(ret) - return +// NSThread_IsMultiThreaded returns whether the application is multithreaded. +// +// See https://developer.apple.com/documentation/foundation/nsthread/1410702-ismultithreaded?language=objc for details. +func NSThread_IsMultiThreaded() bool { + ret := C.NSThread_type_IsMultiThreaded() + + return convertObjCBoolToGo(ret) } -func NSThread_isMainThread() ( - r0 bool, -) { - ret := C.NSThread_type_isMainThread() - r0 = convertObjCBoolToGo(ret) - return +// NSThread_IsMainThread returns a boolean value that indicates whether the current thread is the main thread. +// +// See https://developer.apple.com/documentation/foundation/nsthread/1412704-ismainthread?language=objc for details. +func NSThread_IsMainThread() bool { + ret := C.NSThread_type_IsMainThread() + + return convertObjCBoolToGo(ret) } -func NSThread_mainThread() ( - r0 NSThread, -) { - ret := C.NSThread_type_mainThread() - r0 = NSThread_fromPointer(ret) - return +// NSThread_MainThread returns the nsthread object representing the main thread. +// +// See https://developer.apple.com/documentation/foundation/nsthread/1414782-mainthread?language=objc for details. +func NSThread_MainThread() NSThread { + ret := C.NSThread_type_MainThread() + + return NSThread_FromPointer(ret) } -func NSThread_currentThread() ( - r0 NSThread, -) { - ret := C.NSThread_type_currentThread() - r0 = NSThread_fromPointer(ret) - return +// NSThread_CurrentThread returns the thread object representing the current thread of execution. +// +// See https://developer.apple.com/documentation/foundation/nsthread/1410679-currentthread?language=objc for details. +func NSThread_CurrentThread() NSThread { + ret := C.NSThread_type_CurrentThread() + + return NSThread_FromPointer(ret) } -func NSThread_callStackReturnAddresses() ( - r0 NSArray, -) { - ret := C.NSThread_type_callStackReturnAddresses() - r0 = NSArray_fromPointer(ret) - return +// NSThread_CallStackReturnAddresses returns an array containing the call stack return addresses. +// +// See https://developer.apple.com/documentation/foundation/nsthread/1409565-callstackreturnaddresses?language=objc for details. +func NSThread_CallStackReturnAddresses() NSArray { + ret := C.NSThread_type_CallStackReturnAddresses() + + return NSArray_FromPointer(ret) } -func NSThread_callStackSymbols() ( - r0 NSArray, -) { - ret := C.NSThread_type_callStackSymbols() - r0 = NSArray_fromPointer(ret) - return +// NSThread_CallStackSymbols returns an array containing the call stack symbols. +// +// See https://developer.apple.com/documentation/foundation/nsthread/1414836-callstacksymbols?language=objc for details. +func NSThread_CallStackSymbols() NSArray { + ret := C.NSThread_type_CallStackSymbols() + + return NSArray_FromPointer(ret) } -func NSURL_alloc() ( - r0 NSURL, -) { - ret := C.NSURL_type_alloc() - r0 = NSURL_fromPointer(ret) - return +// NSURL_Alloc +// +// See for details. +func NSURL_Alloc() NSURL { + ret := C.NSURL_type_Alloc() + + return NSURL_FromPointer(ret) } -func NSURL_URLWithString_( - URLString NSStringRef, -) ( - r0 NSURL, -) { - ret := C.NSURL_type_URLWithString_( +// NSURL_URLWithString creates and returns an nsurl object initialized with a provided url string. +// +// See https://developer.apple.com/documentation/foundation/nsurl/1572047-urlwithstring?language=objc for details. +func NSURL_URLWithString(URLString NSStringRef) NSURL { + ret := C.NSURL_type_URLWithString( objc.RefPointer(URLString), ) - r0 = NSURL_fromPointer(ret) - return + + return NSURL_FromPointer(ret) } -func NSURL_URLWithString_relativeToURL_( - URLString NSStringRef, - baseURL NSURLRef, -) ( - r0 NSURL, -) { - ret := C.NSURL_type_URLWithString_relativeToURL_( +// NSURL_URLWithStringRelativeToURL creates and returns an nsurl object initialized with a base url and a relative string. +// +// See https://developer.apple.com/documentation/foundation/nsurl/1572049-urlwithstring?language=objc for details. +func NSURL_URLWithStringRelativeToURL(URLString NSStringRef, baseURL NSURLRef) NSURL { + ret := C.NSURL_type_URLWithStringRelativeToURL( objc.RefPointer(URLString), objc.RefPointer(baseURL), ) - r0 = NSURL_fromPointer(ret) - return + + return NSURL_FromPointer(ret) } -func NSURL_fileURLWithPath_isDirectory_( - path NSStringRef, - isDir bool, -) ( - r0 NSURL, -) { - ret := C.NSURL_type_fileURLWithPath_isDirectory_( +// NSURL_FileURLWithPathIsDirectory initializes and returns a newly created nsurl object as a file url with a specified path. +// +// See https://developer.apple.com/documentation/foundation/nsurl/1414650-fileurlwithpath?language=objc for details. +func NSURL_FileURLWithPathIsDirectory(path NSStringRef, isDir bool) NSURL { + ret := C.NSURL_type_FileURLWithPathIsDirectory( objc.RefPointer(path), convertToObjCBool(isDir), ) - r0 = NSURL_fromPointer(ret) - return + + return NSURL_FromPointer(ret) } -func NSURL_fileURLWithPath_relativeToURL_( - path NSStringRef, - baseURL NSURLRef, -) ( - r0 NSURL, -) { - ret := C.NSURL_type_fileURLWithPath_relativeToURL_( +// NSURL_FileURLWithPathRelativeToURL +// +// See https://developer.apple.com/documentation/foundation/nsurl/1413201-fileurlwithpath?language=objc for details. +func NSURL_FileURLWithPathRelativeToURL(path NSStringRef, baseURL NSURLRef) NSURL { + ret := C.NSURL_type_FileURLWithPathRelativeToURL( objc.RefPointer(path), objc.RefPointer(baseURL), ) - r0 = NSURL_fromPointer(ret) - return + + return NSURL_FromPointer(ret) } -func NSURL_fileURLWithPath_isDirectory_relativeToURL_( - path NSStringRef, - isDir bool, - baseURL NSURLRef, -) ( - r0 NSURL, -) { - ret := C.NSURL_type_fileURLWithPath_isDirectory_relativeToURL_( +// NSURL_FileURLWithPathIsDirectoryRelativeToURL +// +// See https://developer.apple.com/documentation/foundation/nsurl/1413020-fileurlwithpath?language=objc for details. +func NSURL_FileURLWithPathIsDirectoryRelativeToURL(path NSStringRef, isDir bool, baseURL NSURLRef) NSURL { + ret := C.NSURL_type_FileURLWithPathIsDirectoryRelativeToURL( objc.RefPointer(path), convertToObjCBool(isDir), objc.RefPointer(baseURL), ) - r0 = NSURL_fromPointer(ret) - return + + return NSURL_FromPointer(ret) } -func NSURL_fileURLWithPath_( - path NSStringRef, -) ( - r0 NSURL, -) { - ret := C.NSURL_type_fileURLWithPath_( +// NSURL_FileURLWithPath initializes and returns a newly created nsurl object as a file url with a specified path. +// +// See https://developer.apple.com/documentation/foundation/nsurl/1410828-fileurlwithpath?language=objc for details. +func NSURL_FileURLWithPath(path NSStringRef) NSURL { + ret := C.NSURL_type_FileURLWithPath( objc.RefPointer(path), ) - r0 = NSURL_fromPointer(ret) - return + + return NSURL_FromPointer(ret) } -func NSURL_fileURLWithPathComponents_( - components NSArrayRef, -) ( - r0 NSURL, -) { - ret := C.NSURL_type_fileURLWithPathComponents_( +// NSURL_FileURLWithPathComponents initializes and returns a newly created nsurl object as a file url with specified path components. +// +// See https://developer.apple.com/documentation/foundation/nsurl/1414206-fileurlwithpathcomponents?language=objc for details. +func NSURL_FileURLWithPathComponents(components NSArrayRef) NSURL { + ret := C.NSURL_type_FileURLWithPathComponents( objc.RefPointer(components), ) - r0 = NSURL_fromPointer(ret) - return + + return NSURL_FromPointer(ret) } -func NSURL_absoluteURLWithDataRepresentation_relativeToURL_( - data NSDataRef, - baseURL NSURLRef, -) ( - r0 NSURL, -) { - ret := C.NSURL_type_absoluteURLWithDataRepresentation_relativeToURL_( +// NSURL_AbsoluteURLWithDataRepresentationRelativeToURL +// +// See https://developer.apple.com/documentation/foundation/nsurl/1412404-absoluteurlwithdatarepresentatio?language=objc for details. +func NSURL_AbsoluteURLWithDataRepresentationRelativeToURL(data NSDataRef, baseURL NSURLRef) NSURL { + ret := C.NSURL_type_AbsoluteURLWithDataRepresentationRelativeToURL( objc.RefPointer(data), objc.RefPointer(baseURL), ) - r0 = NSURL_fromPointer(ret) - return + + return NSURL_FromPointer(ret) } -func NSURL_URLWithDataRepresentation_relativeToURL_( - data NSDataRef, - baseURL NSURLRef, -) ( - r0 NSURL, -) { - ret := C.NSURL_type_URLWithDataRepresentation_relativeToURL_( +// NSURL_URLWithDataRepresentationRelativeToURL +// +// See https://developer.apple.com/documentation/foundation/nsurl/1572042-urlwithdatarepresentation?language=objc for details. +func NSURL_URLWithDataRepresentationRelativeToURL(data NSDataRef, baseURL NSURLRef) NSURL { + ret := C.NSURL_type_URLWithDataRepresentationRelativeToURL( objc.RefPointer(data), objc.RefPointer(baseURL), ) - r0 = NSURL_fromPointer(ret) - return + + return NSURL_FromPointer(ret) } -func NSURL_resourceValuesForKeys_fromBookmarkData_( - keys NSArrayRef, - bookmarkData NSDataRef, -) ( - r0 NSDictionary, -) { - ret := C.NSURL_type_resourceValuesForKeys_fromBookmarkData_( +// NSURL_ResourceValuesForKeysFromBookmarkData returns the resource values for properties identified by a specified array of keys contained in specified bookmark data. +// +// See https://developer.apple.com/documentation/foundation/nsurl/1418097-resourcevaluesforkeys?language=objc for details. +func NSURL_ResourceValuesForKeysFromBookmarkData(keys NSArrayRef, bookmarkData NSDataRef) NSDictionary { + ret := C.NSURL_type_ResourceValuesForKeysFromBookmarkData( objc.RefPointer(keys), objc.RefPointer(bookmarkData), ) - r0 = NSDictionary_fromPointer(ret) - return + + return NSDictionary_FromPointer(ret) } -func NSURLRequest_alloc() ( - r0 NSURLRequest, -) { - ret := C.NSURLRequest_type_alloc() - r0 = NSURLRequest_fromPointer(ret) - return +// NSURLRequest_Alloc +// +// See for details. +func NSURLRequest_Alloc() NSURLRequest { + ret := C.NSURLRequest_type_Alloc() + + return NSURLRequest_FromPointer(ret) } -func NSURLRequest_requestWithURL_( - URL NSURLRef, -) ( - r0 NSURLRequest, -) { - ret := C.NSURLRequest_type_requestWithURL_( +// NSURLRequest_RequestWithURL creates and returns a url request for a specified url. +// +// See https://developer.apple.com/documentation/foundation/nsurlrequest/1528603-requestwithurl?language=objc for details. +func NSURLRequest_RequestWithURL(URL NSURLRef) NSURLRequest { + ret := C.NSURLRequest_type_RequestWithURL( objc.RefPointer(URL), ) - r0 = NSURLRequest_fromPointer(ret) - return + + return NSURLRequest_FromPointer(ret) } -func NSURLRequest_supportsSecureCoding() ( - r0 bool, -) { - ret := C.NSURLRequest_type_supportsSecureCoding() - r0 = convertObjCBoolToGo(ret) - return +// NSURLRequest_SupportsSecureCoding returns a boolean value indicating whether the nsurlrequest implements the nssecurecoding protocol. +// +// See https://developer.apple.com/documentation/foundation/nsurlrequest/1416510-supportssecurecoding?language=objc for details. +func NSURLRequest_SupportsSecureCoding() bool { + ret := C.NSURLRequest_type_SupportsSecureCoding() + + return convertObjCBoolToGo(ret) } -func NSUserDefaults_alloc() ( - r0 NSUserDefaults, -) { - ret := C.NSUserDefaults_type_alloc() - r0 = NSUserDefaults_fromPointer(ret) - return +// NSUserDefaults_Alloc +// +// See for details. +func NSUserDefaults_Alloc() NSUserDefaults { + ret := C.NSUserDefaults_type_Alloc() + + return NSUserDefaults_FromPointer(ret) } -func NSUserDefaults_resetStandardUserDefaults() { - C.NSUserDefaults_type_resetStandardUserDefaults() +// NSUserDefaults_ResetStandardUserDefaults this method has no effect and shouldn't be used. +// +// See https://developer.apple.com/documentation/foundation/nsuserdefaults/1407708-resetstandarduserdefaults?language=objc for details. +func NSUserDefaults_ResetStandardUserDefaults() { + C.NSUserDefaults_type_ResetStandardUserDefaults() + return } -func NSUserDefaults_standardUserDefaults() ( - r0 NSUserDefaults, -) { - ret := C.NSUserDefaults_type_standardUserDefaults() - r0 = NSUserDefaults_fromPointer(ret) - return +// NSUserDefaults_StandardUserDefaults returns the shared defaults object. +// +// See https://developer.apple.com/documentation/foundation/nsuserdefaults/1416603-standarduserdefaults?language=objc for details. +func NSUserDefaults_StandardUserDefaults() NSUserDefaults { + ret := C.NSUserDefaults_type_StandardUserDefaults() + + return NSUserDefaults_FromPointer(ret) } type CALayerRef interface { Pointer() uintptr - Init_asCALayer() CALayer + Init_AsCALayer() CALayer } type gen_CALayer struct { objc.Object } -func CALayer_fromPointer(ptr unsafe.Pointer) CALayer { +func CALayer_FromPointer(ptr unsafe.Pointer) CALayer { return CALayer{gen_CALayer{ - objc.Object_fromPointer(ptr), + objc.Object_FromPointer(ptr), }} } -func CALayer_fromRef(ref objc.Ref) CALayer { - return CALayer_fromPointer(unsafe.Pointer(ref.Pointer())) +func CALayer_FromRef(ref objc.Ref) CALayer { + return CALayer_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_CALayer) Init_asCALayer() ( - r0 CALayer, -) { - ret := C.CALayer_inst_init( +// ActionForKey returns the action object assigned to the specified key. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410844-actionforkey?language=objc for details. +func (x gen_CALayer) ActionForKey( + event NSStringRef, +) objc.Object { + ret := C.CALayer_inst_ActionForKey( unsafe.Pointer(x.Pointer()), + objc.RefPointer(event), ) - r0 = CALayer_fromPointer(ret) - return + + return objc.Object_FromPointer(ret) } -func (x gen_CALayer) InitWithLayer__asCALayer( - layer objc.Ref, -) ( - r0 CALayer, +// AddSublayer appends the layer to the layer’s list of sublayers. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410833-addsublayer?language=objc for details. +func (x gen_CALayer) AddSublayer( + layer CALayerRef, ) { - ret := C.CALayer_inst_initWithLayer_( + C.CALayer_inst_AddSublayer( unsafe.Pointer(x.Pointer()), objc.RefPointer(layer), ) - r0 = CALayer_fromPointer(ret) + return } -func (x gen_CALayer) PresentationLayer_asCALayer() ( - r0 CALayer, -) { - ret := C.CALayer_inst_presentationLayer( +// AnimationKeys returns an array of strings that identify the animations currently attached to the layer. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410937-animationkeys?language=objc for details. +func (x gen_CALayer) AnimationKeys() NSArray { + ret := C.CALayer_inst_AnimationKeys( unsafe.Pointer(x.Pointer()), ) - r0 = CALayer_fromPointer(ret) - return + + return NSArray_FromPointer(ret) } -func (x gen_CALayer) ModelLayer_asCALayer() ( - r0 CALayer, -) { - ret := C.CALayer_inst_modelLayer( +// ContentsAreFlipped returns a boolean indicating whether the layer content is implicitly flipped when rendered. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410777-contentsareflipped?language=objc for details. +func (x gen_CALayer) ContentsAreFlipped() bool { + ret := C.CALayer_inst_ContentsAreFlipped( unsafe.Pointer(x.Pointer()), ) - r0 = CALayer_fromPointer(ret) - return + + return convertObjCBoolToGo(ret) +} + +// ConvertRectFromLayer converts the rectangle from the specified layer’s coordinate system to the receiver’s coordinate system. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410948-convertrect?language=objc for details. +func (x gen_CALayer) ConvertRectFromLayer( + r NSRect, + l CALayerRef, +) NSRect { + ret := C.CALayer_inst_ConvertRectFromLayer( + unsafe.Pointer(x.Pointer()), + *(*C.NSRect)(unsafe.Pointer(&r)), + objc.RefPointer(l), + ) + + return *(*NSRect)(unsafe.Pointer(&ret)) +} + +// ConvertRectToLayer converts the rectangle from the receiver’s coordinate system to the specified layer’s coordinate system. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410742-convertrect?language=objc for details. +func (x gen_CALayer) ConvertRectToLayer( + r NSRect, + l CALayerRef, +) NSRect { + ret := C.CALayer_inst_ConvertRectToLayer( + unsafe.Pointer(x.Pointer()), + *(*C.NSRect)(unsafe.Pointer(&r)), + objc.RefPointer(l), + ) + + return *(*NSRect)(unsafe.Pointer(&ret)) } +// Display reloads the content of this layer. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410926-display?language=objc for details. func (x gen_CALayer) Display() { - C.CALayer_inst_display( + C.CALayer_inst_Display( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_CALayer) ContentsAreFlipped() ( - r0 bool, -) { - ret := C.CALayer_inst_contentsAreFlipped( +// DisplayIfNeeded initiates the update process for a layer if it is currently marked as needing an update. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410813-displayifneeded?language=objc for details. +func (x gen_CALayer) DisplayIfNeeded() { + C.CALayer_inst_DisplayIfNeeded( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) + return } -func (x gen_CALayer) AddSublayer_( - layer CALayerRef, -) { - C.CALayer_inst_addSublayer_( +// Init returns an initialized calayer object. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410835-init?language=objc for details. +func (x gen_CALayer) Init_AsCALayer() CALayer { + ret := C.CALayer_inst_Init( unsafe.Pointer(x.Pointer()), - objc.RefPointer(layer), ) - return + + return CALayer_FromPointer(ret) } -func (x gen_CALayer) RemoveFromSuperlayer() { - C.CALayer_inst_removeFromSuperlayer( +// InitWithLayer override to copy or initialize custom fields of the specified layer. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410842-initwithlayer?language=objc for details. +func (x gen_CALayer) InitWithLayer_AsCALayer( + layer objc.Ref, +) CALayer { + ret := C.CALayer_inst_InitWithLayer( unsafe.Pointer(x.Pointer()), + objc.RefPointer(layer), ) - return + + return CALayer_FromPointer(ret) } -func (x gen_CALayer) InsertSublayer_atIndex_( +// InsertSublayerAbove inserts the specified sublayer above a different sublayer that already belongs to the receiver. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410798-insertsublayer?language=objc for details. +func (x gen_CALayer) InsertSublayerAbove( layer CALayerRef, - idx int32, + sibling CALayerRef, ) { - C.CALayer_inst_insertSublayer_atIndex_( + C.CALayer_inst_InsertSublayerAbove( unsafe.Pointer(x.Pointer()), objc.RefPointer(layer), - C.int(idx), + objc.RefPointer(sibling), ) + return } -func (x gen_CALayer) InsertSublayer_below_( +// InsertSublayerAtIndex inserts the specified layer into the receiver’s list of sublayers at the specified index. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410944-insertsublayer?language=objc for details. +func (x gen_CALayer) InsertSublayerAtIndex( layer CALayerRef, - sibling CALayerRef, + idx int32, ) { - C.CALayer_inst_insertSublayer_below_( + C.CALayer_inst_InsertSublayerAtIndex( unsafe.Pointer(x.Pointer()), objc.RefPointer(layer), - objc.RefPointer(sibling), + C.int(idx), ) + return } -func (x gen_CALayer) InsertSublayer_above_( +// InsertSublayerBelow inserts the specified sublayer below a different sublayer that already belongs to the receiver. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410840-insertsublayer?language=objc for details. +func (x gen_CALayer) InsertSublayerBelow( layer CALayerRef, sibling CALayerRef, ) { - C.CALayer_inst_insertSublayer_above_( + C.CALayer_inst_InsertSublayerBelow( unsafe.Pointer(x.Pointer()), objc.RefPointer(layer), objc.RefPointer(sibling), ) + return } -func (x gen_CALayer) ReplaceSublayer_with_( - oldLayer CALayerRef, - newLayer CALayerRef, -) { - C.CALayer_inst_replaceSublayer_with_( +// LayoutIfNeeded recalculate the receiver’s layout, if required. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410873-layoutifneeded?language=objc for details. +func (x gen_CALayer) LayoutIfNeeded() { + C.CALayer_inst_LayoutIfNeeded( unsafe.Pointer(x.Pointer()), - objc.RefPointer(oldLayer), - objc.RefPointer(newLayer), ) + return } -func (x gen_CALayer) SetNeedsDisplay() { - C.CALayer_inst_setNeedsDisplay( +// LayoutSublayers tells the layer to update its layout. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410935-layoutsublayers?language=objc for details. +func (x gen_CALayer) LayoutSublayers() { + C.CALayer_inst_LayoutSublayers( unsafe.Pointer(x.Pointer()), ) - return -} -func (x gen_CALayer) SetNeedsDisplayInRect_( - r NSRect, -) { - C.CALayer_inst_setNeedsDisplayInRect_( - unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&r)), - ) return } -func (x gen_CALayer) DisplayIfNeeded() { - C.CALayer_inst_displayIfNeeded( +// ModelLayer returns the model layer object associated with the receiver, if any. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410853-modellayer?language=objc for details. +func (x gen_CALayer) ModelLayer_AsCALayer() CALayer { + ret := C.CALayer_inst_ModelLayer( unsafe.Pointer(x.Pointer()), ) - return + + return CALayer_FromPointer(ret) } -func (x gen_CALayer) NeedsDisplay() ( - r0 bool, -) { - ret := C.CALayer_inst_needsDisplay( +// NeedsDisplay returns a boolean indicating whether the layer has been marked as needing an update. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410958-needsdisplay?language=objc for details. +func (x gen_CALayer) NeedsDisplay() bool { + ret := C.CALayer_inst_NeedsDisplay( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_CALayer) RemoveAllAnimations() { - C.CALayer_inst_removeAllAnimations( +// NeedsLayout returns a boolean indicating whether the layer has been marked as needing a layout update. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410956-needslayout?language=objc for details. +func (x gen_CALayer) NeedsLayout() bool { + ret := C.CALayer_inst_NeedsLayout( unsafe.Pointer(x.Pointer()), ) - return + + return convertObjCBoolToGo(ret) } -func (x gen_CALayer) RemoveAnimationForKey_( - key NSStringRef, -) { - C.CALayer_inst_removeAnimationForKey_( +// PreferredFrameSize returns the preferred size of the layer in the coordinate space of its superlayer. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410980-preferredframesize?language=objc for details. +func (x gen_CALayer) PreferredFrameSize() NSSize { + ret := C.CALayer_inst_PreferredFrameSize( unsafe.Pointer(x.Pointer()), - objc.RefPointer(key), ) - return + + return *(*NSSize)(unsafe.Pointer(&ret)) } -func (x gen_CALayer) AnimationKeys() ( - r0 NSArray, -) { - ret := C.CALayer_inst_animationKeys( +// PresentationLayer returns a copy of the presentation layer object that represents the state of the layer as it currently appears onscreen. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410744-presentationlayer?language=objc for details. +func (x gen_CALayer) PresentationLayer_AsCALayer() CALayer { + ret := C.CALayer_inst_PresentationLayer( unsafe.Pointer(x.Pointer()), ) - r0 = NSArray_fromPointer(ret) - return + + return CALayer_FromPointer(ret) } -func (x gen_CALayer) SetNeedsLayout() { - C.CALayer_inst_setNeedsLayout( +// RemoveAllAnimations remove all animations attached to the layer. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410810-removeallanimations?language=objc for details. +func (x gen_CALayer) RemoveAllAnimations() { + C.CALayer_inst_RemoveAllAnimations( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_CALayer) LayoutSublayers() { - C.CALayer_inst_layoutSublayers( +// RemoveAnimationForKey remove the animation object with the specified key. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410939-removeanimationforkey?language=objc for details. +func (x gen_CALayer) RemoveAnimationForKey( + key NSStringRef, +) { + C.CALayer_inst_RemoveAnimationForKey( unsafe.Pointer(x.Pointer()), + objc.RefPointer(key), ) + return } -func (x gen_CALayer) LayoutIfNeeded() { - C.CALayer_inst_layoutIfNeeded( +// RemoveFromSuperlayer detaches the layer from its parent layer. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410767-removefromsuperlayer?language=objc for details. +func (x gen_CALayer) RemoveFromSuperlayer() { + C.CALayer_inst_RemoveFromSuperlayer( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_CALayer) NeedsLayout() ( - r0 bool, +// ReplaceSublayerWith replaces the specified sublayer with a different layer object. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410820-replacesublayer?language=objc for details. +func (x gen_CALayer) ReplaceSublayerWith( + oldLayer CALayerRef, + newLayer CALayerRef, ) { - ret := C.CALayer_inst_needsLayout( + C.CALayer_inst_ReplaceSublayerWith( unsafe.Pointer(x.Pointer()), + objc.RefPointer(oldLayer), + objc.RefPointer(newLayer), ) - r0 = convertObjCBoolToGo(ret) + return } -func (x gen_CALayer) ResizeWithOldSuperlayerSize_( +// ResizeSublayersWithOldSize informs the receiver’s sublayers that the receiver’s size has changed. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410929-resizesublayerswitholdsize?language=objc for details. +func (x gen_CALayer) ResizeSublayersWithOldSize( size NSSize, ) { - C.CALayer_inst_resizeWithOldSuperlayerSize_( + C.CALayer_inst_ResizeSublayersWithOldSize( unsafe.Pointer(x.Pointer()), *(*C.NSSize)(unsafe.Pointer(&size)), ) + return } -func (x gen_CALayer) ResizeSublayersWithOldSize_( +// ResizeWithOldSuperlayerSize informs the receiver that the size of its superlayer changed. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410894-resizewitholdsuperlayersize?language=objc for details. +func (x gen_CALayer) ResizeWithOldSuperlayerSize( size NSSize, ) { - C.CALayer_inst_resizeSublayersWithOldSize_( + C.CALayer_inst_ResizeWithOldSuperlayerSize( unsafe.Pointer(x.Pointer()), *(*C.NSSize)(unsafe.Pointer(&size)), ) - return -} -func (x gen_CALayer) PreferredFrameSize() ( - r0 NSSize, -) { - ret := C.CALayer_inst_preferredFrameSize( - unsafe.Pointer(x.Pointer()), - ) - r0 = *(*NSSize)(unsafe.Pointer(&ret)) return } -func (x gen_CALayer) ActionForKey_( - event NSStringRef, -) ( - r0 objc.Object, +// ScrollRectToVisible initiates a scroll in the layer’s closest ancestor scroll layer so that the specified rectangle becomes visible. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1522139-scrollrecttovisible?language=objc for details. +func (x gen_CALayer) ScrollRectToVisible( + r NSRect, ) { - ret := C.CALayer_inst_actionForKey_( + C.CALayer_inst_ScrollRectToVisible( unsafe.Pointer(x.Pointer()), - objc.RefPointer(event), + *(*C.NSRect)(unsafe.Pointer(&r)), ) - r0 = objc.Object_fromPointer(ret) + return } -func (x gen_CALayer) ConvertRect_fromLayer_( - r NSRect, - l CALayerRef, -) ( - r0 NSRect, -) { - ret := C.CALayer_inst_convertRect_fromLayer_( +// SetNeedsDisplay marks the layer’s contents as needing to be updated. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410855-setneedsdisplay?language=objc for details. +func (x gen_CALayer) SetNeedsDisplay() { + C.CALayer_inst_SetNeedsDisplay( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&r)), - objc.RefPointer(l), ) - r0 = *(*NSRect)(unsafe.Pointer(&ret)) + return } -func (x gen_CALayer) ConvertRect_toLayer_( +// SetNeedsDisplayInRect marks the region within the specified rectangle as needing to be updated. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410800-setneedsdisplayinrect?language=objc for details. +func (x gen_CALayer) SetNeedsDisplayInRect( r NSRect, - l CALayerRef, -) ( - r0 NSRect, ) { - ret := C.CALayer_inst_convertRect_toLayer_( + C.CALayer_inst_SetNeedsDisplayInRect( unsafe.Pointer(x.Pointer()), *(*C.NSRect)(unsafe.Pointer(&r)), - objc.RefPointer(l), ) - r0 = *(*NSRect)(unsafe.Pointer(&ret)) + return } -func (x gen_CALayer) ScrollRectToVisible_( - r NSRect, -) { - C.CALayer_inst_scrollRectToVisible_( +// SetNeedsLayout invalidates the layer’s layout and marks it as needing an update. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410946-setneedslayout?language=objc for details. +func (x gen_CALayer) SetNeedsLayout() { + C.CALayer_inst_SetNeedsLayout( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&r)), ) + return } -func (x gen_CALayer) ShouldArchiveValueForKey_( +// ShouldArchiveValueForKey returns a boolean indicating whether the value of the specified key should be archived. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410753-shouldarchivevalueforkey?language=objc for details. +func (x gen_CALayer) ShouldArchiveValueForKey( key NSStringRef, -) ( - r0 bool, -) { - ret := C.CALayer_inst_shouldArchiveValueForKey_( +) bool { + ret := C.CALayer_inst_ShouldArchiveValueForKey( unsafe.Pointer(x.Pointer()), objc.RefPointer(key), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_CALayer) Delegate() ( - r0 objc.Object, -) { - ret := C.CALayer_inst_delegate( +// Delegate returns the layer’s delegate object. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410984-delegate?language=objc for details. +func (x gen_CALayer) Delegate() objc.Object { + ret := C.CALayer_inst_Delegate( unsafe.Pointer(x.Pointer()), ) - r0 = objc.Object_fromPointer(ret) - return + + return objc.Object_FromPointer(ret) } -func (x gen_CALayer) SetDelegate_( +// SetDelegate returns the layer’s delegate object. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410984-delegate?language=objc for details. +func (x gen_CALayer) SetDelegate( value objc.Ref, ) { - C.CALayer_inst_setDelegate_( + C.CALayer_inst_SetDelegate( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_CALayer) Contents() ( - r0 objc.Object, -) { - ret := C.CALayer_inst_contents( +// Contents an object that provides the contents of the layer. animatable. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410773-contents?language=objc for details. +func (x gen_CALayer) Contents() objc.Object { + ret := C.CALayer_inst_Contents( unsafe.Pointer(x.Pointer()), ) - r0 = objc.Object_fromPointer(ret) - return + + return objc.Object_FromPointer(ret) } -func (x gen_CALayer) SetContents_( +// SetContents an object that provides the contents of the layer. animatable. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410773-contents?language=objc for details. +func (x gen_CALayer) SetContents( value objc.Ref, ) { - C.CALayer_inst_setContents_( + C.CALayer_inst_SetContents( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_CALayer) ContentsRect() ( - r0 NSRect, -) { - ret := C.CALayer_inst_contentsRect( +// ContentsRect returns the rectangle, in the unit coordinate space, that defines the portion of the layer’s contents that should be used. animatable. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410866-contentsrect?language=objc for details. +func (x gen_CALayer) ContentsRect() NSRect { + ret := C.CALayer_inst_ContentsRect( unsafe.Pointer(x.Pointer()), ) - r0 = *(*NSRect)(unsafe.Pointer(&ret)) - return + + return *(*NSRect)(unsafe.Pointer(&ret)) } -func (x gen_CALayer) SetContentsRect_( +// SetContentsRect returns the rectangle, in the unit coordinate space, that defines the portion of the layer’s contents that should be used. animatable. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410866-contentsrect?language=objc for details. +func (x gen_CALayer) SetContentsRect( value NSRect, ) { - C.CALayer_inst_setContentsRect_( + C.CALayer_inst_SetContentsRect( unsafe.Pointer(x.Pointer()), *(*C.NSRect)(unsafe.Pointer(&value)), ) + return } -func (x gen_CALayer) ContentsCenter() ( - r0 NSRect, -) { - ret := C.CALayer_inst_contentsCenter( +// ContentsCenter returns the rectangle that defines how the layer contents are scaled if the layer’s contents are resized. animatable. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410740-contentscenter?language=objc for details. +func (x gen_CALayer) ContentsCenter() NSRect { + ret := C.CALayer_inst_ContentsCenter( unsafe.Pointer(x.Pointer()), ) - r0 = *(*NSRect)(unsafe.Pointer(&ret)) - return + + return *(*NSRect)(unsafe.Pointer(&ret)) } -func (x gen_CALayer) SetContentsCenter_( +// SetContentsCenter returns the rectangle that defines how the layer contents are scaled if the layer’s contents are resized. animatable. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410740-contentscenter?language=objc for details. +func (x gen_CALayer) SetContentsCenter( value NSRect, ) { - C.CALayer_inst_setContentsCenter_( + C.CALayer_inst_SetContentsCenter( unsafe.Pointer(x.Pointer()), *(*C.NSRect)(unsafe.Pointer(&value)), ) + return } -func (x gen_CALayer) IsHidden() ( - r0 bool, -) { - ret := C.CALayer_inst_isHidden( +// IsHidden returns a boolean indicating whether the layer is displayed. animatable. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410838-hidden?language=objc for details. +func (x gen_CALayer) IsHidden() bool { + ret := C.CALayer_inst_IsHidden( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_CALayer) SetHidden_( +// SetHidden returns a boolean indicating whether the layer is displayed. animatable. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410838-hidden?language=objc for details. +func (x gen_CALayer) SetHidden( value bool, ) { - C.CALayer_inst_setHidden_( + C.CALayer_inst_SetHidden( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_CALayer) MasksToBounds() ( - r0 bool, -) { - ret := C.CALayer_inst_masksToBounds( +// MasksToBounds returns a boolean indicating whether sublayers are clipped to the layer’s bounds. animatable. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410896-maskstobounds?language=objc for details. +func (x gen_CALayer) MasksToBounds() bool { + ret := C.CALayer_inst_MasksToBounds( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_CALayer) SetMasksToBounds_( +// SetMasksToBounds returns a boolean indicating whether sublayers are clipped to the layer’s bounds. animatable. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410896-maskstobounds?language=objc for details. +func (x gen_CALayer) SetMasksToBounds( value bool, ) { - C.CALayer_inst_setMasksToBounds_( + C.CALayer_inst_SetMasksToBounds( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_CALayer) Mask() ( - r0 CALayer, -) { - ret := C.CALayer_inst_mask( +// Mask an optional layer whose alpha channel is used to mask the layer’s content. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410861-mask?language=objc for details. +func (x gen_CALayer) Mask() CALayer { + ret := C.CALayer_inst_Mask( unsafe.Pointer(x.Pointer()), ) - r0 = CALayer_fromPointer(ret) - return + + return CALayer_FromPointer(ret) } -func (x gen_CALayer) SetMask_( +// SetMask an optional layer whose alpha channel is used to mask the layer’s content. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410861-mask?language=objc for details. +func (x gen_CALayer) SetMask( value CALayerRef, ) { - C.CALayer_inst_setMask_( + C.CALayer_inst_SetMask( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_CALayer) IsDoubleSided() ( - r0 bool, -) { - ret := C.CALayer_inst_isDoubleSided( +// IsDoubleSided returns a boolean indicating whether the layer displays its content when facing away from the viewer. animatable. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410924-doublesided?language=objc for details. +func (x gen_CALayer) IsDoubleSided() bool { + ret := C.CALayer_inst_IsDoubleSided( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_CALayer) SetDoubleSided_( +// SetDoubleSided returns a boolean indicating whether the layer displays its content when facing away from the viewer. animatable. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410924-doublesided?language=objc for details. +func (x gen_CALayer) SetDoubleSided( value bool, ) { - C.CALayer_inst_setDoubleSided_( + C.CALayer_inst_SetDoubleSided( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_CALayer) CornerRadius() ( - r0 CGFloat, -) { - ret := C.CALayer_inst_cornerRadius( +// CornerRadius returns the radius to use when drawing rounded corners for the layer’s background. animatable. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410818-cornerradius?language=objc for details. +func (x gen_CALayer) CornerRadius() CGFloat { + ret := C.CALayer_inst_CornerRadius( unsafe.Pointer(x.Pointer()), ) - r0 = CGFloat(ret) - return + + return CGFloat(ret) } -func (x gen_CALayer) SetCornerRadius_( +// SetCornerRadius returns the radius to use when drawing rounded corners for the layer’s background. animatable. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410818-cornerradius?language=objc for details. +func (x gen_CALayer) SetCornerRadius( value CGFloat, ) { - C.CALayer_inst_setCornerRadius_( + C.CALayer_inst_SetCornerRadius( unsafe.Pointer(x.Pointer()), C.double(value), ) + return } -func (x gen_CALayer) BorderWidth() ( - r0 CGFloat, -) { - ret := C.CALayer_inst_borderWidth( +// BorderWidth returns the width of the layer’s border. animatable. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410917-borderwidth?language=objc for details. +func (x gen_CALayer) BorderWidth() CGFloat { + ret := C.CALayer_inst_BorderWidth( unsafe.Pointer(x.Pointer()), ) - r0 = CGFloat(ret) - return + + return CGFloat(ret) } -func (x gen_CALayer) SetBorderWidth_( +// SetBorderWidth returns the width of the layer’s border. animatable. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410917-borderwidth?language=objc for details. +func (x gen_CALayer) SetBorderWidth( value CGFloat, ) { - C.CALayer_inst_setBorderWidth_( + C.CALayer_inst_SetBorderWidth( unsafe.Pointer(x.Pointer()), C.double(value), ) + return } -func (x gen_CALayer) ShadowRadius() ( - r0 CGFloat, -) { - ret := C.CALayer_inst_shadowRadius( +// ShadowRadius returns the blur radius (in points) used to render the layer’s shadow. animatable. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410819-shadowradius?language=objc for details. +func (x gen_CALayer) ShadowRadius() CGFloat { + ret := C.CALayer_inst_ShadowRadius( unsafe.Pointer(x.Pointer()), ) - r0 = CGFloat(ret) - return + + return CGFloat(ret) } -func (x gen_CALayer) SetShadowRadius_( +// SetShadowRadius returns the blur radius (in points) used to render the layer’s shadow. animatable. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410819-shadowradius?language=objc for details. +func (x gen_CALayer) SetShadowRadius( value CGFloat, ) { - C.CALayer_inst_setShadowRadius_( + C.CALayer_inst_SetShadowRadius( unsafe.Pointer(x.Pointer()), C.double(value), ) + return } -func (x gen_CALayer) ShadowOffset() ( - r0 NSSize, -) { - ret := C.CALayer_inst_shadowOffset( +// ShadowOffset returns the offset (in points) of the layer’s shadow. animatable. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410970-shadowoffset?language=objc for details. +func (x gen_CALayer) ShadowOffset() NSSize { + ret := C.CALayer_inst_ShadowOffset( unsafe.Pointer(x.Pointer()), ) - r0 = *(*NSSize)(unsafe.Pointer(&ret)) - return + + return *(*NSSize)(unsafe.Pointer(&ret)) } -func (x gen_CALayer) SetShadowOffset_( +// SetShadowOffset returns the offset (in points) of the layer’s shadow. animatable. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410970-shadowoffset?language=objc for details. +func (x gen_CALayer) SetShadowOffset( value NSSize, ) { - C.CALayer_inst_setShadowOffset_( + C.CALayer_inst_SetShadowOffset( unsafe.Pointer(x.Pointer()), *(*C.NSSize)(unsafe.Pointer(&value)), ) + return } -func (x gen_CALayer) Style() ( - r0 NSDictionary, -) { - ret := C.CALayer_inst_style( +// Style an optional dictionary used to store property values that aren't explicitly defined by the layer. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410875-style?language=objc for details. +func (x gen_CALayer) Style() NSDictionary { + ret := C.CALayer_inst_Style( unsafe.Pointer(x.Pointer()), ) - r0 = NSDictionary_fromPointer(ret) - return + + return NSDictionary_FromPointer(ret) } -func (x gen_CALayer) SetStyle_( +// SetStyle an optional dictionary used to store property values that aren't explicitly defined by the layer. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410875-style?language=objc for details. +func (x gen_CALayer) SetStyle( value NSDictionaryRef, ) { - C.CALayer_inst_setStyle_( + C.CALayer_inst_SetStyle( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_CALayer) AllowsEdgeAntialiasing() ( - r0 bool, -) { - ret := C.CALayer_inst_allowsEdgeAntialiasing( +// AllowsEdgeAntialiasing returns a boolean indicating whether the layer is allowed to perform edge antialiasing. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1621285-allowsedgeantialiasing?language=objc for details. +func (x gen_CALayer) AllowsEdgeAntialiasing() bool { + ret := C.CALayer_inst_AllowsEdgeAntialiasing( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_CALayer) SetAllowsEdgeAntialiasing_( +// SetAllowsEdgeAntialiasing returns a boolean indicating whether the layer is allowed to perform edge antialiasing. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1621285-allowsedgeantialiasing?language=objc for details. +func (x gen_CALayer) SetAllowsEdgeAntialiasing( value bool, ) { - C.CALayer_inst_setAllowsEdgeAntialiasing_( + C.CALayer_inst_SetAllowsEdgeAntialiasing( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_CALayer) AllowsGroupOpacity() ( - r0 bool, -) { - ret := C.CALayer_inst_allowsGroupOpacity( +// AllowsGroupOpacity returns a boolean indicating whether the layer is allowed to composite itself as a group separate from its parent. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1621277-allowsgroupopacity?language=objc for details. +func (x gen_CALayer) AllowsGroupOpacity() bool { + ret := C.CALayer_inst_AllowsGroupOpacity( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_CALayer) SetAllowsGroupOpacity_( +// SetAllowsGroupOpacity returns a boolean indicating whether the layer is allowed to composite itself as a group separate from its parent. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1621277-allowsgroupopacity?language=objc for details. +func (x gen_CALayer) SetAllowsGroupOpacity( value bool, ) { - C.CALayer_inst_setAllowsGroupOpacity_( + C.CALayer_inst_SetAllowsGroupOpacity( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_CALayer) Filters() ( - r0 NSArray, -) { - ret := C.CALayer_inst_filters( +// Filters an array of core image filters to apply to the contents of the layer and its sublayers. animatable. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410901-filters?language=objc for details. +func (x gen_CALayer) Filters() NSArray { + ret := C.CALayer_inst_Filters( unsafe.Pointer(x.Pointer()), ) - r0 = NSArray_fromPointer(ret) - return + + return NSArray_FromPointer(ret) } -func (x gen_CALayer) SetFilters_( +// SetFilters an array of core image filters to apply to the contents of the layer and its sublayers. animatable. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410901-filters?language=objc for details. +func (x gen_CALayer) SetFilters( value NSArrayRef, ) { - C.CALayer_inst_setFilters_( + C.CALayer_inst_SetFilters( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_CALayer) CompositingFilter() ( - r0 objc.Object, -) { - ret := C.CALayer_inst_compositingFilter( +// CompositingFilter returns a coreimage filter used to composite the layer and the content behind it. animatable. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410748-compositingfilter?language=objc for details. +func (x gen_CALayer) CompositingFilter() objc.Object { + ret := C.CALayer_inst_CompositingFilter( unsafe.Pointer(x.Pointer()), ) - r0 = objc.Object_fromPointer(ret) - return + + return objc.Object_FromPointer(ret) } -func (x gen_CALayer) SetCompositingFilter_( +// SetCompositingFilter returns a coreimage filter used to composite the layer and the content behind it. animatable. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410748-compositingfilter?language=objc for details. +func (x gen_CALayer) SetCompositingFilter( value objc.Ref, ) { - C.CALayer_inst_setCompositingFilter_( + C.CALayer_inst_SetCompositingFilter( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_CALayer) BackgroundFilters() ( - r0 NSArray, -) { - ret := C.CALayer_inst_backgroundFilters( +// BackgroundFilters an array of core image filters to apply to the content immediately behind the layer. animatable. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410827-backgroundfilters?language=objc for details. +func (x gen_CALayer) BackgroundFilters() NSArray { + ret := C.CALayer_inst_BackgroundFilters( unsafe.Pointer(x.Pointer()), ) - r0 = NSArray_fromPointer(ret) - return + + return NSArray_FromPointer(ret) } -func (x gen_CALayer) SetBackgroundFilters_( +// SetBackgroundFilters an array of core image filters to apply to the content immediately behind the layer. animatable. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410827-backgroundfilters?language=objc for details. +func (x gen_CALayer) SetBackgroundFilters( value NSArrayRef, ) { - C.CALayer_inst_setBackgroundFilters_( + C.CALayer_inst_SetBackgroundFilters( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_CALayer) IsOpaque() ( - r0 bool, -) { - ret := C.CALayer_inst_isOpaque( +// IsOpaque returns a boolean value indicating whether the layer contains completely opaque content. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410763-opaque?language=objc for details. +func (x gen_CALayer) IsOpaque() bool { + ret := C.CALayer_inst_IsOpaque( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_CALayer) SetOpaque_( +// SetOpaque returns a boolean value indicating whether the layer contains completely opaque content. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410763-opaque?language=objc for details. +func (x gen_CALayer) SetOpaque( value bool, ) { - C.CALayer_inst_setOpaque_( + C.CALayer_inst_SetOpaque( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_CALayer) IsGeometryFlipped() ( - r0 bool, -) { - ret := C.CALayer_inst_isGeometryFlipped( +// IsGeometryFlipped returns a boolean that indicates whether the geometry of the layer and its sublayers is flipped vertically. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410960-geometryflipped?language=objc for details. +func (x gen_CALayer) IsGeometryFlipped() bool { + ret := C.CALayer_inst_IsGeometryFlipped( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_CALayer) SetGeometryFlipped_( +// SetGeometryFlipped returns a boolean that indicates whether the geometry of the layer and its sublayers is flipped vertically. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410960-geometryflipped?language=objc for details. +func (x gen_CALayer) SetGeometryFlipped( value bool, ) { - C.CALayer_inst_setGeometryFlipped_( + C.CALayer_inst_SetGeometryFlipped( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_CALayer) DrawsAsynchronously() ( - r0 bool, -) { - ret := C.CALayer_inst_drawsAsynchronously( +// DrawsAsynchronously returns a boolean indicating whether drawing commands are deferred and processed asynchronously in a background thread. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410974-drawsasynchronously?language=objc for details. +func (x gen_CALayer) DrawsAsynchronously() bool { + ret := C.CALayer_inst_DrawsAsynchronously( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_CALayer) SetDrawsAsynchronously_( +// SetDrawsAsynchronously returns a boolean indicating whether drawing commands are deferred and processed asynchronously in a background thread. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410974-drawsasynchronously?language=objc for details. +func (x gen_CALayer) SetDrawsAsynchronously( value bool, ) { - C.CALayer_inst_setDrawsAsynchronously_( + C.CALayer_inst_SetDrawsAsynchronously( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_CALayer) ShouldRasterize() ( - r0 bool, -) { - ret := C.CALayer_inst_shouldRasterize( +// ShouldRasterize returns a boolean that indicates whether the layer is rendered as a bitmap before compositing. animatable +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410905-shouldrasterize?language=objc for details. +func (x gen_CALayer) ShouldRasterize() bool { + ret := C.CALayer_inst_ShouldRasterize( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_CALayer) SetShouldRasterize_( +// SetShouldRasterize returns a boolean that indicates whether the layer is rendered as a bitmap before compositing. animatable +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410905-shouldrasterize?language=objc for details. +func (x gen_CALayer) SetShouldRasterize( value bool, ) { - C.CALayer_inst_setShouldRasterize_( + C.CALayer_inst_SetShouldRasterize( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_CALayer) RasterizationScale() ( - r0 CGFloat, -) { - ret := C.CALayer_inst_rasterizationScale( +// RasterizationScale returns the scale at which to rasterize content, relative to the coordinate space of the layer. animatable +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410801-rasterizationscale?language=objc for details. +func (x gen_CALayer) RasterizationScale() CGFloat { + ret := C.CALayer_inst_RasterizationScale( unsafe.Pointer(x.Pointer()), ) - r0 = CGFloat(ret) - return + + return CGFloat(ret) } -func (x gen_CALayer) SetRasterizationScale_( +// SetRasterizationScale returns the scale at which to rasterize content, relative to the coordinate space of the layer. animatable +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410801-rasterizationscale?language=objc for details. +func (x gen_CALayer) SetRasterizationScale( value CGFloat, ) { - C.CALayer_inst_setRasterizationScale_( + C.CALayer_inst_SetRasterizationScale( unsafe.Pointer(x.Pointer()), C.double(value), ) + return } -func (x gen_CALayer) Frame() ( - r0 NSRect, -) { - ret := C.CALayer_inst_frame( +// Frame returns the layer’s frame rectangle. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410779-frame?language=objc for details. +func (x gen_CALayer) Frame() NSRect { + ret := C.CALayer_inst_Frame( unsafe.Pointer(x.Pointer()), ) - r0 = *(*NSRect)(unsafe.Pointer(&ret)) - return + + return *(*NSRect)(unsafe.Pointer(&ret)) } -func (x gen_CALayer) SetFrame_( +// SetFrame returns the layer’s frame rectangle. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410779-frame?language=objc for details. +func (x gen_CALayer) SetFrame( value NSRect, ) { - C.CALayer_inst_setFrame_( + C.CALayer_inst_SetFrame( unsafe.Pointer(x.Pointer()), *(*C.NSRect)(unsafe.Pointer(&value)), ) + return } -func (x gen_CALayer) Bounds() ( - r0 NSRect, -) { - ret := C.CALayer_inst_bounds( +// Bounds returns the layer’s bounds rectangle. animatable. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410915-bounds?language=objc for details. +func (x gen_CALayer) Bounds() NSRect { + ret := C.CALayer_inst_Bounds( unsafe.Pointer(x.Pointer()), ) - r0 = *(*NSRect)(unsafe.Pointer(&ret)) - return + + return *(*NSRect)(unsafe.Pointer(&ret)) } -func (x gen_CALayer) SetBounds_( +// SetBounds returns the layer’s bounds rectangle. animatable. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410915-bounds?language=objc for details. +func (x gen_CALayer) SetBounds( value NSRect, ) { - C.CALayer_inst_setBounds_( + C.CALayer_inst_SetBounds( unsafe.Pointer(x.Pointer()), *(*C.NSRect)(unsafe.Pointer(&value)), ) + return } -func (x gen_CALayer) ZPosition() ( - r0 CGFloat, -) { - ret := C.CALayer_inst_zPosition( +// ZPosition returns the layer’s position on the z axis. animatable. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410884-zposition?language=objc for details. +func (x gen_CALayer) ZPosition() CGFloat { + ret := C.CALayer_inst_ZPosition( unsafe.Pointer(x.Pointer()), ) - r0 = CGFloat(ret) - return + + return CGFloat(ret) } -func (x gen_CALayer) SetZPosition_( +// SetZPosition returns the layer’s position on the z axis. animatable. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410884-zposition?language=objc for details. +func (x gen_CALayer) SetZPosition( value CGFloat, ) { - C.CALayer_inst_setZPosition_( + C.CALayer_inst_SetZPosition( unsafe.Pointer(x.Pointer()), C.double(value), ) + return } -func (x gen_CALayer) AnchorPointZ() ( - r0 CGFloat, -) { - ret := C.CALayer_inst_anchorPointZ( +// AnchorPointZ returns the anchor point for the layer’s position along the z axis. animatable. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410796-anchorpointz?language=objc for details. +func (x gen_CALayer) AnchorPointZ() CGFloat { + ret := C.CALayer_inst_AnchorPointZ( unsafe.Pointer(x.Pointer()), ) - r0 = CGFloat(ret) - return + + return CGFloat(ret) } -func (x gen_CALayer) SetAnchorPointZ_( +// SetAnchorPointZ returns the anchor point for the layer’s position along the z axis. animatable. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410796-anchorpointz?language=objc for details. +func (x gen_CALayer) SetAnchorPointZ( value CGFloat, ) { - C.CALayer_inst_setAnchorPointZ_( + C.CALayer_inst_SetAnchorPointZ( unsafe.Pointer(x.Pointer()), C.double(value), ) + return } -func (x gen_CALayer) ContentsScale() ( - r0 CGFloat, -) { - ret := C.CALayer_inst_contentsScale( +// ContentsScale returns the scale factor applied to the layer. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410746-contentsscale?language=objc for details. +func (x gen_CALayer) ContentsScale() CGFloat { + ret := C.CALayer_inst_ContentsScale( unsafe.Pointer(x.Pointer()), ) - r0 = CGFloat(ret) - return + + return CGFloat(ret) } -func (x gen_CALayer) SetContentsScale_( +// SetContentsScale returns the scale factor applied to the layer. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410746-contentsscale?language=objc for details. +func (x gen_CALayer) SetContentsScale( value CGFloat, ) { - C.CALayer_inst_setContentsScale_( + C.CALayer_inst_SetContentsScale( unsafe.Pointer(x.Pointer()), C.double(value), ) + return } -func (x gen_CALayer) Sublayers() ( - r0 NSArray, -) { - ret := C.CALayer_inst_sublayers( +// Sublayers an array containing the layer’s sublayers. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410802-sublayers?language=objc for details. +func (x gen_CALayer) Sublayers() NSArray { + ret := C.CALayer_inst_Sublayers( unsafe.Pointer(x.Pointer()), ) - r0 = NSArray_fromPointer(ret) - return + + return NSArray_FromPointer(ret) } -func (x gen_CALayer) SetSublayers_( +// SetSublayers an array containing the layer’s sublayers. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410802-sublayers?language=objc for details. +func (x gen_CALayer) SetSublayers( value NSArrayRef, ) { - C.CALayer_inst_setSublayers_( + C.CALayer_inst_SetSublayers( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_CALayer) Superlayer() ( - r0 CALayer, -) { - ret := C.CALayer_inst_superlayer( +// Superlayer returns the superlayer of the layer. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410761-superlayer?language=objc for details. +func (x gen_CALayer) Superlayer() CALayer { + ret := C.CALayer_inst_Superlayer( unsafe.Pointer(x.Pointer()), ) - r0 = CALayer_fromPointer(ret) - return + + return CALayer_FromPointer(ret) } -func (x gen_CALayer) NeedsDisplayOnBoundsChange() ( - r0 bool, -) { - ret := C.CALayer_inst_needsDisplayOnBoundsChange( +// NeedsDisplayOnBoundsChange returns a boolean indicating whether the layer contents must be updated when its bounds rectangle changes. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410923-needsdisplayonboundschange?language=objc for details. +func (x gen_CALayer) NeedsDisplayOnBoundsChange() bool { + ret := C.CALayer_inst_NeedsDisplayOnBoundsChange( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_CALayer) SetNeedsDisplayOnBoundsChange_( +// SetNeedsDisplayOnBoundsChange returns a boolean indicating whether the layer contents must be updated when its bounds rectangle changes. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410923-needsdisplayonboundschange?language=objc for details. +func (x gen_CALayer) SetNeedsDisplayOnBoundsChange( value bool, ) { - C.CALayer_inst_setNeedsDisplayOnBoundsChange_( + C.CALayer_inst_SetNeedsDisplayOnBoundsChange( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_CALayer) LayoutManager() ( - r0 objc.Object, -) { - ret := C.CALayer_inst_layoutManager( +// LayoutManager returns the object responsible for laying out the layer’s sublayers. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410749-layoutmanager?language=objc for details. +func (x gen_CALayer) LayoutManager() objc.Object { + ret := C.CALayer_inst_LayoutManager( unsafe.Pointer(x.Pointer()), ) - r0 = objc.Object_fromPointer(ret) - return + + return objc.Object_FromPointer(ret) } -func (x gen_CALayer) SetLayoutManager_( +// SetLayoutManager returns the object responsible for laying out the layer’s sublayers. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410749-layoutmanager?language=objc for details. +func (x gen_CALayer) SetLayoutManager( value objc.Ref, ) { - C.CALayer_inst_setLayoutManager_( + C.CALayer_inst_SetLayoutManager( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_CALayer) Constraints() ( - r0 NSArray, -) { - ret := C.CALayer_inst_constraints( +// Constraints returns the constraints used to position current layer’s sublayers. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1521906-constraints?language=objc for details. +func (x gen_CALayer) Constraints() NSArray { + ret := C.CALayer_inst_Constraints( unsafe.Pointer(x.Pointer()), ) - r0 = NSArray_fromPointer(ret) - return + + return NSArray_FromPointer(ret) } -func (x gen_CALayer) SetConstraints_( +// SetConstraints returns the constraints used to position current layer’s sublayers. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1521906-constraints?language=objc for details. +func (x gen_CALayer) SetConstraints( value NSArrayRef, ) { - C.CALayer_inst_setConstraints_( + C.CALayer_inst_SetConstraints( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_CALayer) Actions() ( - r0 NSDictionary, -) { - ret := C.CALayer_inst_actions( +// Actions returns a dictionary containing layer actions. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410789-actions?language=objc for details. +func (x gen_CALayer) Actions() NSDictionary { + ret := C.CALayer_inst_Actions( unsafe.Pointer(x.Pointer()), ) - r0 = NSDictionary_fromPointer(ret) - return + + return NSDictionary_FromPointer(ret) } -func (x gen_CALayer) SetActions_( +// SetActions returns a dictionary containing layer actions. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410789-actions?language=objc for details. +func (x gen_CALayer) SetActions( value NSDictionaryRef, ) { - C.CALayer_inst_setActions_( + C.CALayer_inst_SetActions( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_CALayer) VisibleRect() ( - r0 NSRect, -) { - ret := C.CALayer_inst_visibleRect( +// VisibleRect returns the visible region of the layer in its own coordinate space. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1521892-visiblerect?language=objc for details. +func (x gen_CALayer) VisibleRect() NSRect { + ret := C.CALayer_inst_VisibleRect( unsafe.Pointer(x.Pointer()), ) - r0 = *(*NSRect)(unsafe.Pointer(&ret)) - return + + return *(*NSRect)(unsafe.Pointer(&ret)) } -func (x gen_CALayer) Name() ( - r0 NSString, -) { - ret := C.CALayer_inst_name( +// Name returns the name of the receiver. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410879-name?language=objc for details. +func (x gen_CALayer) Name() NSString { + ret := C.CALayer_inst_Name( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_CALayer) SetName_( +// SetName returns the name of the receiver. +// +// See https://developer.apple.com/documentation/quartzcore/calayer/1410879-name?language=objc for details. +func (x gen_CALayer) SetName( value NSStringRef, ) { - C.CALayer_inst_setName_( + C.CALayer_inst_SetName( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } type NSArrayRef interface { Pointer() uintptr - Init_asNSArray() NSArray + Init_AsNSArray() NSArray } type gen_NSArray struct { objc.Object } -func NSArray_fromPointer(ptr unsafe.Pointer) NSArray { +func NSArray_FromPointer(ptr unsafe.Pointer) NSArray { return NSArray{gen_NSArray{ - objc.Object_fromPointer(ptr), + objc.Object_FromPointer(ptr), }} } -func NSArray_fromRef(ref objc.Ref) NSArray { - return NSArray_fromPointer(unsafe.Pointer(ref.Pointer())) +func NSArray_FromRef(ref objc.Ref) NSArray { + return NSArray_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_NSArray) Init_asNSArray() ( - r0 NSArray, -) { - ret := C.NSArray_inst_init( +// ArrayByAddingObjectsFromArray returns a new array that is a copy of the receiving array with the objects contained in another array added to the end. +// +// See https://developer.apple.com/documentation/foundation/nsarray/1412087-arraybyaddingobjectsfromarray?language=objc for details. +func (x gen_NSArray) ArrayByAddingObjectsFromArray( + otherArray NSArrayRef, +) NSArray { + ret := C.NSArray_inst_ArrayByAddingObjectsFromArray( unsafe.Pointer(x.Pointer()), + objc.RefPointer(otherArray), ) - r0 = NSArray_fromPointer(ret) - return + + return NSArray_FromPointer(ret) } -func (x gen_NSArray) InitWithArray__asNSArray( - array NSArrayRef, -) ( - r0 NSArray, -) { - ret := C.NSArray_inst_initWithArray_( +// ComponentsJoinedByString constructs and returns an nsstring object that is the result of interposing a given separator between the elements of the array. +// +// See https://developer.apple.com/documentation/foundation/nsarray/1412075-componentsjoinedbystring?language=objc for details. +func (x gen_NSArray) ComponentsJoinedByString( + separator NSStringRef, +) NSString { + ret := C.NSArray_inst_ComponentsJoinedByString( unsafe.Pointer(x.Pointer()), - objc.RefPointer(array), + objc.RefPointer(separator), ) - r0 = NSArray_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSArray) InitWithArray_copyItems__asNSArray( - array NSArrayRef, - flag bool, -) ( - r0 NSArray, -) { - ret := C.NSArray_inst_initWithArray_copyItems_( +// DescriptionWithLocale returns a string that represents the contents of the array, formatted as a property list. +// +// See https://developer.apple.com/documentation/foundation/nsarray/1412374-descriptionwithlocale?language=objc for details. +func (x gen_NSArray) DescriptionWithLocale( + locale objc.Ref, +) NSString { + ret := C.NSArray_inst_DescriptionWithLocale( unsafe.Pointer(x.Pointer()), - objc.RefPointer(array), - convertToObjCBool(flag), + objc.RefPointer(locale), ) - r0 = NSArray_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSArray) MakeObjectsPerformSelector_( - aSelector objc.Selector, -) { - C.NSArray_inst_makeObjectsPerformSelector_( +// DescriptionWithLocaleIndent returns a string that represents the contents of the array, formatted as a property list. +// +// See https://developer.apple.com/documentation/foundation/nsarray/1416257-descriptionwithlocale?language=objc for details. +func (x gen_NSArray) DescriptionWithLocaleIndent( + locale objc.Ref, + level NSUInteger, +) NSString { + ret := C.NSArray_inst_DescriptionWithLocaleIndent( unsafe.Pointer(x.Pointer()), - aSelector.SelectorAddress(), + objc.RefPointer(locale), + C.ulong(level), ) - return + + return NSString_FromPointer(ret) } -func (x gen_NSArray) MakeObjectsPerformSelector_withObject_( - aSelector objc.Selector, - argument objc.Ref, -) { - C.NSArray_inst_makeObjectsPerformSelector_withObject_( +// Init initializes a newly allocated array. +// +// See https://developer.apple.com/documentation/foundation/nsarray/1414315-init?language=objc for details. +func (x gen_NSArray) Init_AsNSArray() NSArray { + ret := C.NSArray_inst_Init( unsafe.Pointer(x.Pointer()), - aSelector.SelectorAddress(), - objc.RefPointer(argument), ) - return + + return NSArray_FromPointer(ret) } -func (x gen_NSArray) IsEqualToArray_( - otherArray NSArrayRef, -) ( - r0 bool, -) { - ret := C.NSArray_inst_isEqualToArray_( +// InitWithArray initializes a newly allocated array by placing in it the objects contained in a given array. +// +// See https://developer.apple.com/documentation/foundation/nsarray/1412169-initwitharray?language=objc for details. +func (x gen_NSArray) InitWithArray_AsNSArray( + array NSArrayRef, +) NSArray { + ret := C.NSArray_inst_InitWithArray( unsafe.Pointer(x.Pointer()), - objc.RefPointer(otherArray), + objc.RefPointer(array), ) - r0 = convertObjCBoolToGo(ret) - return + + return NSArray_FromPointer(ret) +} + +// InitWithArrayCopyItems initializes a newly allocated array using anarray as the source of data objects for the array. +// +// See https://developer.apple.com/documentation/foundation/nsarray/1408557-initwitharray?language=objc for details. +func (x gen_NSArray) InitWithArrayCopyItems_AsNSArray( + array NSArrayRef, + flag bool, +) NSArray { + ret := C.NSArray_inst_InitWithArrayCopyItems( + unsafe.Pointer(x.Pointer()), + objc.RefPointer(array), + convertToObjCBool(flag), + ) + + return NSArray_FromPointer(ret) } -func (x gen_NSArray) ArrayByAddingObjectsFromArray_( +// IsEqualToArray compares the receiving array to another array. +// +// See https://developer.apple.com/documentation/foundation/nsarray/1411770-isequaltoarray?language=objc for details. +func (x gen_NSArray) IsEqualToArray( otherArray NSArrayRef, -) ( - r0 NSArray, -) { - ret := C.NSArray_inst_arrayByAddingObjectsFromArray_( +) bool { + ret := C.NSArray_inst_IsEqualToArray( unsafe.Pointer(x.Pointer()), objc.RefPointer(otherArray), ) - r0 = NSArray_fromPointer(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSArray) SortedArrayUsingDescriptors_( - sortDescriptors NSArrayRef, -) ( - r0 NSArray, +// MakeObjectsPerformSelector sends to each object in the array the message identified by a given selector, starting with the first object and continuing through the array to the last object. +// +// See https://developer.apple.com/documentation/foundation/nsarray/1460115-makeobjectsperformselector?language=objc for details. +func (x gen_NSArray) MakeObjectsPerformSelector( + aSelector objc.Selector, ) { - ret := C.NSArray_inst_sortedArrayUsingDescriptors_( + C.NSArray_inst_MakeObjectsPerformSelector( unsafe.Pointer(x.Pointer()), - objc.RefPointer(sortDescriptors), + aSelector.SelectorAddress(), ) - r0 = NSArray_fromPointer(ret) + return } -func (x gen_NSArray) SortedArrayUsingSelector_( - comparator objc.Selector, -) ( - r0 NSArray, +// MakeObjectsPerformSelectorWithObject sends the aselector message to each object in the array, starting with the first object and continuing through the array to the last object. +// +// See https://developer.apple.com/documentation/foundation/nsarray/1460107-makeobjectsperformselector?language=objc for details. +func (x gen_NSArray) MakeObjectsPerformSelectorWithObject( + aSelector objc.Selector, + argument objc.Ref, ) { - ret := C.NSArray_inst_sortedArrayUsingSelector_( + C.NSArray_inst_MakeObjectsPerformSelectorWithObject( unsafe.Pointer(x.Pointer()), - comparator.SelectorAddress(), + aSelector.SelectorAddress(), + objc.RefPointer(argument), ) - r0 = NSArray_fromPointer(ret) + return } -func (x gen_NSArray) ComponentsJoinedByString_( - separator NSStringRef, -) ( - r0 NSString, -) { - ret := C.NSArray_inst_componentsJoinedByString_( +// PathsMatchingExtensions returns an array containing all the pathname elements in the receiving array that have filename extensions from a given array. +// +// See https://developer.apple.com/documentation/foundation/nsarray/1418275-pathsmatchingextensions?language=objc for details. +func (x gen_NSArray) PathsMatchingExtensions( + filterTypes NSArrayRef, +) NSArray { + ret := C.NSArray_inst_PathsMatchingExtensions( unsafe.Pointer(x.Pointer()), - objc.RefPointer(separator), + objc.RefPointer(filterTypes), ) - r0 = NSString_fromPointer(ret) - return + + return NSArray_FromPointer(ret) } -func (x gen_NSArray) DescriptionWithLocale_( - locale objc.Ref, -) ( - r0 NSString, +// SetValueForKey invokes setvalue:forkey: on each of the array's items using the specified value and key. +// +// See https://developer.apple.com/documentation/foundation/nsarray/1408301-setvalue?language=objc for details. +func (x gen_NSArray) SetValueForKey( + value objc.Ref, + key NSStringRef, ) { - ret := C.NSArray_inst_descriptionWithLocale_( + C.NSArray_inst_SetValueForKey( unsafe.Pointer(x.Pointer()), - objc.RefPointer(locale), + objc.RefPointer(value), + objc.RefPointer(key), ) - r0 = NSString_fromPointer(ret) + return } -func (x gen_NSArray) DescriptionWithLocale_indent_( - locale objc.Ref, - level NSUInteger, -) ( - r0 NSString, -) { - ret := C.NSArray_inst_descriptionWithLocale_indent_( +// ShuffledArray returns a new array that lists this array’s elements in a random order. +// +// See https://developer.apple.com/documentation/foundation/nsarray/1640855-shuffledarray?language=objc for details. +func (x gen_NSArray) ShuffledArray() NSArray { + ret := C.NSArray_inst_ShuffledArray( unsafe.Pointer(x.Pointer()), - objc.RefPointer(locale), - C.ulong(level), ) - r0 = NSString_fromPointer(ret) - return + + return NSArray_FromPointer(ret) } -func (x gen_NSArray) PathsMatchingExtensions_( - filterTypes NSArrayRef, -) ( - r0 NSArray, -) { - ret := C.NSArray_inst_pathsMatchingExtensions_( +// SortedArrayUsingDescriptors returns a copy of the receiving array sorted as specified by a given array of sort descriptors. +// +// See https://developer.apple.com/documentation/foundation/nsarray/1415069-sortedarrayusingdescriptors?language=objc for details. +func (x gen_NSArray) SortedArrayUsingDescriptors( + sortDescriptors NSArrayRef, +) NSArray { + ret := C.NSArray_inst_SortedArrayUsingDescriptors( unsafe.Pointer(x.Pointer()), - objc.RefPointer(filterTypes), + objc.RefPointer(sortDescriptors), ) - r0 = NSArray_fromPointer(ret) - return + + return NSArray_FromPointer(ret) } -func (x gen_NSArray) SetValue_forKey_( - value objc.Ref, - key NSStringRef, -) { - C.NSArray_inst_setValue_forKey_( +// SortedArrayUsingSelector returns an array that lists the receiving array’s elements in ascending order, as determined by the comparison method specified by a given selector. +// +// See https://developer.apple.com/documentation/foundation/nsarray/1410025-sortedarrayusingselector?language=objc for details. +func (x gen_NSArray) SortedArrayUsingSelector( + comparator objc.Selector, +) NSArray { + ret := C.NSArray_inst_SortedArrayUsingSelector( unsafe.Pointer(x.Pointer()), - objc.RefPointer(value), - objc.RefPointer(key), + comparator.SelectorAddress(), ) - return + + return NSArray_FromPointer(ret) } -func (x gen_NSArray) ValueForKey_( +// ValueForKey returns an array containing the results of invoking valueforkey: using key on each of the array's objects. +// +// See https://developer.apple.com/documentation/foundation/nsarray/1412219-valueforkey?language=objc for details. +func (x gen_NSArray) ValueForKey( key NSStringRef, -) ( - r0 objc.Object, -) { - ret := C.NSArray_inst_valueForKey_( +) objc.Object { + ret := C.NSArray_inst_ValueForKey( unsafe.Pointer(x.Pointer()), objc.RefPointer(key), ) - r0 = objc.Object_fromPointer(ret) - return -} -func (x gen_NSArray) ShuffledArray() ( - r0 NSArray, -) { - ret := C.NSArray_inst_shuffledArray( - unsafe.Pointer(x.Pointer()), - ) - r0 = NSArray_fromPointer(ret) - return + return objc.Object_FromPointer(ret) } -func (x gen_NSArray) Count() ( - r0 NSUInteger, -) { - ret := C.NSArray_inst_count( +// Count returns the number of objects in the array. +// +// See https://developer.apple.com/documentation/foundation/nsarray/1409982-count?language=objc for details. +func (x gen_NSArray) Count() NSUInteger { + ret := C.NSArray_inst_Count( unsafe.Pointer(x.Pointer()), ) - r0 = NSUInteger(ret) - return + + return NSUInteger(ret) } -func (x gen_NSArray) SortedArrayHint() ( - r0 NSData, -) { - ret := C.NSArray_inst_sortedArrayHint( +// SortedArrayHint analyzes the array and returns a “hint” that speeds the sorting of the array when the hint is supplied to sortedarrayusingfunction:context:hint:. +// +// See https://developer.apple.com/documentation/foundation/nsarray/1413063-sortedarrayhint?language=objc for details. +func (x gen_NSArray) SortedArrayHint() NSData { + ret := C.NSArray_inst_SortedArrayHint( unsafe.Pointer(x.Pointer()), ) - r0 = NSData_fromPointer(ret) - return + + return NSData_FromPointer(ret) } -func (x gen_NSArray) Description() ( - r0 NSString, -) { - ret := C.NSArray_inst_description( +// Description returns a string that represents the contents of the array, formatted as a property list. +// +// See https://developer.apple.com/documentation/foundation/nsarray/1413042-description?language=objc for details. +func (x gen_NSArray) Description() NSString { + ret := C.NSArray_inst_Description( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } type NSAttributedStringRef interface { Pointer() uintptr - Init_asNSAttributedString() NSAttributedString + Init_AsNSAttributedString() NSAttributedString } type gen_NSAttributedString struct { objc.Object } -func NSAttributedString_fromPointer(ptr unsafe.Pointer) NSAttributedString { +func NSAttributedString_FromPointer(ptr unsafe.Pointer) NSAttributedString { return NSAttributedString{gen_NSAttributedString{ - objc.Object_fromPointer(ptr), + objc.Object_FromPointer(ptr), }} } -func NSAttributedString_fromRef(ref objc.Ref) NSAttributedString { - return NSAttributedString_fromPointer(unsafe.Pointer(ref.Pointer())) +func NSAttributedString_FromRef(ref objc.Ref) NSAttributedString { + return NSAttributedString_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_NSAttributedString) InitWithString__asNSAttributedString( - str NSStringRef, -) ( - r0 NSAttributedString, -) { - ret := C.NSAttributedString_inst_initWithString_( +// AttributedStringByInflectingString +// +// See https://developer.apple.com/documentation/foundation/nsattributedstring/3746871-attributedstringbyinflectingstri?language=objc for details. +func (x gen_NSAttributedString) AttributedStringByInflectingString() NSAttributedString { + ret := C.NSAttributedString_inst_AttributedStringByInflectingString( unsafe.Pointer(x.Pointer()), - objc.RefPointer(str), ) - r0 = NSAttributedString_fromPointer(ret) - return + + return NSAttributedString_FromPointer(ret) } -func (x gen_NSAttributedString) InitWithString_attributes__asNSAttributedString( - str NSStringRef, - attrs NSDictionaryRef, -) ( - r0 NSAttributedString, +// DrawInRect draws the attributed string inside the specified bounding rectangle in the current graphics context. +// +// See https://developer.apple.com/documentation/foundation/nsattributedstring/1531631-drawinrect?language=objc for details. +func (x gen_NSAttributedString) DrawInRect( + rect NSRect, ) { - ret := C.NSAttributedString_inst_initWithString_attributes_( + C.NSAttributedString_inst_DrawInRect( unsafe.Pointer(x.Pointer()), - objc.RefPointer(str), - objc.RefPointer(attrs), + *(*C.NSRect)(unsafe.Pointer(&rect)), ) - r0 = NSAttributedString_fromPointer(ret) + return } -func (x gen_NSAttributedString) InitWithAttributedString__asNSAttributedString( +// InitWithAttributedString creates an attributed string with the characters and attributes of the specified attributed string. +// +// See https://developer.apple.com/documentation/foundation/nsattributedstring/1415342-initwithattributedstring?language=objc for details. +func (x gen_NSAttributedString) InitWithAttributedString_AsNSAttributedString( attrStr NSAttributedStringRef, -) ( - r0 NSAttributedString, -) { - ret := C.NSAttributedString_inst_initWithAttributedString_( +) NSAttributedString { + ret := C.NSAttributedString_inst_InitWithAttributedString( unsafe.Pointer(x.Pointer()), objc.RefPointer(attrStr), ) - r0 = NSAttributedString_fromPointer(ret) - return + + return NSAttributedString_FromPointer(ret) } -func (x gen_NSAttributedString) InitWithDocFormat_documentAttributes__asNSAttributedString( +// InitWithDocFormatDocumentAttributes creates an attributed string from microsoft word format data in the specified data object. +// +// See https://developer.apple.com/documentation/foundation/nsattributedstring/1534329-initwithdocformat?language=objc for details. +func (x gen_NSAttributedString) InitWithDocFormatDocumentAttributes_AsNSAttributedString( data NSDataRef, dict NSDictionaryRef, -) ( - r0 NSAttributedString, -) { - ret := C.NSAttributedString_inst_initWithDocFormat_documentAttributes_( +) NSAttributedString { + ret := C.NSAttributedString_inst_InitWithDocFormatDocumentAttributes( unsafe.Pointer(x.Pointer()), objc.RefPointer(data), objc.RefPointer(dict), ) - r0 = NSAttributedString_fromPointer(ret) - return + + return NSAttributedString_FromPointer(ret) } -func (x gen_NSAttributedString) InitWithHTML_documentAttributes__asNSAttributedString( +// InitWithHTMLBaseURLDocumentAttributes creates an attributed string from the html in the specified data object and base url. +// +// See https://developer.apple.com/documentation/foundation/nsattributedstring/1524624-initwithhtml?language=objc for details. +func (x gen_NSAttributedString) InitWithHTMLBaseURLDocumentAttributes_AsNSAttributedString( data NSDataRef, + base NSURLRef, dict NSDictionaryRef, -) ( - r0 NSAttributedString, -) { - ret := C.NSAttributedString_inst_initWithHTML_documentAttributes_( +) NSAttributedString { + ret := C.NSAttributedString_inst_InitWithHTMLBaseURLDocumentAttributes( unsafe.Pointer(x.Pointer()), objc.RefPointer(data), + objc.RefPointer(base), objc.RefPointer(dict), ) - r0 = NSAttributedString_fromPointer(ret) - return + + return NSAttributedString_FromPointer(ret) } -func (x gen_NSAttributedString) InitWithHTML_baseURL_documentAttributes__asNSAttributedString( +// InitWithHTMLDocumentAttributes creates an attributed string from the html in the specified data object. +// +// See https://developer.apple.com/documentation/foundation/nsattributedstring/1525953-initwithhtml?language=objc for details. +func (x gen_NSAttributedString) InitWithHTMLDocumentAttributes_AsNSAttributedString( data NSDataRef, - base NSURLRef, dict NSDictionaryRef, -) ( - r0 NSAttributedString, -) { - ret := C.NSAttributedString_inst_initWithHTML_baseURL_documentAttributes_( +) NSAttributedString { + ret := C.NSAttributedString_inst_InitWithHTMLDocumentAttributes( unsafe.Pointer(x.Pointer()), objc.RefPointer(data), - objc.RefPointer(base), objc.RefPointer(dict), ) - r0 = NSAttributedString_fromPointer(ret) - return + + return NSAttributedString_FromPointer(ret) } -func (x gen_NSAttributedString) InitWithHTML_options_documentAttributes__asNSAttributedString( +// InitWithHTMLOptionsDocumentAttributes creates an attributed string from the html in the specified data object. +// +// See https://developer.apple.com/documentation/foundation/nsattributedstring/1535412-initwithhtml?language=objc for details. +func (x gen_NSAttributedString) InitWithHTMLOptionsDocumentAttributes_AsNSAttributedString( data NSDataRef, options NSDictionaryRef, dict NSDictionaryRef, -) ( - r0 NSAttributedString, -) { - ret := C.NSAttributedString_inst_initWithHTML_options_documentAttributes_( +) NSAttributedString { + ret := C.NSAttributedString_inst_InitWithHTMLOptionsDocumentAttributes( unsafe.Pointer(x.Pointer()), objc.RefPointer(data), objc.RefPointer(options), objc.RefPointer(dict), ) - r0 = NSAttributedString_fromPointer(ret) - return + + return NSAttributedString_FromPointer(ret) } -func (x gen_NSAttributedString) InitWithRTF_documentAttributes__asNSAttributedString( +// InitWithRTFDocumentAttributes creates an attributed string by decoding the stream of rtf commands and data in the specified data object. +// +// See https://developer.apple.com/documentation/foundation/nsattributedstring/1532912-initwithrtf?language=objc for details. +func (x gen_NSAttributedString) InitWithRTFDocumentAttributes_AsNSAttributedString( data NSDataRef, dict NSDictionaryRef, -) ( - r0 NSAttributedString, -) { - ret := C.NSAttributedString_inst_initWithRTF_documentAttributes_( +) NSAttributedString { + ret := C.NSAttributedString_inst_InitWithRTFDocumentAttributes( unsafe.Pointer(x.Pointer()), objc.RefPointer(data), objc.RefPointer(dict), ) - r0 = NSAttributedString_fromPointer(ret) - return + + return NSAttributedString_FromPointer(ret) } -func (x gen_NSAttributedString) InitWithRTFD_documentAttributes__asNSAttributedString( +// InitWithRTFDDocumentAttributes creates an attributed string by decoding the stream of rtfd commands and data in the specified data object. +// +// See https://developer.apple.com/documentation/foundation/nsattributedstring/1530987-initwithrtfd?language=objc for details. +func (x gen_NSAttributedString) InitWithRTFDDocumentAttributes_AsNSAttributedString( data NSDataRef, dict NSDictionaryRef, -) ( - r0 NSAttributedString, -) { - ret := C.NSAttributedString_inst_initWithRTFD_documentAttributes_( +) NSAttributedString { + ret := C.NSAttributedString_inst_InitWithRTFDDocumentAttributes( unsafe.Pointer(x.Pointer()), objc.RefPointer(data), objc.RefPointer(dict), ) - r0 = NSAttributedString_fromPointer(ret) - return + + return NSAttributedString_FromPointer(ret) } -func (x gen_NSAttributedString) IsEqualToAttributedString_( - other NSAttributedStringRef, -) ( - r0 bool, -) { - ret := C.NSAttributedString_inst_isEqualToAttributedString_( +// InitWithString creates an attributed string with the characters of the specified string and no attribute information. +// +// See https://developer.apple.com/documentation/foundation/nsattributedstring/1407481-initwithstring?language=objc for details. +func (x gen_NSAttributedString) InitWithString_AsNSAttributedString( + str NSStringRef, +) NSAttributedString { + ret := C.NSAttributedString_inst_InitWithString( unsafe.Pointer(x.Pointer()), - objc.RefPointer(other), + objc.RefPointer(str), ) - r0 = convertObjCBoolToGo(ret) - return + + return NSAttributedString_FromPointer(ret) } -func (x gen_NSAttributedString) NextWordFromIndex_forward_( - location NSUInteger, - isForward bool, -) ( - r0 NSUInteger, -) { - ret := C.NSAttributedString_inst_nextWordFromIndex_forward_( +// InitWithStringAttributes creates an attributed string with the specified string and attributes. +// +// See https://developer.apple.com/documentation/foundation/nsattributedstring/1408136-initwithstring?language=objc for details. +func (x gen_NSAttributedString) InitWithStringAttributes_AsNSAttributedString( + str NSStringRef, + attrs NSDictionaryRef, +) NSAttributedString { + ret := C.NSAttributedString_inst_InitWithStringAttributes( unsafe.Pointer(x.Pointer()), - C.ulong(location), - convertToObjCBool(isForward), + objc.RefPointer(str), + objc.RefPointer(attrs), ) - r0 = NSUInteger(ret) - return + + return NSAttributedString_FromPointer(ret) } -func (x gen_NSAttributedString) AttributedStringByInflectingString() ( - r0 NSAttributedString, -) { - ret := C.NSAttributedString_inst_attributedStringByInflectingString( +// IsEqualToAttributedString returns a boolean value that indicates whether the attributed string is equal to another attributed string. +// +// See https://developer.apple.com/documentation/foundation/nsattributedstring/1414808-isequaltoattributedstring?language=objc for details. +func (x gen_NSAttributedString) IsEqualToAttributedString( + other NSAttributedStringRef, +) bool { + ret := C.NSAttributedString_inst_IsEqualToAttributedString( unsafe.Pointer(x.Pointer()), + objc.RefPointer(other), ) - r0 = NSAttributedString_fromPointer(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSAttributedString) DrawInRect_( - rect NSRect, -) { - C.NSAttributedString_inst_drawInRect_( +// NextWordFromIndexForward returns the index of the first character of the word after or before the specified index. +// +// See https://developer.apple.com/documentation/foundation/nsattributedstring/1535305-nextwordfromindex?language=objc for details. +func (x gen_NSAttributedString) NextWordFromIndexForward( + location NSUInteger, + isForward bool, +) NSUInteger { + ret := C.NSAttributedString_inst_NextWordFromIndexForward( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&rect)), + C.ulong(location), + convertToObjCBool(isForward), ) - return + + return NSUInteger(ret) } -func (x gen_NSAttributedString) Size() ( - r0 NSSize, -) { - ret := C.NSAttributedString_inst_size( +// Size returns the size necessary to draw the string. +// +// See https://developer.apple.com/documentation/foundation/nsattributedstring/1528362-size?language=objc for details. +func (x gen_NSAttributedString) Size() NSSize { + ret := C.NSAttributedString_inst_Size( unsafe.Pointer(x.Pointer()), ) - r0 = *(*NSSize)(unsafe.Pointer(&ret)) - return + + return *(*NSSize)(unsafe.Pointer(&ret)) } -func (x gen_NSAttributedString) Init_asNSAttributedString() ( - r0 NSAttributedString, -) { - ret := C.NSAttributedString_inst_init( +// Init +// +// See for details. +func (x gen_NSAttributedString) Init_AsNSAttributedString() NSAttributedString { + ret := C.NSAttributedString_inst_Init( unsafe.Pointer(x.Pointer()), ) - r0 = NSAttributedString_fromPointer(ret) - return + + return NSAttributedString_FromPointer(ret) } -func (x gen_NSAttributedString) String() ( - r0 NSString, -) { - ret := C.NSAttributedString_inst_string( +// String returns the character contents of the attributed string as a string. +// +// See https://developer.apple.com/documentation/foundation/nsattributedstring/1412616-string?language=objc for details. +func (x gen_NSAttributedString) String() NSString { + ret := C.NSAttributedString_inst_String( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSAttributedString) Length() ( - r0 NSUInteger, -) { - ret := C.NSAttributedString_inst_length( +// Length returns the length of the attributed string. +// +// See https://developer.apple.com/documentation/foundation/nsattributedstring/1418432-length?language=objc for details. +func (x gen_NSAttributedString) Length() NSUInteger { + ret := C.NSAttributedString_inst_Length( unsafe.Pointer(x.Pointer()), ) - r0 = NSUInteger(ret) - return + + return NSUInteger(ret) } type NSDataRef interface { Pointer() uintptr - Init_asNSData() NSData + Init_AsNSData() NSData } type gen_NSData struct { objc.Object } -func NSData_fromPointer(ptr unsafe.Pointer) NSData { +func NSData_FromPointer(ptr unsafe.Pointer) NSData { return NSData{gen_NSData{ - objc.Object_fromPointer(ptr), + objc.Object_FromPointer(ptr), }} } -func NSData_fromRef(ref objc.Ref) NSData { - return NSData_fromPointer(unsafe.Pointer(ref.Pointer())) +func NSData_FromRef(ref objc.Ref) NSData { + return NSData_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_NSData) InitWithBytes_length__asNSData( - bytes unsafe.Pointer, +// GetBytesLength copies a number of bytes from the start of the data object into a given buffer. +// +// See https://developer.apple.com/documentation/foundation/nsdata/1411450-getbytes?language=objc for details. +func (x gen_NSData) GetBytesLength( + buffer unsafe.Pointer, length NSUInteger, -) ( - r0 NSData, ) { - ret := C.NSData_inst_initWithBytes_length_( + C.NSData_inst_GetBytesLength( unsafe.Pointer(x.Pointer()), - bytes, + buffer, C.ulong(length), ) - r0 = NSData_fromPointer(ret) + return } -func (x gen_NSData) InitWithBytesNoCopy_length__asNSData( +// InitWithBytesLength initializes a data object filled with a given number of bytes copied from a given buffer. +// +// See https://developer.apple.com/documentation/foundation/nsdata/1412793-initwithbytes?language=objc for details. +func (x gen_NSData) InitWithBytesLength_AsNSData( bytes unsafe.Pointer, length NSUInteger, -) ( - r0 NSData, -) { - ret := C.NSData_inst_initWithBytesNoCopy_length_( +) NSData { + ret := C.NSData_inst_InitWithBytesLength( unsafe.Pointer(x.Pointer()), bytes, C.ulong(length), ) - r0 = NSData_fromPointer(ret) - return + + return NSData_FromPointer(ret) } -func (x gen_NSData) InitWithBytesNoCopy_length_freeWhenDone__asNSData( +// InitWithBytesNoCopyLength initializes a data object filled with a given number of bytes of data from a given buffer. +// +// See https://developer.apple.com/documentation/foundation/nsdata/1409454-initwithbytesnocopy?language=objc for details. +func (x gen_NSData) InitWithBytesNoCopyLength_AsNSData( bytes unsafe.Pointer, length NSUInteger, - b bool, -) ( - r0 NSData, -) { - ret := C.NSData_inst_initWithBytesNoCopy_length_freeWhenDone_( +) NSData { + ret := C.NSData_inst_InitWithBytesNoCopyLength( unsafe.Pointer(x.Pointer()), bytes, C.ulong(length), - convertToObjCBool(b), ) - r0 = NSData_fromPointer(ret) - return + + return NSData_FromPointer(ret) } -func (x gen_NSData) InitWithData__asNSData( - data NSDataRef, -) ( - r0 NSData, -) { - ret := C.NSData_inst_initWithData_( +// InitWithBytesNoCopyLengthFreeWhenDone initializes a newly allocated data object by adding the given number of bytes from the given buffer. +// +// See https://developer.apple.com/documentation/foundation/nsdata/1416020-initwithbytesnocopy?language=objc for details. +func (x gen_NSData) InitWithBytesNoCopyLengthFreeWhenDone_AsNSData( + bytes unsafe.Pointer, + length NSUInteger, + b bool, +) NSData { + ret := C.NSData_inst_InitWithBytesNoCopyLengthFreeWhenDone( unsafe.Pointer(x.Pointer()), - objc.RefPointer(data), + bytes, + C.ulong(length), + convertToObjCBool(b), ) - r0 = NSData_fromPointer(ret) - return + + return NSData_FromPointer(ret) } -func (x gen_NSData) InitWithContentsOfFile__asNSData( +// InitWithContentsOfFile initializes a data object with the content of the file at a given path. +// +// See https://developer.apple.com/documentation/foundation/nsdata/1408672-initwithcontentsoffile?language=objc for details. +func (x gen_NSData) InitWithContentsOfFile_AsNSData( path NSStringRef, -) ( - r0 NSData, -) { - ret := C.NSData_inst_initWithContentsOfFile_( +) NSData { + ret := C.NSData_inst_InitWithContentsOfFile( unsafe.Pointer(x.Pointer()), objc.RefPointer(path), ) - r0 = NSData_fromPointer(ret) - return + + return NSData_FromPointer(ret) } -func (x gen_NSData) InitWithContentsOfURL__asNSData( +// InitWithContentsOfURL initializes a data object with the data from the location specified by a given url. +// +// See https://developer.apple.com/documentation/foundation/nsdata/1413892-initwithcontentsofurl?language=objc for details. +func (x gen_NSData) InitWithContentsOfURL_AsNSData( url NSURLRef, -) ( - r0 NSData, -) { - ret := C.NSData_inst_initWithContentsOfURL_( +) NSData { + ret := C.NSData_inst_InitWithContentsOfURL( unsafe.Pointer(x.Pointer()), objc.RefPointer(url), ) - r0 = NSData_fromPointer(ret) - return + + return NSData_FromPointer(ret) +} + +// InitWithData initializes a data object with the contents of another data object. +// +// See https://developer.apple.com/documentation/foundation/nsdata/1417055-initwithdata?language=objc for details. +func (x gen_NSData) InitWithData_AsNSData( + data NSDataRef, +) NSData { + ret := C.NSData_inst_InitWithData( + unsafe.Pointer(x.Pointer()), + objc.RefPointer(data), + ) + + return NSData_FromPointer(ret) +} + +// IsEqualToData returns a boolean value indicating whether this data object is the same as another. +// +// See https://developer.apple.com/documentation/foundation/nsdata/1409330-isequaltodata?language=objc for details. +func (x gen_NSData) IsEqualToData( + other NSDataRef, +) bool { + ret := C.NSData_inst_IsEqualToData( + unsafe.Pointer(x.Pointer()), + objc.RefPointer(other), + ) + + return convertObjCBoolToGo(ret) } -func (x gen_NSData) WriteToFile_atomically_( +// WriteToFileAtomically writes the data object's bytes to the file specified by a given path. +// +// See https://developer.apple.com/documentation/foundation/nsdata/1408033-writetofile?language=objc for details. +func (x gen_NSData) WriteToFileAtomically( path NSStringRef, useAuxiliaryFile bool, -) ( - r0 bool, -) { - ret := C.NSData_inst_writeToFile_atomically_( +) bool { + ret := C.NSData_inst_WriteToFileAtomically( unsafe.Pointer(x.Pointer()), objc.RefPointer(path), convertToObjCBool(useAuxiliaryFile), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSData) WriteToURL_atomically_( +// WriteToURLAtomically writes the data object's bytes to the location specified by a given url. +// +// See https://developer.apple.com/documentation/foundation/nsdata/1415134-writetourl?language=objc for details. +func (x gen_NSData) WriteToURLAtomically( url NSURLRef, atomically bool, -) ( - r0 bool, -) { - ret := C.NSData_inst_writeToURL_atomically_( +) bool { + ret := C.NSData_inst_WriteToURLAtomically( unsafe.Pointer(x.Pointer()), objc.RefPointer(url), convertToObjCBool(atomically), ) - r0 = convertObjCBoolToGo(ret) - return -} -func (x gen_NSData) GetBytes_length_( - buffer unsafe.Pointer, - length NSUInteger, -) { - C.NSData_inst_getBytes_length_( - unsafe.Pointer(x.Pointer()), - buffer, - C.ulong(length), - ) - return + return convertObjCBoolToGo(ret) } -func (x gen_NSData) IsEqualToData_( - other NSDataRef, -) ( - r0 bool, -) { - ret := C.NSData_inst_isEqualToData_( +// Init +// +// See for details. +func (x gen_NSData) Init_AsNSData() NSData { + ret := C.NSData_inst_Init( unsafe.Pointer(x.Pointer()), - objc.RefPointer(other), ) - r0 = convertObjCBoolToGo(ret) - return -} -func (x gen_NSData) Init_asNSData() ( - r0 NSData, -) { - ret := C.NSData_inst_init( - unsafe.Pointer(x.Pointer()), - ) - r0 = NSData_fromPointer(ret) - return + return NSData_FromPointer(ret) } -func (x gen_NSData) Bytes() ( - r0 unsafe.Pointer, -) { - ret := C.NSData_inst_bytes( +// Bytes returns a pointer to the data object's contents. +// +// See https://developer.apple.com/documentation/foundation/nsdata/1410616-bytes?language=objc for details. +func (x gen_NSData) Bytes() unsafe.Pointer { + ret := C.NSData_inst_Bytes( unsafe.Pointer(x.Pointer()), ) - r0 = ret - return + + return ret } -func (x gen_NSData) Length() ( - r0 NSUInteger, -) { - ret := C.NSData_inst_length( +// Length returns the number of bytes contained by the data object. +// +// See https://developer.apple.com/documentation/foundation/nsdata/1416769-length?language=objc for details. +func (x gen_NSData) Length() NSUInteger { + ret := C.NSData_inst_Length( unsafe.Pointer(x.Pointer()), ) - r0 = NSUInteger(ret) - return + + return NSUInteger(ret) } -func (x gen_NSData) Description() ( - r0 NSString, -) { - ret := C.NSData_inst_description( +// Description returns a string that contains a hexadecimal representation of the data object’s contents in a property list format. +// +// See https://developer.apple.com/documentation/foundation/nsdata/1412579-description?language=objc for details. +func (x gen_NSData) Description() NSString { + ret := C.NSData_inst_Description( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } type NSDictionaryRef interface { Pointer() uintptr - Init_asNSDictionary() NSDictionary + Init_AsNSDictionary() NSDictionary } type gen_NSDictionary struct { objc.Object } -func NSDictionary_fromPointer(ptr unsafe.Pointer) NSDictionary { +func NSDictionary_FromPointer(ptr unsafe.Pointer) NSDictionary { return NSDictionary{gen_NSDictionary{ - objc.Object_fromPointer(ptr), + objc.Object_FromPointer(ptr), }} } -func NSDictionary_fromRef(ref objc.Ref) NSDictionary { - return NSDictionary_fromPointer(unsafe.Pointer(ref.Pointer())) +func NSDictionary_FromRef(ref objc.Ref) NSDictionary { + return NSDictionary_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_NSDictionary) Init_asNSDictionary() ( - r0 NSDictionary, -) { - ret := C.NSDictionary_inst_init( +// DescriptionWithLocale returns a string object that represents the contents of the dictionary, formatted as a property list. +// +// See https://developer.apple.com/documentation/foundation/nsdictionary/1417665-descriptionwithlocale?language=objc for details. +func (x gen_NSDictionary) DescriptionWithLocale( + locale objc.Ref, +) NSString { + ret := C.NSDictionary_inst_DescriptionWithLocale( unsafe.Pointer(x.Pointer()), + objc.RefPointer(locale), ) - r0 = NSDictionary_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSDictionary) InitWithObjects_forKeys__asNSDictionary( - objects NSArrayRef, - keys NSArrayRef, -) ( - r0 NSDictionary, -) { - ret := C.NSDictionary_inst_initWithObjects_forKeys_( +// DescriptionWithLocaleIndent returns a string object that represents the contents of the dictionary, formatted as a property list. +// +// See https://developer.apple.com/documentation/foundation/nsdictionary/1412690-descriptionwithlocale?language=objc for details. +func (x gen_NSDictionary) DescriptionWithLocaleIndent( + locale objc.Ref, + level NSUInteger, +) NSString { + ret := C.NSDictionary_inst_DescriptionWithLocaleIndent( unsafe.Pointer(x.Pointer()), - objc.RefPointer(objects), - objc.RefPointer(keys), + objc.RefPointer(locale), + C.ulong(level), ) - r0 = NSDictionary_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSDictionary) InitWithDictionary__asNSDictionary( - otherDictionary NSDictionaryRef, -) ( - r0 NSDictionary, -) { - ret := C.NSDictionary_inst_initWithDictionary_( +// FileExtensionHidden returns a boolean value indicating whether the file hides its extension. +// +// See https://developer.apple.com/documentation/foundation/nsdictionary/1413177-fileextensionhidden?language=objc for details. +func (x gen_NSDictionary) FileExtensionHidden() bool { + ret := C.NSDictionary_inst_FileExtensionHidden( unsafe.Pointer(x.Pointer()), - objc.RefPointer(otherDictionary), ) - r0 = NSDictionary_fromPointer(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSDictionary) InitWithDictionary_copyItems__asNSDictionary( - otherDictionary NSDictionaryRef, - flag bool, -) ( - r0 NSDictionary, -) { - ret := C.NSDictionary_inst_initWithDictionary_copyItems_( +// FileGroupOwnerAccountID returns file’s group owner account id. +// +// See https://developer.apple.com/documentation/foundation/nsdictionary/1413626-filegroupowneraccountid?language=objc for details. +func (x gen_NSDictionary) FileGroupOwnerAccountID() NSNumber { + ret := C.NSDictionary_inst_FileGroupOwnerAccountID( unsafe.Pointer(x.Pointer()), - objc.RefPointer(otherDictionary), - convertToObjCBool(flag), ) - r0 = NSDictionary_fromPointer(ret) - return + + return NSNumber_FromPointer(ret) } -func (x gen_NSDictionary) IsEqualToDictionary_( - otherDictionary NSDictionaryRef, -) ( - r0 bool, -) { - ret := C.NSDictionary_inst_isEqualToDictionary_( +// FileGroupOwnerAccountName returns the file’s group owner account name. +// +// See https://developer.apple.com/documentation/foundation/nsdictionary/1416788-filegroupowneraccountname?language=objc for details. +func (x gen_NSDictionary) FileGroupOwnerAccountName() NSString { + ret := C.NSDictionary_inst_FileGroupOwnerAccountName( unsafe.Pointer(x.Pointer()), - objc.RefPointer(otherDictionary), ) - r0 = convertObjCBoolToGo(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSDictionary) KeysSortedByValueUsingSelector_( - comparator objc.Selector, -) ( - r0 NSArray, -) { - ret := C.NSDictionary_inst_keysSortedByValueUsingSelector_( +// FileIsAppendOnly returns a boolean value indicating whether the file is append only. +// +// See https://developer.apple.com/documentation/foundation/nsdictionary/1416083-fileisappendonly?language=objc for details. +func (x gen_NSDictionary) FileIsAppendOnly() bool { + ret := C.NSDictionary_inst_FileIsAppendOnly( unsafe.Pointer(x.Pointer()), - comparator.SelectorAddress(), ) - r0 = NSArray_fromPointer(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSDictionary) FileType() ( - r0 NSString, -) { - ret := C.NSDictionary_inst_fileType( +// FileIsImmutable returns a boolean value indicating whether the file is immutable. +// +// See https://developer.apple.com/documentation/foundation/nsdictionary/1416500-fileisimmutable?language=objc for details. +func (x gen_NSDictionary) FileIsImmutable() bool { + ret := C.NSDictionary_inst_FileIsImmutable( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSDictionary) FilePosixPermissions() ( - r0 NSUInteger, -) { - ret := C.NSDictionary_inst_filePosixPermissions( +// FileOwnerAccountID returns the file’s owner account id. +// +// See https://developer.apple.com/documentation/foundation/nsdictionary/1412281-fileowneraccountid?language=objc for details. +func (x gen_NSDictionary) FileOwnerAccountID() NSNumber { + ret := C.NSDictionary_inst_FileOwnerAccountID( unsafe.Pointer(x.Pointer()), ) - r0 = NSUInteger(ret) - return + + return NSNumber_FromPointer(ret) } -func (x gen_NSDictionary) FileOwnerAccountID() ( - r0 NSNumber, -) { - ret := C.NSDictionary_inst_fileOwnerAccountID( +// FileOwnerAccountName returns the file’s owner account name. +// +// See https://developer.apple.com/documentation/foundation/nsdictionary/1417533-fileowneraccountname?language=objc for details. +func (x gen_NSDictionary) FileOwnerAccountName() NSString { + ret := C.NSDictionary_inst_FileOwnerAccountName( unsafe.Pointer(x.Pointer()), ) - r0 = NSNumber_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSDictionary) FileOwnerAccountName() ( - r0 NSString, -) { - ret := C.NSDictionary_inst_fileOwnerAccountName( +// FilePosixPermissions returns the file’s posix permissions. +// +// See https://developer.apple.com/documentation/foundation/nsdictionary/1409446-fileposixpermissions?language=objc for details. +func (x gen_NSDictionary) FilePosixPermissions() NSUInteger { + ret := C.NSDictionary_inst_FilePosixPermissions( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSUInteger(ret) } -func (x gen_NSDictionary) FileGroupOwnerAccountID() ( - r0 NSNumber, -) { - ret := C.NSDictionary_inst_fileGroupOwnerAccountID( +// FileSystemFileNumber returns the filesystem file number. +// +// See https://developer.apple.com/documentation/foundation/nsdictionary/1408396-filesystemfilenumber?language=objc for details. +func (x gen_NSDictionary) FileSystemFileNumber() NSUInteger { + ret := C.NSDictionary_inst_FileSystemFileNumber( unsafe.Pointer(x.Pointer()), ) - r0 = NSNumber_fromPointer(ret) - return + + return NSUInteger(ret) } -func (x gen_NSDictionary) FileGroupOwnerAccountName() ( - r0 NSString, -) { - ret := C.NSDictionary_inst_fileGroupOwnerAccountName( +// FileSystemNumber returns the filesystem number. +// +// See https://developer.apple.com/documentation/foundation/nsdictionary/1415329-filesystemnumber?language=objc for details. +func (x gen_NSDictionary) FileSystemNumber() NSInteger { + ret := C.NSDictionary_inst_FileSystemNumber( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSInteger(ret) } -func (x gen_NSDictionary) FileExtensionHidden() ( - r0 bool, -) { - ret := C.NSDictionary_inst_fileExtensionHidden( +// FileType returns the file type. +// +// See https://developer.apple.com/documentation/foundation/nsdictionary/1416809-filetype?language=objc for details. +func (x gen_NSDictionary) FileType() NSString { + ret := C.NSDictionary_inst_FileType( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSDictionary) FileIsImmutable() ( - r0 bool, -) { - ret := C.NSDictionary_inst_fileIsImmutable( +// Init initializes a newly allocated dictionary. +// +// See https://developer.apple.com/documentation/foundation/nsdictionary/1418147-init?language=objc for details. +func (x gen_NSDictionary) Init_AsNSDictionary() NSDictionary { + ret := C.NSDictionary_inst_Init( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return NSDictionary_FromPointer(ret) } -func (x gen_NSDictionary) FileIsAppendOnly() ( - r0 bool, -) { - ret := C.NSDictionary_inst_fileIsAppendOnly( +// InitWithDictionary initializes a newly allocated dictionary by placing in it the keys and values contained in another given dictionary. +// +// See https://developer.apple.com/documentation/foundation/nsdictionary/1418434-initwithdictionary?language=objc for details. +func (x gen_NSDictionary) InitWithDictionary_AsNSDictionary( + otherDictionary NSDictionaryRef, +) NSDictionary { + ret := C.NSDictionary_inst_InitWithDictionary( unsafe.Pointer(x.Pointer()), + objc.RefPointer(otherDictionary), ) - r0 = convertObjCBoolToGo(ret) - return + + return NSDictionary_FromPointer(ret) } -func (x gen_NSDictionary) FileSystemFileNumber() ( - r0 NSUInteger, -) { - ret := C.NSDictionary_inst_fileSystemFileNumber( +// InitWithDictionaryCopyItems initializes a newly allocated dictionary using the objects contained in another given dictionary. +// +// See https://developer.apple.com/documentation/foundation/nsdictionary/1410124-initwithdictionary?language=objc for details. +func (x gen_NSDictionary) InitWithDictionaryCopyItems_AsNSDictionary( + otherDictionary NSDictionaryRef, + flag bool, +) NSDictionary { + ret := C.NSDictionary_inst_InitWithDictionaryCopyItems( unsafe.Pointer(x.Pointer()), + objc.RefPointer(otherDictionary), + convertToObjCBool(flag), ) - r0 = NSUInteger(ret) - return + + return NSDictionary_FromPointer(ret) } -func (x gen_NSDictionary) FileSystemNumber() ( - r0 NSInteger, -) { - ret := C.NSDictionary_inst_fileSystemNumber( +// InitWithObjectsForKeys initializes a newly allocated dictionary with key-value pairs constructed from the provided arrays of keys and objects. +// +// See https://developer.apple.com/documentation/foundation/nsdictionary/1410010-initwithobjects?language=objc for details. +func (x gen_NSDictionary) InitWithObjectsForKeys_AsNSDictionary( + objects NSArrayRef, + keys NSArrayRef, +) NSDictionary { + ret := C.NSDictionary_inst_InitWithObjectsForKeys( unsafe.Pointer(x.Pointer()), + objc.RefPointer(objects), + objc.RefPointer(keys), ) - r0 = NSInteger(ret) - return + + return NSDictionary_FromPointer(ret) } -func (x gen_NSDictionary) DescriptionWithLocale_( - locale objc.Ref, -) ( - r0 NSString, -) { - ret := C.NSDictionary_inst_descriptionWithLocale_( +// IsEqualToDictionary returns a boolean value that indicates whether the contents of the receiving dictionary are equal to the contents of another given dictionary. +// +// See https://developer.apple.com/documentation/foundation/nsdictionary/1415445-isequaltodictionary?language=objc for details. +func (x gen_NSDictionary) IsEqualToDictionary( + otherDictionary NSDictionaryRef, +) bool { + ret := C.NSDictionary_inst_IsEqualToDictionary( unsafe.Pointer(x.Pointer()), - objc.RefPointer(locale), + objc.RefPointer(otherDictionary), ) - r0 = NSString_fromPointer(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSDictionary) DescriptionWithLocale_indent_( - locale objc.Ref, - level NSUInteger, -) ( - r0 NSString, -) { - ret := C.NSDictionary_inst_descriptionWithLocale_indent_( +// KeysSortedByValueUsingSelector returns an array of the dictionary’s keys, in the order they would be in if the dictionary were sorted by its values. +// +// See https://developer.apple.com/documentation/foundation/nsdictionary/1412484-keyssortedbyvalueusingselector?language=objc for details. +func (x gen_NSDictionary) KeysSortedByValueUsingSelector( + comparator objc.Selector, +) NSArray { + ret := C.NSDictionary_inst_KeysSortedByValueUsingSelector( unsafe.Pointer(x.Pointer()), - objc.RefPointer(locale), - C.ulong(level), + comparator.SelectorAddress(), ) - r0 = NSString_fromPointer(ret) - return + + return NSArray_FromPointer(ret) } -func (x gen_NSDictionary) Count() ( - r0 NSUInteger, -) { - ret := C.NSDictionary_inst_count( +// Count returns the number of entries in the dictionary. +// +// See https://developer.apple.com/documentation/foundation/nsdictionary/1409628-count?language=objc for details. +func (x gen_NSDictionary) Count() NSUInteger { + ret := C.NSDictionary_inst_Count( unsafe.Pointer(x.Pointer()), ) - r0 = NSUInteger(ret) - return + + return NSUInteger(ret) } -func (x gen_NSDictionary) AllKeys() ( - r0 NSArray, -) { - ret := C.NSDictionary_inst_allKeys( +// AllKeys returns a new array containing the dictionary’s keys, or an empty array if the dictionary has no entries. +// +// See https://developer.apple.com/documentation/foundation/nsdictionary/1409150-allkeys?language=objc for details. +func (x gen_NSDictionary) AllKeys() NSArray { + ret := C.NSDictionary_inst_AllKeys( unsafe.Pointer(x.Pointer()), ) - r0 = NSArray_fromPointer(ret) - return + + return NSArray_FromPointer(ret) } -func (x gen_NSDictionary) AllValues() ( - r0 NSArray, -) { - ret := C.NSDictionary_inst_allValues( +// AllValues returns a new array containing the dictionary’s values, or an empty array if the dictionary has no entries. +// +// See https://developer.apple.com/documentation/foundation/nsdictionary/1408915-allvalues?language=objc for details. +func (x gen_NSDictionary) AllValues() NSArray { + ret := C.NSDictionary_inst_AllValues( unsafe.Pointer(x.Pointer()), ) - r0 = NSArray_fromPointer(ret) - return + + return NSArray_FromPointer(ret) } -func (x gen_NSDictionary) Description() ( - r0 NSString, -) { - ret := C.NSDictionary_inst_description( +// Description returns a string that represents the contents of the dictionary, formatted as a property list. +// +// See https://developer.apple.com/documentation/foundation/nsdictionary/1410799-description?language=objc for details. +func (x gen_NSDictionary) Description() NSString { + ret := C.NSDictionary_inst_Description( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSDictionary) DescriptionInStringsFileFormat() ( - r0 NSString, -) { - ret := C.NSDictionary_inst_descriptionInStringsFileFormat( +// DescriptionInStringsFileFormat returns a string that represents the contents of the dictionary, formatted in .strings file format. +// +// See https://developer.apple.com/documentation/foundation/nsdictionary/1413282-descriptioninstringsfileformat?language=objc for details. +func (x gen_NSDictionary) DescriptionInStringsFileFormat() NSString { + ret := C.NSDictionary_inst_DescriptionInStringsFileFormat( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } type NSNumberRef interface { Pointer() uintptr - Init_asNSNumber() NSNumber + Init_AsNSNumber() NSNumber } type gen_NSNumber struct { objc.Object } -func NSNumber_fromPointer(ptr unsafe.Pointer) NSNumber { +func NSNumber_FromPointer(ptr unsafe.Pointer) NSNumber { return NSNumber{gen_NSNumber{ - objc.Object_fromPointer(ptr), + objc.Object_FromPointer(ptr), }} } -func NSNumber_fromRef(ref objc.Ref) NSNumber { - return NSNumber_fromPointer(unsafe.Pointer(ref.Pointer())) +func NSNumber_FromRef(ref objc.Ref) NSNumber { + return NSNumber_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_NSNumber) InitWithBool_( +// DescriptionWithLocale returns a string that represents the contents of the number object for a given locale. +// +// See https://developer.apple.com/documentation/foundation/nsnumber/1409984-descriptionwithlocale?language=objc for details. +func (x gen_NSNumber) DescriptionWithLocale( + locale objc.Ref, +) NSString { + ret := C.NSNumber_inst_DescriptionWithLocale( + unsafe.Pointer(x.Pointer()), + objc.RefPointer(locale), + ) + + return NSString_FromPointer(ret) +} + +// InitWithBool returns an nsnumber object initialized to contain a given value, treated as a bool. +// +// See https://developer.apple.com/documentation/foundation/nsnumber/1415728-initwithbool?language=objc for details. +func (x gen_NSNumber) InitWithBool( value bool, -) ( - r0 NSNumber, -) { - ret := C.NSNumber_inst_initWithBool_( +) NSNumber { + ret := C.NSNumber_inst_InitWithBool( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) - r0 = NSNumber_fromPointer(ret) - return + + return NSNumber_FromPointer(ret) } -func (x gen_NSNumber) InitWithInt_( +// InitWithInt returns an nsnumber object initialized to contain a given value, treated as a signed int. +// +// See https://developer.apple.com/documentation/foundation/nsnumber/1407580-initwithint?language=objc for details. +func (x gen_NSNumber) InitWithInt( value int32, -) ( - r0 NSNumber, -) { - ret := C.NSNumber_inst_initWithInt_( +) NSNumber { + ret := C.NSNumber_inst_InitWithInt( unsafe.Pointer(x.Pointer()), C.int(value), ) - r0 = NSNumber_fromPointer(ret) - return + + return NSNumber_FromPointer(ret) } -func (x gen_NSNumber) InitWithInteger_( +// InitWithInteger returns an nsnumber object initialized to contain a given value, treated as an nsinteger. +// +// See https://developer.apple.com/documentation/foundation/nsnumber/1409397-initwithinteger?language=objc for details. +func (x gen_NSNumber) InitWithInteger( value NSInteger, -) ( - r0 NSNumber, -) { - ret := C.NSNumber_inst_initWithInteger_( +) NSNumber { + ret := C.NSNumber_inst_InitWithInteger( unsafe.Pointer(x.Pointer()), C.long(value), ) - r0 = NSNumber_fromPointer(ret) - return + + return NSNumber_FromPointer(ret) } -func (x gen_NSNumber) InitWithUnsignedInt_( +// InitWithUnsignedInt returns an nsnumber object initialized to contain a given value, treated as an unsigned int. +// +// See https://developer.apple.com/documentation/foundation/nsnumber/1414598-initwithunsignedint?language=objc for details. +func (x gen_NSNumber) InitWithUnsignedInt( value int32, -) ( - r0 NSNumber, -) { - ret := C.NSNumber_inst_initWithUnsignedInt_( +) NSNumber { + ret := C.NSNumber_inst_InitWithUnsignedInt( unsafe.Pointer(x.Pointer()), C.int(value), ) - r0 = NSNumber_fromPointer(ret) - return + + return NSNumber_FromPointer(ret) } -func (x gen_NSNumber) InitWithUnsignedInteger_( +// InitWithUnsignedInteger returns an nsnumber object initialized to contain a given value, treated as an nsuinteger. +// +// See https://developer.apple.com/documentation/foundation/nsnumber/1412531-initwithunsignedinteger?language=objc for details. +func (x gen_NSNumber) InitWithUnsignedInteger( value NSUInteger, -) ( - r0 NSNumber, -) { - ret := C.NSNumber_inst_initWithUnsignedInteger_( +) NSNumber { + ret := C.NSNumber_inst_InitWithUnsignedInteger( unsafe.Pointer(x.Pointer()), C.ulong(value), ) - r0 = NSNumber_fromPointer(ret) - return -} -func (x gen_NSNumber) DescriptionWithLocale_( - locale objc.Ref, -) ( - r0 NSString, -) { - ret := C.NSNumber_inst_descriptionWithLocale_( - unsafe.Pointer(x.Pointer()), - objc.RefPointer(locale), - ) - r0 = NSString_fromPointer(ret) - return + return NSNumber_FromPointer(ret) } -func (x gen_NSNumber) IsEqualToNumber_( +// IsEqualToNumber returns a boolean value that indicates whether the number object’s value and a given number are equal. +// +// See https://developer.apple.com/documentation/foundation/nsnumber/1411315-isequaltonumber?language=objc for details. +func (x gen_NSNumber) IsEqualToNumber( number NSNumberRef, -) ( - r0 bool, -) { - ret := C.NSNumber_inst_isEqualToNumber_( +) bool { + ret := C.NSNumber_inst_IsEqualToNumber( unsafe.Pointer(x.Pointer()), objc.RefPointer(number), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSNumber) Init_asNSNumber() ( - r0 NSNumber, -) { - ret := C.NSNumber_inst_init( +// Init +// +// See for details. +func (x gen_NSNumber) Init_AsNSNumber() NSNumber { + ret := C.NSNumber_inst_Init( unsafe.Pointer(x.Pointer()), ) - r0 = NSNumber_fromPointer(ret) - return + + return NSNumber_FromPointer(ret) } -func (x gen_NSNumber) BoolValue() ( - r0 bool, -) { - ret := C.NSNumber_inst_boolValue( +// BoolValue returns the number object's value expressed as a boolean value. +// +// See https://developer.apple.com/documentation/foundation/nsnumber/1410865-boolvalue?language=objc for details. +func (x gen_NSNumber) BoolValue() bool { + ret := C.NSNumber_inst_BoolValue( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSNumber) IntValue() ( - r0 int32, -) { - ret := C.NSNumber_inst_intValue( +// IntValue returns the number object's value expressed as an int, converted as necessary. +// +// See https://developer.apple.com/documentation/foundation/nsnumber/1407153-intvalue?language=objc for details. +func (x gen_NSNumber) IntValue() int32 { + ret := C.NSNumber_inst_IntValue( unsafe.Pointer(x.Pointer()), ) - r0 = int32(ret) - return + + return int32(ret) } -func (x gen_NSNumber) IntegerValue() ( - r0 NSInteger, -) { - ret := C.NSNumber_inst_integerValue( +// IntegerValue returns the number object's value expressed as an nsinteger object, converted as necessary. +// +// See https://developer.apple.com/documentation/foundation/nsnumber/1412554-integervalue?language=objc for details. +func (x gen_NSNumber) IntegerValue() NSInteger { + ret := C.NSNumber_inst_IntegerValue( unsafe.Pointer(x.Pointer()), ) - r0 = NSInteger(ret) - return + + return NSInteger(ret) } -func (x gen_NSNumber) UnsignedIntegerValue() ( - r0 NSUInteger, -) { - ret := C.NSNumber_inst_unsignedIntegerValue( +// UnsignedIntegerValue returns the number object's value expressed as an nsuinteger object, converted as necessary. +// +// See https://developer.apple.com/documentation/foundation/nsnumber/1413324-unsignedintegervalue?language=objc for details. +func (x gen_NSNumber) UnsignedIntegerValue() NSUInteger { + ret := C.NSNumber_inst_UnsignedIntegerValue( unsafe.Pointer(x.Pointer()), ) - r0 = NSUInteger(ret) - return + + return NSUInteger(ret) } -func (x gen_NSNumber) UnsignedIntValue() ( - r0 int32, -) { - ret := C.NSNumber_inst_unsignedIntValue( +// UnsignedIntValue returns the number object's value expressed as an unsigned int, converted as necessary. +// +// See https://developer.apple.com/documentation/foundation/nsnumber/1417875-unsignedintvalue?language=objc for details. +func (x gen_NSNumber) UnsignedIntValue() int32 { + ret := C.NSNumber_inst_UnsignedIntValue( unsafe.Pointer(x.Pointer()), ) - r0 = int32(ret) - return + + return int32(ret) } -func (x gen_NSNumber) StringValue() ( - r0 NSString, -) { - ret := C.NSNumber_inst_stringValue( +// StringValue returns the number object's value expressed as a human-readable string. +// +// See https://developer.apple.com/documentation/foundation/nsnumber/1415802-stringvalue?language=objc for details. +func (x gen_NSNumber) StringValue() NSString { + ret := C.NSNumber_inst_StringValue( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } type NSRunLoopRef interface { Pointer() uintptr - Init_asNSRunLoop() NSRunLoop + Init_AsNSRunLoop() NSRunLoop } type gen_NSRunLoop struct { objc.Object } -func NSRunLoop_fromPointer(ptr unsafe.Pointer) NSRunLoop { +func NSRunLoop_FromPointer(ptr unsafe.Pointer) NSRunLoop { return NSRunLoop{gen_NSRunLoop{ - objc.Object_fromPointer(ptr), + objc.Object_FromPointer(ptr), }} } -func NSRunLoop_fromRef(ref objc.Ref) NSRunLoop { - return NSRunLoop_fromPointer(unsafe.Pointer(ref.Pointer())) +func NSRunLoop_FromRef(ref objc.Ref) NSRunLoop { + return NSRunLoop_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_NSRunLoop) Run() { - C.NSRunLoop_inst_run( +// CancelPerformSelectorTargetArgument cancels the sending of a previously scheduled message. +// +// See https://developer.apple.com/documentation/foundation/nsrunloop/1418077-cancelperformselector?language=objc for details. +func (x gen_NSRunLoop) CancelPerformSelectorTargetArgument( + aSelector objc.Selector, + target objc.Ref, + arg objc.Ref, +) { + C.NSRunLoop_inst_CancelPerformSelectorTargetArgument( unsafe.Pointer(x.Pointer()), + aSelector.SelectorAddress(), + objc.RefPointer(target), + objc.RefPointer(arg), ) + return } -func (x gen_NSRunLoop) PerformSelector_target_argument_order_modes_( - aSelector objc.Selector, +// CancelPerformSelectorsWithTarget cancels all outstanding ordered performs scheduled with a given target. +// +// See https://developer.apple.com/documentation/foundation/nsrunloop/1414208-cancelperformselectorswithtarget?language=objc for details. +func (x gen_NSRunLoop) CancelPerformSelectorsWithTarget( target objc.Ref, - arg objc.Ref, - order NSUInteger, - modes NSArrayRef, ) { - C.NSRunLoop_inst_performSelector_target_argument_order_modes_( + C.NSRunLoop_inst_CancelPerformSelectorsWithTarget( unsafe.Pointer(x.Pointer()), - aSelector.SelectorAddress(), objc.RefPointer(target), - objc.RefPointer(arg), - C.ulong(order), - objc.RefPointer(modes), ) + return } -func (x gen_NSRunLoop) CancelPerformSelector_target_argument_( +// PerformSelectorTargetArgumentOrderModes schedules the sending of a message on the receiver. +// +// See https://developer.apple.com/documentation/foundation/nsrunloop/1409310-performselector?language=objc for details. +func (x gen_NSRunLoop) PerformSelectorTargetArgumentOrderModes( aSelector objc.Selector, target objc.Ref, arg objc.Ref, + order NSUInteger, + modes NSArrayRef, ) { - C.NSRunLoop_inst_cancelPerformSelector_target_argument_( + C.NSRunLoop_inst_PerformSelectorTargetArgumentOrderModes( unsafe.Pointer(x.Pointer()), aSelector.SelectorAddress(), objc.RefPointer(target), objc.RefPointer(arg), + C.ulong(order), + objc.RefPointer(modes), ) + return } -func (x gen_NSRunLoop) CancelPerformSelectorsWithTarget_( - target objc.Ref, -) { - C.NSRunLoop_inst_cancelPerformSelectorsWithTarget_( +// Run puts the receiver into a permanent loop, during which time it processes data from all attached input sources. +// +// See https://developer.apple.com/documentation/foundation/nsrunloop/1412430-run?language=objc for details. +func (x gen_NSRunLoop) Run() { + C.NSRunLoop_inst_Run( unsafe.Pointer(x.Pointer()), - objc.RefPointer(target), ) + return } -func (x gen_NSRunLoop) Init_asNSRunLoop() ( - r0 NSRunLoop, -) { - ret := C.NSRunLoop_inst_init( +// Init +// +// See for details. +func (x gen_NSRunLoop) Init_AsNSRunLoop() NSRunLoop { + ret := C.NSRunLoop_inst_Init( unsafe.Pointer(x.Pointer()), ) - r0 = NSRunLoop_fromPointer(ret) - return + + return NSRunLoop_FromPointer(ret) } type NSStringRef interface { Pointer() uintptr - Init_asNSString() NSString + Init_AsNSString() NSString } type gen_NSString struct { objc.Object } -func NSString_fromPointer(ptr unsafe.Pointer) NSString { +func NSString_FromPointer(ptr unsafe.Pointer) NSString { return NSString{gen_NSString{ - objc.Object_fromPointer(ptr), + objc.Object_FromPointer(ptr), }} } -func NSString_fromRef(ref objc.Ref) NSString { - return NSString_fromPointer(unsafe.Pointer(ref.Pointer())) +func NSString_FromRef(ref objc.Ref) NSString { + return NSString_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_NSString) Init_asNSString() ( - r0 NSString, -) { - ret := C.NSString_inst_init( +// CanBeConvertedToEncoding returns a boolean value that indicates whether the receiver can be converted to a given encoding without loss of information. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1409496-canbeconvertedtoencoding?language=objc for details. +func (x gen_NSString) CanBeConvertedToEncoding( + encoding NSStringEncoding, +) bool { + ret := C.NSString_inst_CanBeConvertedToEncoding( unsafe.Pointer(x.Pointer()), + C.ulong(encoding), ) - r0 = NSString_fromPointer(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSString) InitWithBytes_length_encoding__asNSString( - bytes unsafe.Pointer, - len NSUInteger, - encoding NSStringEncoding, -) ( - r0 NSString, -) { - ret := C.NSString_inst_initWithBytes_length_encoding_( +// CharacterAtIndex returns the character at a given utf-16 code unit index. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1414645-characteratindex?language=objc for details. +func (x gen_NSString) CharacterAtIndex( + index NSUInteger, +) Unichar { + ret := C.NSString_inst_CharacterAtIndex( unsafe.Pointer(x.Pointer()), - bytes, - C.ulong(len), - C.ulong(encoding), + C.ulong(index), ) - r0 = NSString_fromPointer(ret) - return + + return Unichar(ret) } -func (x gen_NSString) InitWithBytesNoCopy_length_encoding_freeWhenDone__asNSString( - bytes unsafe.Pointer, - len NSUInteger, - encoding NSStringEncoding, - freeBuffer bool, -) ( - r0 NSString, -) { - ret := C.NSString_inst_initWithBytesNoCopy_length_encoding_freeWhenDone_( +// CompletePathIntoStringCaseSensitiveMatchesIntoArrayFilterTypes interprets the receiver as a path in the file system and attempts to perform filename completion, returning a numeric value that indicates whether a match was possible, and by reference the longest path that matches the receiver. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1411841-completepathintostring?language=objc for details. +func (x gen_NSString) CompletePathIntoStringCaseSensitiveMatchesIntoArrayFilterTypes( + outputName NSStringRef, + flag bool, + outputArray NSArrayRef, + filterTypes NSArrayRef, +) NSUInteger { + ret := C.NSString_inst_CompletePathIntoStringCaseSensitiveMatchesIntoArrayFilterTypes( unsafe.Pointer(x.Pointer()), - bytes, - C.ulong(len), - C.ulong(encoding), - convertToObjCBool(freeBuffer), + objc.RefPointer(outputName), + convertToObjCBool(flag), + objc.RefPointer(outputArray), + objc.RefPointer(filterTypes), ) - r0 = NSString_fromPointer(ret) - return + + return NSUInteger(ret) } -func (x gen_NSString) InitWithString__asNSString( - aString NSStringRef, -) ( - r0 NSString, -) { - ret := C.NSString_inst_initWithString_( +// ComponentsSeparatedByString returns an array containing substrings from the receiver that have been divided by a given separator. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1413214-componentsseparatedbystring?language=objc for details. +func (x gen_NSString) ComponentsSeparatedByString( + separator NSStringRef, +) NSArray { + ret := C.NSString_inst_ComponentsSeparatedByString( unsafe.Pointer(x.Pointer()), - objc.RefPointer(aString), + objc.RefPointer(separator), ) - r0 = NSString_fromPointer(ret) - return + + return NSArray_FromPointer(ret) } -func (x gen_NSString) InitWithData_encoding__asNSString( - data NSDataRef, - encoding NSStringEncoding, -) ( - r0 NSString, -) { - ret := C.NSString_inst_initWithData_encoding_( +// ContainsString returns a boolean value indicating whether the string contains a given string by performing a case-sensitive, locale-unaware search. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1414563-containsstring?language=objc for details. +func (x gen_NSString) ContainsString( + str NSStringRef, +) bool { + ret := C.NSString_inst_ContainsString( unsafe.Pointer(x.Pointer()), - objc.RefPointer(data), - C.ulong(encoding), + objc.RefPointer(str), ) - r0 = NSString_fromPointer(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSString) LengthOfBytesUsingEncoding_( - enc NSStringEncoding, -) ( - r0 NSUInteger, -) { - ret := C.NSString_inst_lengthOfBytesUsingEncoding_( +// DataUsingEncoding returns an nsdata object containing a representation of the receiver encoded using a given encoding. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1416696-datausingencoding?language=objc for details. +func (x gen_NSString) DataUsingEncoding( + encoding NSStringEncoding, +) NSData { + ret := C.NSString_inst_DataUsingEncoding( unsafe.Pointer(x.Pointer()), - C.ulong(enc), + C.ulong(encoding), ) - r0 = NSUInteger(ret) - return + + return NSData_FromPointer(ret) } -func (x gen_NSString) MaximumLengthOfBytesUsingEncoding_( - enc NSStringEncoding, -) ( - r0 NSUInteger, -) { - ret := C.NSString_inst_maximumLengthOfBytesUsingEncoding_( +// DataUsingEncodingAllowLossyConversion returns an nsdata object containing a representation of the receiver encoded using a given encoding. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1413692-datausingencoding?language=objc for details. +func (x gen_NSString) DataUsingEncodingAllowLossyConversion( + encoding NSStringEncoding, + lossy bool, +) NSData { + ret := C.NSString_inst_DataUsingEncodingAllowLossyConversion( unsafe.Pointer(x.Pointer()), - C.ulong(enc), + C.ulong(encoding), + convertToObjCBool(lossy), ) - r0 = NSUInteger(ret) - return + + return NSData_FromPointer(ret) } -func (x gen_NSString) CharacterAtIndex_( - index NSUInteger, -) ( - r0 Unichar, +// DrawInRectWithAttributes draws the attributed string inside the specified bounding rectangle. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1529855-drawinrect?language=objc for details. +func (x gen_NSString) DrawInRectWithAttributes( + rect NSRect, + attrs NSDictionaryRef, ) { - ret := C.NSString_inst_characterAtIndex_( + C.NSString_inst_DrawInRectWithAttributes( unsafe.Pointer(x.Pointer()), - C.ulong(index), + *(*C.NSRect)(unsafe.Pointer(&rect)), + objc.RefPointer(attrs), ) - r0 = Unichar(ret) + return } -func (x gen_NSString) HasPrefix_( +// HasPrefix returns a boolean value that indicates whether a given string matches the beginning characters of the receiver. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1410309-hasprefix?language=objc for details. +func (x gen_NSString) HasPrefix( str NSStringRef, -) ( - r0 bool, -) { - ret := C.NSString_inst_hasPrefix_( +) bool { + ret := C.NSString_inst_HasPrefix( unsafe.Pointer(x.Pointer()), objc.RefPointer(str), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSString) HasSuffix_( +// HasSuffix returns a boolean value that indicates whether a given string matches the ending characters of the receiver. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1416529-hassuffix?language=objc for details. +func (x gen_NSString) HasSuffix( str NSStringRef, -) ( - r0 bool, -) { - ret := C.NSString_inst_hasSuffix_( +) bool { + ret := C.NSString_inst_HasSuffix( unsafe.Pointer(x.Pointer()), objc.RefPointer(str), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSString) IsEqualToString_( - aString NSStringRef, -) ( - r0 bool, -) { - ret := C.NSString_inst_isEqualToString_( +// Init returns an initialized nsstring object that contains no characters. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1409306-init?language=objc for details. +func (x gen_NSString) Init_AsNSString() NSString { + ret := C.NSString_inst_Init( unsafe.Pointer(x.Pointer()), - objc.RefPointer(aString), ) - r0 = convertObjCBoolToGo(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSString) StringByAppendingString_( - aString NSStringRef, -) ( - r0 NSString, -) { - ret := C.NSString_inst_stringByAppendingString_( +// InitWithBytesLengthEncoding returns an initialized nsstring object containing a given number of bytes from a given buffer of bytes interpreted in a given encoding. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1407339-initwithbytes?language=objc for details. +func (x gen_NSString) InitWithBytesLengthEncoding_AsNSString( + bytes unsafe.Pointer, + len NSUInteger, + encoding NSStringEncoding, +) NSString { + ret := C.NSString_inst_InitWithBytesLengthEncoding( unsafe.Pointer(x.Pointer()), - objc.RefPointer(aString), + bytes, + C.ulong(len), + C.ulong(encoding), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSString) StringByPaddingToLength_withString_startingAtIndex_( - newLength NSUInteger, - padString NSStringRef, - padIndex NSUInteger, -) ( - r0 NSString, -) { - ret := C.NSString_inst_stringByPaddingToLength_withString_startingAtIndex_( +// InitWithBytesNoCopyLengthEncodingFreeWhenDone returns an initialized nsstring object that contains a given number of bytes from a given buffer of bytes interpreted in a given encoding, and optionally frees the buffer. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1413830-initwithbytesnocopy?language=objc for details. +func (x gen_NSString) InitWithBytesNoCopyLengthEncodingFreeWhenDone_AsNSString( + bytes unsafe.Pointer, + len NSUInteger, + encoding NSStringEncoding, + freeBuffer bool, +) NSString { + ret := C.NSString_inst_InitWithBytesNoCopyLengthEncodingFreeWhenDone( unsafe.Pointer(x.Pointer()), - C.ulong(newLength), - objc.RefPointer(padString), - C.ulong(padIndex), + bytes, + C.ulong(len), + C.ulong(encoding), + convertToObjCBool(freeBuffer), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSString) ComponentsSeparatedByString_( - separator NSStringRef, -) ( - r0 NSArray, -) { - ret := C.NSString_inst_componentsSeparatedByString_( +// InitWithDataEncoding returns an nsstring object initialized by converting given data into utf-16 code units using a given encoding. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1416374-initwithdata?language=objc for details. +func (x gen_NSString) InitWithDataEncoding_AsNSString( + data NSDataRef, + encoding NSStringEncoding, +) NSString { + ret := C.NSString_inst_InitWithDataEncoding( unsafe.Pointer(x.Pointer()), - objc.RefPointer(separator), + objc.RefPointer(data), + C.ulong(encoding), ) - r0 = NSArray_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSString) SubstringFromIndex_( - from NSUInteger, -) ( - r0 NSString, -) { - ret := C.NSString_inst_substringFromIndex_( +// InitWithString returns an nsstring object initialized by copying the characters from another given string. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1411293-initwithstring?language=objc for details. +func (x gen_NSString) InitWithString_AsNSString( + aString NSStringRef, +) NSString { + ret := C.NSString_inst_InitWithString( unsafe.Pointer(x.Pointer()), - C.ulong(from), + objc.RefPointer(aString), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSString) SubstringToIndex_( - to NSUInteger, -) ( - r0 NSString, -) { - ret := C.NSString_inst_substringToIndex_( +// IsEqualToString returns a boolean value that indicates whether a given string is equal to the receiver using a literal unicode-based comparison. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1407803-isequaltostring?language=objc for details. +func (x gen_NSString) IsEqualToString( + aString NSStringRef, +) bool { + ret := C.NSString_inst_IsEqualToString( unsafe.Pointer(x.Pointer()), - C.ulong(to), + objc.RefPointer(aString), ) - r0 = NSString_fromPointer(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSString) ContainsString_( - str NSStringRef, -) ( - r0 bool, -) { - ret := C.NSString_inst_containsString_( +// LengthOfBytesUsingEncoding returns the number of bytes required to store the receiver in a given encoding. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1410710-lengthofbytesusingencoding?language=objc for details. +func (x gen_NSString) LengthOfBytesUsingEncoding( + enc NSStringEncoding, +) NSUInteger { + ret := C.NSString_inst_LengthOfBytesUsingEncoding( unsafe.Pointer(x.Pointer()), - objc.RefPointer(str), + C.ulong(enc), ) - r0 = convertObjCBoolToGo(ret) - return + + return NSUInteger(ret) } -func (x gen_NSString) LocalizedCaseInsensitiveContainsString_( +// LocalizedCaseInsensitiveContainsString returns a boolean value indicating whether the string contains a given string by performing a case-insensitive, locale-aware search. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1412098-localizedcaseinsensitivecontains?language=objc for details. +func (x gen_NSString) LocalizedCaseInsensitiveContainsString( str NSStringRef, -) ( - r0 bool, -) { - ret := C.NSString_inst_localizedCaseInsensitiveContainsString_( +) bool { + ret := C.NSString_inst_LocalizedCaseInsensitiveContainsString( unsafe.Pointer(x.Pointer()), objc.RefPointer(str), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSString) LocalizedStandardContainsString_( +// LocalizedStandardContainsString returns a boolean value indicating whether the string contains a given string by performing a case and diacritic insensitive, locale-aware search. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1416328-localizedstandardcontainsstring?language=objc for details. +func (x gen_NSString) LocalizedStandardContainsString( str NSStringRef, -) ( - r0 bool, -) { - ret := C.NSString_inst_localizedStandardContainsString_( +) bool { + ret := C.NSString_inst_LocalizedStandardContainsString( unsafe.Pointer(x.Pointer()), objc.RefPointer(str), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSString) StringByReplacingOccurrencesOfString_withString_( - target NSStringRef, - replacement NSStringRef, -) ( - r0 NSString, -) { - ret := C.NSString_inst_stringByReplacingOccurrencesOfString_withString_( +// MaximumLengthOfBytesUsingEncoding returns the maximum number of bytes needed to store the receiver in a given encoding. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1411611-maximumlengthofbytesusingencodin?language=objc for details. +func (x gen_NSString) MaximumLengthOfBytesUsingEncoding( + enc NSStringEncoding, +) NSUInteger { + ret := C.NSString_inst_MaximumLengthOfBytesUsingEncoding( unsafe.Pointer(x.Pointer()), - objc.RefPointer(target), - objc.RefPointer(replacement), + C.ulong(enc), ) - r0 = NSString_fromPointer(ret) - return + + return NSUInteger(ret) } -func (x gen_NSString) PropertyList() ( - r0 objc.Object, -) { - ret := C.NSString_inst_propertyList( +// PropertyList parses the receiver as a text representation of a property list, returning an nsstring, nsdata, nsarray, or nsdictionary object, according to the topmost element. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1413115-propertylist?language=objc for details. +func (x gen_NSString) PropertyList() objc.Object { + ret := C.NSString_inst_PropertyList( unsafe.Pointer(x.Pointer()), ) - r0 = objc.Object_fromPointer(ret) - return + + return objc.Object_FromPointer(ret) } -func (x gen_NSString) PropertyListFromStringsFileFormat() ( - r0 NSDictionary, -) { - ret := C.NSString_inst_propertyListFromStringsFileFormat( +// PropertyListFromStringsFileFormat returns a dictionary object initialized with the keys and values found in the receiver. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1407697-propertylistfromstringsfileforma?language=objc for details. +func (x gen_NSString) PropertyListFromStringsFileFormat() NSDictionary { + ret := C.NSString_inst_PropertyListFromStringsFileFormat( unsafe.Pointer(x.Pointer()), ) - r0 = NSDictionary_fromPointer(ret) - return + + return NSDictionary_FromPointer(ret) } -func (x gen_NSString) DrawInRect_withAttributes_( - rect NSRect, +// SizeWithAttributes returns the bounding box size the receiver occupies when drawn with the given attributes. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1531844-sizewithattributes?language=objc for details. +func (x gen_NSString) SizeWithAttributes( attrs NSDictionaryRef, -) { - C.NSString_inst_drawInRect_withAttributes_( +) NSSize { + ret := C.NSString_inst_SizeWithAttributes( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&rect)), objc.RefPointer(attrs), ) - return + + return *(*NSSize)(unsafe.Pointer(&ret)) } -func (x gen_NSString) SizeWithAttributes_( - attrs NSDictionaryRef, -) ( - r0 NSSize, -) { - ret := C.NSString_inst_sizeWithAttributes_( +// StringByAppendingPathComponent returns a new string made by appending to the receiver a given string. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1417069-stringbyappendingpathcomponent?language=objc for details. +func (x gen_NSString) StringByAppendingPathComponent( + str NSStringRef, +) NSString { + ret := C.NSString_inst_StringByAppendingPathComponent( unsafe.Pointer(x.Pointer()), - objc.RefPointer(attrs), + objc.RefPointer(str), ) - r0 = *(*NSSize)(unsafe.Pointer(&ret)) - return + + return NSString_FromPointer(ret) } -func (x gen_NSString) VariantFittingPresentationWidth_( - width NSInteger, -) ( - r0 NSString, -) { - ret := C.NSString_inst_variantFittingPresentationWidth_( +// StringByAppendingPathExtension returns a new string made by appending to the receiver an extension separator followed by a given extension. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1412501-stringbyappendingpathextension?language=objc for details. +func (x gen_NSString) StringByAppendingPathExtension( + str NSStringRef, +) NSString { + ret := C.NSString_inst_StringByAppendingPathExtension( unsafe.Pointer(x.Pointer()), - C.long(width), + objc.RefPointer(str), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSString) CanBeConvertedToEncoding_( - encoding NSStringEncoding, -) ( - r0 bool, -) { - ret := C.NSString_inst_canBeConvertedToEncoding_( +// StringByAppendingString returns a new string made by appending a given string to the receiver. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1412307-stringbyappendingstring?language=objc for details. +func (x gen_NSString) StringByAppendingString( + aString NSStringRef, +) NSString { + ret := C.NSString_inst_StringByAppendingString( unsafe.Pointer(x.Pointer()), - C.ulong(encoding), + objc.RefPointer(aString), ) - r0 = convertObjCBoolToGo(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSString) DataUsingEncoding_( - encoding NSStringEncoding, -) ( - r0 NSData, -) { - ret := C.NSString_inst_dataUsingEncoding_( +// StringByPaddingToLengthWithStringStartingAtIndex returns a new string formed from the receiver by either removing characters from the end, or by appending as many occurrences as necessary of a given pad string. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1416395-stringbypaddingtolength?language=objc for details. +func (x gen_NSString) StringByPaddingToLengthWithStringStartingAtIndex( + newLength NSUInteger, + padString NSStringRef, + padIndex NSUInteger, +) NSString { + ret := C.NSString_inst_StringByPaddingToLengthWithStringStartingAtIndex( unsafe.Pointer(x.Pointer()), - C.ulong(encoding), + C.ulong(newLength), + objc.RefPointer(padString), + C.ulong(padIndex), ) - r0 = NSData_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSString) DataUsingEncoding_allowLossyConversion_( - encoding NSStringEncoding, - lossy bool, -) ( - r0 NSData, -) { - ret := C.NSString_inst_dataUsingEncoding_allowLossyConversion_( +// StringByReplacingOccurrencesOfStringWithString returns a new string in which all occurrences of a target string in the receiver are replaced by another given string. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1412937-stringbyreplacingoccurrencesofst?language=objc for details. +func (x gen_NSString) StringByReplacingOccurrencesOfStringWithString( + target NSStringRef, + replacement NSStringRef, +) NSString { + ret := C.NSString_inst_StringByReplacingOccurrencesOfStringWithString( unsafe.Pointer(x.Pointer()), - C.ulong(encoding), - convertToObjCBool(lossy), + objc.RefPointer(target), + objc.RefPointer(replacement), ) - r0 = NSData_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSString) CompletePathIntoString_caseSensitive_matchesIntoArray_filterTypes_( - outputName NSStringRef, - flag bool, - outputArray NSArrayRef, - filterTypes NSArrayRef, -) ( - r0 NSUInteger, -) { - ret := C.NSString_inst_completePathIntoString_caseSensitive_matchesIntoArray_filterTypes_( +// StringsByAppendingPaths returns an array of strings made by separately appending to the receiver each string in a given array. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1415100-stringsbyappendingpaths?language=objc for details. +func (x gen_NSString) StringsByAppendingPaths( + paths NSArrayRef, +) NSArray { + ret := C.NSString_inst_StringsByAppendingPaths( unsafe.Pointer(x.Pointer()), - objc.RefPointer(outputName), - convertToObjCBool(flag), - objc.RefPointer(outputArray), - objc.RefPointer(filterTypes), + objc.RefPointer(paths), ) - r0 = NSUInteger(ret) - return + + return NSArray_FromPointer(ret) } -func (x gen_NSString) StringByAppendingPathComponent_( - str NSStringRef, -) ( - r0 NSString, -) { - ret := C.NSString_inst_stringByAppendingPathComponent_( +// SubstringFromIndex returns a new string containing the characters of the receiver from the one at a given index to the end. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1414368-substringfromindex?language=objc for details. +func (x gen_NSString) SubstringFromIndex( + from NSUInteger, +) NSString { + ret := C.NSString_inst_SubstringFromIndex( unsafe.Pointer(x.Pointer()), - objc.RefPointer(str), + C.ulong(from), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSString) StringByAppendingPathExtension_( - str NSStringRef, -) ( - r0 NSString, -) { - ret := C.NSString_inst_stringByAppendingPathExtension_( +// SubstringToIndex returns a new string containing the characters of the receiver up to, but not including, the one at a given index. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1408017-substringtoindex?language=objc for details. +func (x gen_NSString) SubstringToIndex( + to NSUInteger, +) NSString { + ret := C.NSString_inst_SubstringToIndex( unsafe.Pointer(x.Pointer()), - objc.RefPointer(str), + C.ulong(to), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSString) StringsByAppendingPaths_( - paths NSArrayRef, -) ( - r0 NSArray, -) { - ret := C.NSString_inst_stringsByAppendingPaths_( +// VariantFittingPresentationWidth returns a string variation suitable for the specified presentation width. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1413104-variantfittingpresentationwidth?language=objc for details. +func (x gen_NSString) VariantFittingPresentationWidth( + width NSInteger, +) NSString { + ret := C.NSString_inst_VariantFittingPresentationWidth( unsafe.Pointer(x.Pointer()), - objc.RefPointer(paths), + C.long(width), ) - r0 = NSArray_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSString) Length() ( - r0 NSUInteger, -) { - ret := C.NSString_inst_length( +// Length returns the number of utf-16 code units in the receiver. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1414212-length?language=objc for details. +func (x gen_NSString) Length() NSUInteger { + ret := C.NSString_inst_Length( unsafe.Pointer(x.Pointer()), ) - r0 = NSUInteger(ret) - return + + return NSUInteger(ret) } -func (x gen_NSString) Hash() ( - r0 NSUInteger, -) { - ret := C.NSString_inst_hash( +// Hash an unsigned integer that can be used as a hash table address. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1417245-hash?language=objc for details. +func (x gen_NSString) Hash() NSUInteger { + ret := C.NSString_inst_Hash( unsafe.Pointer(x.Pointer()), ) - r0 = NSUInteger(ret) - return + + return NSUInteger(ret) } -func (x gen_NSString) LowercaseString() ( - r0 NSString, -) { - ret := C.NSString_inst_lowercaseString( +// LowercaseString returns a lowercase representation of the string. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1408467-lowercasestring?language=objc for details. +func (x gen_NSString) LowercaseString() NSString { + ret := C.NSString_inst_LowercaseString( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSString) LocalizedLowercaseString() ( - r0 NSString, -) { - ret := C.NSString_inst_localizedLowercaseString( +// LocalizedLowercaseString returns a version of the string with all letters converted to lowercase, taking into account the current locale. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1414125-localizedlowercasestring?language=objc for details. +func (x gen_NSString) LocalizedLowercaseString() NSString { + ret := C.NSString_inst_LocalizedLowercaseString( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSString) UppercaseString() ( - r0 NSString, -) { - ret := C.NSString_inst_uppercaseString( +// UppercaseString an uppercase representation of the string. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1409855-uppercasestring?language=objc for details. +func (x gen_NSString) UppercaseString() NSString { + ret := C.NSString_inst_UppercaseString( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSString) LocalizedUppercaseString() ( - r0 NSString, -) { - ret := C.NSString_inst_localizedUppercaseString( +// LocalizedUppercaseString returns a version of the string with all letters converted to uppercase, taking into account the current locale. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1413331-localizeduppercasestring?language=objc for details. +func (x gen_NSString) LocalizedUppercaseString() NSString { + ret := C.NSString_inst_LocalizedUppercaseString( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSString) CapitalizedString() ( - r0 NSString, -) { - ret := C.NSString_inst_capitalizedString( +// CapitalizedString returns a capitalized representation of the string. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1416784-capitalizedstring?language=objc for details. +func (x gen_NSString) CapitalizedString() NSString { + ret := C.NSString_inst_CapitalizedString( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSString) LocalizedCapitalizedString() ( - r0 NSString, -) { - ret := C.NSString_inst_localizedCapitalizedString( +// LocalizedCapitalizedString returns a capitalized representation of the receiver using the current locale. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1414885-localizedcapitalizedstring?language=objc for details. +func (x gen_NSString) LocalizedCapitalizedString() NSString { + ret := C.NSString_inst_LocalizedCapitalizedString( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSString) DecomposedStringWithCanonicalMapping() ( - r0 NSString, -) { - ret := C.NSString_inst_decomposedStringWithCanonicalMapping( +// DecomposedStringWithCanonicalMapping returns a string made by normalizing the string’s contents using the unicode normalization form d. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1409474-decomposedstringwithcanonicalmap?language=objc for details. +func (x gen_NSString) DecomposedStringWithCanonicalMapping() NSString { + ret := C.NSString_inst_DecomposedStringWithCanonicalMapping( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSString) DecomposedStringWithCompatibilityMapping() ( - r0 NSString, -) { - ret := C.NSString_inst_decomposedStringWithCompatibilityMapping( +// DecomposedStringWithCompatibilityMapping returns a string made by normalizing the receiver’s contents using the unicode normalization form kd. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1415417-decomposedstringwithcompatibilit?language=objc for details. +func (x gen_NSString) DecomposedStringWithCompatibilityMapping() NSString { + ret := C.NSString_inst_DecomposedStringWithCompatibilityMapping( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSString) PrecomposedStringWithCanonicalMapping() ( - r0 NSString, -) { - ret := C.NSString_inst_precomposedStringWithCanonicalMapping( +// PrecomposedStringWithCanonicalMapping returns a string made by normalizing the string’s contents using the unicode normalization form c. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1412645-precomposedstringwithcanonicalma?language=objc for details. +func (x gen_NSString) PrecomposedStringWithCanonicalMapping() NSString { + ret := C.NSString_inst_PrecomposedStringWithCanonicalMapping( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSString) PrecomposedStringWithCompatibilityMapping() ( - r0 NSString, -) { - ret := C.NSString_inst_precomposedStringWithCompatibilityMapping( +// PrecomposedStringWithCompatibilityMapping returns a string made by normalizing the receiver’s contents using the unicode normalization form kc. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1412625-precomposedstringwithcompatibili?language=objc for details. +func (x gen_NSString) PrecomposedStringWithCompatibilityMapping() NSString { + ret := C.NSString_inst_PrecomposedStringWithCompatibilityMapping( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSString) IntValue() ( - r0 int32, -) { - ret := C.NSString_inst_intValue( +// IntValue returns the integer value of the string. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1414988-intvalue?language=objc for details. +func (x gen_NSString) IntValue() int32 { + ret := C.NSString_inst_IntValue( unsafe.Pointer(x.Pointer()), ) - r0 = int32(ret) - return + + return int32(ret) } -func (x gen_NSString) IntegerValue() ( - r0 NSInteger, -) { - ret := C.NSString_inst_integerValue( +// IntegerValue returns the nsinteger value of the string. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1410267-integervalue?language=objc for details. +func (x gen_NSString) IntegerValue() NSInteger { + ret := C.NSString_inst_IntegerValue( unsafe.Pointer(x.Pointer()), ) - r0 = NSInteger(ret) - return + + return NSInteger(ret) } -func (x gen_NSString) BoolValue() ( - r0 bool, -) { - ret := C.NSString_inst_boolValue( +// BoolValue returns the boolean value of the string. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1409420-boolvalue?language=objc for details. +func (x gen_NSString) BoolValue() bool { + ret := C.NSString_inst_BoolValue( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSString) Description() ( - r0 NSString, -) { - ret := C.NSString_inst_description( +// Description this nsstring object. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1410889-description?language=objc for details. +func (x gen_NSString) Description() NSString { + ret := C.NSString_inst_Description( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSString) FastestEncoding() ( - r0 NSStringEncoding, -) { - ret := C.NSString_inst_fastestEncoding( +// FastestEncoding returns the fastest encoding to which the receiver may be converted without loss of information. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1409567-fastestencoding?language=objc for details. +func (x gen_NSString) FastestEncoding() NSStringEncoding { + ret := C.NSString_inst_FastestEncoding( unsafe.Pointer(x.Pointer()), ) - r0 = NSStringEncoding(ret) - return + + return NSStringEncoding(ret) } -func (x gen_NSString) SmallestEncoding() ( - r0 NSStringEncoding, -) { - ret := C.NSString_inst_smallestEncoding( +// SmallestEncoding returns the smallest encoding to which the receiver can be converted without loss of information. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1418037-smallestencoding?language=objc for details. +func (x gen_NSString) SmallestEncoding() NSStringEncoding { + ret := C.NSString_inst_SmallestEncoding( unsafe.Pointer(x.Pointer()), ) - r0 = NSStringEncoding(ret) - return + + return NSStringEncoding(ret) } -func (x gen_NSString) PathComponents() ( - r0 NSArray, -) { - ret := C.NSString_inst_pathComponents( +// PathComponents returns the file-system path components of the receiver. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1414489-pathcomponents?language=objc for details. +func (x gen_NSString) PathComponents() NSArray { + ret := C.NSString_inst_PathComponents( unsafe.Pointer(x.Pointer()), ) - r0 = NSArray_fromPointer(ret) - return + + return NSArray_FromPointer(ret) } -func (x gen_NSString) IsAbsolutePath() ( - r0 bool, -) { - ret := C.NSString_inst_isAbsolutePath( +// IsAbsolutePath returns a boolean value that indicates whether the receiver represents an absolute path. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1409068-absolutepath?language=objc for details. +func (x gen_NSString) IsAbsolutePath() bool { + ret := C.NSString_inst_IsAbsolutePath( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSString) LastPathComponent() ( - r0 NSString, -) { - ret := C.NSString_inst_lastPathComponent( +// LastPathComponent returns the last path component of the receiver. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1416528-lastpathcomponent?language=objc for details. +func (x gen_NSString) LastPathComponent() NSString { + ret := C.NSString_inst_LastPathComponent( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSString) PathExtension() ( - r0 NSString, -) { - ret := C.NSString_inst_pathExtension( +// PathExtension returns the path extension, if any, of the string as interpreted as a path. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1407801-pathextension?language=objc for details. +func (x gen_NSString) PathExtension() NSString { + ret := C.NSString_inst_PathExtension( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSString) StringByAbbreviatingWithTildeInPath() ( - r0 NSString, -) { - ret := C.NSString_inst_stringByAbbreviatingWithTildeInPath( +// StringByAbbreviatingWithTildeInPath returns a new string that replaces the current home directory portion of the current path with a tilde (~) character. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1407943-stringbyabbreviatingwithtildeinp?language=objc for details. +func (x gen_NSString) StringByAbbreviatingWithTildeInPath() NSString { + ret := C.NSString_inst_StringByAbbreviatingWithTildeInPath( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSString) StringByDeletingLastPathComponent() ( - r0 NSString, -) { - ret := C.NSString_inst_stringByDeletingLastPathComponent( +// StringByDeletingLastPathComponent returns a new string made by deleting the last path component from the receiver, along with any final path separator. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1411141-stringbydeletinglastpathcomponen?language=objc for details. +func (x gen_NSString) StringByDeletingLastPathComponent() NSString { + ret := C.NSString_inst_StringByDeletingLastPathComponent( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSString) StringByDeletingPathExtension() ( - r0 NSString, -) { - ret := C.NSString_inst_stringByDeletingPathExtension( +// StringByDeletingPathExtension returns a new string made by deleting the extension (if any, and only the last) from the receiver. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1418214-stringbydeletingpathextension?language=objc for details. +func (x gen_NSString) StringByDeletingPathExtension() NSString { + ret := C.NSString_inst_StringByDeletingPathExtension( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSString) StringByExpandingTildeInPath() ( - r0 NSString, -) { - ret := C.NSString_inst_stringByExpandingTildeInPath( +// StringByExpandingTildeInPath returns a new string made by expanding the initial component of the receiver to its full path value. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1407716-stringbyexpandingtildeinpath?language=objc for details. +func (x gen_NSString) StringByExpandingTildeInPath() NSString { + ret := C.NSString_inst_StringByExpandingTildeInPath( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSString) StringByResolvingSymlinksInPath() ( - r0 NSString, -) { - ret := C.NSString_inst_stringByResolvingSymlinksInPath( +// StringByResolvingSymlinksInPath returns a new string made from the receiver by resolving all symbolic links and standardizing path. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1417783-stringbyresolvingsymlinksinpath?language=objc for details. +func (x gen_NSString) StringByResolvingSymlinksInPath() NSString { + ret := C.NSString_inst_StringByResolvingSymlinksInPath( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSString) StringByStandardizingPath() ( - r0 NSString, -) { - ret := C.NSString_inst_stringByStandardizingPath( +// StringByStandardizingPath returns a new string made by removing extraneous path components from the receiver. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1407194-stringbystandardizingpath?language=objc for details. +func (x gen_NSString) StringByStandardizingPath() NSString { + ret := C.NSString_inst_StringByStandardizingPath( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSString) StringByRemovingPercentEncoding() ( - r0 NSString, -) { - ret := C.NSString_inst_stringByRemovingPercentEncoding( +// StringByRemovingPercentEncoding returns a new string made from the receiver by replacing all percent encoded sequences with the matching utf-8 characters. +// +// See https://developer.apple.com/documentation/foundation/nsstring/1409569-stringbyremovingpercentencoding?language=objc for details. +func (x gen_NSString) StringByRemovingPercentEncoding() NSString { + ret := C.NSString_inst_StringByRemovingPercentEncoding( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } type NSThreadRef interface { Pointer() uintptr - Init_asNSThread() NSThread + Init_AsNSThread() NSThread } type gen_NSThread struct { objc.Object } -func NSThread_fromPointer(ptr unsafe.Pointer) NSThread { +func NSThread_FromPointer(ptr unsafe.Pointer) NSThread { return NSThread{gen_NSThread{ - objc.Object_fromPointer(ptr), + objc.Object_FromPointer(ptr), }} } -func NSThread_fromRef(ref objc.Ref) NSThread { - return NSThread_fromPointer(unsafe.Pointer(ref.Pointer())) +func NSThread_FromRef(ref objc.Ref) NSThread { + return NSThread_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_NSThread) Init_asNSThread() ( - r0 NSThread, -) { - ret := C.NSThread_inst_init( +// Cancel changes the cancelled state of the receiver to indicate that it should exit. +// +// See https://developer.apple.com/documentation/foundation/nsthread/1411303-cancel?language=objc for details. +func (x gen_NSThread) Cancel() { + C.NSThread_inst_Cancel( unsafe.Pointer(x.Pointer()), ) - r0 = NSThread_fromPointer(ret) + return } -func (x gen_NSThread) InitWithTarget_selector_object__asNSThread( +// Init returns an initialized nsthread object. +// +// See https://developer.apple.com/documentation/foundation/nsthread/1416464-init?language=objc for details. +func (x gen_NSThread) Init_AsNSThread() NSThread { + ret := C.NSThread_inst_Init( + unsafe.Pointer(x.Pointer()), + ) + + return NSThread_FromPointer(ret) +} + +// InitWithTargetSelectorObject returns an nsthread object initialized with the given arguments. +// +// See https://developer.apple.com/documentation/foundation/nsthread/1414773-initwithtarget?language=objc for details. +func (x gen_NSThread) InitWithTargetSelectorObject_AsNSThread( target objc.Ref, selector objc.Selector, argument objc.Ref, -) ( - r0 NSThread, -) { - ret := C.NSThread_inst_initWithTarget_selector_object_( +) NSThread { + ret := C.NSThread_inst_InitWithTargetSelectorObject( unsafe.Pointer(x.Pointer()), objc.RefPointer(target), selector.SelectorAddress(), objc.RefPointer(argument), ) - r0 = NSThread_fromPointer(ret) - return -} -func (x gen_NSThread) Start() { - C.NSThread_inst_start( - unsafe.Pointer(x.Pointer()), - ) - return + return NSThread_FromPointer(ret) } +// Main returns the main entry point routine for the thread. +// +// See https://developer.apple.com/documentation/foundation/nsthread/1418421-main?language=objc for details. func (x gen_NSThread) Main() { - C.NSThread_inst_main( + C.NSThread_inst_Main( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_NSThread) Cancel() { - C.NSThread_inst_cancel( +// Start starts the receiver. +// +// See https://developer.apple.com/documentation/foundation/nsthread/1418166-start?language=objc for details. +func (x gen_NSThread) Start() { + C.NSThread_inst_Start( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_NSThread) IsExecuting() ( - r0 bool, -) { - ret := C.NSThread_inst_isExecuting( +// IsExecuting returns a boolean value that indicates whether the receiver is executing. +// +// See https://developer.apple.com/documentation/foundation/nsthread/1411240-executing?language=objc for details. +func (x gen_NSThread) IsExecuting() bool { + ret := C.NSThread_inst_IsExecuting( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSThread) IsFinished() ( - r0 bool, -) { - ret := C.NSThread_inst_isFinished( +// IsFinished returns a boolean value that indicates whether the receiver has finished execution. +// +// See https://developer.apple.com/documentation/foundation/nsthread/1409297-finished?language=objc for details. +func (x gen_NSThread) IsFinished() bool { + ret := C.NSThread_inst_IsFinished( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSThread) IsCancelled() ( - r0 bool, -) { - ret := C.NSThread_inst_isCancelled( +// IsCancelled returns a boolean value that indicates whether the receiver is cancelled. +// +// See https://developer.apple.com/documentation/foundation/nsthread/1417366-cancelled?language=objc for details. +func (x gen_NSThread) IsCancelled() bool { + ret := C.NSThread_inst_IsCancelled( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSThread) IsMainThread() ( - r0 bool, -) { - ret := C.NSThread_inst_isMainThread( +// IsMainThread returns a boolean value that indicates whether the receiver is the main thread. +// +// See https://developer.apple.com/documentation/foundation/nsthread/1408455-ismainthread?language=objc for details. +func (x gen_NSThread) IsMainThread() bool { + ret := C.NSThread_inst_IsMainThread( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSThread) Name() ( - r0 NSString, -) { - ret := C.NSThread_inst_name( +// Name returns the name of the receiver. +// +// See https://developer.apple.com/documentation/foundation/nsthread/1414122-name?language=objc for details. +func (x gen_NSThread) Name() NSString { + ret := C.NSThread_inst_Name( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSThread) SetName_( +// SetName returns the name of the receiver. +// +// See https://developer.apple.com/documentation/foundation/nsthread/1414122-name?language=objc for details. +func (x gen_NSThread) SetName( value NSStringRef, ) { - C.NSThread_inst_setName_( + C.NSThread_inst_SetName( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_NSThread) StackSize() ( - r0 NSUInteger, -) { - ret := C.NSThread_inst_stackSize( +// StackSize returns the stack size of the receiver, in bytes. +// +// See https://developer.apple.com/documentation/foundation/nsthread/1415190-stacksize?language=objc for details. +func (x gen_NSThread) StackSize() NSUInteger { + ret := C.NSThread_inst_StackSize( unsafe.Pointer(x.Pointer()), ) - r0 = NSUInteger(ret) - return + + return NSUInteger(ret) } -func (x gen_NSThread) SetStackSize_( +// SetStackSize returns the stack size of the receiver, in bytes. +// +// See https://developer.apple.com/documentation/foundation/nsthread/1415190-stacksize?language=objc for details. +func (x gen_NSThread) SetStackSize( value NSUInteger, ) { - C.NSThread_inst_setStackSize_( + C.NSThread_inst_SetStackSize( unsafe.Pointer(x.Pointer()), C.ulong(value), ) + return } type NSURLRef interface { Pointer() uintptr - Init_asNSURL() NSURL + Init_AsNSURL() NSURL } type gen_NSURL struct { objc.Object } -func NSURL_fromPointer(ptr unsafe.Pointer) NSURL { +func NSURL_FromPointer(ptr unsafe.Pointer) NSURL { return NSURL{gen_NSURL{ - objc.Object_fromPointer(ptr), + objc.Object_FromPointer(ptr), }} } -func NSURL_fromRef(ref objc.Ref) NSURL { - return NSURL_fromPointer(unsafe.Pointer(ref.Pointer())) +func NSURL_FromRef(ref objc.Ref) NSURL { + return NSURL_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_NSURL) InitWithString__asNSURL( - URLString NSStringRef, -) ( - r0 NSURL, -) { - ret := C.NSURL_inst_initWithString_( +// URLByAppendingPathComponent returns a new url made by appending a path component to the original url. +// +// See https://developer.apple.com/documentation/foundation/nsurl/1410614-urlbyappendingpathcomponent?language=objc for details. +func (x gen_NSURL) URLByAppendingPathComponent( + pathComponent NSStringRef, +) NSURL { + ret := C.NSURL_inst_URLByAppendingPathComponent( unsafe.Pointer(x.Pointer()), - objc.RefPointer(URLString), + objc.RefPointer(pathComponent), ) - r0 = NSURL_fromPointer(ret) - return + + return NSURL_FromPointer(ret) } -func (x gen_NSURL) InitWithString_relativeToURL__asNSURL( - URLString NSStringRef, +// URLByAppendingPathComponentIsDirectory returns a new url made by appending a path component to the original url, along with a trailing slash if the component is designated a directory. +// +// See https://developer.apple.com/documentation/foundation/nsurl/1413953-urlbyappendingpathcomponent?language=objc for details. +func (x gen_NSURL) URLByAppendingPathComponentIsDirectory( + pathComponent NSStringRef, + isDirectory bool, +) NSURL { + ret := C.NSURL_inst_URLByAppendingPathComponentIsDirectory( + unsafe.Pointer(x.Pointer()), + objc.RefPointer(pathComponent), + convertToObjCBool(isDirectory), + ) + + return NSURL_FromPointer(ret) +} + +// URLByAppendingPathExtension returns a new url made by appending a path extension to the original url. +// +// See https://developer.apple.com/documentation/foundation/nsurl/1417082-urlbyappendingpathextension?language=objc for details. +func (x gen_NSURL) URLByAppendingPathExtension( + pathExtension NSStringRef, +) NSURL { + ret := C.NSURL_inst_URLByAppendingPathExtension( + unsafe.Pointer(x.Pointer()), + objc.RefPointer(pathExtension), + ) + + return NSURL_FromPointer(ret) +} + +// FileReferenceURL returns a new file reference url that points to the same resource as the receiver. +// +// See https://developer.apple.com/documentation/foundation/nsurl/1408631-filereferenceurl?language=objc for details. +func (x gen_NSURL) FileReferenceURL() NSURL { + ret := C.NSURL_inst_FileReferenceURL( + unsafe.Pointer(x.Pointer()), + ) + + return NSURL_FromPointer(ret) +} + +// InitAbsoluteURLWithDataRepresentationRelativeToURL +// +// See https://developer.apple.com/documentation/foundation/nsurl/1410750-initabsoluteurlwithdatarepresent?language=objc for details. +func (x gen_NSURL) InitAbsoluteURLWithDataRepresentationRelativeToURL_AsNSURL( + data NSDataRef, baseURL NSURLRef, -) ( - r0 NSURL, -) { - ret := C.NSURL_inst_initWithString_relativeToURL_( +) NSURL { + ret := C.NSURL_inst_InitAbsoluteURLWithDataRepresentationRelativeToURL( unsafe.Pointer(x.Pointer()), - objc.RefPointer(URLString), + objc.RefPointer(data), objc.RefPointer(baseURL), ) - r0 = NSURL_fromPointer(ret) - return + + return NSURL_FromPointer(ret) } -func (x gen_NSURL) InitFileURLWithPath_isDirectory__asNSURL( +// InitFileURLWithPath initializes a newly created nsurl referencing the local file or directory at path. +// +// See https://developer.apple.com/documentation/foundation/nsurl/1410301-initfileurlwithpath?language=objc for details. +func (x gen_NSURL) InitFileURLWithPath_AsNSURL( path NSStringRef, - isDir bool, -) ( - r0 NSURL, -) { - ret := C.NSURL_inst_initFileURLWithPath_isDirectory_( +) NSURL { + ret := C.NSURL_inst_InitFileURLWithPath( unsafe.Pointer(x.Pointer()), objc.RefPointer(path), - convertToObjCBool(isDir), ) - r0 = NSURL_fromPointer(ret) - return + + return NSURL_FromPointer(ret) } -func (x gen_NSURL) InitFileURLWithPath_relativeToURL__asNSURL( +// InitFileURLWithPathIsDirectory initializes a newly created nsurl referencing the local file or directory at path. +// +// See https://developer.apple.com/documentation/foundation/nsurl/1417505-initfileurlwithpath?language=objc for details. +func (x gen_NSURL) InitFileURLWithPathIsDirectory_AsNSURL( path NSStringRef, - baseURL NSURLRef, -) ( - r0 NSURL, -) { - ret := C.NSURL_inst_initFileURLWithPath_relativeToURL_( + isDir bool, +) NSURL { + ret := C.NSURL_inst_InitFileURLWithPathIsDirectory( unsafe.Pointer(x.Pointer()), objc.RefPointer(path), - objc.RefPointer(baseURL), + convertToObjCBool(isDir), ) - r0 = NSURL_fromPointer(ret) - return + + return NSURL_FromPointer(ret) } -func (x gen_NSURL) InitFileURLWithPath_isDirectory_relativeToURL__asNSURL( +// InitFileURLWithPathIsDirectoryRelativeToURL +// +// See https://developer.apple.com/documentation/foundation/nsurl/1417932-initfileurlwithpath?language=objc for details. +func (x gen_NSURL) InitFileURLWithPathIsDirectoryRelativeToURL_AsNSURL( path NSStringRef, isDir bool, baseURL NSURLRef, -) ( - r0 NSURL, -) { - ret := C.NSURL_inst_initFileURLWithPath_isDirectory_relativeToURL_( +) NSURL { + ret := C.NSURL_inst_InitFileURLWithPathIsDirectoryRelativeToURL( unsafe.Pointer(x.Pointer()), objc.RefPointer(path), convertToObjCBool(isDir), objc.RefPointer(baseURL), ) - r0 = NSURL_fromPointer(ret) - return -} -func (x gen_NSURL) InitFileURLWithPath__asNSURL( - path NSStringRef, -) ( - r0 NSURL, -) { - ret := C.NSURL_inst_initFileURLWithPath_( - unsafe.Pointer(x.Pointer()), - objc.RefPointer(path), - ) - r0 = NSURL_fromPointer(ret) - return + return NSURL_FromPointer(ret) } -func (x gen_NSURL) InitAbsoluteURLWithDataRepresentation_relativeToURL__asNSURL( - data NSDataRef, +// InitFileURLWithPathRelativeToURL +// +// See https://developer.apple.com/documentation/foundation/nsurl/1415077-initfileurlwithpath?language=objc for details. +func (x gen_NSURL) InitFileURLWithPathRelativeToURL_AsNSURL( + path NSStringRef, baseURL NSURLRef, -) ( - r0 NSURL, -) { - ret := C.NSURL_inst_initAbsoluteURLWithDataRepresentation_relativeToURL_( +) NSURL { + ret := C.NSURL_inst_InitFileURLWithPathRelativeToURL( unsafe.Pointer(x.Pointer()), - objc.RefPointer(data), + objc.RefPointer(path), objc.RefPointer(baseURL), ) - r0 = NSURL_fromPointer(ret) - return + + return NSURL_FromPointer(ret) } -func (x gen_NSURL) InitWithDataRepresentation_relativeToURL__asNSURL( +// InitWithDataRepresentationRelativeToURL +// +// See https://developer.apple.com/documentation/foundation/nsurl/1416851-initwithdatarepresentation?language=objc for details. +func (x gen_NSURL) InitWithDataRepresentationRelativeToURL_AsNSURL( data NSDataRef, baseURL NSURLRef, -) ( - r0 NSURL, -) { - ret := C.NSURL_inst_initWithDataRepresentation_relativeToURL_( +) NSURL { + ret := C.NSURL_inst_InitWithDataRepresentationRelativeToURL( unsafe.Pointer(x.Pointer()), objc.RefPointer(data), objc.RefPointer(baseURL), ) - r0 = NSURL_fromPointer(ret) - return -} -func (x gen_NSURL) IsFileReferenceURL() ( - r0 bool, -) { - ret := C.NSURL_inst_isFileReferenceURL( - unsafe.Pointer(x.Pointer()), - ) - r0 = convertObjCBoolToGo(ret) - return + return NSURL_FromPointer(ret) } -func (x gen_NSURL) RemoveAllCachedResourceValues() { - C.NSURL_inst_removeAllCachedResourceValues( +// InitWithString initializes an nsurl object with a provided url string. +// +// See https://developer.apple.com/documentation/foundation/nsurl/1413146-initwithstring?language=objc for details. +func (x gen_NSURL) InitWithString_AsNSURL( + URLString NSStringRef, +) NSURL { + ret := C.NSURL_inst_InitWithString( unsafe.Pointer(x.Pointer()), + objc.RefPointer(URLString), ) - return -} -func (x gen_NSURL) FileReferenceURL() ( - r0 NSURL, -) { - ret := C.NSURL_inst_fileReferenceURL( - unsafe.Pointer(x.Pointer()), - ) - r0 = NSURL_fromPointer(ret) - return + return NSURL_FromPointer(ret) } -func (x gen_NSURL) URLByAppendingPathComponent_( - pathComponent NSStringRef, -) ( - r0 NSURL, -) { - ret := C.NSURL_inst_URLByAppendingPathComponent_( +// InitWithStringRelativeToURL initializes an nsurl object with a base url and a relative string. +// +// See https://developer.apple.com/documentation/foundation/nsurl/1417949-initwithstring?language=objc for details. +func (x gen_NSURL) InitWithStringRelativeToURL_AsNSURL( + URLString NSStringRef, + baseURL NSURLRef, +) NSURL { + ret := C.NSURL_inst_InitWithStringRelativeToURL( unsafe.Pointer(x.Pointer()), - objc.RefPointer(pathComponent), + objc.RefPointer(URLString), + objc.RefPointer(baseURL), ) - r0 = NSURL_fromPointer(ret) - return + + return NSURL_FromPointer(ret) } -func (x gen_NSURL) URLByAppendingPathComponent_isDirectory_( - pathComponent NSStringRef, - isDirectory bool, -) ( - r0 NSURL, -) { - ret := C.NSURL_inst_URLByAppendingPathComponent_isDirectory_( +// IsFileReferenceURL returns whether the url is a file reference url. +// +// See https://developer.apple.com/documentation/foundation/nsurl/1408507-isfilereferenceurl?language=objc for details. +func (x gen_NSURL) IsFileReferenceURL() bool { + ret := C.NSURL_inst_IsFileReferenceURL( unsafe.Pointer(x.Pointer()), - objc.RefPointer(pathComponent), - convertToObjCBool(isDirectory), ) - r0 = NSURL_fromPointer(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSURL) URLByAppendingPathExtension_( - pathExtension NSStringRef, -) ( - r0 NSURL, -) { - ret := C.NSURL_inst_URLByAppendingPathExtension_( +// RemoveAllCachedResourceValues removes all cached resource values and temporary resource values from the url object. +// +// See https://developer.apple.com/documentation/foundation/nsurl/1417078-removeallcachedresourcevalues?language=objc for details. +func (x gen_NSURL) RemoveAllCachedResourceValues() { + C.NSURL_inst_RemoveAllCachedResourceValues( unsafe.Pointer(x.Pointer()), - objc.RefPointer(pathExtension), ) - r0 = NSURL_fromPointer(ret) + return } -func (x gen_NSURL) StartAccessingSecurityScopedResource() ( - r0 bool, -) { - ret := C.NSURL_inst_startAccessingSecurityScopedResource( +// StartAccessingSecurityScopedResource in an app that has adopted app sandbox, makes the resource pointed to by a security-scoped url available to the app. +// +// See https://developer.apple.com/documentation/foundation/nsurl/1417051-startaccessingsecurityscopedreso?language=objc for details. +func (x gen_NSURL) StartAccessingSecurityScopedResource() bool { + ret := C.NSURL_inst_StartAccessingSecurityScopedResource( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } +// StopAccessingSecurityScopedResource in an app that adopts app sandbox, revokes access to the resource pointed to by a security-scoped url. +// +// See https://developer.apple.com/documentation/foundation/nsurl/1413736-stopaccessingsecurityscopedresou?language=objc for details. func (x gen_NSURL) StopAccessingSecurityScopedResource() { - C.NSURL_inst_stopAccessingSecurityScopedResource( + C.NSURL_inst_StopAccessingSecurityScopedResource( unsafe.Pointer(x.Pointer()), ) + return } -func (x gen_NSURL) Init_asNSURL() ( - r0 NSURL, -) { - ret := C.NSURL_inst_init( +// Init +// +// See for details. +func (x gen_NSURL) Init_AsNSURL() NSURL { + ret := C.NSURL_inst_Init( unsafe.Pointer(x.Pointer()), ) - r0 = NSURL_fromPointer(ret) - return + + return NSURL_FromPointer(ret) } -func (x gen_NSURL) DataRepresentation() ( - r0 NSData, -) { - ret := C.NSURL_inst_dataRepresentation( +// DataRepresentation +// +// See https://developer.apple.com/documentation/foundation/nsurl/1407656-datarepresentation?language=objc for details. +func (x gen_NSURL) DataRepresentation() NSData { + ret := C.NSURL_inst_DataRepresentation( unsafe.Pointer(x.Pointer()), ) - r0 = NSData_fromPointer(ret) - return + + return NSData_FromPointer(ret) } -func (x gen_NSURL) IsFileURL() ( - r0 bool, -) { - ret := C.NSURL_inst_isFileURL( +// IsFileURL returns a boolean value that determines whether the receiver is a file url. +// +// See https://developer.apple.com/documentation/foundation/nsurl/1408782-fileurl?language=objc for details. +func (x gen_NSURL) IsFileURL() bool { + ret := C.NSURL_inst_IsFileURL( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSURL) AbsoluteString() ( - r0 NSString, -) { - ret := C.NSURL_inst_absoluteString( +// AbsoluteString returns the url string for the receiver as an absolute url. (read-only) +// +// See https://developer.apple.com/documentation/foundation/nsurl/1409868-absolutestring?language=objc for details. +func (x gen_NSURL) AbsoluteString() NSString { + ret := C.NSURL_inst_AbsoluteString( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSURL) AbsoluteURL() ( - r0 NSURL, -) { - ret := C.NSURL_inst_absoluteURL( +// AbsoluteURL an absolute url that refers to the same resource as the receiver. (read-only) +// +// See https://developer.apple.com/documentation/foundation/nsurl/1414266-absoluteurl?language=objc for details. +func (x gen_NSURL) AbsoluteURL() NSURL { + ret := C.NSURL_inst_AbsoluteURL( unsafe.Pointer(x.Pointer()), ) - r0 = NSURL_fromPointer(ret) - return + + return NSURL_FromPointer(ret) } -func (x gen_NSURL) BaseURL() ( - r0 NSURL, -) { - ret := C.NSURL_inst_baseURL( +// BaseURL returns the base url. (read-only) +// +// See https://developer.apple.com/documentation/foundation/nsurl/1412311-baseurl?language=objc for details. +func (x gen_NSURL) BaseURL() NSURL { + ret := C.NSURL_inst_BaseURL( unsafe.Pointer(x.Pointer()), ) - r0 = NSURL_fromPointer(ret) - return + + return NSURL_FromPointer(ret) } -func (x gen_NSURL) Fragment() ( - r0 NSString, -) { - ret := C.NSURL_inst_fragment( +// Fragment returns the fragment identifier, conforming to rfc 1808. (read-only) +// +// See https://developer.apple.com/documentation/foundation/nsurl/1413775-fragment?language=objc for details. +func (x gen_NSURL) Fragment() NSString { + ret := C.NSURL_inst_Fragment( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSURL) Host() ( - r0 NSString, -) { - ret := C.NSURL_inst_host( +// Host returns the host, conforming to rfc 1808. (read-only) +// +// See https://developer.apple.com/documentation/foundation/nsurl/1413640-host?language=objc for details. +func (x gen_NSURL) Host() NSString { + ret := C.NSURL_inst_Host( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSURL) LastPathComponent() ( - r0 NSString, -) { - ret := C.NSURL_inst_lastPathComponent( +// LastPathComponent returns the last path component. (read-only) +// +// See https://developer.apple.com/documentation/foundation/nsurl/1417444-lastpathcomponent?language=objc for details. +func (x gen_NSURL) LastPathComponent() NSString { + ret := C.NSURL_inst_LastPathComponent( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSURL) Password() ( - r0 NSString, -) { - ret := C.NSURL_inst_password( +// Password returns the password conforming to rfc 1808. (read-only) +// +// See https://developer.apple.com/documentation/foundation/nsurl/1412096-password?language=objc for details. +func (x gen_NSURL) Password() NSString { + ret := C.NSURL_inst_Password( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSURL) Path() ( - r0 NSString, -) { - ret := C.NSURL_inst_path( +// Path returns the path, conforming to rfc 1808. (read-only) +// +// See https://developer.apple.com/documentation/foundation/nsurl/1408809-path?language=objc for details. +func (x gen_NSURL) Path() NSString { + ret := C.NSURL_inst_Path( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSURL) PathComponents() ( - r0 NSArray, -) { - ret := C.NSURL_inst_pathComponents( +// PathComponents an array containing the path components. (read-only) +// +// See https://developer.apple.com/documentation/foundation/nsurl/1407365-pathcomponents?language=objc for details. +func (x gen_NSURL) PathComponents() NSArray { + ret := C.NSURL_inst_PathComponents( unsafe.Pointer(x.Pointer()), ) - r0 = NSArray_fromPointer(ret) - return + + return NSArray_FromPointer(ret) } -func (x gen_NSURL) PathExtension() ( - r0 NSString, -) { - ret := C.NSURL_inst_pathExtension( +// PathExtension returns the path extension. (read-only) +// +// See https://developer.apple.com/documentation/foundation/nsurl/1410208-pathextension?language=objc for details. +func (x gen_NSURL) PathExtension() NSString { + ret := C.NSURL_inst_PathExtension( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSURL) Port() ( - r0 NSNumber, -) { - ret := C.NSURL_inst_port( +// Port returns the port, conforming to rfc 1808. +// +// See https://developer.apple.com/documentation/foundation/nsurl/1413455-port?language=objc for details. +func (x gen_NSURL) Port() NSNumber { + ret := C.NSURL_inst_Port( unsafe.Pointer(x.Pointer()), ) - r0 = NSNumber_fromPointer(ret) - return + + return NSNumber_FromPointer(ret) } -func (x gen_NSURL) Query() ( - r0 NSString, -) { - ret := C.NSURL_inst_query( +// Query returns the query string, conforming to rfc 1808. +// +// See https://developer.apple.com/documentation/foundation/nsurl/1407543-query?language=objc for details. +func (x gen_NSURL) Query() NSString { + ret := C.NSURL_inst_Query( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSURL) RelativePath() ( - r0 NSString, -) { - ret := C.NSURL_inst_relativePath( +// RelativePath returns the relative path, conforming to rfc 1808. (read-only) +// +// See https://developer.apple.com/documentation/foundation/nsurl/1410263-relativepath?language=objc for details. +func (x gen_NSURL) RelativePath() NSString { + ret := C.NSURL_inst_RelativePath( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSURL) RelativeString() ( - r0 NSString, -) { - ret := C.NSURL_inst_relativeString( +// RelativeString returns a string representation of the relative portion of the url. (read-only) +// +// See https://developer.apple.com/documentation/foundation/nsurl/1411417-relativestring?language=objc for details. +func (x gen_NSURL) RelativeString() NSString { + ret := C.NSURL_inst_RelativeString( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSURL) ResourceSpecifier() ( - r0 NSString, -) { - ret := C.NSURL_inst_resourceSpecifier( +// ResourceSpecifier returns the resource specifier. (read-only) +// +// See https://developer.apple.com/documentation/foundation/nsurl/1415309-resourcespecifier?language=objc for details. +func (x gen_NSURL) ResourceSpecifier() NSString { + ret := C.NSURL_inst_ResourceSpecifier( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSURL) Scheme() ( - r0 NSString, -) { - ret := C.NSURL_inst_scheme( +// Scheme returns the scheme. (read-only) +// +// See https://developer.apple.com/documentation/foundation/nsurl/1413437-scheme?language=objc for details. +func (x gen_NSURL) Scheme() NSString { + ret := C.NSURL_inst_Scheme( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSURL) StandardizedURL() ( - r0 NSURL, -) { - ret := C.NSURL_inst_standardizedURL( +// StandardizedURL returns a copy of the url with any instances of ".." or "." removed from its path. (read-only) +// +// See https://developer.apple.com/documentation/foundation/nsurl/1411073-standardizedurl?language=objc for details. +func (x gen_NSURL) StandardizedURL() NSURL { + ret := C.NSURL_inst_StandardizedURL( unsafe.Pointer(x.Pointer()), ) - r0 = NSURL_fromPointer(ret) - return + + return NSURL_FromPointer(ret) } -func (x gen_NSURL) User() ( - r0 NSString, -) { - ret := C.NSURL_inst_user( +// User returns the user name, conforming to rfc 1808. +// +// See https://developer.apple.com/documentation/foundation/nsurl/1418335-user?language=objc for details. +func (x gen_NSURL) User() NSString { + ret := C.NSURL_inst_User( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSURL) FilePathURL() ( - r0 NSURL, -) { - ret := C.NSURL_inst_filePathURL( +// FilePathURL returns a file path url that points to the same resource as the url object. (read-only) +// +// See https://developer.apple.com/documentation/foundation/nsurl/1408442-filepathurl?language=objc for details. +func (x gen_NSURL) FilePathURL() NSURL { + ret := C.NSURL_inst_FilePathURL( unsafe.Pointer(x.Pointer()), ) - r0 = NSURL_fromPointer(ret) - return + + return NSURL_FromPointer(ret) } -func (x gen_NSURL) URLByDeletingLastPathComponent() ( - r0 NSURL, -) { +// URLByDeletingLastPathComponent returns a url created by taking the receiver and removing the last path component. (read-only) +// +// See https://developer.apple.com/documentation/foundation/nsurl/1411592-urlbydeletinglastpathcomponent?language=objc for details. +func (x gen_NSURL) URLByDeletingLastPathComponent() NSURL { ret := C.NSURL_inst_URLByDeletingLastPathComponent( unsafe.Pointer(x.Pointer()), ) - r0 = NSURL_fromPointer(ret) - return + + return NSURL_FromPointer(ret) } -func (x gen_NSURL) URLByDeletingPathExtension() ( - r0 NSURL, -) { +// URLByDeletingPathExtension returns a url created by taking the receiver and removing the path extension, if any. (read-only) +// +// See https://developer.apple.com/documentation/foundation/nsurl/1412357-urlbydeletingpathextension?language=objc for details. +func (x gen_NSURL) URLByDeletingPathExtension() NSURL { ret := C.NSURL_inst_URLByDeletingPathExtension( unsafe.Pointer(x.Pointer()), ) - r0 = NSURL_fromPointer(ret) - return + + return NSURL_FromPointer(ret) } -func (x gen_NSURL) URLByResolvingSymlinksInPath() ( - r0 NSURL, -) { +// URLByResolvingSymlinksInPath returns a url that points to the same resource as the receiver and includes no symbolic links. (read-only) +// +// See https://developer.apple.com/documentation/foundation/nsurl/1415965-urlbyresolvingsymlinksinpath?language=objc for details. +func (x gen_NSURL) URLByResolvingSymlinksInPath() NSURL { ret := C.NSURL_inst_URLByResolvingSymlinksInPath( unsafe.Pointer(x.Pointer()), ) - r0 = NSURL_fromPointer(ret) - return + + return NSURL_FromPointer(ret) } -func (x gen_NSURL) URLByStandardizingPath() ( - r0 NSURL, -) { +// URLByStandardizingPath returns a url that points to the same resource as the original url using an absolute path. (read-only) +// +// See https://developer.apple.com/documentation/foundation/nsurl/1414302-urlbystandardizingpath?language=objc for details. +func (x gen_NSURL) URLByStandardizingPath() NSURL { ret := C.NSURL_inst_URLByStandardizingPath( unsafe.Pointer(x.Pointer()), ) - r0 = NSURL_fromPointer(ret) - return + + return NSURL_FromPointer(ret) } -func (x gen_NSURL) HasDirectoryPath() ( - r0 bool, -) { - ret := C.NSURL_inst_hasDirectoryPath( +// HasDirectoryPath +// +// See https://developer.apple.com/documentation/foundation/nsurl/1411475-hasdirectorypath?language=objc for details. +func (x gen_NSURL) HasDirectoryPath() bool { + ret := C.NSURL_inst_HasDirectoryPath( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } type NSURLRequestRef interface { Pointer() uintptr - Init_asNSURLRequest() NSURLRequest + Init_AsNSURLRequest() NSURLRequest } type gen_NSURLRequest struct { objc.Object } -func NSURLRequest_fromPointer(ptr unsafe.Pointer) NSURLRequest { +func NSURLRequest_FromPointer(ptr unsafe.Pointer) NSURLRequest { return NSURLRequest{gen_NSURLRequest{ - objc.Object_fromPointer(ptr), + objc.Object_FromPointer(ptr), }} } -func NSURLRequest_fromRef(ref objc.Ref) NSURLRequest { - return NSURLRequest_fromPointer(unsafe.Pointer(ref.Pointer())) +func NSURLRequest_FromRef(ref objc.Ref) NSURLRequest { + return NSURLRequest_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_NSURLRequest) InitWithURL__asNSURLRequest( +// InitWithURL creates a url request for a specified url. +// +// See https://developer.apple.com/documentation/foundation/nsurlrequest/1410303-initwithurl?language=objc for details. +func (x gen_NSURLRequest) InitWithURL_AsNSURLRequest( URL NSURLRef, -) ( - r0 NSURLRequest, -) { - ret := C.NSURLRequest_inst_initWithURL_( +) NSURLRequest { + ret := C.NSURLRequest_inst_InitWithURL( unsafe.Pointer(x.Pointer()), objc.RefPointer(URL), ) - r0 = NSURLRequest_fromPointer(ret) - return + + return NSURLRequest_FromPointer(ret) } -func (x gen_NSURLRequest) ValueForHTTPHeaderField_( +// ValueForHTTPHeaderField returns the value of the specified http header field. +// +// See https://developer.apple.com/documentation/foundation/nsurlrequest/1409376-valueforhttpheaderfield?language=objc for details. +func (x gen_NSURLRequest) ValueForHTTPHeaderField( field NSStringRef, -) ( - r0 NSString, -) { - ret := C.NSURLRequest_inst_valueForHTTPHeaderField_( +) NSString { + ret := C.NSURLRequest_inst_ValueForHTTPHeaderField( unsafe.Pointer(x.Pointer()), objc.RefPointer(field), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSURLRequest) Init_asNSURLRequest() ( - r0 NSURLRequest, -) { - ret := C.NSURLRequest_inst_init( +// Init +// +// See for details. +func (x gen_NSURLRequest) Init_AsNSURLRequest() NSURLRequest { + ret := C.NSURLRequest_inst_Init( unsafe.Pointer(x.Pointer()), ) - r0 = NSURLRequest_fromPointer(ret) - return + + return NSURLRequest_FromPointer(ret) } -func (x gen_NSURLRequest) HTTPMethod() ( - r0 NSString, -) { +// HTTPMethod returns the http request method. +// +// See https://developer.apple.com/documentation/foundation/nsurlrequest/1413030-httpmethod?language=objc for details. +func (x gen_NSURLRequest) HTTPMethod() NSString { ret := C.NSURLRequest_inst_HTTPMethod( unsafe.Pointer(x.Pointer()), ) - r0 = NSString_fromPointer(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSURLRequest) URL() ( - r0 NSURL, -) { +// URL returns the url being requested. +// +// See https://developer.apple.com/documentation/foundation/nsurlrequest/1408996-url?language=objc for details. +func (x gen_NSURLRequest) URL() NSURL { ret := C.NSURLRequest_inst_URL( unsafe.Pointer(x.Pointer()), ) - r0 = NSURL_fromPointer(ret) - return + + return NSURL_FromPointer(ret) } -func (x gen_NSURLRequest) HTTPBody() ( - r0 NSData, -) { +// HTTPBody returns the request body. +// +// See https://developer.apple.com/documentation/foundation/nsurlrequest/1411317-httpbody?language=objc for details. +func (x gen_NSURLRequest) HTTPBody() NSData { ret := C.NSURLRequest_inst_HTTPBody( unsafe.Pointer(x.Pointer()), ) - r0 = NSData_fromPointer(ret) - return + + return NSData_FromPointer(ret) } -func (x gen_NSURLRequest) MainDocumentURL() ( - r0 NSURL, -) { - ret := C.NSURLRequest_inst_mainDocumentURL( +// MainDocumentURL returns the main document url associated with the request. +// +// See https://developer.apple.com/documentation/foundation/nsurlrequest/1414134-maindocumenturl?language=objc for details. +func (x gen_NSURLRequest) MainDocumentURL() NSURL { + ret := C.NSURLRequest_inst_MainDocumentURL( unsafe.Pointer(x.Pointer()), ) - r0 = NSURL_fromPointer(ret) - return + + return NSURL_FromPointer(ret) } -func (x gen_NSURLRequest) AllHTTPHeaderFields() ( - r0 NSDictionary, -) { - ret := C.NSURLRequest_inst_allHTTPHeaderFields( +// AllHTTPHeaderFields returns a dictionary containing all of the http header fields for a request. +// +// See https://developer.apple.com/documentation/foundation/nsurlrequest/1418477-allhttpheaderfields?language=objc for details. +func (x gen_NSURLRequest) AllHTTPHeaderFields() NSDictionary { + ret := C.NSURLRequest_inst_AllHTTPHeaderFields( unsafe.Pointer(x.Pointer()), ) - r0 = NSDictionary_fromPointer(ret) - return + + return NSDictionary_FromPointer(ret) } -func (x gen_NSURLRequest) HTTPShouldHandleCookies() ( - r0 bool, -) { +// HTTPShouldHandleCookies returns a boolean value that indicates whether the default cookie handling will be used for this request. +// +// See https://developer.apple.com/documentation/foundation/nsurlrequest/1418369-httpshouldhandlecookies?language=objc for details. +func (x gen_NSURLRequest) HTTPShouldHandleCookies() bool { ret := C.NSURLRequest_inst_HTTPShouldHandleCookies( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSURLRequest) HTTPShouldUsePipelining() ( - r0 bool, -) { +// HTTPShouldUsePipelining returns a boolean value that indicates whether the request should continue transmitting data before receiving a response from an earlier transmission. +// +// See https://developer.apple.com/documentation/foundation/nsurlrequest/1409170-httpshouldusepipelining?language=objc for details. +func (x gen_NSURLRequest) HTTPShouldUsePipelining() bool { ret := C.NSURLRequest_inst_HTTPShouldUsePipelining( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSURLRequest) AllowsCellularAccess() ( - r0 bool, -) { - ret := C.NSURLRequest_inst_allowsCellularAccess( +// AllowsCellularAccess returns a boolean value that indicates whether the request is allowed to use the cellular radio (if present). +// +// See https://developer.apple.com/documentation/foundation/nsurlrequest/1412032-allowscellularaccess?language=objc for details. +func (x gen_NSURLRequest) AllowsCellularAccess() bool { + ret := C.NSURLRequest_inst_AllowsCellularAccess( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSURLRequest) AllowsConstrainedNetworkAccess() ( - r0 bool, -) { - ret := C.NSURLRequest_inst_allowsConstrainedNetworkAccess( +// AllowsConstrainedNetworkAccess returns a boolean value that indicates whether connections may use the network when the user has specified low data mode. +// +// See https://developer.apple.com/documentation/foundation/nsurlrequest/3325678-allowsconstrainednetworkaccess?language=objc for details. +func (x gen_NSURLRequest) AllowsConstrainedNetworkAccess() bool { + ret := C.NSURLRequest_inst_AllowsConstrainedNetworkAccess( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSURLRequest) AllowsExpensiveNetworkAccess() ( - r0 bool, -) { - ret := C.NSURLRequest_inst_allowsExpensiveNetworkAccess( +// AllowsExpensiveNetworkAccess returns a boolean value that indicates whether connections may use a network interface that the system considers expensive. +// +// See https://developer.apple.com/documentation/foundation/nsurlrequest/3325679-allowsexpensivenetworkaccess?language=objc for details. +func (x gen_NSURLRequest) AllowsExpensiveNetworkAccess() bool { + ret := C.NSURLRequest_inst_AllowsExpensiveNetworkAccess( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSURLRequest) AssumesHTTP3Capable() ( - r0 bool, -) { - ret := C.NSURLRequest_inst_assumesHTTP3Capable( +// AssumesHTTP3Capable +// +// See https://developer.apple.com/documentation/foundation/nsurlrequest/3735880-assumeshttp3capable?language=objc for details. +func (x gen_NSURLRequest) AssumesHTTP3Capable() bool { + ret := C.NSURLRequest_inst_AssumesHTTP3Capable( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } type NSUserDefaultsRef interface { Pointer() uintptr - Init_asNSUserDefaults() NSUserDefaults + Init_AsNSUserDefaults() NSUserDefaults } type gen_NSUserDefaults struct { objc.Object } -func NSUserDefaults_fromPointer(ptr unsafe.Pointer) NSUserDefaults { +func NSUserDefaults_FromPointer(ptr unsafe.Pointer) NSUserDefaults { return NSUserDefaults{gen_NSUserDefaults{ - objc.Object_fromPointer(ptr), + objc.Object_FromPointer(ptr), }} } -func NSUserDefaults_fromRef(ref objc.Ref) NSUserDefaults { - return NSUserDefaults_fromPointer(unsafe.Pointer(ref.Pointer())) +func NSUserDefaults_FromRef(ref objc.Ref) NSUserDefaults { + return NSUserDefaults_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_NSUserDefaults) Init_asNSUserDefaults() ( - r0 NSUserDefaults, -) { - ret := C.NSUserDefaults_inst_init( +// URLForKey returns the url associated with the specified key. +// +// See https://developer.apple.com/documentation/foundation/nsuserdefaults/1408648-urlforkey?language=objc for details. +func (x gen_NSUserDefaults) URLForKey( + defaultName NSStringRef, +) NSURL { + ret := C.NSUserDefaults_inst_URLForKey( unsafe.Pointer(x.Pointer()), + objc.RefPointer(defaultName), ) - r0 = NSUserDefaults_fromPointer(ret) - return + + return NSURL_FromPointer(ret) } -func (x gen_NSUserDefaults) InitWithSuiteName__asNSUserDefaults( - suitename NSStringRef, -) ( - r0 NSUserDefaults, +// AddSuiteNamed inserts the specified domain name into the receiver’s search list. +// +// See https://developer.apple.com/documentation/foundation/nsuserdefaults/1410294-addsuitenamed?language=objc for details. +func (x gen_NSUserDefaults) AddSuiteNamed( + suiteName NSStringRef, ) { - ret := C.NSUserDefaults_inst_initWithSuiteName_( + C.NSUserDefaults_inst_AddSuiteNamed( unsafe.Pointer(x.Pointer()), - objc.RefPointer(suitename), + objc.RefPointer(suiteName), ) - r0 = NSUserDefaults_fromPointer(ret) + return } -func (x gen_NSUserDefaults) ObjectForKey_( +// ArrayForKey returns the array associated with the specified key. +// +// See https://developer.apple.com/documentation/foundation/nsuserdefaults/1414792-arrayforkey?language=objc for details. +func (x gen_NSUserDefaults) ArrayForKey( defaultName NSStringRef, -) ( - r0 objc.Object, -) { - ret := C.NSUserDefaults_inst_objectForKey_( +) NSArray { + ret := C.NSUserDefaults_inst_ArrayForKey( unsafe.Pointer(x.Pointer()), objc.RefPointer(defaultName), ) - r0 = objc.Object_fromPointer(ret) - return + + return NSArray_FromPointer(ret) } -func (x gen_NSUserDefaults) URLForKey_( +// BoolForKey returns the boolean value associated with the specified key. +// +// See https://developer.apple.com/documentation/foundation/nsuserdefaults/1416388-boolforkey?language=objc for details. +func (x gen_NSUserDefaults) BoolForKey( defaultName NSStringRef, -) ( - r0 NSURL, -) { - ret := C.NSUserDefaults_inst_URLForKey_( +) bool { + ret := C.NSUserDefaults_inst_BoolForKey( unsafe.Pointer(x.Pointer()), objc.RefPointer(defaultName), ) - r0 = NSURL_fromPointer(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSUserDefaults) ArrayForKey_( +// DataForKey returns the data object associated with the specified key. +// +// See https://developer.apple.com/documentation/foundation/nsuserdefaults/1409590-dataforkey?language=objc for details. +func (x gen_NSUserDefaults) DataForKey( defaultName NSStringRef, -) ( - r0 NSArray, -) { - ret := C.NSUserDefaults_inst_arrayForKey_( +) NSData { + ret := C.NSUserDefaults_inst_DataForKey( unsafe.Pointer(x.Pointer()), objc.RefPointer(defaultName), ) - r0 = NSArray_fromPointer(ret) - return + + return NSData_FromPointer(ret) } -func (x gen_NSUserDefaults) DictionaryForKey_( +// DictionaryForKey returns the dictionary object associated with the specified key. +// +// See https://developer.apple.com/documentation/foundation/nsuserdefaults/1408563-dictionaryforkey?language=objc for details. +func (x gen_NSUserDefaults) DictionaryForKey( defaultName NSStringRef, -) ( - r0 NSDictionary, -) { - ret := C.NSUserDefaults_inst_dictionaryForKey_( +) NSDictionary { + ret := C.NSUserDefaults_inst_DictionaryForKey( unsafe.Pointer(x.Pointer()), objc.RefPointer(defaultName), ) - r0 = NSDictionary_fromPointer(ret) - return + + return NSDictionary_FromPointer(ret) } -func (x gen_NSUserDefaults) StringForKey_( - defaultName NSStringRef, -) ( - r0 NSString, -) { - ret := C.NSUserDefaults_inst_stringForKey_( +// DictionaryRepresentation returns a dictionary that contains a union of all key-value pairs in the domains in the search list. +// +// See https://developer.apple.com/documentation/foundation/nsuserdefaults/1415919-dictionaryrepresentation?language=objc for details. +func (x gen_NSUserDefaults) DictionaryRepresentation() NSDictionary { + ret := C.NSUserDefaults_inst_DictionaryRepresentation( unsafe.Pointer(x.Pointer()), - objc.RefPointer(defaultName), ) - r0 = NSString_fromPointer(ret) - return + + return NSDictionary_FromPointer(ret) } -func (x gen_NSUserDefaults) StringArrayForKey_( - defaultName NSStringRef, -) ( - r0 NSArray, -) { - ret := C.NSUserDefaults_inst_stringArrayForKey_( +// Init creates a user defaults object initialized with the defaults for the app and current user. +// +// See https://developer.apple.com/documentation/foundation/nsuserdefaults/1414356-init?language=objc for details. +func (x gen_NSUserDefaults) Init_AsNSUserDefaults() NSUserDefaults { + ret := C.NSUserDefaults_inst_Init( unsafe.Pointer(x.Pointer()), - objc.RefPointer(defaultName), ) - r0 = NSArray_fromPointer(ret) - return + + return NSUserDefaults_FromPointer(ret) } -func (x gen_NSUserDefaults) DataForKey_( - defaultName NSStringRef, -) ( - r0 NSData, -) { - ret := C.NSUserDefaults_inst_dataForKey_( +// InitWithSuiteName creates a user defaults object initialized with the defaults for the specified database name. +// +// See https://developer.apple.com/documentation/foundation/nsuserdefaults/1409957-initwithsuitename?language=objc for details. +func (x gen_NSUserDefaults) InitWithSuiteName_AsNSUserDefaults( + suitename NSStringRef, +) NSUserDefaults { + ret := C.NSUserDefaults_inst_InitWithSuiteName( unsafe.Pointer(x.Pointer()), - objc.RefPointer(defaultName), + objc.RefPointer(suitename), ) - r0 = NSData_fromPointer(ret) - return + + return NSUserDefaults_FromPointer(ret) } -func (x gen_NSUserDefaults) BoolForKey_( +// IntegerForKey returns the integer value associated with the specified key. +// +// See https://developer.apple.com/documentation/foundation/nsuserdefaults/1407405-integerforkey?language=objc for details. +func (x gen_NSUserDefaults) IntegerForKey( defaultName NSStringRef, -) ( - r0 bool, -) { - ret := C.NSUserDefaults_inst_boolForKey_( +) NSInteger { + ret := C.NSUserDefaults_inst_IntegerForKey( unsafe.Pointer(x.Pointer()), objc.RefPointer(defaultName), ) - r0 = convertObjCBoolToGo(ret) - return + + return NSInteger(ret) } -func (x gen_NSUserDefaults) IntegerForKey_( +// ObjectForKey returns the object associated with the specified key. +// +// See https://developer.apple.com/documentation/foundation/nsuserdefaults/1410095-objectforkey?language=objc for details. +func (x gen_NSUserDefaults) ObjectForKey( defaultName NSStringRef, -) ( - r0 NSInteger, -) { - ret := C.NSUserDefaults_inst_integerForKey_( +) objc.Object { + ret := C.NSUserDefaults_inst_ObjectForKey( unsafe.Pointer(x.Pointer()), objc.RefPointer(defaultName), ) - r0 = NSInteger(ret) - return + + return objc.Object_FromPointer(ret) } -func (x gen_NSUserDefaults) DictionaryRepresentation() ( - r0 NSDictionary, -) { - ret := C.NSUserDefaults_inst_dictionaryRepresentation( +// ObjectIsForcedForKey returns a boolean value indicating whether the specified key is managed by an administrator. +// +// See https://developer.apple.com/documentation/foundation/nsuserdefaults/1408635-objectisforcedforkey?language=objc for details. +func (x gen_NSUserDefaults) ObjectIsForcedForKey( + key NSStringRef, +) bool { + ret := C.NSUserDefaults_inst_ObjectIsForcedForKey( unsafe.Pointer(x.Pointer()), + objc.RefPointer(key), ) - r0 = NSDictionary_fromPointer(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSUserDefaults) SetObject_forKey_( - value objc.Ref, - defaultName NSStringRef, -) { - C.NSUserDefaults_inst_setObject_forKey_( +// ObjectIsForcedForKeyInDomain returns a boolean value indicating whether the key in the specified domain is managed by an administrator. +// +// See https://developer.apple.com/documentation/foundation/nsuserdefaults/1416306-objectisforcedforkey?language=objc for details. +func (x gen_NSUserDefaults) ObjectIsForcedForKeyInDomain( + key NSStringRef, + domain NSStringRef, +) bool { + ret := C.NSUserDefaults_inst_ObjectIsForcedForKeyInDomain( unsafe.Pointer(x.Pointer()), - objc.RefPointer(value), - objc.RefPointer(defaultName), + objc.RefPointer(key), + objc.RefPointer(domain), ) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSUserDefaults) SetInteger_forKey_( - value NSInteger, - defaultName NSStringRef, -) { - C.NSUserDefaults_inst_setInteger_forKey_( +// PersistentDomainForName returns a dictionary representation of the defaults for the specified domain. +// +// See https://developer.apple.com/documentation/foundation/nsuserdefaults/1412197-persistentdomainforname?language=objc for details. +func (x gen_NSUserDefaults) PersistentDomainForName( + domainName NSStringRef, +) NSDictionary { + ret := C.NSUserDefaults_inst_PersistentDomainForName( unsafe.Pointer(x.Pointer()), - C.long(value), - objc.RefPointer(defaultName), + objc.RefPointer(domainName), ) - return + + return NSDictionary_FromPointer(ret) } -func (x gen_NSUserDefaults) SetBool_forKey_( - value bool, - defaultName NSStringRef, +// RegisterDefaults adds the contents of the specified dictionary to the registration domain. +// +// See https://developer.apple.com/documentation/foundation/nsuserdefaults/1417065-registerdefaults?language=objc for details. +func (x gen_NSUserDefaults) RegisterDefaults( + registrationDictionary NSDictionaryRef, ) { - C.NSUserDefaults_inst_setBool_forKey_( + C.NSUserDefaults_inst_RegisterDefaults( unsafe.Pointer(x.Pointer()), - convertToObjCBool(value), - objc.RefPointer(defaultName), + objc.RefPointer(registrationDictionary), ) + return } -func (x gen_NSUserDefaults) SetURL_forKey_( - url NSURLRef, +// RemoveObjectForKey removes the value of the specified default key. +// +// See https://developer.apple.com/documentation/foundation/nsuserdefaults/1411182-removeobjectforkey?language=objc for details. +func (x gen_NSUserDefaults) RemoveObjectForKey( defaultName NSStringRef, ) { - C.NSUserDefaults_inst_setURL_forKey_( + C.NSUserDefaults_inst_RemoveObjectForKey( unsafe.Pointer(x.Pointer()), - objc.RefPointer(url), objc.RefPointer(defaultName), ) + return } -func (x gen_NSUserDefaults) RemoveObjectForKey_( - defaultName NSStringRef, +// RemovePersistentDomainForName removes the contents of the specified persistent domain from the user’s defaults. +// +// See https://developer.apple.com/documentation/foundation/nsuserdefaults/1417339-removepersistentdomainforname?language=objc for details. +func (x gen_NSUserDefaults) RemovePersistentDomainForName( + domainName NSStringRef, ) { - C.NSUserDefaults_inst_removeObjectForKey_( + C.NSUserDefaults_inst_RemovePersistentDomainForName( unsafe.Pointer(x.Pointer()), - objc.RefPointer(defaultName), + objc.RefPointer(domainName), ) + return } -func (x gen_NSUserDefaults) AddSuiteNamed_( +// RemoveSuiteNamed removes the specified domain name from the receiver’s search list. +// +// See https://developer.apple.com/documentation/foundation/nsuserdefaults/1408047-removesuitenamed?language=objc for details. +func (x gen_NSUserDefaults) RemoveSuiteNamed( suiteName NSStringRef, ) { - C.NSUserDefaults_inst_addSuiteNamed_( + C.NSUserDefaults_inst_RemoveSuiteNamed( unsafe.Pointer(x.Pointer()), objc.RefPointer(suiteName), ) + return } -func (x gen_NSUserDefaults) RemoveSuiteNamed_( - suiteName NSStringRef, +// RemoveVolatileDomainForName removes the specified volatile domain from the user’s defaults. +// +// See https://developer.apple.com/documentation/foundation/nsuserdefaults/1415955-removevolatiledomainforname?language=objc for details. +func (x gen_NSUserDefaults) RemoveVolatileDomainForName( + domainName NSStringRef, ) { - C.NSUserDefaults_inst_removeSuiteNamed_( + C.NSUserDefaults_inst_RemoveVolatileDomainForName( unsafe.Pointer(x.Pointer()), - objc.RefPointer(suiteName), + objc.RefPointer(domainName), ) + return } -func (x gen_NSUserDefaults) RegisterDefaults_( - registrationDictionary NSDictionaryRef, +// SetBoolForKey sets the value of the specified default key to the specified boolean value. +// +// See https://developer.apple.com/documentation/foundation/nsuserdefaults/1408905-setbool?language=objc for details. +func (x gen_NSUserDefaults) SetBoolForKey( + value bool, + defaultName NSStringRef, ) { - C.NSUserDefaults_inst_registerDefaults_( + C.NSUserDefaults_inst_SetBoolForKey( unsafe.Pointer(x.Pointer()), - objc.RefPointer(registrationDictionary), + convertToObjCBool(value), + objc.RefPointer(defaultName), ) + return } -func (x gen_NSUserDefaults) PersistentDomainForName_( - domainName NSStringRef, -) ( - r0 NSDictionary, +// SetIntegerForKey sets the value of the specified default key to the specified integer value. +// +// See https://developer.apple.com/documentation/foundation/nsuserdefaults/1413614-setinteger?language=objc for details. +func (x gen_NSUserDefaults) SetIntegerForKey( + value NSInteger, + defaultName NSStringRef, ) { - ret := C.NSUserDefaults_inst_persistentDomainForName_( + C.NSUserDefaults_inst_SetIntegerForKey( unsafe.Pointer(x.Pointer()), - objc.RefPointer(domainName), + C.long(value), + objc.RefPointer(defaultName), ) - r0 = NSDictionary_fromPointer(ret) + return } -func (x gen_NSUserDefaults) SetPersistentDomain_forName_( - domain NSDictionaryRef, - domainName NSStringRef, +// SetObjectForKey sets the value of the specified default key. +// +// See https://developer.apple.com/documentation/foundation/nsuserdefaults/1414067-setobject?language=objc for details. +func (x gen_NSUserDefaults) SetObjectForKey( + value objc.Ref, + defaultName NSStringRef, ) { - C.NSUserDefaults_inst_setPersistentDomain_forName_( + C.NSUserDefaults_inst_SetObjectForKey( unsafe.Pointer(x.Pointer()), - objc.RefPointer(domain), - objc.RefPointer(domainName), + objc.RefPointer(value), + objc.RefPointer(defaultName), ) + return } -func (x gen_NSUserDefaults) RemovePersistentDomainForName_( +// SetPersistentDomainForName sets a dictionary for the specified persistent domain. +// +// See https://developer.apple.com/documentation/foundation/nsuserdefaults/1408187-setpersistentdomain?language=objc for details. +func (x gen_NSUserDefaults) SetPersistentDomainForName( + domain NSDictionaryRef, domainName NSStringRef, ) { - C.NSUserDefaults_inst_removePersistentDomainForName_( + C.NSUserDefaults_inst_SetPersistentDomainForName( unsafe.Pointer(x.Pointer()), + objc.RefPointer(domain), objc.RefPointer(domainName), ) + return } -func (x gen_NSUserDefaults) VolatileDomainForName_( - domainName NSStringRef, -) ( - r0 NSDictionary, +// SetURLForKey sets the value of the specified default key to the specified url. +// +// See https://developer.apple.com/documentation/foundation/nsuserdefaults/1414194-seturl?language=objc for details. +func (x gen_NSUserDefaults) SetURLForKey( + url NSURLRef, + defaultName NSStringRef, ) { - ret := C.NSUserDefaults_inst_volatileDomainForName_( + C.NSUserDefaults_inst_SetURLForKey( unsafe.Pointer(x.Pointer()), - objc.RefPointer(domainName), + objc.RefPointer(url), + objc.RefPointer(defaultName), ) - r0 = NSDictionary_fromPointer(ret) + return } -func (x gen_NSUserDefaults) SetVolatileDomain_forName_( +// SetVolatileDomainForName sets the dictionary for the specified volatile domain. +// +// See https://developer.apple.com/documentation/foundation/nsuserdefaults/1413720-setvolatiledomain?language=objc for details. +func (x gen_NSUserDefaults) SetVolatileDomainForName( domain NSDictionaryRef, domainName NSStringRef, ) { - C.NSUserDefaults_inst_setVolatileDomain_forName_( + C.NSUserDefaults_inst_SetVolatileDomainForName( unsafe.Pointer(x.Pointer()), objc.RefPointer(domain), objc.RefPointer(domainName), ) + return } -func (x gen_NSUserDefaults) RemoveVolatileDomainForName_( - domainName NSStringRef, -) { - C.NSUserDefaults_inst_removeVolatileDomainForName_( +// StringArrayForKey returns the array of strings associated with the specified key. +// +// See https://developer.apple.com/documentation/foundation/nsuserdefaults/1416414-stringarrayforkey?language=objc for details. +func (x gen_NSUserDefaults) StringArrayForKey( + defaultName NSStringRef, +) NSArray { + ret := C.NSUserDefaults_inst_StringArrayForKey( unsafe.Pointer(x.Pointer()), - objc.RefPointer(domainName), + objc.RefPointer(defaultName), ) - return + + return NSArray_FromPointer(ret) } -func (x gen_NSUserDefaults) ObjectIsForcedForKey_( - key NSStringRef, -) ( - r0 bool, -) { - ret := C.NSUserDefaults_inst_objectIsForcedForKey_( +// StringForKey returns the string associated with the specified key. +// +// See https://developer.apple.com/documentation/foundation/nsuserdefaults/1416700-stringforkey?language=objc for details. +func (x gen_NSUserDefaults) StringForKey( + defaultName NSStringRef, +) NSString { + ret := C.NSUserDefaults_inst_StringForKey( unsafe.Pointer(x.Pointer()), - objc.RefPointer(key), + objc.RefPointer(defaultName), ) - r0 = convertObjCBoolToGo(ret) - return + + return NSString_FromPointer(ret) } -func (x gen_NSUserDefaults) ObjectIsForcedForKey_inDomain_( - key NSStringRef, - domain NSStringRef, -) ( - r0 bool, -) { - ret := C.NSUserDefaults_inst_objectIsForcedForKey_inDomain_( +// Synchronize waits for any pending asynchronous updates to the defaults database and returns; this method is unnecessary and shouldn't be used. +// +// See https://developer.apple.com/documentation/foundation/nsuserdefaults/1414005-synchronize?language=objc for details. +func (x gen_NSUserDefaults) Synchronize() bool { + ret := C.NSUserDefaults_inst_Synchronize( unsafe.Pointer(x.Pointer()), - objc.RefPointer(key), - objc.RefPointer(domain), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_NSUserDefaults) Synchronize() ( - r0 bool, -) { - ret := C.NSUserDefaults_inst_synchronize( +// VolatileDomainForName returns the dictionary for the specified volatile domain. +// +// See https://developer.apple.com/documentation/foundation/nsuserdefaults/1409592-volatiledomainforname?language=objc for details. +func (x gen_NSUserDefaults) VolatileDomainForName( + domainName NSStringRef, +) NSDictionary { + ret := C.NSUserDefaults_inst_VolatileDomainForName( unsafe.Pointer(x.Pointer()), + objc.RefPointer(domainName), ) - r0 = convertObjCBoolToGo(ret) - return + + return NSDictionary_FromPointer(ret) } -func (x gen_NSUserDefaults) VolatileDomainNames() ( - r0 NSArray, -) { - ret := C.NSUserDefaults_inst_volatileDomainNames( +// VolatileDomainNames returns the current volatile domain names. +// +// See https://developer.apple.com/documentation/foundation/nsuserdefaults/1414231-volatiledomainnames?language=objc for details. +func (x gen_NSUserDefaults) VolatileDomainNames() NSArray { + ret := C.NSUserDefaults_inst_VolatileDomainNames( unsafe.Pointer(x.Pointer()), ) - r0 = NSArray_fromPointer(ret) - return + + return NSArray_FromPointer(ret) } diff --git a/examples/userdefaults/main.go b/examples/userdefaults/main.go index 14b2c7ab..2f28c6d1 100644 --- a/examples/userdefaults/main.go +++ b/examples/userdefaults/main.go @@ -7,8 +7,8 @@ import ( ) func main() { - ud := core.NSUserDefaults_standardUserDefaults() - ud.SetURL_forKey_(core.URL("https://github.com/progrium/macdriver"), core.String("macdriver")) - u := ud.URLForKey_(core.String("macdriver")) + ud := core.NSUserDefaults_StandardUserDefaults() + ud.SetURLForKey(core.URL("https://github.com/progrium/macdriver"), core.String("macdriver")) + u := ud.URLForKey(core.String("macdriver")) fmt.Println("looked up 'macdriver' key in NSUserDefaults and got:", u) } diff --git a/examples/workspaceutil/main.go b/examples/workspaceutil/main.go index e28fdfab..6b6764b4 100644 --- a/examples/workspaceutil/main.go +++ b/examples/workspaceutil/main.go @@ -7,7 +7,7 @@ import ( ) func main() { - ws := cocoa.NSWorkspace_sharedWorkspace() + ws := cocoa.NSWorkspace_SharedWorkspace() apps := ws.RunningApplications() fmt.Println(apps) diff --git a/gen/convert.go b/gen/convert.go index d0e18119..adca9b9e 100644 --- a/gen/convert.go +++ b/gen/convert.go @@ -2,6 +2,7 @@ package gen import ( "fmt" + "strings" "github.com/progrium/macschema/schema" ) @@ -39,6 +40,7 @@ func processClassSchema(pkg *GoPackage, s *schema.Schema, imports []PackageConte Class: *s.Class, Imports: imports, consumedImports: consumedImports, + generatedNames: map[string]string{}, } classDef := ClassDef{ Name: cb.Class.Name, @@ -59,8 +61,11 @@ func processClassSchema(pkg *GoPackage, s *schema.Schema, imports []PackageConte defer ignoreIfUnimplemented(fmt.Sprintf("%s.%s", s.Class.Name, m.Name)) msg := cb.msgSend(m, true) + ident := selectorNameToGoIdent(cb.generatedNames, m.Name) + name := fmt.Sprintf("%s_%s", cb.Class.Name, ident) wrapper := MethodDef{ - Name: fmt.Sprintf("%s_%s", cb.Class.Name, selectorNameToGoIdent(m.Name)), + Description: formatComment(m, name), + Name: name, WrappedFunc: cb.cgoWrapperFunc(m, true), } @@ -79,3 +84,14 @@ func processClassSchema(pkg *GoPackage, s *schema.Schema, imports []PackageConte return classDef, nil } + +func formatComment(m schema.Method, ident string) string { + ld := strings.ToLower(m.Description) + firstWord := strings.Split(ld, " ")[0] + + if firstWord == "a" || firstWord == "the" { + ld = "returns " + ld + } + return fmt.Sprintf("// %s %s\n//\n// See %s for details.", ident, ld, m.TopicURL) + +} diff --git a/gen/gen.go b/gen/gen.go index 61b5b309..c5726da3 100644 --- a/gen/gen.go +++ b/gen/gen.go @@ -20,16 +20,52 @@ func isVoid(dt schema.DataType) bool { return dt.Name == "void" && !dt.IsPtr && !dt.IsPtrPtr } -func msgSendFuncName(cls schema.Class, selector string, isTypeMethod bool) string { +func msgSendFuncName(generatedNames map[string]string, cls schema.Class, selector string, isTypeMethod bool) string { target := "inst" if isTypeMethod { target = "type" } - return fmt.Sprintf("%s_%s_%s", cls.Name, target, selectorNameToGoIdent(selector)) + return fmt.Sprintf("%s_%s_%s", cls.Name, target, selectorNameToGoIdent(generatedNames, selector)) } -func selectorNameToGoIdent(sel string) string { - return strings.ReplaceAll(sel, ":", "_") +func selectorNameToGoIdent(generatedNames map[string]string, sel string) string { + if ident, ok := generatedNames[sel]; ok { + return ident + } + // convert to idiomatic Go name (e.g. "sendAction:to:from" -> "SendActionToFrom") + var ident string + + // for every colon, capitalize the next letter + // walk runes: + // - if rune is a colon, skip it and capitalize the next letter + // - else, add it to the ident + capNext := true + for _, r := range sel { + if r == ':' { + capNext = true + continue + } + if capNext { + ident += string(unicode.ToUpper(r)) + capNext = false + } else { + ident += string(r) + } + } + if capNext { + ident += "_" + } + + if strings.HasSuffix(sel, ":") { + trimmedSel := strings.TrimSuffix(sel, ":") + if _, ok := generatedNames[trimmedSel]; !ok { + ident = strings.TrimSuffix(ident, "_") + generatedNames[sel] = ident + return ident + } + } + generatedNames[sel] = ident + return ident } // Objective-C properties are syntactic sugar for getter/setter methods, this diff --git a/gen/gen_class_builder.go b/gen/gen_class_builder.go index 889227a0..15416d38 100644 --- a/gen/gen_class_builder.go +++ b/gen/gen_class_builder.go @@ -2,6 +2,7 @@ package gen import ( "fmt" + "sort" "strings" "github.com/progrium/macschema/schema" @@ -11,6 +12,8 @@ type classBuilder struct { Class schema.Class Imports []PackageContents consumedImports map[Import]bool + + generatedNames map[string]string } func (cb *classBuilder) EachTypeMethod(f func(schema.Method)) { @@ -30,6 +33,10 @@ func (cb *classBuilder) EachTypeMethod(f func(schema.Method)) { func (cb *classBuilder) EachInstanceMethod(f func(schema.Method)) { seen := make(map[string]bool) + // sort methods by name so that the order is deterministic + sort.Slice(cb.Class.InstanceMethods, func(i, j int) bool { + return cb.Class.InstanceMethods[i].Name < cb.Class.InstanceMethods[j].Name + }) for _, m := range cb.Class.InstanceMethods { seen[m.Name] = true f(m) @@ -55,19 +62,21 @@ func (cb *classBuilder) EachInstanceMethod(f func(schema.Method)) { } func (cb *classBuilder) instanceMethod(method schema.Method) MethodDef { + ident := toExportedName(selectorNameToGoIdent(cb.generatedNames, method.Name)) r := MethodDef{ - Name: toExportedName(selectorNameToGoIdent(method.Name)), + Description: formatComment(method, ident), + Name: ident, WrappedFunc: cb.cgoWrapperFunc(method, false), } if isInstanceType(method.Return) { - r.Name += "_as" + cb.Class.Name + r.Name += "_As" + cb.Class.Name } return r } func (cb *classBuilder) msgSend(method schema.Method, isTypeMethod bool) CGoMsgSend { msg := CGoMsgSend{ - Name: msgSendFuncName(cb.Class, method.Name, isTypeMethod), + Name: msgSendFuncName(cb.generatedNames, cb.Class, method.Name, isTypeMethod), Class: cb.Class.Name, Return: cb.toMsgSendReturn(method.Return), } @@ -101,9 +110,10 @@ func (cb *classBuilder) toMsgSendReturn(dt schema.DataType) string { func (cb *classBuilder) cgoWrapperFunc(method schema.Method, isTypeMethod bool) CGoWrapperFunc { r := CGoWrapperFunc{ - Name: msgSendFuncName(cb.Class, method.Name, isTypeMethod), - Args: []CGoWrapperArg{}, - Returns: cb.toCGoWrapperReturn(method.Return), + Description: method.Description, + Name: msgSendFuncName(cb.generatedNames, cb.Class, method.Name, isTypeMethod), + Args: []CGoWrapperArg{}, + Returns: cb.toCGoWrapperReturn(method.Return), } for _, arg := range method.Args { typ := cb.mapType(arg.Type) diff --git a/gen/gen_struct_builder.go b/gen/gen_struct_builder.go deleted file mode 100644 index e85aa547..00000000 --- a/gen/gen_struct_builder.go +++ /dev/null @@ -1,278 +0,0 @@ -package gen - -import ( - "github.com/progrium/macschema/schema" -) - -type structBuilder struct { - Struct schema.Struct - Imports []PackageContents - consumedImports map[Import]bool -} - -// func (sb *structBuilder) EachTypeMethod(f func(schema.Method)) { -// f(schema.Method{ -// Name: "alloc", -// Return: schema.DataType{Name: "instancetype"}, -// }) -// for _, m := range sb.Struct.TypeMethods { -// f(m) -// } -// for _, p := range sb.Struct.TypeProperties { -// for _, m := range propertyMethods(p) { -// f(m) -// } -// } -// } - -// func (sb *structBuilder) EachInstanceMethod(f func(schema.Method)) { -// seen := make(map[string]bool) -// for _, m := range sb.Struct.InstanceMethods { -// seen[m.Name] = true -// f(m) -// } -// if !seen["init"] { -// f(schema.Method{ -// Name: "init", -// Return: schema.DataType{Name: "instancetype"}, -// }) -// } -// for _, p := range sb.Struct.InstanceProperties { -// func() { -// defer ignoreIfUnimplemented(fmt.Sprintf("%s.%s", sb.Struct.Name, p.Name)) -// for _, m := range propertyMethods(p) { -// // properties sometimes specify a getter or setter method that is also -// // in `InstanceMethods`, so skip those if they've already been handled -// if !seen[m.Name] { -// f(m) -// } -// } -// }() -// } -// } - -// func (sb *structBuilder) instanceMethod(method schema.Method) MethodDef { -// r := MethodDef{ -// Name: toExportedName(selectorNameToGoIdent(method.Name)), -// WrappedFunc: sb.cgoWrapperFunc(method, false), -// } -// if isInstanceType(method.Return) { -// r.Name += "_as" + sb.Struct.Name -// } -// return r -// } - -// func (sb *structBuilder) msgSend(method schema.Method, isTypeMethod bool) CGoMsgSend { -// msg := CGoMsgSend{ -// Name: msgSendFuncName(sb.Struct, method.Name, isTypeMethod), -// Class: sb.Struct.Name, -// Return: sb.toMsgSendReturn(method.Return), -// } -// for i, key := range strings.SplitAfter(method.Name, ":") { -// if key == "" { -// continue -// } -// part := SelectorPart{ -// Key: key, -// } -// if i < len(method.Args) { -// arg := method.Args[i] -// typ := sb.mapType(arg.Type) -// part.Arg = &Arg{ -// Name: arg.Name, -// Type: typ.CType, -// } -// } -// msg.Selector = append(msg.Selector, part) -// } -// return msg -// } - -func (sb *structBuilder) toMsgSendReturn(dt schema.DataType) string { - if isVoid(dt) { - return "void" - } - typ := sb.mapType(dt) - return typ.CType -} - -// func (sb *structBuilder) cgoWrapperFunc(method schema.Method, isTypeMethod bool) CGoWrapperFunc { -// r := CGoWrapperFunc{ -// Name: msgSendFuncName(sb.Struct, method.Name, isTypeMethod), -// Args: []CGoWrapperArg{}, -// Returns: sb.toCGoWrapperReturn(method.Return), -// } -// for _, arg := range method.Args { -// typ := sb.mapType(arg.Type) -// goType := typ.GoSimpleRefType -// if goType == "" { -// goType = typ.GoType -// } -// r.Args = append(r.Args, CGoWrapperArg{ -// Name: arg.Name, -// Type: goType, -// ToCGoFmt: typ.ToCGoFmt, -// }) -// } -// return r -// } - -func (sb *structBuilder) toCGoWrapperReturn(dt schema.DataType) []CGoWrapperReturn { - if isVoid(dt) { - return nil - } - typ := sb.mapType(dt) - return []CGoWrapperReturn{ - {Type: typ.GoType, FromCGoFmt: typ.FromCGoFmt}, - } -} - -func (sb *structBuilder) pkgPrefixForStruct(name string) (_ string, _found bool) { - if name == sb.Struct.Name { - return "", true - } - for _, imp := range sb.Imports { - if !imp.Classes[name] { - continue - } - if imp.Import == nil { - return "", true - } - sb.consumedImports[*imp.Import] = true - return imp.Import.Alias + ".", true - } - return "", false -} - -func (sb *structBuilder) mapStruct(name string) *typeMapping { - pkgPrefix, found := sb.pkgPrefixForStruct(name) - if !found { - return nil - } - return &typeMapping{ - GoType: pkgPrefix + name, - GoSimpleRefType: pkgPrefix + name + "Ref", - CType: "void*", - FromCGoFmt: pkgPrefix + name + "_fromPointer(%s)", - ToCGoFmt: "objc.RefPointer(%s)", - } -} - -func (sb *structBuilder) mapType(dt schema.DataType) typeMapping { - if dt.IsPtr { - if structType := sb.mapStruct(dt.Name); structType != nil { - return *structType - } - if dt.Name == "void" { - return typeMapping{ - GoType: "unsafe.Pointer", - CType: "void*", - FromCGoFmt: "%s", - ToCGoFmt: "%s", - } - } - } - if dt.IsPtr || dt.IsPtrPtr { - panic(unimplemented("pointers %#v", dt)) - } - if isInstanceType(dt) { - return *sb.mapStruct(sb.Struct.Name) - } - // FIXME(mgood): look these up based on the schema, but for now just use - // "NSString" as a known struct expected to be present to resolve to the - // "core" package. - corePkg, found := sb.pkgPrefixForStruct("NSString") - if !found { - panic("could not locate the `core` package to resolve primitive types") - } - switch dt.Name { - // FIXME split enums into their own types - case "NSUInteger", "NSWindowStyleMask", "NSBackingStoreType", "NSWindowOrderingMode", "NSWindowCollectionBehavior": - return typeMapping{ - GoType: corePkg + "NSUInteger", - CType: "unsigned long", - FromCGoFmt: corePkg + "NSUInteger(%s)", - ToCGoFmt: "C.ulong(%s)", - } - case "NSInteger", "NSWindowTitleVisibility", "NSWindowLevel", "NSApplicationActivationPolicy", "NSControlStateValue", "NSPopoverBehavior": - return typeMapping{ - GoType: corePkg + "NSInteger", - CType: "long", - FromCGoFmt: corePkg + "NSInteger(%s)", - ToCGoFmt: "C.long(%s)", - } - case "CGFloat": - return typeMapping{ - GoType: corePkg + "CGFloat", - CType: "double", - FromCGoFmt: corePkg + "CGFloat(%s)", - ToCGoFmt: "C.double(%s)", - } - case "NSStringEncoding": - return typeMapping{ - GoType: corePkg + "NSStringEncoding", - CType: "unsigned long", - FromCGoFmt: corePkg + "NSStringEncoding(%s)", - ToCGoFmt: "C.ulong(%s)", - } - case "unichar": - return typeMapping{ - GoType: corePkg + "Unichar", - CType: "unsigned short", - FromCGoFmt: corePkg + "Unichar(%s)", - ToCGoFmt: "C.ushort(%s)", - } - case "BOOL": - return typeMapping{ - GoType: "bool", - CType: "BOOL", - FromCGoFmt: "convertObjCBoolToGo(%s)", - ToCGoFmt: "convertToObjCBool(%s)", - } - case "int": - return typeMapping{ - GoType: "int32", - CType: "int", - FromCGoFmt: "int32(%s)", - ToCGoFmt: "C.int(%s)", - } - case "SEL": - return typeMapping{ - GoType: "objc.Selector", - CType: "void*", - FromCGoFmt: "objc.SelectorAt(%s)", - ToCGoFmt: "%s.SelectorAddress()", - } - case "NSRect", "CGRect": - return typeMapping{ - GoType: corePkg + "NSRect", - CType: "NSRect", - FromCGoFmt: "*(*" + corePkg + "NSRect)(unsafe.Pointer(&%s))", - ToCGoFmt: "*(*C.NSRect)(unsafe.Pointer(&%s))", - } - case "NSPoint": - return typeMapping{ - GoType: corePkg + "NSPoint", - CType: "NSPoint", - FromCGoFmt: "*(*" + corePkg + "NSPoint)(unsafe.Pointer(&%s))", - ToCGoFmt: "*(*C.NSPoint)(unsafe.Pointer(&%s))", - } - case "NSSize", "CGSize": - return typeMapping{ - GoType: corePkg + "NSSize", - CType: "NSSize", - FromCGoFmt: "*(*" + corePkg + "NSSize)(unsafe.Pointer(&%s))", - ToCGoFmt: "*(*C.NSSize)(unsafe.Pointer(&%s))", - } - case "id": - return typeMapping{ - GoType: "objc.Object", - GoSimpleRefType: "objc.Ref", - CType: "void*", - FromCGoFmt: "objc.Object_fromPointer(%s)", - ToCGoFmt: "objc.RefPointer(%s)", - } - default: - panic(unimplemented("mapType: %s", dt.Name)) - } -} diff --git a/gen/lookup.go b/gen/lookup.go index 4bd9cec2..64c4bb7f 100644 --- a/gen/lookup.go +++ b/gen/lookup.go @@ -47,7 +47,7 @@ func (cb *classBuilder) mapClass(name string) *typeMapping { GoType: pkgPrefix + name, GoSimpleRefType: pkgPrefix + name + "Ref", CType: "void*", - FromCGoFmt: pkgPrefix + name + "_fromPointer(%s)", + FromCGoFmt: pkgPrefix + name + "_FromPointer(%s)", ToCGoFmt: "objc.RefPointer(%s)", } } @@ -163,7 +163,7 @@ func (cb *classBuilder) mapType(dt schema.DataType) typeMapping { GoType: "objc.Object", GoSimpleRefType: "objc.Ref", CType: "void*", - FromCGoFmt: "objc.Object_fromPointer(%s)", + FromCGoFmt: "objc.Object_FromPointer(%s)", ToCGoFmt: "objc.RefPointer(%s)", } default: diff --git a/gen/model.go b/gen/model.go index 3ca30ee2..2bfe0b28 100644 --- a/gen/model.go +++ b/gen/model.go @@ -73,9 +73,10 @@ type CGoWrapperReturn struct { } type CGoWrapperFunc struct { - Name string - Args []CGoWrapperArg - Returns []CGoWrapperReturn + Description string + Name string + Args []CGoWrapperArg + Returns []CGoWrapperReturn } func (f CGoWrapperFunc) HasReturn() bool { @@ -83,6 +84,7 @@ func (f CGoWrapperFunc) HasReturn() bool { } type MethodDef struct { + Description string Name string WrappedFunc CGoWrapperFunc } diff --git a/gen/template/package.tmpl b/gen/template/package.tmpl index b37830b2..f0a3b269 100644 --- a/gen/template/package.tmpl +++ b/gen/template/package.tmpl @@ -84,24 +84,33 @@ func convertToObjCBool(b bool) C.BOOL { {{define "go_to_cgo"}} {{range $x := .}} +{{.Description}} func {{.Name}}( - {{- range .WrappedFunc.Args}} - {{.Name}} {{.Type}}, - {{- end}} + {{- range $i, $_ := .WrappedFunc.Args -}} + {{if $i}}, {{end}}{{.Name}} {{.Type}} + {{- end -}} ) {{if .WrappedFunc.HasReturn}}( - {{- range $i, $_ := .WrappedFunc.Returns}} - r{{$i}} {{.Type}}, - {{- end}} + {{- if eq (len .WrappedFunc.Returns) 1}} + {{(index .WrappedFunc.Returns 0).Type}} + {{- else -}} + {{- range $i, $_ := .WrappedFunc.Returns -}} + {{if $i}}, {{end}}r{{$i}} {{.Type}} + {{- end -}} + {{- end -}} ){{end}} { {{if .WrappedFunc.HasReturn}}ret := {{end}}C.{{.WrappedFunc.Name}}( {{- range .WrappedFunc.Args}} {{printf .ToCGoFmt .Name}}, {{- end}} ) + {{ if eq (len .WrappedFunc.Returns) 1}} + return {{printf (index .WrappedFunc.Returns 0).FromCGoFmt "ret"}} + {{- else }} {{- range $i, $_ := .WrappedFunc.Returns}} r{{$i}} = {{printf .FromCGoFmt "ret"}} {{- end}} return + {{- end }} } {{end}} @@ -112,32 +121,37 @@ func {{.Name}}( {{range $cls := .}} type {{.Name}}Ref interface { Pointer() uintptr - Init_as{{.Name}}() {{.Name}} + Init_As{{.Name}}() {{.Name}} } type gen_{{.Name}} struct { {{.Base}} } -func {{.Name}}_fromPointer(ptr unsafe.Pointer) {{.Name}} { +func {{.Name}}_FromPointer(ptr unsafe.Pointer) {{.Name}} { return {{.Name}}{gen_{{.Name}}{ - {{.Base}}_fromPointer(ptr), + {{.Base}}_FromPointer(ptr), }} } -func {{.Name}}_fromRef(ref objc.Ref) {{.Name}} { - return {{.Name}}_fromPointer(unsafe.Pointer(ref.Pointer())) +func {{.Name}}_FromRef(ref objc.Ref) {{.Name}} { + return {{.Name}}_FromPointer(unsafe.Pointer(ref.Pointer())) } {{range .InstanceMethods}} +{{.Description}} func (x gen_{{$cls.Name}}) {{.Name}}( {{- range .WrappedFunc.Args}} {{.Name}} {{.Type}}, {{- end}} ) {{if .WrappedFunc.HasReturn}}( - {{- range $i, $_ := .WrappedFunc.Returns}} - r{{$i}} {{.Type}}, - {{- end}} + {{- if eq (len .WrappedFunc.Returns) 1}} + {{(index .WrappedFunc.Returns 0).Type}} + {{- else -}} + {{- range $i, $_ := .WrappedFunc.Returns -}} + {{if $i}}, {{end}}r{{$i}} {{.Type}} + {{- end -}} + {{- end -}} ){{end}} { {{if .WrappedFunc.HasReturn}}ret := {{end}}C.{{.WrappedFunc.Name}}( unsafe.Pointer(x.Pointer()), @@ -145,10 +159,14 @@ func (x gen_{{$cls.Name}}) {{.Name}}( {{printf .ToCGoFmt .Name}}, {{- end}} ) + {{ if eq (len .WrappedFunc.Returns) 1}} + return {{printf (index .WrappedFunc.Returns 0).FromCGoFmt "ret"}} + {{- else }} {{- range $i, $_ := .WrappedFunc.Returns}} r{{$i}} = {{printf .FromCGoFmt "ret"}} {{- end}} return + {{- end }} } {{end}} diff --git a/objc/object.go b/objc/object.go index 0245ea22..ac3627c7 100644 --- a/objc/object.go +++ b/objc/object.go @@ -95,11 +95,11 @@ func ObjectPtr(ptr uintptr) Object { return object{ptr: ptr} } -func Object_fromPointer(id unsafe.Pointer) Object { +func Object_FromPointer(id unsafe.Pointer) Object { return ObjectPtr(uintptr(id)) } -func Object_fromRef(ref Ref) Object { +func Object_FromRef(ref Ref) Object { if ref == nil { return nil } diff --git a/webkit/WKPreferences.go b/webkit/WKPreferences.go index 2e280637..4d44e15f 100644 --- a/webkit/WKPreferences.go +++ b/webkit/WKPreferences.go @@ -1,14 +1,5 @@ package webkit -import ( - "github.com/progrium/macdriver/core" - "github.com/progrium/macdriver/objc" -) - type WKPreferences struct { gen_WKPreferences } - -func (p WKPreferences) SetValueForKey(value objc.Object, key core.NSStringRef) { - p.SetValue_forKey_(value, key) -} diff --git a/webkit/WKWebView.go b/webkit/WKWebView.go index 6f9efeae..06c15268 100644 --- a/webkit/WKWebView.go +++ b/webkit/WKWebView.go @@ -10,11 +10,7 @@ type WKWebView struct { } func WKWebView_Init(frame core.NSRect, config WKWebViewConfiguration) WKWebView { - return WKWebView_alloc().InitWithFrame_configuration__asWKWebView(frame, config) -} - -func (wv WKWebView) LoadRequest(req core.NSURLRequest) { - wv.LoadRequest_(req) + return WKWebView_Alloc().InitWithFrameConfiguration_AsWKWebView(frame, config) } // FIXME this would conflict with the `reload` selector that doesn't take a @@ -25,5 +21,5 @@ func (wv WKWebView) Reload(sender objc.Object) { } func (wv WKWebView) LoadHTMLString(html core.NSString, url core.NSURL) { - wv.LoadHTMLString_baseURL_(html, url) + wv.LoadHTMLStringBaseURL(html, url) } diff --git a/webkit/WKWebViewConfiguration.go b/webkit/WKWebViewConfiguration.go index 17b29bb6..53c7c95a 100644 --- a/webkit/WKWebViewConfiguration.go +++ b/webkit/WKWebViewConfiguration.go @@ -5,5 +5,5 @@ type WKWebViewConfiguration struct { } func WKWebViewConfiguration_New() WKWebViewConfiguration { - return WKWebViewConfiguration_alloc().Init_asWKWebViewConfiguration() + return WKWebViewConfiguration_Alloc().Init_AsWKWebViewConfiguration() } diff --git a/webkit/webkit_objc.gen.go b/webkit/webkit_objc.gen.go index 4c032150..3654196c 100755 --- a/webkit/webkit_objc.gen.go +++ b/webkit/webkit_objc.gen.go @@ -22,76 +22,79 @@ bool webkit_convertObjCBool(BOOL b) { } -void* WKNavigation_type_alloc() { +void* WKNavigation_type_Alloc() { return [WKNavigation alloc]; } -void* WKUserScript_type_alloc() { +void* WKUserScript_type_Alloc() { return [WKUserScript alloc]; } -void* WKWebView_type_alloc() { +void* WKWebView_type_Alloc() { return [WKWebView alloc]; } -BOOL WKWebView_type_handlesURLScheme_(void* urlScheme) { +BOOL WKWebView_type_HandlesURLScheme(void* urlScheme) { return [WKWebView handlesURLScheme: urlScheme]; } -void* WKWebViewConfiguration_type_alloc() { +void* WKWebViewConfiguration_type_Alloc() { return [WKWebViewConfiguration alloc]; } -void* WKPreferences_type_alloc() { +void* WKPreferences_type_Alloc() { return [WKPreferences alloc]; } -void* WKNavigation_inst_init(void *id) { +void* WKNavigation_inst_Init(void *id) { return [(WKNavigation*)id init]; } -void* WKUserScript_inst_init(void *id) { +void* WKUserScript_inst_Init(void *id) { return [(WKUserScript*)id init]; } -void* WKUserScript_inst_source(void *id) { +void* WKUserScript_inst_Source(void *id) { return [(WKUserScript*)id source]; } -BOOL WKUserScript_inst_isForMainFrameOnly(void *id) { +BOOL WKUserScript_inst_IsForMainFrameOnly(void *id) { return [(WKUserScript*)id isForMainFrameOnly]; } -void* WKWebView_inst_initWithFrame_configuration_(void *id, NSRect frame, void* configuration) { +void* WKWebView_inst_GoBack(void *id) { return [(WKWebView*)id - initWithFrame: frame - configuration: configuration]; + goBack]; } -void* WKWebView_inst_loadRequest_(void *id, void* request) { - return [(WKWebView*)id - loadRequest: request]; +void WKWebView_inst_GoBack_(void *id, void* sender) { + [(WKWebView*)id + goBack: sender]; } -void* WKWebView_inst_loadHTMLString_baseURL_(void *id, void* string, void* baseURL) { +void* WKWebView_inst_GoForward(void *id) { return [(WKWebView*)id - loadHTMLString: string - baseURL: baseURL]; + goForward]; } -void* WKWebView_inst_loadFileURL_allowingReadAccessToURL_(void *id, void* URL, void* readAccessURL) { +void WKWebView_inst_GoForward_(void *id, void* sender) { + [(WKWebView*)id + goForward: sender]; +} + +void* WKWebView_inst_InitWithFrameConfiguration(void *id, NSRect frame, void* configuration) { return [(WKWebView*)id - loadFileURL: URL - allowingReadAccessToURL: readAccessURL]; + initWithFrame: frame + configuration: configuration]; } -void* WKWebView_inst_loadData_MIMEType_characterEncodingName_baseURL_(void *id, void* data, void* MIMEType, void* characterEncodingName, void* baseURL) { +void* WKWebView_inst_LoadDataMIMETypeCharacterEncodingNameBaseURL(void *id, void* data, void* MIMEType, void* characterEncodingName, void* baseURL) { return [(WKWebView*)id loadData: data MIMEType: MIMEType @@ -99,74 +102,71 @@ void* WKWebView_inst_loadData_MIMEType_characterEncodingName_baseURL_(void *id, baseURL: baseURL]; } -void* WKWebView_inst_reload(void *id) { +void* WKWebView_inst_LoadFileRequestAllowingReadAccessToURL(void *id, void* request, void* readAccessURL) { return [(WKWebView*)id - reload]; + loadFileRequest: request + allowingReadAccessToURL: readAccessURL]; } -void WKWebView_inst_reload_(void *id, void* sender) { - [(WKWebView*)id - reload: sender]; +void* WKWebView_inst_LoadFileURLAllowingReadAccessToURL(void *id, void* URL, void* readAccessURL) { + return [(WKWebView*)id + loadFileURL: URL + allowingReadAccessToURL: readAccessURL]; } -void* WKWebView_inst_reloadFromOrigin(void *id) { +void* WKWebView_inst_LoadHTMLStringBaseURL(void *id, void* string, void* baseURL) { return [(WKWebView*)id - reloadFromOrigin]; + loadHTMLString: string + baseURL: baseURL]; } -void WKWebView_inst_reloadFromOrigin_(void *id, void* sender) { - [(WKWebView*)id - reloadFromOrigin: sender]; +void* WKWebView_inst_LoadRequest(void *id, void* request) { + return [(WKWebView*)id + loadRequest: request]; } -void WKWebView_inst_stopLoading(void *id) { - [(WKWebView*)id - stopLoading]; +void* WKWebView_inst_LoadSimulatedRequestResponseHTMLString(void *id, void* request, void* string) { + return [(WKWebView*)id + loadSimulatedRequest: request + responseHTMLString: string]; } -void WKWebView_inst_stopLoading_(void *id, void* sender) { - [(WKWebView*)id - stopLoading: sender]; +void* WKWebView_inst_Reload(void *id) { + return [(WKWebView*)id + reload]; } -void WKWebView_inst_goBack_(void *id, void* sender) { +void WKWebView_inst_Reload_(void *id, void* sender) { [(WKWebView*)id - goBack: sender]; + reload: sender]; } -void* WKWebView_inst_goBack(void *id) { +void* WKWebView_inst_ReloadFromOrigin(void *id) { return [(WKWebView*)id - goBack]; + reloadFromOrigin]; } -void WKWebView_inst_goForward_(void *id, void* sender) { +void WKWebView_inst_ReloadFromOrigin_(void *id, void* sender) { [(WKWebView*)id - goForward: sender]; -} - -void* WKWebView_inst_goForward(void *id) { - return [(WKWebView*)id - goForward]; + reloadFromOrigin: sender]; } -void* WKWebView_inst_loadFileRequest_allowingReadAccessToURL_(void *id, void* request, void* readAccessURL) { - return [(WKWebView*)id - loadFileRequest: request - allowingReadAccessToURL: readAccessURL]; +void WKWebView_inst_StopLoading(void *id) { + [(WKWebView*)id + stopLoading]; } -void* WKWebView_inst_loadSimulatedRequest_responseHTMLString_(void *id, void* request, void* string) { - return [(WKWebView*)id - loadSimulatedRequest: request - responseHTMLString: string]; +void WKWebView_inst_StopLoading_(void *id, void* sender) { + [(WKWebView*)id + stopLoading: sender]; } -void* WKWebView_inst_init(void *id) { +void* WKWebView_inst_Init(void *id) { return [(WKWebView*)id init]; } -void* WKWebView_inst_configuration(void *id) { +void* WKWebView_inst_Configuration(void *id) { return [(WKWebView*)id configuration]; } @@ -176,27 +176,27 @@ void* WKWebView_inst_UIDelegate(void *id) { UIDelegate]; } -void WKWebView_inst_setUIDelegate_(void *id, void* value) { +void WKWebView_inst_SetUIDelegate(void *id, void* value) { [(WKWebView*)id setUIDelegate: value]; } -void* WKWebView_inst_navigationDelegate(void *id) { +void* WKWebView_inst_NavigationDelegate(void *id) { return [(WKWebView*)id navigationDelegate]; } -void WKWebView_inst_setNavigationDelegate_(void *id, void* value) { +void WKWebView_inst_SetNavigationDelegate(void *id, void* value) { [(WKWebView*)id setNavigationDelegate: value]; } -BOOL WKWebView_inst_isLoading(void *id) { +BOOL WKWebView_inst_IsLoading(void *id) { return [(WKWebView*)id isLoading]; } -void* WKWebView_inst_title(void *id) { +void* WKWebView_inst_Title(void *id) { return [(WKWebView*)id title]; } @@ -206,254 +206,254 @@ void* WKWebView_inst_URL(void *id) { URL]; } -void* WKWebView_inst_mediaType(void *id) { +void* WKWebView_inst_MediaType(void *id) { return [(WKWebView*)id mediaType]; } -void WKWebView_inst_setMediaType_(void *id, void* value) { +void WKWebView_inst_SetMediaType(void *id, void* value) { [(WKWebView*)id setMediaType: value]; } -void* WKWebView_inst_customUserAgent(void *id) { +void* WKWebView_inst_CustomUserAgent(void *id) { return [(WKWebView*)id customUserAgent]; } -void WKWebView_inst_setCustomUserAgent_(void *id, void* value) { +void WKWebView_inst_SetCustomUserAgent(void *id, void* value) { [(WKWebView*)id setCustomUserAgent: value]; } -BOOL WKWebView_inst_hasOnlySecureContent(void *id) { +BOOL WKWebView_inst_HasOnlySecureContent(void *id) { return [(WKWebView*)id hasOnlySecureContent]; } -BOOL WKWebView_inst_allowsMagnification(void *id) { +BOOL WKWebView_inst_AllowsMagnification(void *id) { return [(WKWebView*)id allowsMagnification]; } -void WKWebView_inst_setAllowsMagnification_(void *id, BOOL value) { +void WKWebView_inst_SetAllowsMagnification(void *id, BOOL value) { [(WKWebView*)id setAllowsMagnification: value]; } -double WKWebView_inst_magnification(void *id) { +double WKWebView_inst_Magnification(void *id) { return [(WKWebView*)id magnification]; } -void WKWebView_inst_setMagnification_(void *id, double value) { +void WKWebView_inst_SetMagnification(void *id, double value) { [(WKWebView*)id setMagnification: value]; } -BOOL WKWebView_inst_allowsBackForwardNavigationGestures(void *id) { +BOOL WKWebView_inst_AllowsBackForwardNavigationGestures(void *id) { return [(WKWebView*)id allowsBackForwardNavigationGestures]; } -void WKWebView_inst_setAllowsBackForwardNavigationGestures_(void *id, BOOL value) { +void WKWebView_inst_SetAllowsBackForwardNavigationGestures(void *id, BOOL value) { [(WKWebView*)id setAllowsBackForwardNavigationGestures: value]; } -BOOL WKWebView_inst_canGoBack(void *id) { +BOOL WKWebView_inst_CanGoBack(void *id) { return [(WKWebView*)id canGoBack]; } -BOOL WKWebView_inst_canGoForward(void *id) { +BOOL WKWebView_inst_CanGoForward(void *id) { return [(WKWebView*)id canGoForward]; } -BOOL WKWebView_inst_allowsLinkPreview(void *id) { +BOOL WKWebView_inst_AllowsLinkPreview(void *id) { return [(WKWebView*)id allowsLinkPreview]; } -void WKWebView_inst_setAllowsLinkPreview_(void *id, BOOL value) { +void WKWebView_inst_SetAllowsLinkPreview(void *id, BOOL value) { [(WKWebView*)id setAllowsLinkPreview: value]; } -void* WKWebView_inst_interactionState(void *id) { +void* WKWebView_inst_InteractionState(void *id) { return [(WKWebView*)id interactionState]; } -void WKWebView_inst_setInteractionState_(void *id, void* value) { +void WKWebView_inst_SetInteractionState(void *id, void* value) { [(WKWebView*)id setInteractionState: value]; } -void WKWebViewConfiguration_inst_setURLSchemeHandler_forURLScheme_(void *id, void* urlSchemeHandler, void* urlScheme) { +void WKWebViewConfiguration_inst_SetURLSchemeHandlerForURLScheme(void *id, void* urlSchemeHandler, void* urlScheme) { [(WKWebViewConfiguration*)id setURLSchemeHandler: urlSchemeHandler forURLScheme: urlScheme]; } -void* WKWebViewConfiguration_inst_urlSchemeHandlerForURLScheme_(void *id, void* urlScheme) { +void* WKWebViewConfiguration_inst_UrlSchemeHandlerForURLScheme(void *id, void* urlScheme) { return [(WKWebViewConfiguration*)id urlSchemeHandlerForURLScheme: urlScheme]; } -void* WKWebViewConfiguration_inst_init(void *id) { +void* WKWebViewConfiguration_inst_Init(void *id) { return [(WKWebViewConfiguration*)id init]; } -void* WKWebViewConfiguration_inst_applicationNameForUserAgent(void *id) { +void* WKWebViewConfiguration_inst_ApplicationNameForUserAgent(void *id) { return [(WKWebViewConfiguration*)id applicationNameForUserAgent]; } -void WKWebViewConfiguration_inst_setApplicationNameForUserAgent_(void *id, void* value) { +void WKWebViewConfiguration_inst_SetApplicationNameForUserAgent(void *id, void* value) { [(WKWebViewConfiguration*)id setApplicationNameForUserAgent: value]; } -BOOL WKWebViewConfiguration_inst_limitsNavigationsToAppBoundDomains(void *id) { +BOOL WKWebViewConfiguration_inst_LimitsNavigationsToAppBoundDomains(void *id) { return [(WKWebViewConfiguration*)id limitsNavigationsToAppBoundDomains]; } -void WKWebViewConfiguration_inst_setLimitsNavigationsToAppBoundDomains_(void *id, BOOL value) { +void WKWebViewConfiguration_inst_SetLimitsNavigationsToAppBoundDomains(void *id, BOOL value) { [(WKWebViewConfiguration*)id setLimitsNavigationsToAppBoundDomains: value]; } -void* WKWebViewConfiguration_inst_preferences(void *id) { +void* WKWebViewConfiguration_inst_Preferences(void *id) { return [(WKWebViewConfiguration*)id preferences]; } -void WKWebViewConfiguration_inst_setPreferences_(void *id, void* value) { +void WKWebViewConfiguration_inst_SetPreferences(void *id, void* value) { [(WKWebViewConfiguration*)id setPreferences: value]; } -BOOL WKWebViewConfiguration_inst_ignoresViewportScaleLimits(void *id) { +BOOL WKWebViewConfiguration_inst_IgnoresViewportScaleLimits(void *id) { return [(WKWebViewConfiguration*)id ignoresViewportScaleLimits]; } -void WKWebViewConfiguration_inst_setIgnoresViewportScaleLimits_(void *id, BOOL value) { +void WKWebViewConfiguration_inst_SetIgnoresViewportScaleLimits(void *id, BOOL value) { [(WKWebViewConfiguration*)id setIgnoresViewportScaleLimits: value]; } -BOOL WKWebViewConfiguration_inst_suppressesIncrementalRendering(void *id) { +BOOL WKWebViewConfiguration_inst_SuppressesIncrementalRendering(void *id) { return [(WKWebViewConfiguration*)id suppressesIncrementalRendering]; } -void WKWebViewConfiguration_inst_setSuppressesIncrementalRendering_(void *id, BOOL value) { +void WKWebViewConfiguration_inst_SetSuppressesIncrementalRendering(void *id, BOOL value) { [(WKWebViewConfiguration*)id setSuppressesIncrementalRendering: value]; } -BOOL WKWebViewConfiguration_inst_allowsInlineMediaPlayback(void *id) { +BOOL WKWebViewConfiguration_inst_AllowsInlineMediaPlayback(void *id) { return [(WKWebViewConfiguration*)id allowsInlineMediaPlayback]; } -void WKWebViewConfiguration_inst_setAllowsInlineMediaPlayback_(void *id, BOOL value) { +void WKWebViewConfiguration_inst_SetAllowsInlineMediaPlayback(void *id, BOOL value) { [(WKWebViewConfiguration*)id setAllowsInlineMediaPlayback: value]; } -BOOL WKWebViewConfiguration_inst_allowsAirPlayForMediaPlayback(void *id) { +BOOL WKWebViewConfiguration_inst_AllowsAirPlayForMediaPlayback(void *id) { return [(WKWebViewConfiguration*)id allowsAirPlayForMediaPlayback]; } -void WKWebViewConfiguration_inst_setAllowsAirPlayForMediaPlayback_(void *id, BOOL value) { +void WKWebViewConfiguration_inst_SetAllowsAirPlayForMediaPlayback(void *id, BOOL value) { [(WKWebViewConfiguration*)id setAllowsAirPlayForMediaPlayback: value]; } -BOOL WKWebViewConfiguration_inst_allowsPictureInPictureMediaPlayback(void *id) { +BOOL WKWebViewConfiguration_inst_AllowsPictureInPictureMediaPlayback(void *id) { return [(WKWebViewConfiguration*)id allowsPictureInPictureMediaPlayback]; } -void WKWebViewConfiguration_inst_setAllowsPictureInPictureMediaPlayback_(void *id, BOOL value) { +void WKWebViewConfiguration_inst_SetAllowsPictureInPictureMediaPlayback(void *id, BOOL value) { [(WKWebViewConfiguration*)id setAllowsPictureInPictureMediaPlayback: value]; } -BOOL WKWebViewConfiguration_inst_upgradeKnownHostsToHTTPS(void *id) { +BOOL WKWebViewConfiguration_inst_UpgradeKnownHostsToHTTPS(void *id) { return [(WKWebViewConfiguration*)id upgradeKnownHostsToHTTPS]; } -void WKWebViewConfiguration_inst_setUpgradeKnownHostsToHTTPS_(void *id, BOOL value) { +void WKWebViewConfiguration_inst_SetUpgradeKnownHostsToHTTPS(void *id, BOOL value) { [(WKWebViewConfiguration*)id setUpgradeKnownHostsToHTTPS: value]; } -void WKPreferences_inst_setValue_forKey_(void *id, void* value, void* key) { +void WKPreferences_inst_SetValueForKey(void *id, void* value, void* key) { [(WKPreferences*)id setValue: value forKey: key]; } -void* WKPreferences_inst_init(void *id) { +void* WKPreferences_inst_Init(void *id) { return [(WKPreferences*)id init]; } -double WKPreferences_inst_minimumFontSize(void *id) { +double WKPreferences_inst_MinimumFontSize(void *id) { return [(WKPreferences*)id minimumFontSize]; } -void WKPreferences_inst_setMinimumFontSize_(void *id, double value) { +void WKPreferences_inst_SetMinimumFontSize(void *id, double value) { [(WKPreferences*)id setMinimumFontSize: value]; } -BOOL WKPreferences_inst_tabFocusesLinks(void *id) { +BOOL WKPreferences_inst_TabFocusesLinks(void *id) { return [(WKPreferences*)id tabFocusesLinks]; } -void WKPreferences_inst_setTabFocusesLinks_(void *id, BOOL value) { +void WKPreferences_inst_SetTabFocusesLinks(void *id, BOOL value) { [(WKPreferences*)id setTabFocusesLinks: value]; } -BOOL WKPreferences_inst_javaScriptCanOpenWindowsAutomatically(void *id) { +BOOL WKPreferences_inst_JavaScriptCanOpenWindowsAutomatically(void *id) { return [(WKPreferences*)id javaScriptCanOpenWindowsAutomatically]; } -void WKPreferences_inst_setJavaScriptCanOpenWindowsAutomatically_(void *id, BOOL value) { +void WKPreferences_inst_SetJavaScriptCanOpenWindowsAutomatically(void *id, BOOL value) { [(WKPreferences*)id setJavaScriptCanOpenWindowsAutomatically: value]; } -BOOL WKPreferences_inst_isFraudulentWebsiteWarningEnabled(void *id) { +BOOL WKPreferences_inst_IsFraudulentWebsiteWarningEnabled(void *id) { return [(WKPreferences*)id isFraudulentWebsiteWarningEnabled]; } -void WKPreferences_inst_setFraudulentWebsiteWarningEnabled_(void *id, BOOL value) { +void WKPreferences_inst_SetFraudulentWebsiteWarningEnabled(void *id, BOOL value) { [(WKPreferences*)id setFraudulentWebsiteWarningEnabled: value]; } -BOOL WKPreferences_inst_isTextInteractionEnabled(void *id) { +BOOL WKPreferences_inst_IsTextInteractionEnabled(void *id) { return [(WKPreferences*)id isTextInteractionEnabled]; } -void WKPreferences_inst_setTextInteractionEnabled_(void *id, BOOL value) { +void WKPreferences_inst_SetTextInteractionEnabled(void *id, BOOL value) { [(WKPreferences*)id setTextInteractionEnabled: value]; } @@ -479,990 +479,1167 @@ func convertToObjCBool(b bool) C.BOOL { return C.webkit_objc_bool_false } -func WKNavigation_alloc() ( - r0 WKNavigation, -) { - ret := C.WKNavigation_type_alloc() - r0 = WKNavigation_fromPointer(ret) - return +// WKNavigation_Alloc +// +// See for details. +func WKNavigation_Alloc() WKNavigation { + ret := C.WKNavigation_type_Alloc() + + return WKNavigation_FromPointer(ret) } -func WKUserScript_alloc() ( - r0 WKUserScript, -) { - ret := C.WKUserScript_type_alloc() - r0 = WKUserScript_fromPointer(ret) - return +// WKUserScript_Alloc +// +// See for details. +func WKUserScript_Alloc() WKUserScript { + ret := C.WKUserScript_type_Alloc() + + return WKUserScript_FromPointer(ret) } -func WKWebView_alloc() ( - r0 WKWebView, -) { - ret := C.WKWebView_type_alloc() - r0 = WKWebView_fromPointer(ret) - return +// WKWebView_Alloc +// +// See for details. +func WKWebView_Alloc() WKWebView { + ret := C.WKWebView_type_Alloc() + + return WKWebView_FromPointer(ret) } -func WKWebView_handlesURLScheme_( - urlScheme core.NSStringRef, -) ( - r0 bool, -) { - ret := C.WKWebView_type_handlesURLScheme_( +// WKWebView_HandlesURLScheme returns a boolean value that indicates whether webkit natively supports resources with the specified url scheme. +// +// See https://developer.apple.com/documentation/webkit/wkwebview/2875370-handlesurlscheme?language=objc for details. +func WKWebView_HandlesURLScheme(urlScheme core.NSStringRef) bool { + ret := C.WKWebView_type_HandlesURLScheme( objc.RefPointer(urlScheme), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func WKWebViewConfiguration_alloc() ( - r0 WKWebViewConfiguration, -) { - ret := C.WKWebViewConfiguration_type_alloc() - r0 = WKWebViewConfiguration_fromPointer(ret) - return +// WKWebViewConfiguration_Alloc +// +// See for details. +func WKWebViewConfiguration_Alloc() WKWebViewConfiguration { + ret := C.WKWebViewConfiguration_type_Alloc() + + return WKWebViewConfiguration_FromPointer(ret) } -func WKPreferences_alloc() ( - r0 WKPreferences, -) { - ret := C.WKPreferences_type_alloc() - r0 = WKPreferences_fromPointer(ret) - return +// WKPreferences_Alloc +// +// See for details. +func WKPreferences_Alloc() WKPreferences { + ret := C.WKPreferences_type_Alloc() + + return WKPreferences_FromPointer(ret) } type WKNavigationRef interface { Pointer() uintptr - Init_asWKNavigation() WKNavigation + Init_AsWKNavigation() WKNavigation } type gen_WKNavigation struct { objc.Object } -func WKNavigation_fromPointer(ptr unsafe.Pointer) WKNavigation { +func WKNavigation_FromPointer(ptr unsafe.Pointer) WKNavigation { return WKNavigation{gen_WKNavigation{ - objc.Object_fromPointer(ptr), + objc.Object_FromPointer(ptr), }} } -func WKNavigation_fromRef(ref objc.Ref) WKNavigation { - return WKNavigation_fromPointer(unsafe.Pointer(ref.Pointer())) +func WKNavigation_FromRef(ref objc.Ref) WKNavigation { + return WKNavigation_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_WKNavigation) Init_asWKNavigation() ( - r0 WKNavigation, -) { - ret := C.WKNavigation_inst_init( +// Init +// +// See for details. +func (x gen_WKNavigation) Init_AsWKNavigation() WKNavigation { + ret := C.WKNavigation_inst_Init( unsafe.Pointer(x.Pointer()), ) - r0 = WKNavigation_fromPointer(ret) - return + + return WKNavigation_FromPointer(ret) } type WKUserScriptRef interface { Pointer() uintptr - Init_asWKUserScript() WKUserScript + Init_AsWKUserScript() WKUserScript } type gen_WKUserScript struct { objc.Object } -func WKUserScript_fromPointer(ptr unsafe.Pointer) WKUserScript { +func WKUserScript_FromPointer(ptr unsafe.Pointer) WKUserScript { return WKUserScript{gen_WKUserScript{ - objc.Object_fromPointer(ptr), + objc.Object_FromPointer(ptr), }} } -func WKUserScript_fromRef(ref objc.Ref) WKUserScript { - return WKUserScript_fromPointer(unsafe.Pointer(ref.Pointer())) +func WKUserScript_FromRef(ref objc.Ref) WKUserScript { + return WKUserScript_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_WKUserScript) Init_asWKUserScript() ( - r0 WKUserScript, -) { - ret := C.WKUserScript_inst_init( +// Init +// +// See for details. +func (x gen_WKUserScript) Init_AsWKUserScript() WKUserScript { + ret := C.WKUserScript_inst_Init( unsafe.Pointer(x.Pointer()), ) - r0 = WKUserScript_fromPointer(ret) - return + + return WKUserScript_FromPointer(ret) } -func (x gen_WKUserScript) Source() ( - r0 core.NSString, -) { - ret := C.WKUserScript_inst_source( +// Source returns the script’s source code. +// +// See https://developer.apple.com/documentation/webkit/wkuserscript/1537787-source?language=objc for details. +func (x gen_WKUserScript) Source() core.NSString { + ret := C.WKUserScript_inst_Source( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_WKUserScript) IsForMainFrameOnly() ( - r0 bool, -) { - ret := C.WKUserScript_inst_isForMainFrameOnly( +// IsForMainFrameOnly returns a boolean value that indicates whether to inject the script into the main frame or all frames. +// +// See https://developer.apple.com/documentation/webkit/wkuserscript/1537856-formainframeonly?language=objc for details. +func (x gen_WKUserScript) IsForMainFrameOnly() bool { + ret := C.WKUserScript_inst_IsForMainFrameOnly( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } type WKWebViewRef interface { Pointer() uintptr - Init_asWKWebView() WKWebView + Init_AsWKWebView() WKWebView } type gen_WKWebView struct { cocoa.NSView } -func WKWebView_fromPointer(ptr unsafe.Pointer) WKWebView { +func WKWebView_FromPointer(ptr unsafe.Pointer) WKWebView { return WKWebView{gen_WKWebView{ - cocoa.NSView_fromPointer(ptr), + cocoa.NSView_FromPointer(ptr), }} } -func WKWebView_fromRef(ref objc.Ref) WKWebView { - return WKWebView_fromPointer(unsafe.Pointer(ref.Pointer())) +func WKWebView_FromRef(ref objc.Ref) WKWebView { + return WKWebView_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_WKWebView) InitWithFrame_configuration__asWKWebView( - frame core.NSRect, - configuration WKWebViewConfigurationRef, -) ( - r0 WKWebView, -) { - ret := C.WKWebView_inst_initWithFrame_configuration_( +// GoBack navigates to the back item in the back-forward list. +// +// See https://developer.apple.com/documentation/webkit/wkwebview/1414952-goback?language=objc for details. +func (x gen_WKWebView) GoBack() WKNavigation { + ret := C.WKWebView_inst_GoBack( unsafe.Pointer(x.Pointer()), - *(*C.NSRect)(unsafe.Pointer(&frame)), - objc.RefPointer(configuration), ) - r0 = WKWebView_fromPointer(ret) - return + + return WKNavigation_FromPointer(ret) } -func (x gen_WKWebView) LoadRequest_( - request core.NSURLRequestRef, -) ( - r0 WKNavigation, +// GoBack_ navigates to the back item in the back-forward list. +// +// See https://developer.apple.com/documentation/webkit/wkwebview/1414975-goback?language=objc for details. +func (x gen_WKWebView) GoBack_( + sender objc.Ref, ) { - ret := C.WKWebView_inst_loadRequest_( + C.WKWebView_inst_GoBack_( unsafe.Pointer(x.Pointer()), - objc.RefPointer(request), + objc.RefPointer(sender), ) - r0 = WKNavigation_fromPointer(ret) + return } -func (x gen_WKWebView) LoadHTMLString_baseURL_( - string core.NSStringRef, - baseURL core.NSURLRef, -) ( - r0 WKNavigation, -) { - ret := C.WKWebView_inst_loadHTMLString_baseURL_( +// GoForward navigates to the forward item in the back-forward list. +// +// See https://developer.apple.com/documentation/webkit/wkwebview/1414993-goforward?language=objc for details. +func (x gen_WKWebView) GoForward() WKNavigation { + ret := C.WKWebView_inst_GoForward( unsafe.Pointer(x.Pointer()), - objc.RefPointer(string), - objc.RefPointer(baseURL), ) - r0 = WKNavigation_fromPointer(ret) - return + + return WKNavigation_FromPointer(ret) } -func (x gen_WKWebView) LoadFileURL_allowingReadAccessToURL_( - URL core.NSURLRef, - readAccessURL core.NSURLRef, -) ( - r0 WKNavigation, +// GoForward_ navigates to the forward item in the back-forward list. +// +// See https://developer.apple.com/documentation/webkit/wkwebview/1414960-goforward?language=objc for details. +func (x gen_WKWebView) GoForward_( + sender objc.Ref, ) { - ret := C.WKWebView_inst_loadFileURL_allowingReadAccessToURL_( + C.WKWebView_inst_GoForward_( unsafe.Pointer(x.Pointer()), - objc.RefPointer(URL), - objc.RefPointer(readAccessURL), + objc.RefPointer(sender), ) - r0 = WKNavigation_fromPointer(ret) + return } -func (x gen_WKWebView) LoadData_MIMEType_characterEncodingName_baseURL_( +// InitWithFrameConfiguration creates a web view and initializes it with the specified frame and configuration data. +// +// See https://developer.apple.com/documentation/webkit/wkwebview/1414998-initwithframe?language=objc for details. +func (x gen_WKWebView) InitWithFrameConfiguration_AsWKWebView( + frame core.NSRect, + configuration WKWebViewConfigurationRef, +) WKWebView { + ret := C.WKWebView_inst_InitWithFrameConfiguration( + unsafe.Pointer(x.Pointer()), + *(*C.NSRect)(unsafe.Pointer(&frame)), + objc.RefPointer(configuration), + ) + + return WKWebView_FromPointer(ret) +} + +// LoadDataMIMETypeCharacterEncodingNameBaseURL loads the content of the specified data object and navigates to it. +// +// See https://developer.apple.com/documentation/webkit/wkwebview/1415011-loaddata?language=objc for details. +func (x gen_WKWebView) LoadDataMIMETypeCharacterEncodingNameBaseURL( data core.NSDataRef, MIMEType core.NSStringRef, characterEncodingName core.NSStringRef, baseURL core.NSURLRef, -) ( - r0 WKNavigation, -) { - ret := C.WKWebView_inst_loadData_MIMEType_characterEncodingName_baseURL_( +) WKNavigation { + ret := C.WKWebView_inst_LoadDataMIMETypeCharacterEncodingNameBaseURL( unsafe.Pointer(x.Pointer()), objc.RefPointer(data), objc.RefPointer(MIMEType), objc.RefPointer(characterEncodingName), objc.RefPointer(baseURL), ) - r0 = WKNavigation_fromPointer(ret) - return + + return WKNavigation_FromPointer(ret) } -func (x gen_WKWebView) Reload() ( - r0 WKNavigation, -) { - ret := C.WKWebView_inst_reload( +// LoadFileRequestAllowingReadAccessToURL +// +// See https://developer.apple.com/documentation/webkit/wkwebview/3752237-loadfilerequest?language=objc for details. +func (x gen_WKWebView) LoadFileRequestAllowingReadAccessToURL( + request core.NSURLRequestRef, + readAccessURL core.NSURLRef, +) WKNavigation { + ret := C.WKWebView_inst_LoadFileRequestAllowingReadAccessToURL( unsafe.Pointer(x.Pointer()), + objc.RefPointer(request), + objc.RefPointer(readAccessURL), ) - r0 = WKNavigation_fromPointer(ret) - return + + return WKNavigation_FromPointer(ret) } -func (x gen_WKWebView) Reload_( - sender objc.Ref, -) { - C.WKWebView_inst_reload_( +// LoadFileURLAllowingReadAccessToURL loads the web content from the specified file and navigates to it. +// +// See https://developer.apple.com/documentation/webkit/wkwebview/1414973-loadfileurl?language=objc for details. +func (x gen_WKWebView) LoadFileURLAllowingReadAccessToURL( + URL core.NSURLRef, + readAccessURL core.NSURLRef, +) WKNavigation { + ret := C.WKWebView_inst_LoadFileURLAllowingReadAccessToURL( unsafe.Pointer(x.Pointer()), - objc.RefPointer(sender), + objc.RefPointer(URL), + objc.RefPointer(readAccessURL), ) - return + + return WKNavigation_FromPointer(ret) } -func (x gen_WKWebView) ReloadFromOrigin() ( - r0 WKNavigation, -) { - ret := C.WKWebView_inst_reloadFromOrigin( +// LoadHTMLStringBaseURL loads the contents of the specified html string and navigates to it. +// +// See https://developer.apple.com/documentation/webkit/wkwebview/1415004-loadhtmlstring?language=objc for details. +func (x gen_WKWebView) LoadHTMLStringBaseURL( + string core.NSStringRef, + baseURL core.NSURLRef, +) WKNavigation { + ret := C.WKWebView_inst_LoadHTMLStringBaseURL( unsafe.Pointer(x.Pointer()), + objc.RefPointer(string), + objc.RefPointer(baseURL), ) - r0 = WKNavigation_fromPointer(ret) - return + + return WKNavigation_FromPointer(ret) } -func (x gen_WKWebView) ReloadFromOrigin_( - sender objc.Ref, -) { - C.WKWebView_inst_reloadFromOrigin_( +// LoadRequest loads the web content referenced by the specified url request object and navigates to it. +// +// See https://developer.apple.com/documentation/webkit/wkwebview/1414954-loadrequest?language=objc for details. +func (x gen_WKWebView) LoadRequest( + request core.NSURLRequestRef, +) WKNavigation { + ret := C.WKWebView_inst_LoadRequest( unsafe.Pointer(x.Pointer()), - objc.RefPointer(sender), + objc.RefPointer(request), ) - return + + return WKNavigation_FromPointer(ret) } -func (x gen_WKWebView) StopLoading() { - C.WKWebView_inst_stopLoading( +// LoadSimulatedRequestResponseHTMLString +// +// See https://developer.apple.com/documentation/webkit/wkwebview/3763095-loadsimulatedrequest?language=objc for details. +func (x gen_WKWebView) LoadSimulatedRequestResponseHTMLString( + request core.NSURLRequestRef, + string core.NSStringRef, +) WKNavigation { + ret := C.WKWebView_inst_LoadSimulatedRequestResponseHTMLString( unsafe.Pointer(x.Pointer()), + objc.RefPointer(request), + objc.RefPointer(string), ) - return + + return WKNavigation_FromPointer(ret) } -func (x gen_WKWebView) StopLoading_( - sender objc.Ref, -) { - C.WKWebView_inst_stopLoading_( +// Reload reloads the current webpage. +// +// See https://developer.apple.com/documentation/webkit/wkwebview/1414969-reload?language=objc for details. +func (x gen_WKWebView) Reload() WKNavigation { + ret := C.WKWebView_inst_Reload( unsafe.Pointer(x.Pointer()), - objc.RefPointer(sender), ) - return + + return WKNavigation_FromPointer(ret) } -func (x gen_WKWebView) GoBack_( +// Reload_ reloads the current webpage. +// +// See https://developer.apple.com/documentation/webkit/wkwebview/1414987-reload?language=objc for details. +func (x gen_WKWebView) Reload_( sender objc.Ref, ) { - C.WKWebView_inst_goBack_( + C.WKWebView_inst_Reload_( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) + return } -func (x gen_WKWebView) GoBack() ( - r0 WKNavigation, -) { - ret := C.WKWebView_inst_goBack( +// ReloadFromOrigin reloads the current webpage, and performs end-to-end revalidation of the content using cache-validating conditionals, if possible. +// +// See https://developer.apple.com/documentation/webkit/wkwebview/1414956-reloadfromorigin?language=objc for details. +func (x gen_WKWebView) ReloadFromOrigin() WKNavigation { + ret := C.WKWebView_inst_ReloadFromOrigin( unsafe.Pointer(x.Pointer()), ) - r0 = WKNavigation_fromPointer(ret) - return + + return WKNavigation_FromPointer(ret) } -func (x gen_WKWebView) GoForward_( +// ReloadFromOrigin_ reloads the current webpage, and performs end-to-end revalidation of the content using cache-validating conditionals, if possible. +// +// See https://developer.apple.com/documentation/webkit/wkwebview/1414989-reloadfromorigin?language=objc for details. +func (x gen_WKWebView) ReloadFromOrigin_( sender objc.Ref, ) { - C.WKWebView_inst_goForward_( + C.WKWebView_inst_ReloadFromOrigin_( unsafe.Pointer(x.Pointer()), objc.RefPointer(sender), ) - return -} -func (x gen_WKWebView) GoForward() ( - r0 WKNavigation, -) { - ret := C.WKWebView_inst_goForward( - unsafe.Pointer(x.Pointer()), - ) - r0 = WKNavigation_fromPointer(ret) return } -func (x gen_WKWebView) LoadFileRequest_allowingReadAccessToURL_( - request core.NSURLRequestRef, - readAccessURL core.NSURLRef, -) ( - r0 WKNavigation, -) { - ret := C.WKWebView_inst_loadFileRequest_allowingReadAccessToURL_( +// StopLoading stops loading all resources on the current page. +// +// See https://developer.apple.com/documentation/webkit/wkwebview/1414981-stoploading?language=objc for details. +func (x gen_WKWebView) StopLoading() { + C.WKWebView_inst_StopLoading( unsafe.Pointer(x.Pointer()), - objc.RefPointer(request), - objc.RefPointer(readAccessURL), ) - r0 = WKNavigation_fromPointer(ret) + return } -func (x gen_WKWebView) LoadSimulatedRequest_responseHTMLString_( - request core.NSURLRequestRef, - string core.NSStringRef, -) ( - r0 WKNavigation, +// StopLoading_ stops loading all resources on the current page. +// +// See https://developer.apple.com/documentation/webkit/wkwebview/1415013-stoploading?language=objc for details. +func (x gen_WKWebView) StopLoading_( + sender objc.Ref, ) { - ret := C.WKWebView_inst_loadSimulatedRequest_responseHTMLString_( + C.WKWebView_inst_StopLoading_( unsafe.Pointer(x.Pointer()), - objc.RefPointer(request), - objc.RefPointer(string), + objc.RefPointer(sender), ) - r0 = WKNavigation_fromPointer(ret) + return } -func (x gen_WKWebView) Init_asWKWebView() ( - r0 WKWebView, -) { - ret := C.WKWebView_inst_init( +// Init +// +// See for details. +func (x gen_WKWebView) Init_AsWKWebView() WKWebView { + ret := C.WKWebView_inst_Init( unsafe.Pointer(x.Pointer()), ) - r0 = WKWebView_fromPointer(ret) - return + + return WKWebView_FromPointer(ret) } -func (x gen_WKWebView) Configuration() ( - r0 WKWebViewConfiguration, -) { - ret := C.WKWebView_inst_configuration( +// Configuration returns the object that contains the configuration details for the web view. +// +// See https://developer.apple.com/documentation/webkit/wkwebview/1414979-configuration?language=objc for details. +func (x gen_WKWebView) Configuration() WKWebViewConfiguration { + ret := C.WKWebView_inst_Configuration( unsafe.Pointer(x.Pointer()), ) - r0 = WKWebViewConfiguration_fromPointer(ret) - return + + return WKWebViewConfiguration_FromPointer(ret) } -func (x gen_WKWebView) UIDelegate() ( - r0 objc.Object, -) { +// UIDelegate returns the object you use to integrate custom user interface elements, such as contextual menus or panels, into web view interactions. +// +// See https://developer.apple.com/documentation/webkit/wkwebview/1415009-uidelegate?language=objc for details. +func (x gen_WKWebView) UIDelegate() objc.Object { ret := C.WKWebView_inst_UIDelegate( unsafe.Pointer(x.Pointer()), ) - r0 = objc.Object_fromPointer(ret) - return + + return objc.Object_FromPointer(ret) } -func (x gen_WKWebView) SetUIDelegate_( +// SetUIDelegate returns the object you use to integrate custom user interface elements, such as contextual menus or panels, into web view interactions. +// +// See https://developer.apple.com/documentation/webkit/wkwebview/1415009-uidelegate?language=objc for details. +func (x gen_WKWebView) SetUIDelegate( value objc.Ref, ) { - C.WKWebView_inst_setUIDelegate_( + C.WKWebView_inst_SetUIDelegate( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_WKWebView) NavigationDelegate() ( - r0 objc.Object, -) { - ret := C.WKWebView_inst_navigationDelegate( +// NavigationDelegate returns the object you use to manage navigation behavior for the web view. +// +// See https://developer.apple.com/documentation/webkit/wkwebview/1414971-navigationdelegate?language=objc for details. +func (x gen_WKWebView) NavigationDelegate() objc.Object { + ret := C.WKWebView_inst_NavigationDelegate( unsafe.Pointer(x.Pointer()), ) - r0 = objc.Object_fromPointer(ret) - return + + return objc.Object_FromPointer(ret) } -func (x gen_WKWebView) SetNavigationDelegate_( +// SetNavigationDelegate returns the object you use to manage navigation behavior for the web view. +// +// See https://developer.apple.com/documentation/webkit/wkwebview/1414971-navigationdelegate?language=objc for details. +func (x gen_WKWebView) SetNavigationDelegate( value objc.Ref, ) { - C.WKWebView_inst_setNavigationDelegate_( + C.WKWebView_inst_SetNavigationDelegate( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_WKWebView) IsLoading() ( - r0 bool, -) { - ret := C.WKWebView_inst_isLoading( +// IsLoading returns a boolean value that indicates whether the view is currently loading content. +// +// See https://developer.apple.com/documentation/webkit/wkwebview/1414964-loading?language=objc for details. +func (x gen_WKWebView) IsLoading() bool { + ret := C.WKWebView_inst_IsLoading( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_WKWebView) Title() ( - r0 core.NSString, -) { - ret := C.WKWebView_inst_title( +// Title returns the page title. +// +// See https://developer.apple.com/documentation/webkit/wkwebview/1415015-title?language=objc for details. +func (x gen_WKWebView) Title() core.NSString { + ret := C.WKWebView_inst_Title( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_WKWebView) URL() ( - r0 core.NSURL, -) { +// URL returns the url for the current webpage. +// +// See https://developer.apple.com/documentation/webkit/wkwebview/1415005-url?language=objc for details. +func (x gen_WKWebView) URL() core.NSURL { ret := C.WKWebView_inst_URL( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSURL_fromPointer(ret) - return + + return core.NSURL_FromPointer(ret) } -func (x gen_WKWebView) MediaType() ( - r0 core.NSString, -) { - ret := C.WKWebView_inst_mediaType( +// MediaType returns the media type for the contents of the web view. +// +// See https://developer.apple.com/documentation/webkit/wkwebview/3516410-mediatype?language=objc for details. +func (x gen_WKWebView) MediaType() core.NSString { + ret := C.WKWebView_inst_MediaType( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_WKWebView) SetMediaType_( +// SetMediaType returns the media type for the contents of the web view. +// +// See https://developer.apple.com/documentation/webkit/wkwebview/3516410-mediatype?language=objc for details. +func (x gen_WKWebView) SetMediaType( value core.NSStringRef, ) { - C.WKWebView_inst_setMediaType_( + C.WKWebView_inst_SetMediaType( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_WKWebView) CustomUserAgent() ( - r0 core.NSString, -) { - ret := C.WKWebView_inst_customUserAgent( +// CustomUserAgent returns the custom user agent string. +// +// See https://developer.apple.com/documentation/webkit/wkwebview/1414950-customuseragent?language=objc for details. +func (x gen_WKWebView) CustomUserAgent() core.NSString { + ret := C.WKWebView_inst_CustomUserAgent( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_WKWebView) SetCustomUserAgent_( +// SetCustomUserAgent returns the custom user agent string. +// +// See https://developer.apple.com/documentation/webkit/wkwebview/1414950-customuseragent?language=objc for details. +func (x gen_WKWebView) SetCustomUserAgent( value core.NSStringRef, ) { - C.WKWebView_inst_setCustomUserAgent_( + C.WKWebView_inst_SetCustomUserAgent( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_WKWebView) HasOnlySecureContent() ( - r0 bool, -) { - ret := C.WKWebView_inst_hasOnlySecureContent( +// HasOnlySecureContent returns a boolean value that indicates whether the web view loaded all resources on the page through securely encrypted connections. +// +// See https://developer.apple.com/documentation/webkit/wkwebview/1415002-hasonlysecurecontent?language=objc for details. +func (x gen_WKWebView) HasOnlySecureContent() bool { + ret := C.WKWebView_inst_HasOnlySecureContent( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_WKWebView) AllowsMagnification() ( - r0 bool, -) { - ret := C.WKWebView_inst_allowsMagnification( +// AllowsMagnification returns a boolean value that indicates whether magnify gestures change the web view’s magnification. +// +// See https://developer.apple.com/documentation/webkit/wkwebview/1414983-allowsmagnification?language=objc for details. +func (x gen_WKWebView) AllowsMagnification() bool { + ret := C.WKWebView_inst_AllowsMagnification( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_WKWebView) SetAllowsMagnification_( +// SetAllowsMagnification returns a boolean value that indicates whether magnify gestures change the web view’s magnification. +// +// See https://developer.apple.com/documentation/webkit/wkwebview/1414983-allowsmagnification?language=objc for details. +func (x gen_WKWebView) SetAllowsMagnification( value bool, ) { - C.WKWebView_inst_setAllowsMagnification_( + C.WKWebView_inst_SetAllowsMagnification( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_WKWebView) Magnification() ( - r0 core.CGFloat, -) { - ret := C.WKWebView_inst_magnification( +// Magnification returns the factor by which the page content is currently scaled. +// +// See https://developer.apple.com/documentation/webkit/wkwebview/1414985-magnification?language=objc for details. +func (x gen_WKWebView) Magnification() core.CGFloat { + ret := C.WKWebView_inst_Magnification( unsafe.Pointer(x.Pointer()), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } -func (x gen_WKWebView) SetMagnification_( +// SetMagnification returns the factor by which the page content is currently scaled. +// +// See https://developer.apple.com/documentation/webkit/wkwebview/1414985-magnification?language=objc for details. +func (x gen_WKWebView) SetMagnification( value core.CGFloat, ) { - C.WKWebView_inst_setMagnification_( + C.WKWebView_inst_SetMagnification( unsafe.Pointer(x.Pointer()), C.double(value), ) + return } -func (x gen_WKWebView) AllowsBackForwardNavigationGestures() ( - r0 bool, -) { - ret := C.WKWebView_inst_allowsBackForwardNavigationGestures( +// AllowsBackForwardNavigationGestures returns a boolean value that indicates whether horizontal swipe gestures trigger backward and forward page navigation. +// +// See https://developer.apple.com/documentation/webkit/wkwebview/1414995-allowsbackforwardnavigationgestu?language=objc for details. +func (x gen_WKWebView) AllowsBackForwardNavigationGestures() bool { + ret := C.WKWebView_inst_AllowsBackForwardNavigationGestures( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_WKWebView) SetAllowsBackForwardNavigationGestures_( +// SetAllowsBackForwardNavigationGestures returns a boolean value that indicates whether horizontal swipe gestures trigger backward and forward page navigation. +// +// See https://developer.apple.com/documentation/webkit/wkwebview/1414995-allowsbackforwardnavigationgestu?language=objc for details. +func (x gen_WKWebView) SetAllowsBackForwardNavigationGestures( value bool, ) { - C.WKWebView_inst_setAllowsBackForwardNavigationGestures_( + C.WKWebView_inst_SetAllowsBackForwardNavigationGestures( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_WKWebView) CanGoBack() ( - r0 bool, -) { - ret := C.WKWebView_inst_canGoBack( +// CanGoBack returns a boolean value that indicates whether there is a valid back item in the back-forward list. +// +// See https://developer.apple.com/documentation/webkit/wkwebview/1414966-cangoback?language=objc for details. +func (x gen_WKWebView) CanGoBack() bool { + ret := C.WKWebView_inst_CanGoBack( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_WKWebView) CanGoForward() ( - r0 bool, -) { - ret := C.WKWebView_inst_canGoForward( +// CanGoForward returns a boolean value that indicates whether there is a valid forward item in the back-forward list. +// +// See https://developer.apple.com/documentation/webkit/wkwebview/1414962-cangoforward?language=objc for details. +func (x gen_WKWebView) CanGoForward() bool { + ret := C.WKWebView_inst_CanGoForward( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_WKWebView) AllowsLinkPreview() ( - r0 bool, -) { - ret := C.WKWebView_inst_allowsLinkPreview( +// AllowsLinkPreview returns a boolean value that determines whether pressing a link displays a preview of the destination for the link. +// +// See https://developer.apple.com/documentation/webkit/wkwebview/1415000-allowslinkpreview?language=objc for details. +func (x gen_WKWebView) AllowsLinkPreview() bool { + ret := C.WKWebView_inst_AllowsLinkPreview( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_WKWebView) SetAllowsLinkPreview_( +// SetAllowsLinkPreview returns a boolean value that determines whether pressing a link displays a preview of the destination for the link. +// +// See https://developer.apple.com/documentation/webkit/wkwebview/1415000-allowslinkpreview?language=objc for details. +func (x gen_WKWebView) SetAllowsLinkPreview( value bool, ) { - C.WKWebView_inst_setAllowsLinkPreview_( + C.WKWebView_inst_SetAllowsLinkPreview( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_WKWebView) InteractionState() ( - r0 objc.Object, -) { - ret := C.WKWebView_inst_interactionState( +// InteractionState +// +// See https://developer.apple.com/documentation/webkit/wkwebview/3752236-interactionstate?language=objc for details. +func (x gen_WKWebView) InteractionState() objc.Object { + ret := C.WKWebView_inst_InteractionState( unsafe.Pointer(x.Pointer()), ) - r0 = objc.Object_fromPointer(ret) - return + + return objc.Object_FromPointer(ret) } -func (x gen_WKWebView) SetInteractionState_( +// SetInteractionState +// +// See https://developer.apple.com/documentation/webkit/wkwebview/3752236-interactionstate?language=objc for details. +func (x gen_WKWebView) SetInteractionState( value objc.Ref, ) { - C.WKWebView_inst_setInteractionState_( + C.WKWebView_inst_SetInteractionState( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } type WKWebViewConfigurationRef interface { Pointer() uintptr - Init_asWKWebViewConfiguration() WKWebViewConfiguration + Init_AsWKWebViewConfiguration() WKWebViewConfiguration } type gen_WKWebViewConfiguration struct { objc.Object } -func WKWebViewConfiguration_fromPointer(ptr unsafe.Pointer) WKWebViewConfiguration { +func WKWebViewConfiguration_FromPointer(ptr unsafe.Pointer) WKWebViewConfiguration { return WKWebViewConfiguration{gen_WKWebViewConfiguration{ - objc.Object_fromPointer(ptr), + objc.Object_FromPointer(ptr), }} } -func WKWebViewConfiguration_fromRef(ref objc.Ref) WKWebViewConfiguration { - return WKWebViewConfiguration_fromPointer(unsafe.Pointer(ref.Pointer())) +func WKWebViewConfiguration_FromRef(ref objc.Ref) WKWebViewConfiguration { + return WKWebViewConfiguration_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_WKWebViewConfiguration) SetURLSchemeHandler_forURLScheme_( +// SetURLSchemeHandlerForURLScheme registers an object to load resources associated with the specified url scheme. +// +// See https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/2875766-seturlschemehandler?language=objc for details. +func (x gen_WKWebViewConfiguration) SetURLSchemeHandlerForURLScheme( urlSchemeHandler objc.Ref, urlScheme core.NSStringRef, ) { - C.WKWebViewConfiguration_inst_setURLSchemeHandler_forURLScheme_( + C.WKWebViewConfiguration_inst_SetURLSchemeHandlerForURLScheme( unsafe.Pointer(x.Pointer()), objc.RefPointer(urlSchemeHandler), objc.RefPointer(urlScheme), ) + return } -func (x gen_WKWebViewConfiguration) UrlSchemeHandlerForURLScheme_( +// UrlSchemeHandlerForURLScheme returns the currently registered handler object for the specified url scheme. +// +// See https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/2875767-urlschemehandlerforurlscheme?language=objc for details. +func (x gen_WKWebViewConfiguration) UrlSchemeHandlerForURLScheme( urlScheme core.NSStringRef, -) ( - r0 objc.Object, -) { - ret := C.WKWebViewConfiguration_inst_urlSchemeHandlerForURLScheme_( +) objc.Object { + ret := C.WKWebViewConfiguration_inst_UrlSchemeHandlerForURLScheme( unsafe.Pointer(x.Pointer()), objc.RefPointer(urlScheme), ) - r0 = objc.Object_fromPointer(ret) - return + + return objc.Object_FromPointer(ret) } -func (x gen_WKWebViewConfiguration) Init_asWKWebViewConfiguration() ( - r0 WKWebViewConfiguration, -) { - ret := C.WKWebViewConfiguration_inst_init( +// Init +// +// See for details. +func (x gen_WKWebViewConfiguration) Init_AsWKWebViewConfiguration() WKWebViewConfiguration { + ret := C.WKWebViewConfiguration_inst_Init( unsafe.Pointer(x.Pointer()), ) - r0 = WKWebViewConfiguration_fromPointer(ret) - return + + return WKWebViewConfiguration_FromPointer(ret) } -func (x gen_WKWebViewConfiguration) ApplicationNameForUserAgent() ( - r0 core.NSString, -) { - ret := C.WKWebViewConfiguration_inst_applicationNameForUserAgent( +// ApplicationNameForUserAgent returns the app name that appears in the user agent string. +// +// See https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/1395665-applicationnameforuseragent?language=objc for details. +func (x gen_WKWebViewConfiguration) ApplicationNameForUserAgent() core.NSString { + ret := C.WKWebViewConfiguration_inst_ApplicationNameForUserAgent( unsafe.Pointer(x.Pointer()), ) - r0 = core.NSString_fromPointer(ret) - return + + return core.NSString_FromPointer(ret) } -func (x gen_WKWebViewConfiguration) SetApplicationNameForUserAgent_( +// SetApplicationNameForUserAgent returns the app name that appears in the user agent string. +// +// See https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/1395665-applicationnameforuseragent?language=objc for details. +func (x gen_WKWebViewConfiguration) SetApplicationNameForUserAgent( value core.NSStringRef, ) { - C.WKWebViewConfiguration_inst_setApplicationNameForUserAgent_( + C.WKWebViewConfiguration_inst_SetApplicationNameForUserAgent( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_WKWebViewConfiguration) LimitsNavigationsToAppBoundDomains() ( - r0 bool, -) { - ret := C.WKWebViewConfiguration_inst_limitsNavigationsToAppBoundDomains( +// LimitsNavigationsToAppBoundDomains returns a boolean value that indicates whether the web view limits navigation to pages within the app’s domain. +// +// See https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/3585117-limitsnavigationstoappbounddomai?language=objc for details. +func (x gen_WKWebViewConfiguration) LimitsNavigationsToAppBoundDomains() bool { + ret := C.WKWebViewConfiguration_inst_LimitsNavigationsToAppBoundDomains( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_WKWebViewConfiguration) SetLimitsNavigationsToAppBoundDomains_( +// SetLimitsNavigationsToAppBoundDomains returns a boolean value that indicates whether the web view limits navigation to pages within the app’s domain. +// +// See https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/3585117-limitsnavigationstoappbounddomai?language=objc for details. +func (x gen_WKWebViewConfiguration) SetLimitsNavigationsToAppBoundDomains( value bool, ) { - C.WKWebViewConfiguration_inst_setLimitsNavigationsToAppBoundDomains_( + C.WKWebViewConfiguration_inst_SetLimitsNavigationsToAppBoundDomains( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_WKWebViewConfiguration) Preferences() ( - r0 WKPreferences, -) { - ret := C.WKWebViewConfiguration_inst_preferences( +// Preferences returns the object that manages the preference-related settings for the web view. +// +// See https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/1395666-preferences?language=objc for details. +func (x gen_WKWebViewConfiguration) Preferences() WKPreferences { + ret := C.WKWebViewConfiguration_inst_Preferences( unsafe.Pointer(x.Pointer()), ) - r0 = WKPreferences_fromPointer(ret) - return + + return WKPreferences_FromPointer(ret) } -func (x gen_WKWebViewConfiguration) SetPreferences_( +// SetPreferences returns the object that manages the preference-related settings for the web view. +// +// See https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/1395666-preferences?language=objc for details. +func (x gen_WKWebViewConfiguration) SetPreferences( value WKPreferencesRef, ) { - C.WKWebViewConfiguration_inst_setPreferences_( + C.WKWebViewConfiguration_inst_SetPreferences( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), ) + return } -func (x gen_WKWebViewConfiguration) IgnoresViewportScaleLimits() ( - r0 bool, -) { - ret := C.WKWebViewConfiguration_inst_ignoresViewportScaleLimits( +// IgnoresViewportScaleLimits returns a boolean value that determines whether a web view allows scaling of the webpage. +// +// See https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/2274633-ignoresviewportscalelimits?language=objc for details. +func (x gen_WKWebViewConfiguration) IgnoresViewportScaleLimits() bool { + ret := C.WKWebViewConfiguration_inst_IgnoresViewportScaleLimits( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_WKWebViewConfiguration) SetIgnoresViewportScaleLimits_( +// SetIgnoresViewportScaleLimits returns a boolean value that determines whether a web view allows scaling of the webpage. +// +// See https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/2274633-ignoresviewportscalelimits?language=objc for details. +func (x gen_WKWebViewConfiguration) SetIgnoresViewportScaleLimits( value bool, ) { - C.WKWebViewConfiguration_inst_setIgnoresViewportScaleLimits_( + C.WKWebViewConfiguration_inst_SetIgnoresViewportScaleLimits( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_WKWebViewConfiguration) SuppressesIncrementalRendering() ( - r0 bool, -) { - ret := C.WKWebViewConfiguration_inst_suppressesIncrementalRendering( +// SuppressesIncrementalRendering returns a boolean value that indicates whether the web view suppresses content rendering until the content is fully loaded into memory. +// +// See https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/1395663-suppressesincrementalrendering?language=objc for details. +func (x gen_WKWebViewConfiguration) SuppressesIncrementalRendering() bool { + ret := C.WKWebViewConfiguration_inst_SuppressesIncrementalRendering( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_WKWebViewConfiguration) SetSuppressesIncrementalRendering_( +// SetSuppressesIncrementalRendering returns a boolean value that indicates whether the web view suppresses content rendering until the content is fully loaded into memory. +// +// See https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/1395663-suppressesincrementalrendering?language=objc for details. +func (x gen_WKWebViewConfiguration) SetSuppressesIncrementalRendering( value bool, ) { - C.WKWebViewConfiguration_inst_setSuppressesIncrementalRendering_( + C.WKWebViewConfiguration_inst_SetSuppressesIncrementalRendering( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_WKWebViewConfiguration) AllowsInlineMediaPlayback() ( - r0 bool, -) { - ret := C.WKWebViewConfiguration_inst_allowsInlineMediaPlayback( +// AllowsInlineMediaPlayback returns a boolean value that indicates whether html5 videos play inline or use the native full-screen controller. +// +// See https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/1614793-allowsinlinemediaplayback?language=objc for details. +func (x gen_WKWebViewConfiguration) AllowsInlineMediaPlayback() bool { + ret := C.WKWebViewConfiguration_inst_AllowsInlineMediaPlayback( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_WKWebViewConfiguration) SetAllowsInlineMediaPlayback_( +// SetAllowsInlineMediaPlayback returns a boolean value that indicates whether html5 videos play inline or use the native full-screen controller. +// +// See https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/1614793-allowsinlinemediaplayback?language=objc for details. +func (x gen_WKWebViewConfiguration) SetAllowsInlineMediaPlayback( value bool, ) { - C.WKWebViewConfiguration_inst_setAllowsInlineMediaPlayback_( + C.WKWebViewConfiguration_inst_SetAllowsInlineMediaPlayback( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_WKWebViewConfiguration) AllowsAirPlayForMediaPlayback() ( - r0 bool, -) { - ret := C.WKWebViewConfiguration_inst_allowsAirPlayForMediaPlayback( +// AllowsAirPlayForMediaPlayback returns a boolean value that indicates whether the web view allows media playback over airplay. +// +// See https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/1395673-allowsairplayformediaplayback?language=objc for details. +func (x gen_WKWebViewConfiguration) AllowsAirPlayForMediaPlayback() bool { + ret := C.WKWebViewConfiguration_inst_AllowsAirPlayForMediaPlayback( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_WKWebViewConfiguration) SetAllowsAirPlayForMediaPlayback_( +// SetAllowsAirPlayForMediaPlayback returns a boolean value that indicates whether the web view allows media playback over airplay. +// +// See https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/1395673-allowsairplayformediaplayback?language=objc for details. +func (x gen_WKWebViewConfiguration) SetAllowsAirPlayForMediaPlayback( value bool, ) { - C.WKWebViewConfiguration_inst_setAllowsAirPlayForMediaPlayback_( + C.WKWebViewConfiguration_inst_SetAllowsAirPlayForMediaPlayback( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_WKWebViewConfiguration) AllowsPictureInPictureMediaPlayback() ( - r0 bool, -) { - ret := C.WKWebViewConfiguration_inst_allowsPictureInPictureMediaPlayback( +// AllowsPictureInPictureMediaPlayback returns a boolean value that indicates whether html5 videos can play picture in picture. +// +// See https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/1614792-allowspictureinpicturemediaplayb?language=objc for details. +func (x gen_WKWebViewConfiguration) AllowsPictureInPictureMediaPlayback() bool { + ret := C.WKWebViewConfiguration_inst_AllowsPictureInPictureMediaPlayback( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_WKWebViewConfiguration) SetAllowsPictureInPictureMediaPlayback_( +// SetAllowsPictureInPictureMediaPlayback returns a boolean value that indicates whether html5 videos can play picture in picture. +// +// See https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/1614792-allowspictureinpicturemediaplayb?language=objc for details. +func (x gen_WKWebViewConfiguration) SetAllowsPictureInPictureMediaPlayback( value bool, ) { - C.WKWebViewConfiguration_inst_setAllowsPictureInPictureMediaPlayback_( + C.WKWebViewConfiguration_inst_SetAllowsPictureInPictureMediaPlayback( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_WKWebViewConfiguration) UpgradeKnownHostsToHTTPS() ( - r0 bool, -) { - ret := C.WKWebViewConfiguration_inst_upgradeKnownHostsToHTTPS( +// UpgradeKnownHostsToHTTPS +// +// See https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/3752243-upgradeknownhoststohttps?language=objc for details. +func (x gen_WKWebViewConfiguration) UpgradeKnownHostsToHTTPS() bool { + ret := C.WKWebViewConfiguration_inst_UpgradeKnownHostsToHTTPS( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_WKWebViewConfiguration) SetUpgradeKnownHostsToHTTPS_( +// SetUpgradeKnownHostsToHTTPS +// +// See https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/3752243-upgradeknownhoststohttps?language=objc for details. +func (x gen_WKWebViewConfiguration) SetUpgradeKnownHostsToHTTPS( value bool, ) { - C.WKWebViewConfiguration_inst_setUpgradeKnownHostsToHTTPS_( + C.WKWebViewConfiguration_inst_SetUpgradeKnownHostsToHTTPS( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } type WKPreferencesRef interface { Pointer() uintptr - Init_asWKPreferences() WKPreferences + Init_AsWKPreferences() WKPreferences } type gen_WKPreferences struct { objc.Object } -func WKPreferences_fromPointer(ptr unsafe.Pointer) WKPreferences { +func WKPreferences_FromPointer(ptr unsafe.Pointer) WKPreferences { return WKPreferences{gen_WKPreferences{ - objc.Object_fromPointer(ptr), + objc.Object_FromPointer(ptr), }} } -func WKPreferences_fromRef(ref objc.Ref) WKPreferences { - return WKPreferences_fromPointer(unsafe.Pointer(ref.Pointer())) +func WKPreferences_FromRef(ref objc.Ref) WKPreferences { + return WKPreferences_FromPointer(unsafe.Pointer(ref.Pointer())) } -func (x gen_WKPreferences) SetValue_forKey_( +// SetValueForKey +// +// See for details. +func (x gen_WKPreferences) SetValueForKey( value objc.Ref, key core.NSStringRef, ) { - C.WKPreferences_inst_setValue_forKey_( + C.WKPreferences_inst_SetValueForKey( unsafe.Pointer(x.Pointer()), objc.RefPointer(value), objc.RefPointer(key), ) + return } -func (x gen_WKPreferences) Init_asWKPreferences() ( - r0 WKPreferences, -) { - ret := C.WKPreferences_inst_init( +// Init +// +// See for details. +func (x gen_WKPreferences) Init_AsWKPreferences() WKPreferences { + ret := C.WKPreferences_inst_Init( unsafe.Pointer(x.Pointer()), ) - r0 = WKPreferences_fromPointer(ret) - return + + return WKPreferences_FromPointer(ret) } -func (x gen_WKPreferences) MinimumFontSize() ( - r0 core.CGFloat, -) { - ret := C.WKPreferences_inst_minimumFontSize( +// MinimumFontSize returns the minimum font size, in points. +// +// See https://developer.apple.com/documentation/webkit/wkpreferences/1537155-minimumfontsize?language=objc for details. +func (x gen_WKPreferences) MinimumFontSize() core.CGFloat { + ret := C.WKPreferences_inst_MinimumFontSize( unsafe.Pointer(x.Pointer()), ) - r0 = core.CGFloat(ret) - return + + return core.CGFloat(ret) } -func (x gen_WKPreferences) SetMinimumFontSize_( +// SetMinimumFontSize returns the minimum font size, in points. +// +// See https://developer.apple.com/documentation/webkit/wkpreferences/1537155-minimumfontsize?language=objc for details. +func (x gen_WKPreferences) SetMinimumFontSize( value core.CGFloat, ) { - C.WKPreferences_inst_setMinimumFontSize_( + C.WKPreferences_inst_SetMinimumFontSize( unsafe.Pointer(x.Pointer()), C.double(value), ) + return } -func (x gen_WKPreferences) TabFocusesLinks() ( - r0 bool, -) { - ret := C.WKPreferences_inst_tabFocusesLinks( +// TabFocusesLinks returns a boolean value that indicates whether pressing the tab key changes the focus to links and form controls. +// +// See https://developer.apple.com/documentation/webkit/wkpreferences/2818595-tabfocuseslinks?language=objc for details. +func (x gen_WKPreferences) TabFocusesLinks() bool { + ret := C.WKPreferences_inst_TabFocusesLinks( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_WKPreferences) SetTabFocusesLinks_( +// SetTabFocusesLinks returns a boolean value that indicates whether pressing the tab key changes the focus to links and form controls. +// +// See https://developer.apple.com/documentation/webkit/wkpreferences/2818595-tabfocuseslinks?language=objc for details. +func (x gen_WKPreferences) SetTabFocusesLinks( value bool, ) { - C.WKPreferences_inst_setTabFocusesLinks_( + C.WKPreferences_inst_SetTabFocusesLinks( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_WKPreferences) JavaScriptCanOpenWindowsAutomatically() ( - r0 bool, -) { - ret := C.WKPreferences_inst_javaScriptCanOpenWindowsAutomatically( +// JavaScriptCanOpenWindowsAutomatically returns a boolean value that indicates whether javascript can open windows without user interaction. +// +// See https://developer.apple.com/documentation/webkit/wkpreferences/1536573-javascriptcanopenwindowsautomati?language=objc for details. +func (x gen_WKPreferences) JavaScriptCanOpenWindowsAutomatically() bool { + ret := C.WKPreferences_inst_JavaScriptCanOpenWindowsAutomatically( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_WKPreferences) SetJavaScriptCanOpenWindowsAutomatically_( +// SetJavaScriptCanOpenWindowsAutomatically returns a boolean value that indicates whether javascript can open windows without user interaction. +// +// See https://developer.apple.com/documentation/webkit/wkpreferences/1536573-javascriptcanopenwindowsautomati?language=objc for details. +func (x gen_WKPreferences) SetJavaScriptCanOpenWindowsAutomatically( value bool, ) { - C.WKPreferences_inst_setJavaScriptCanOpenWindowsAutomatically_( + C.WKPreferences_inst_SetJavaScriptCanOpenWindowsAutomatically( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_WKPreferences) IsFraudulentWebsiteWarningEnabled() ( - r0 bool, -) { - ret := C.WKPreferences_inst_isFraudulentWebsiteWarningEnabled( +// IsFraudulentWebsiteWarningEnabled returns a boolean value that indicates whether the web view shows warnings for suspected fraudulent content, such as malware or phishing attemps. +// +// See https://developer.apple.com/documentation/webkit/wkpreferences/3335219-fraudulentwebsitewarningenabled?language=objc for details. +func (x gen_WKPreferences) IsFraudulentWebsiteWarningEnabled() bool { + ret := C.WKPreferences_inst_IsFraudulentWebsiteWarningEnabled( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_WKPreferences) SetFraudulentWebsiteWarningEnabled_( +// SetFraudulentWebsiteWarningEnabled returns a boolean value that indicates whether the web view shows warnings for suspected fraudulent content, such as malware or phishing attemps. +// +// See https://developer.apple.com/documentation/webkit/wkpreferences/3335219-fraudulentwebsitewarningenabled?language=objc for details. +func (x gen_WKPreferences) SetFraudulentWebsiteWarningEnabled( value bool, ) { - C.WKPreferences_inst_setFraudulentWebsiteWarningEnabled_( + C.WKPreferences_inst_SetFraudulentWebsiteWarningEnabled( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return } -func (x gen_WKPreferences) IsTextInteractionEnabled() ( - r0 bool, -) { - ret := C.WKPreferences_inst_isTextInteractionEnabled( +// IsTextInteractionEnabled +// +// See https://developer.apple.com/documentation/webkit/wkpreferences/3727362-textinteractionenabled?language=objc for details. +func (x gen_WKPreferences) IsTextInteractionEnabled() bool { + ret := C.WKPreferences_inst_IsTextInteractionEnabled( unsafe.Pointer(x.Pointer()), ) - r0 = convertObjCBoolToGo(ret) - return + + return convertObjCBoolToGo(ret) } -func (x gen_WKPreferences) SetTextInteractionEnabled_( +// SetTextInteractionEnabled +// +// See https://developer.apple.com/documentation/webkit/wkpreferences/3727362-textinteractionenabled?language=objc for details. +func (x gen_WKPreferences) SetTextInteractionEnabled( value bool, ) { - C.WKPreferences_inst_setTextInteractionEnabled_( + C.WKPreferences_inst_SetTextInteractionEnabled( unsafe.Pointer(x.Pointer()), convertToObjCBool(value), ) + return }