cocoa

package
Version: v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2021 License: MIT Imports: 5 Imported by: 22

Documentation

Index

Examples

Constants

View Source
const (
	NSApplicationActivationPolicyRegular    = 0
	NSApplicationActivationPolicyAccessory  = 1
	NSApplicationActivationPolicyProhibited = 2
)
View Source
const (
	NSControlStateValueMixed = -1
	NSControlStateValueOff   = 0
	NSControlStateValueOn    = 1

	NSNoImage       = 0
	NSImageOnly     = 1
	NSImageLeft     = 2
	NSImageRight    = 3
	NSImageBelow    = 4
	NSImageAbove    = 5
	NSImageOverlaps = 6
)
View Source
const (
	NSEventTypeLeftMouseDown      = 1
	NSEventTypeLeftMouseUp        = 2
	NSEventTypeRightMouseDown     = 3
	NSEventTypeRightMouseUp       = 4
	NSEventTypeMouseMoved         = 5
	NSEventTypeLeftMouseDragged   = 6
	NSEventTypeRightMouseDragged  = 7
	NSEventTypeMouseEntered       = 8
	NSEventTypeMouseExited        = 9
	NSEventTypeKeyDown            = 10
	NSEventTypeKeyUp              = 11
	NSEventTypeFlagsChanged       = 12
	NSEventTypeAppKitDefined      = 13
	NSEventTypeSystemDefined      = 14
	NSEventTypeApplicationDefined = 15
	NSEventTypePeriodic           = 16
	NSEventTypeCursorUpdate       = 17
	NSEventTypeRotate             = 18
	NSEventTypeBeginGesture       = 19
	NSEventTypeEndGesture         = 20
	NSEventTypeScrollWheel        = 22
	NSEventTypeTabletPoint        = 23
	NSEventTypeTabletProximity    = 24
	NSEventTypeOtherMouseDown     = 25
	NSEventTypeOtherMouseUp       = 26
	NSEventTypeOtherMouseDragged  = 27
	NSEventTypeGesture            = 29
	NSEventTypeMagnify            = 30
	NSEventTypeSwipe              = 31
	NSEventTypeSmartMagnify       = 32
	NSEventTypeQuickLook          = 33
	NSEventTypePressure           = 34
	NSEventTypeDirectTouch        = 37
	NSEventTypeChangeMode         = 38

	NSEventMaskLeftMouseDown      uint64 = 1 << NSEventTypeLeftMouseDown
	NSEventMaskLeftMouseUp        uint64 = 1 << NSEventTypeLeftMouseUp
	NSEventMaskRightMouseDown     uint64 = 1 << NSEventTypeRightMouseDown
	NSEventMaskRightMouseUp       uint64 = 1 << NSEventTypeRightMouseUp
	NSEventMaskMouseMoved         uint64 = 1 << NSEventTypeMouseMoved
	NSEventMaskLeftMouseDragged   uint64 = 1 << NSEventTypeLeftMouseDragged
	NSEventMaskRightMouseDragged  uint64 = 1 << NSEventTypeRightMouseDragged
	NSEventMaskMouseEntered       uint64 = 1 << NSEventTypeMouseEntered
	NSEventMaskMouseExited        uint64 = 1 << NSEventTypeMouseExited
	NSEventMaskKeyDown            uint64 = 1 << NSEventTypeKeyDown
	NSEventMaskKeyUp              uint64 = 1 << NSEventTypeKeyUp
	NSEventMaskFlagsChanged       uint64 = 1 << NSEventTypeFlagsChanged
	NSEventMaskAppKitDefined      uint64 = 1 << NSEventTypeAppKitDefined
	NSEventMaskSystemDefined      uint64 = 1 << NSEventTypeSystemDefined
	NSEventMaskApplicationDefined uint64 = 1 << NSEventTypeApplicationDefined
	NSEventMaskPeriodic           uint64 = 1 << NSEventTypePeriodic
	NSEventMaskCursorUpdate       uint64 = 1 << NSEventTypeCursorUpdate
	NSEventMaskRotate             uint64 = 1 << NSEventTypeRotate
	NSEventMaskBeginGesture       uint64 = 1 << NSEventTypeBeginGesture
	NSEventMaskEndGesture         uint64 = 1 << NSEventTypeEndGesture
	NSEventMaskScrollWheel        uint64 = 1 << NSEventTypeScrollWheel
	NSEventMaskTabletPoint        uint64 = 1 << NSEventTypeTabletPoint
	NSEventMaskTabletProximity    uint64 = 1 << NSEventTypeTabletProximity
	NSEventMaskOtherMouseDown     uint64 = 1 << NSEventTypeOtherMouseDown
	NSEventMaskOtherMouseUp       uint64 = 1 << NSEventTypeOtherMouseUp
	NSEventMaskOtherMouseDragged  uint64 = 1 << NSEventTypeOtherMouseDragged
	NSEventMaskGesture            uint64 = 1 << NSEventTypeGesture
	NSEventMaskMagnify            uint64 = 1 << NSEventTypeMagnify
	NSEventMaskSwipe              uint64 = 1 << NSEventTypeSwipe
	NSEventMaskSmartMagnify       uint64 = 1 << NSEventTypeSmartMagnify
	NSEventMaskQuickLook          uint64 = 1 << NSEventTypeQuickLook
	NSEventMaskPressure           uint64 = 1 << NSEventTypePressure
	NSEventMaskDirectTouch        uint64 = 1 << NSEventTypeDirectTouch
	NSEventMaskChangeMode         uint64 = 1 << NSEventTypeChangeMode

	NSEventMaskAny uint64 = 18446744073709551615
)
View Source
const (
	// NSPasteboardTypeURL holds URL data for one file or resource.
	NSPasteboardTypeURL = NSPasteboardType("public.url")
	// NSPasteboardTypeColor holds color data.
	NSPasteboardTypeColor = NSPasteboardType("com.apple.cocoa.pasteboard.color")
	// NSPasteboardTypeFileURL holds a file URL.
	NSPasteboardTypeFileURL = NSPasteboardType("public.file-url")
	// NSPasteboardTypeFont holds font and character information.
	NSPasteboardTypeFont = NSPasteboardType("com.apple.cocoa.pasteboard.character-formatting")
	// NSPasteboardTypeHTML holds type for HTML content.
	NSPasteboardTypeHTML = NSPasteboardType("public.html")
	// NSPasteboardTypeMultipleTextSelection holds multiple text selection.
	NSPasteboardTypeMultipleTextSelection = NSPasteboardType("com.apple.cocoa.pasteboard.multiple-text-selection")
	// NSPasteboardTypePDF holds PDF data.
	NSPasteboardTypePDF = NSPasteboardType("com.adobe.pdf")
	// NSPasteboardTypePNG holds PNG image data.
	NSPasteboardTypePNG = NSPasteboardType("public.png")
	// NSPasteboardTypeRTF holds rich Text Format (RTF) data.
	NSPasteboardTypeRTF = NSPasteboardType("public.rtf")
	// NSPasteboardTypeRTFD holds RTFD formatted file contents.
	NSPasteboardTypeRTFD = NSPasteboardType("com.apple.flat-rtfd")
	// NSPasteboardTypeRuler holds paragraph formatting information.
	NSPasteboardTypeRuler = NSPasteboardType("com.apple.cocoa.pasteboard.paragraph-formatting")
	// NSPasteboardTypeSound holds sound data.
	NSPasteboardTypeSound = NSPasteboardType("com.apple.cocoa.pasteboard.sound")
	// NSPasteboardTypeString holds string data.
	NSPasteboardTypeString = NSPasteboardType("public.utf8-plain-text")
	// NSPasteboardTypeTabularText holds tab-separated fields of text.
	NSPasteboardTypeTabularText = NSPasteboardType("public.utf8-tab-separated-values-text")
	// NSPasteboardTypeTextFinderOptions holds type for the Find panel metadata property list.
	NSPasteboardTypeTextFinderOptions = NSPasteboardType("com.apple.cocoa.pasteboard.find-panel-search-options")
	// NSPasteboardTypeTIFF holds tag Image File Format (TIFF) data.
	NSPasteboardTypeTIFF = NSPasteboardType("public.tiff")
)

check https://github.com/progrium/macdriver/wiki/How-to-pull-enum-constants for example on how to get these values from objc

View Source
const (
	NSPopoverBehaviorApplicationDefined = 0
	NSPopoverBehaviorTransient          = 1
	NSPopoverBehaviorSemitransient      = 2
)
View Source
const (
	NSVariableStatusItemLength = -1.0
	NSSquareStatusItemLength   = -2.0
)
View Source
const (
	NSVisualEffectBlendingModeBehindWindow = 0
	NSVisualEffectBlendingModeWithinWindow = 1
)
View Source
const (
	NSBorderlessWindowMask         = 0
	NSTitledWindowMask             = 1 << 0
	NSClosableWindowMask           = 1 << 1
	NSMiniaturizableWindowMask     = 1 << 2
	NSResizableWindowMask          = 1 << 3
	NSTexturedBackgroundWindowMask = 1 << 8
	NSWindowStyleMaskFullScreen    = 1 << 14

	NSFullSizeContentViewWindowMask = 32768

	NSWindowTitleVisible = 0
	NSWindowTitleHidden  = 1

	NSWindowAbove = 1
	NSWindowBelow = -1
	NSWindowOut   = 0

	NSBackingStoreRetained    NSBackingStoreType = 0
	NSBackingStoreNonretained NSBackingStoreType = 1
	NSBackingStoreBuffered    NSBackingStoreType = 2

	NSNormalWindowLevel      = C.NSNormalWindowLevel
	NSFloatingWindowLevel    = C.NSFloatingWindowLevel
	NSSubmenuWindowLevel     = C.NSSubmenuWindowLevel
	NSTornOffMenuWindowLevel = C.NSTornOffMenuWindowLevel
	NSMainMenuWindowLevel    = C.NSMainMenuWindowLevel
	NSStatusWindowLevel      = C.NSStatusWindowLevel
	NSModalPanelWindowLevel  = C.NSModalPanelWindowLevel
	NSPopUpMenuWindowLevel   = C.NSPopUpMenuWindowLevel
	NSScreenSaverWindowLevel = C.NSScreenSaverWindowLevel

	NSWindowCollectionBehaviorDefault                   = 0
	NSWindowCollectionBehaviorCanJoinAllSpaces          = 1 << 0
	NSWindowCollectionBehaviorMoveToActiveSpace         = 1 << 1
	NSWindowCollectionBehaviorManaged                   = 1 << 2
	NSWindowCollectionBehaviorTransient                 = 1 << 3
	NSWindowCollectionBehaviorStationary                = 1 << 4
	NSWindowCollectionBehaviorParticipatesInCycle       = 1 << 5
	NSWindowCollectionBehaviorIgnoresCycle              = 1 << 6
	NSWindowCollectionBehaviorFullScreenPrimary         = 1 << 7
	NSWindowCollectionBehaviorFullScreenAuxiliary       = 1 << 8
	NSWindowCollectionBehaviorFullScreenNone            = 1 << 9
	NSWindowCollectionBehaviorFullScreenAllowsTiling    = 1 << 11
	NSWindowCollectionBehaviorFullScreenDisallowsTiling = 1 << 12
)

Variables

View Source
var (
	DefaultDelegate      objc.Object
	DefaultDelegateClass objc.Class

	TerminateAfterWindowsClose = true
)

Functions

func NSApplication_detachDrawingThread_toTarget_withObject_ added in v0.2.0

func NSApplication_detachDrawingThread_toTarget_withObject_(
	selector objc.Selector,
	target objc.Ref,
	argument objc.Ref,
)

func NSBundle_URLForResource_withExtension_subdirectory_inBundleWithURL_ added in v0.2.0

func NSBundle_URLForResource_withExtension_subdirectory_inBundleWithURL_(
	name core.NSStringRef,
	ext core.NSStringRef,
	subpath core.NSStringRef,
	bundleURL core.NSURLRef,
) (
	r0 core.NSURL,
)

func NSBundle_URLsForResourcesWithExtension_subdirectory_inBundleWithURL_ added in v0.2.0

func NSBundle_URLsForResourcesWithExtension_subdirectory_inBundleWithURL_(
	ext core.NSStringRef,
	subpath core.NSStringRef,
	bundleURL core.NSURLRef,
) (
	r0 core.NSArray,
)

func NSBundle_allBundles added in v0.2.0

func NSBundle_allBundles() (
	r0 core.NSArray,
)

func NSBundle_allFrameworks added in v0.2.0

func NSBundle_allFrameworks() (
	r0 core.NSArray,
)

func NSBundle_pathForResource_ofType_inDirectory_ added in v0.2.0

func NSBundle_pathForResource_ofType_inDirectory_(
	name core.NSStringRef,
	ext core.NSStringRef,
	bundlePath core.NSStringRef,
) (
	r0 core.NSString,
)

func NSBundle_pathsForResourcesOfType_inDirectory_ added in v0.2.0

func NSBundle_pathsForResourcesOfType_inDirectory_(
	ext core.NSStringRef,
	bundlePath core.NSStringRef,
) (
	r0 core.NSArray,
)

func NSBundle_preferredLocalizationsFromArray_ added in v0.2.0

func NSBundle_preferredLocalizationsFromArray_(
	localizationsArray core.NSArrayRef,
) (
	r0 core.NSArray,
)

func NSBundle_preferredLocalizationsFromArray_forPreferences_ added in v0.2.0

func NSBundle_preferredLocalizationsFromArray_forPreferences_(
	localizationsArray core.NSArrayRef,
	preferencesArray core.NSArrayRef,
) (
	r0 core.NSArray,
)

func NSColor_ignoresAlpha added in v0.2.0

func NSColor_ignoresAlpha() (
	r0 bool,
)

func NSColor_setIgnoresAlpha_ added in v0.2.0

func NSColor_setIgnoresAlpha_(
	value bool,
)

func NSEvent_GlobalMonitorMatchingMask

func NSEvent_GlobalMonitorMatchingMask(mask uint64, ch chan NSEvent)

func NSEvent_mouseCoalescingEnabled added in v0.2.0

func NSEvent_mouseCoalescingEnabled() (
	r0 bool,
)

func NSEvent_mouseLocation added in v0.2.0

func NSEvent_mouseLocation() (
	r0 core.NSPoint,
)

func NSEvent_pressedMouseButtons added in v0.2.0

func NSEvent_pressedMouseButtons() (
	r0 core.NSUInteger,
)

func NSEvent_removeMonitor_ added in v0.2.0

func NSEvent_removeMonitor_(
	eventMonitor objc.Ref,
)

func NSEvent_setMouseCoalescingEnabled_ added in v0.2.0

func NSEvent_setMouseCoalescingEnabled_(
	value bool,
)

func NSEvent_stopPeriodicEvents added in v0.2.0

func NSEvent_stopPeriodicEvents()

func NSEvent_swipeTrackingFromScrollEventsEnabled added in v0.2.0

func NSEvent_swipeTrackingFromScrollEventsEnabled() (
	r0 bool,
)

func NSFont_labelFontSize added in v0.2.0

func NSFont_labelFontSize() (
	r0 core.CGFloat,
)

func NSFont_setUserFixedPitchFont_ added in v0.2.0

func NSFont_setUserFixedPitchFont_(
	font NSFontRef,
)

func NSFont_setUserFont_ added in v0.2.0

func NSFont_setUserFont_(
	font NSFontRef,
)

func NSFont_smallSystemFontSize added in v0.2.0

func NSFont_smallSystemFontSize() (
	r0 core.CGFloat,
)

func NSFont_systemFontSize added in v0.2.0

func NSFont_systemFontSize() (
	r0 core.CGFloat,
)

func NSImage_canInitWithPasteboard_ added in v0.2.0

func NSImage_canInitWithPasteboard_(
	pasteboard NSPasteboardRef,
) (
	r0 bool,
)

func NSImage_imageTypes added in v0.2.0

func NSImage_imageTypes() (
	r0 core.NSArray,
)

func NSImage_imageUnfilteredTypes added in v0.2.0

func NSImage_imageUnfilteredTypes() (
	r0 core.NSArray,
)

func NSMenuItem_setUsesUserKeyEquivalents_ added in v0.2.0

func NSMenuItem_setUsesUserKeyEquivalents_(
	value bool,
)

func NSMenuItem_usesUserKeyEquivalents added in v0.2.0

func NSMenuItem_usesUserKeyEquivalents() (
	r0 bool,
)

func NSMenu_menuBarVisible added in v0.2.0

func NSMenu_menuBarVisible() (
	r0 bool,
)

func NSMenu_popUpContextMenu_withEvent_forView_ added in v0.2.0

func NSMenu_popUpContextMenu_withEvent_forView_(
	menu NSMenuRef,
	event NSEventRef,
	view NSViewRef,
)

func NSMenu_popUpContextMenu_withEvent_forView_withFont_ added in v0.2.0

func NSMenu_popUpContextMenu_withEvent_forView_withFont_(
	menu NSMenuRef,
	event NSEventRef,
	view NSViewRef,
	font NSFontRef,
)

func NSMenu_setMenuBarVisible_ added in v0.2.0

func NSMenu_setMenuBarVisible_(
	visible bool,
)

func NSScreen_screens added in v0.2.0

func NSScreen_screens() (
	r0 core.NSArray,
)

func NSScreen_screensHaveSeparateSpaces added in v0.2.0

func NSScreen_screensHaveSeparateSpaces() (
	r0 bool,
)

func NSTextView_registerForServices added in v0.2.0

func NSTextView_registerForServices()

func NSTextView_stronglyReferencesTextStorage added in v0.2.0

func NSTextView_stronglyReferencesTextStorage() (
	r0 bool,
)

func NSView_compatibleWithResponsiveScrolling added in v0.2.0

func NSView_compatibleWithResponsiveScrolling() (
	r0 bool,
)

func NSView_requiresConstraintBasedLayout added in v0.2.0

func NSView_requiresConstraintBasedLayout() (
	r0 bool,
)

func NSWindow_allowsAutomaticWindowTabbing added in v0.2.0

func NSWindow_allowsAutomaticWindowTabbing() (
	r0 bool,
)

func NSWindow_contentRectForFrameRect_styleMask_ added in v0.2.0

func NSWindow_contentRectForFrameRect_styleMask_(
	fRect core.NSRect,
	style core.NSUInteger,
) (
	r0 core.NSRect,
)

func NSWindow_frameRectForContentRect_styleMask_ added in v0.2.0

func NSWindow_frameRectForContentRect_styleMask_(
	cRect core.NSRect,
	style core.NSUInteger,
) (
	r0 core.NSRect,
)

func NSWindow_minFrameWidthWithTitle_styleMask_ added in v0.2.0

func NSWindow_minFrameWidthWithTitle_styleMask_(
	title core.NSStringRef,
	style core.NSUInteger,
) (
	r0 core.CGFloat,
)

func NSWindow_setAllowsAutomaticWindowTabbing_ added in v0.2.0

func NSWindow_setAllowsAutomaticWindowTabbing_(
	value bool,
)

func NSWindow_windowNumberAtPoint_belowWindowWithWindowNumber_ added in v0.2.0

func NSWindow_windowNumberAtPoint_belowWindowWithWindowNumber_(
	point core.NSPoint,
	windowNumber core.NSInteger,
) (
	r0 core.NSInteger,
)

Types

type NSApplication

type NSApplication struct {
	// contains filtered or unexported fields
}

func NSApp

func NSApp() NSApplication

func NSApp_WithDidLaunch

func NSApp_WithDidLaunch(cb func(notification objc.Object)) NSApplication

func NSApplication_New

func NSApplication_New() NSApplication

func NSApplication_alloc added in v0.2.0

func NSApplication_alloc() (
	r0 NSApplication,
)

func NSApplication_fromPointer added in v0.2.0

func NSApplication_fromPointer(ptr unsafe.Pointer) NSApplication

func NSApplication_fromRef added in v0.2.0

func NSApplication_fromRef(ref objc.Ref) NSApplication

func NSApplication_sharedApplication added in v0.2.0

func NSApplication_sharedApplication() (
	r0 NSApplication,
)

func (NSApplication) ActivateContextHelpMode_ added in v0.2.0

func (x NSApplication) ActivateContextHelpMode_(
	sender objc.Ref,
)

func (NSApplication) ActivateIgnoringOtherApps

func (app NSApplication) ActivateIgnoringOtherApps(flag bool)

func (NSApplication) ActivateIgnoringOtherApps_ added in v0.2.0

func (x NSApplication) ActivateIgnoringOtherApps_(
	flag bool,
)

func (NSApplication) ActivationPolicy added in v0.2.0

func (x NSApplication) ActivationPolicy() (
	r0 core.NSInteger,
)

func (NSApplication) ApplicationIconImage added in v0.2.0

func (x NSApplication) ApplicationIconImage() (
	r0 NSImage,
)

func (NSApplication) CancelUserAttentionRequest_ added in v0.2.0

func (x NSApplication) CancelUserAttentionRequest_(
	request core.NSInteger,
)

func (NSApplication) CurrentEvent added in v0.2.0

func (x NSApplication) CurrentEvent() (
	r0 NSEvent,
)

func (NSApplication) Deactivate added in v0.2.0

func (x NSApplication) Deactivate()

func (NSApplication) Delegate

func (app NSApplication) Delegate() objc.Object

func (NSApplication) DisableRelaunchOnLogin added in v0.2.0

func (x NSApplication) DisableRelaunchOnLogin()

func (NSApplication) EnableRelaunchOnLogin added in v0.2.0

func (x NSApplication) EnableRelaunchOnLogin()

func (NSApplication) FinishLaunching added in v0.2.0

func (x NSApplication) FinishLaunching()

func (NSApplication) HelpMenu added in v0.2.0

func (x NSApplication) HelpMenu() (
	r0 NSMenu,
)

func (NSApplication) HideOtherApplications_ added in v0.2.0

func (x NSApplication) HideOtherApplications_(
	sender objc.Ref,
)

func (NSApplication) Init_asNSApplication added in v0.2.0

func (x NSApplication) Init_asNSApplication() (
	r0 NSApplication,
)

func (NSApplication) IsActive added in v0.2.0

func (x NSApplication) IsActive() (
	r0 bool,
)

func (NSApplication) IsFullKeyboardAccessEnabled added in v0.2.0

func (x NSApplication) IsFullKeyboardAccessEnabled() (
	r0 bool,
)

func (NSApplication) IsRegisteredForRemoteNotifications added in v0.2.0

func (x NSApplication) IsRegisteredForRemoteNotifications() (
	r0 bool,
)

func (NSApplication) IsRunning added in v0.2.0

func (x NSApplication) IsRunning() (
	r0 bool,
)

func (NSApplication) MainMenu

func (x NSApplication) MainMenu() (
	r0 NSMenu,
)

func (NSApplication) OrderedDocuments added in v0.2.0

func (x NSApplication) OrderedDocuments() (
	r0 core.NSArray,
)

func (NSApplication) OrderedWindows added in v0.2.0

func (x NSApplication) OrderedWindows() (
	r0 core.NSArray,
)

func (NSApplication) PostEvent_atStart_ added in v0.2.0

func (x NSApplication) PostEvent_atStart_(
	event NSEventRef,
	flag bool,
)

func (NSApplication) RegisterForRemoteNotifications added in v0.2.0

func (x NSApplication) RegisterForRemoteNotifications()

func (NSApplication) RegisterUserInterfaceItemSearchHandler_ added in v0.2.0

func (x NSApplication) RegisterUserInterfaceItemSearchHandler_(
	handler objc.Ref,
)

func (NSApplication) ReplyToApplicationShouldTerminate_ added in v0.2.0

func (x NSApplication) ReplyToApplicationShouldTerminate_(
	shouldTerminate bool,
)

func (NSApplication) Run

func (x NSApplication) Run()

func (NSApplication) SendAction_to_from_ added in v0.2.0

func (x NSApplication) SendAction_to_from_(
	action objc.Selector,
	target objc.Ref,
	sender objc.Ref,
) (
	r0 bool,
)

func (NSApplication) SendEvent_ added in v0.2.0

func (x NSApplication) SendEvent_(
	event NSEventRef,
)

func (NSApplication) ServicesProvider added in v0.2.0

func (x NSApplication) ServicesProvider() (
	r0 objc.Object,
)

func (NSApplication) SetActivationPolicy

func (app NSApplication) SetActivationPolicy(policy int)

func (NSApplication) SetActivationPolicy_ added in v0.2.0

func (x NSApplication) SetActivationPolicy_(
	activationPolicy core.NSInteger,
) (
	r0 bool,
)

func (NSApplication) SetApplicationIconImage_ added in v0.2.0

func (x NSApplication) SetApplicationIconImage_(
	value NSImageRef,
)

func (NSApplication) SetDelegate

func (app NSApplication) SetDelegate(delegate objc.Object)

func (NSApplication) SetDelegate_ added in v0.2.0

func (x NSApplication) SetDelegate_(
	value objc.Ref,
)

func (NSApplication) SetHelpMenu_ added in v0.2.0

func (x NSApplication) SetHelpMenu_(
	value NSMenuRef,
)

func (NSApplication) SetMainMenu

func (app NSApplication) SetMainMenu(menu NSMenu)

func (NSApplication) SetMainMenu_ added in v0.2.0

func (x NSApplication) SetMainMenu_(
	value NSMenuRef,
)

func (NSApplication) SetServicesProvider_ added in v0.2.0

func (x NSApplication) SetServicesProvider_(
	value objc.Ref,
)

func (NSApplication) ShowHelp_ added in v0.2.0

func (x NSApplication) ShowHelp_(
	sender objc.Ref,
)

func (NSApplication) Stop_ added in v0.2.0

func (x NSApplication) Stop_(
	sender objc.Ref,
)

func (NSApplication) TargetForAction_ added in v0.2.0

func (x NSApplication) TargetForAction_(
	action objc.Selector,
) (
	r0 objc.Object,
)

func (NSApplication) TargetForAction_to_from_ added in v0.2.0

func (x NSApplication) TargetForAction_to_from_(
	action objc.Selector,
	target objc.Ref,
	sender objc.Ref,
) (
	r0 objc.Object,
)

func (NSApplication) Terminate

func (app NSApplication) Terminate()

func (NSApplication) Terminate_ added in v0.2.0

func (x NSApplication) Terminate_(
	sender objc.Ref,
)

func (NSApplication) ToggleTouchBarCustomizationPalette_ added in v0.2.0

func (x NSApplication) ToggleTouchBarCustomizationPalette_(
	sender objc.Ref,
)

func (NSApplication) TryToPerform_with_ added in v0.2.0

func (x NSApplication) TryToPerform_with_(
	action objc.Selector,
	object objc.Ref,
) (
	r0 bool,
)

func (NSApplication) UnhideAllApplications_ added in v0.2.0

func (x NSApplication) UnhideAllApplications_(
	sender objc.Ref,
)

func (NSApplication) UnregisterForRemoteNotifications added in v0.2.0

func (x NSApplication) UnregisterForRemoteNotifications()

func (NSApplication) UnregisterUserInterfaceItemSearchHandler_ added in v0.2.0

func (x NSApplication) UnregisterUserInterfaceItemSearchHandler_(
	handler objc.Ref,
)

type NSApplicationRef added in v0.2.0

type NSApplicationRef interface {
	Pointer() uintptr
	Init_asNSApplication() NSApplication
}

type NSBackingStoreType

type NSBackingStoreType uintptr

type NSBundle

type NSBundle struct {
	// contains filtered or unexported fields
}

func NSBundle_Main

func NSBundle_Main() NSBundle

func NSBundle_alloc added in v0.2.0

func NSBundle_alloc() (
	r0 NSBundle,
)

func NSBundle_bundleWithIdentifier_ added in v0.2.0

func NSBundle_bundleWithIdentifier_(
	identifier core.NSStringRef,
) (
	r0 NSBundle,
)

func NSBundle_bundleWithPath_ added in v0.2.0

func NSBundle_bundleWithPath_(
	path core.NSStringRef,
) (
	r0 NSBundle,
)

func NSBundle_bundleWithURL_ added in v0.2.0

func NSBundle_bundleWithURL_(
	url core.NSURLRef,
) (
	r0 NSBundle,
)

func NSBundle_fromPointer added in v0.2.0

func NSBundle_fromPointer(ptr unsafe.Pointer) NSBundle

func NSBundle_fromRef added in v0.2.0

func NSBundle_fromRef(ref objc.Ref) NSBundle

func NSBundle_mainBundle added in v0.2.0

func NSBundle_mainBundle() (
	r0 NSBundle,
)

func (NSBundle) AppStoreReceiptURL added in v0.2.0

func (x NSBundle) AppStoreReceiptURL() (
	r0 core.NSURL,
)

func (NSBundle) BuiltInPlugInsPath added in v0.2.0

func (x NSBundle) BuiltInPlugInsPath() (
	r0 core.NSString,
)

func (NSBundle) BuiltInPlugInsURL added in v0.2.0

func (x NSBundle) BuiltInPlugInsURL() (
	r0 core.NSURL,
)

func (NSBundle) BundleIdentifier added in v0.2.0

func (x NSBundle) BundleIdentifier() (
	r0 core.NSString,
)

func (NSBundle) BundlePath added in v0.2.0

func (x NSBundle) BundlePath() (
	r0 core.NSString,
)

func (NSBundle) BundleURL added in v0.2.0

func (x NSBundle) BundleURL() (
	r0 core.NSURL,
)

func (NSBundle) DevelopmentLocalization added in v0.2.0

func (x NSBundle) DevelopmentLocalization() (
	r0 core.NSString,
)

func (NSBundle) ExecutableArchitectures added in v0.2.0

func (x NSBundle) ExecutableArchitectures() (
	r0 core.NSArray,
)

func (NSBundle) ExecutablePath added in v0.2.0

func (x NSBundle) ExecutablePath() (
	r0 core.NSString,
)

func (NSBundle) ExecutableURL added in v0.2.0

func (x NSBundle) ExecutableURL() (
	r0 core.NSURL,
)

func (NSBundle) InfoDictionary

func (x NSBundle) InfoDictionary() (
	r0 core.NSDictionary,
)

func (NSBundle) InitWithPath__asNSBundle added in v0.2.0

func (x NSBundle) InitWithPath__asNSBundle(
	path core.NSStringRef,
) (
	r0 NSBundle,
)

func (NSBundle) InitWithURL__asNSBundle added in v0.2.0

func (x NSBundle) InitWithURL__asNSBundle(
	url core.NSURLRef,
) (
	r0 NSBundle,
)

func (NSBundle) Init_asNSBundle added in v0.2.0

func (x NSBundle) Init_asNSBundle() (
	r0 NSBundle,
)

func (NSBundle) IsLoaded added in v0.2.0

func (x NSBundle) IsLoaded() (
	r0 bool,
)

func (NSBundle) Load added in v0.2.0

func (x NSBundle) Load() (
	r0 bool,
)

func (NSBundle) LoadNibNamed_owner_options_ added in v0.2.0

func (x NSBundle) LoadNibNamed_owner_options_(
	name core.NSStringRef,
	owner objc.Ref,
	options core.NSDictionaryRef,
) (
	r0 core.NSArray,
)

func (NSBundle) Localizations added in v0.2.0

func (x NSBundle) Localizations() (
	r0 core.NSArray,
)

func (NSBundle) LocalizedAttributedStringForKey_value_table_ added in v0.2.0

func (x NSBundle) LocalizedAttributedStringForKey_value_table_(
	key core.NSStringRef,
	value core.NSStringRef,
	tableName core.NSStringRef,
) (
	r0 core.NSAttributedString,
)

func (NSBundle) LocalizedInfoDictionary added in v0.2.0

func (x NSBundle) LocalizedInfoDictionary() (
	r0 core.NSDictionary,
)

func (NSBundle) LocalizedStringForKey_value_table_ added in v0.2.0

func (x NSBundle) LocalizedStringForKey_value_table_(
	key core.NSStringRef,
	value core.NSStringRef,
	tableName core.NSStringRef,
) (
	r0 core.NSString,
)

func (NSBundle) ObjectForInfoDictionaryKey_ added in v0.2.0

func (x NSBundle) ObjectForInfoDictionaryKey_(
	key core.NSStringRef,
) (
	r0 objc.Object,
)

func (NSBundle) PathForAuxiliaryExecutable_ added in v0.2.0

func (x NSBundle) PathForAuxiliaryExecutable_(
	executableName core.NSStringRef,
) (
	r0 core.NSString,
)

func (NSBundle) PathForResource_ofType_ added in v0.2.0

func (x NSBundle) PathForResource_ofType_(
	name core.NSStringRef,
	ext core.NSStringRef,
) (
	r0 core.NSString,
)

func (NSBundle) PathForResource_ofType_inDirectory_ added in v0.2.0

func (x NSBundle) PathForResource_ofType_inDirectory_(
	name core.NSStringRef,
	ext core.NSStringRef,
	subpath core.NSStringRef,
) (
	r0 core.NSString,
)

func (NSBundle) PathForResource_ofType_inDirectory_forLocalization_ added in v0.2.0

func (x NSBundle) PathForResource_ofType_inDirectory_forLocalization_(
	name core.NSStringRef,
	ext core.NSStringRef,
	subpath core.NSStringRef,
	localizationName core.NSStringRef,
) (
	r0 core.NSString,
)

func (NSBundle) PathsForResourcesOfType_inDirectory_ added in v0.2.0

func (x NSBundle) PathsForResourcesOfType_inDirectory_(
	ext core.NSStringRef,
	subpath core.NSStringRef,
) (
	r0 core.NSArray,
)

func (NSBundle) PathsForResourcesOfType_inDirectory_forLocalization_ added in v0.2.0

func (x NSBundle) PathsForResourcesOfType_inDirectory_forLocalization_(
	ext core.NSStringRef,
	subpath core.NSStringRef,
	localizationName core.NSStringRef,
) (
	r0 core.NSArray,
)

func (NSBundle) PreferredLocalizations added in v0.2.0

func (x NSBundle) PreferredLocalizations() (
	r0 core.NSArray,
)

func (NSBundle) PrivateFrameworksPath added in v0.2.0

func (x NSBundle) PrivateFrameworksPath() (
	r0 core.NSString,
)

func (NSBundle) PrivateFrameworksURL added in v0.2.0

func (x NSBundle) PrivateFrameworksURL() (
	r0 core.NSURL,
)

func (NSBundle) ResourcePath added in v0.2.0

func (x NSBundle) ResourcePath() (
	r0 core.NSString,
)

func (NSBundle) ResourceURL added in v0.2.0

func (x NSBundle) ResourceURL() (
	r0 core.NSURL,
)

func (NSBundle) SharedFrameworksPath added in v0.2.0

func (x NSBundle) SharedFrameworksPath() (
	r0 core.NSString,
)

func (NSBundle) SharedFrameworksURL added in v0.2.0

func (x NSBundle) SharedFrameworksURL() (
	r0 core.NSURL,
)

func (NSBundle) SharedSupportPath added in v0.2.0

func (x NSBundle) SharedSupportPath() (
	r0 core.NSString,
)

func (NSBundle) SharedSupportURL added in v0.2.0

func (x NSBundle) SharedSupportURL() (
	r0 core.NSURL,
)

func (NSBundle) URLForAuxiliaryExecutable_ added in v0.2.0

func (x NSBundle) URLForAuxiliaryExecutable_(
	executableName core.NSStringRef,
) (
	r0 core.NSURL,
)

func (NSBundle) URLForResource_withExtension_ added in v0.2.0

func (x NSBundle) URLForResource_withExtension_(
	name core.NSStringRef,
	ext core.NSStringRef,
) (
	r0 core.NSURL,
)

func (NSBundle) URLForResource_withExtension_subdirectory_ added in v0.2.0

func (x NSBundle) URLForResource_withExtension_subdirectory_(
	name core.NSStringRef,
	ext core.NSStringRef,
	subpath core.NSStringRef,
) (
	r0 core.NSURL,
)

func (NSBundle) URLForResource_withExtension_subdirectory_localization_ added in v0.2.0

func (x NSBundle) URLForResource_withExtension_subdirectory_localization_(
	name core.NSStringRef,
	ext core.NSStringRef,
	subpath core.NSStringRef,
	localizationName core.NSStringRef,
) (
	r0 core.NSURL,
)

func (NSBundle) URLsForResourcesWithExtension_subdirectory_ added in v0.2.0

func (x NSBundle) URLsForResourcesWithExtension_subdirectory_(
	ext core.NSStringRef,
	subpath core.NSStringRef,
) (
	r0 core.NSArray,
)

func (NSBundle) URLsForResourcesWithExtension_subdirectory_localization_ added in v0.2.0

func (x NSBundle) URLsForResourcesWithExtension_subdirectory_localization_(
	ext core.NSStringRef,
	subpath core.NSStringRef,
	localizationName core.NSStringRef,
) (
	r0 core.NSArray,
)

func (NSBundle) Unload added in v0.2.0

func (x NSBundle) Unload() (
	r0 bool,
)

type NSBundleRef added in v0.2.0

type NSBundleRef interface {
	Pointer() uintptr
	Init_asNSBundle() NSBundle
}

type NSButton added in v0.2.0

type NSButton struct {
	// contains filtered or unexported fields
}

func NSButton_alloc added in v0.2.0

func NSButton_alloc() (
	r0 NSButton,
)

func NSButton_buttonWithImage_target_action_ added in v0.2.0

func NSButton_buttonWithImage_target_action_(
	image NSImageRef,
	target objc.Ref,
	action objc.Selector,
) (
	r0 NSButton,
)

func NSButton_buttonWithTitle_image_target_action_ added in v0.2.0

func NSButton_buttonWithTitle_image_target_action_(
	title core.NSStringRef,
	image NSImageRef,
	target objc.Ref,
	action objc.Selector,
) (
	r0 NSButton,
)

func NSButton_buttonWithTitle_target_action_ added in v0.2.0

func NSButton_buttonWithTitle_target_action_(
	title core.NSStringRef,
	target objc.Ref,
	action objc.Selector,
) (
	r0 NSButton,
)

func NSButton_checkboxWithTitle_target_action_ added in v0.2.0

func NSButton_checkboxWithTitle_target_action_(
	title core.NSStringRef,
	target objc.Ref,
	action objc.Selector,
) (
	r0 NSButton,
)

func NSButton_fromPointer added in v0.2.0

func NSButton_fromPointer(ptr unsafe.Pointer) NSButton

func NSButton_fromRef added in v0.2.0

func NSButton_fromRef(ref objc.Ref) NSButton

func NSButton_radioButtonWithTitle_target_action_ added in v0.2.0

func NSButton_radioButtonWithTitle_target_action_(
	title core.NSStringRef,
	target objc.Ref,
	action objc.Selector,
) (
	r0 NSButton,
)

func (NSButton) AllowsMixedState added in v0.2.0

func (x NSButton) AllowsMixedState() (
	r0 bool,
)

func (NSButton) AlternateImage added in v0.2.0

func (x NSButton) AlternateImage() (
	r0 NSImage,
)

func (NSButton) AlternateTitle added in v0.2.0

func (x NSButton) AlternateTitle() (
	r0 core.NSString,
)

func (NSButton) AttributedAlternateTitle added in v0.2.0

func (x NSButton) AttributedAlternateTitle() (
	r0 core.NSAttributedString,
)

func (NSButton) AttributedTitle added in v0.2.0

func (x NSButton) AttributedTitle() (
	r0 core.NSAttributedString,
)

func (NSButton) BezelColor added in v0.2.0

func (x NSButton) BezelColor() (
	r0 NSColor,
)

func (NSButton) CompressWithPrioritizedCompressionOptions_ added in v0.2.0

func (x NSButton) CompressWithPrioritizedCompressionOptions_(
	prioritizedOptions core.NSArrayRef,
)

func (NSButton) ContentTintColor added in v0.2.0

func (x NSButton) ContentTintColor() (
	r0 NSColor,
)

func (NSButton) HasDestructiveAction added in v0.2.0

func (x NSButton) HasDestructiveAction() (
	r0 bool,
)

func (NSButton) Highlight_ added in v0.2.0

func (x NSButton) Highlight_(
	flag bool,
)

func (NSButton) Image added in v0.2.0

func (x NSButton) Image() (
	r0 NSImage,
)

func (NSButton) ImageHugsTitle added in v0.2.0

func (x NSButton) ImageHugsTitle() (
	r0 bool,
)

func (NSButton) Init_asNSButton added in v0.2.0

func (x NSButton) Init_asNSButton() (
	r0 NSButton,
)

func (NSButton) IsBordered added in v0.2.0

func (x NSButton) IsBordered() (
	r0 bool,
)

func (NSButton) IsSpringLoaded added in v0.2.0

func (x NSButton) IsSpringLoaded() (
	r0 bool,
)

func (NSButton) IsTransparent added in v0.2.0

func (x NSButton) IsTransparent() (
	r0 bool,
)

func (NSButton) KeyEquivalent added in v0.2.0

func (x NSButton) KeyEquivalent() (
	r0 core.NSString,
)

func (NSButton) MaxAcceleratorLevel added in v0.2.0

func (x NSButton) MaxAcceleratorLevel() (
	r0 core.NSInteger,
)

func (NSButton) MinimumSizeWithPrioritizedCompressionOptions_ added in v0.2.0

func (x NSButton) MinimumSizeWithPrioritizedCompressionOptions_(
	prioritizedOptions core.NSArrayRef,
) (
	r0 core.NSSize,
)

func (NSButton) PerformKeyEquivalent_ added in v0.2.0

func (x NSButton) PerformKeyEquivalent_(
	key NSEventRef,
) (
	r0 bool,
)

func (NSButton) SetAllowsMixedState_ added in v0.2.0

func (x NSButton) SetAllowsMixedState_(
	value bool,
)

func (NSButton) SetAlternateImage_ added in v0.2.0

func (x NSButton) SetAlternateImage_(
	value NSImageRef,
)

func (NSButton) SetAlternateTitle_ added in v0.2.0

func (x NSButton) SetAlternateTitle_(
	value core.NSStringRef,
)

func (NSButton) SetAttributedAlternateTitle_ added in v0.2.0

func (x NSButton) SetAttributedAlternateTitle_(
	value core.NSAttributedStringRef,
)

func (NSButton) SetAttributedTitle_ added in v0.2.0

func (x NSButton) SetAttributedTitle_(
	value core.NSAttributedStringRef,
)

func (NSButton) SetBezelColor_ added in v0.2.0

func (x NSButton) SetBezelColor_(
	value NSColorRef,
)

func (NSButton) SetBordered_ added in v0.2.0

func (x NSButton) SetBordered_(
	value bool,
)

func (NSButton) SetContentTintColor_ added in v0.2.0

func (x NSButton) SetContentTintColor_(
	value NSColorRef,
)

func (NSButton) SetHasDestructiveAction_ added in v0.2.0

func (x NSButton) SetHasDestructiveAction_(
	value bool,
)

func (NSButton) SetImageHugsTitle_ added in v0.2.0

func (x NSButton) SetImageHugsTitle_(
	value bool,
)

func (NSButton) SetImage_ added in v0.2.0

func (x NSButton) SetImage_(
	value NSImageRef,
)

func (NSButton) SetKeyEquivalent_ added in v0.2.0

func (x NSButton) SetKeyEquivalent_(
	value core.NSStringRef,
)

func (NSButton) SetMaxAcceleratorLevel_ added in v0.2.0

func (x NSButton) SetMaxAcceleratorLevel_(
	value core.NSInteger,
)

func (NSButton) SetNextState added in v0.2.0

func (x NSButton) SetNextState()

func (NSButton) SetShowsBorderOnlyWhileMouseInside_ added in v0.2.0

func (x NSButton) SetShowsBorderOnlyWhileMouseInside_(
	value bool,
)

func (NSButton) SetSpringLoaded_ added in v0.2.0

func (x NSButton) SetSpringLoaded_(
	value bool,
)

func (NSButton) SetState_ added in v0.2.0

func (x NSButton) SetState_(
	value core.NSInteger,
)

func (NSButton) SetTitle_ added in v0.2.0

func (x NSButton) SetTitle_(
	value core.NSStringRef,
)

func (NSButton) SetTransparent_ added in v0.2.0

func (x NSButton) SetTransparent_(
	value bool,
)

func (NSButton) ShowsBorderOnlyWhileMouseInside added in v0.2.0

func (x NSButton) ShowsBorderOnlyWhileMouseInside() (
	r0 bool,
)

func (NSButton) State added in v0.2.0

func (x NSButton) State() (
	r0 core.NSInteger,
)

func (NSButton) Title added in v0.2.0

func (x NSButton) Title() (
	r0 core.NSString,
)

type NSButtonRef added in v0.2.0

type NSButtonRef interface {
	Pointer() uintptr
	Init_asNSButton() NSButton
}

type NSColor

type NSColor struct {
	// contains filtered or unexported fields
}

func Color

func Color(r, g, b, a float64) NSColor

func NSColor_Clear

func NSColor_Clear() NSColor

func NSColor_Init

func NSColor_Init(r, g, b, a float64) NSColor

func NSColor_alloc added in v0.2.0

func NSColor_alloc() (
	r0 NSColor,
)

func NSColor_clearColor added in v0.2.0

func NSColor_clearColor() (
	r0 NSColor,
)

func NSColor_colorFromPasteboard_ added in v0.2.0

func NSColor_colorFromPasteboard_(
	pasteBoard NSPasteboardRef,
) (
	r0 NSColor,
)

func NSColor_colorWithRed_green_blue_alpha_ added in v0.2.0

func NSColor_colorWithRed_green_blue_alpha_(
	red core.CGFloat,
	green core.CGFloat,
	blue core.CGFloat,
	alpha core.CGFloat,
) (
	r0 NSColor,
)

func NSColor_fromPointer added in v0.2.0

func NSColor_fromPointer(ptr unsafe.Pointer) NSColor

func NSColor_fromRef added in v0.2.0

func NSColor_fromRef(ref objc.Ref) NSColor

func NSColor_systemCyanColor added in v0.2.0

func NSColor_systemCyanColor() (
	r0 NSColor,
)

func NSColor_systemMintColor added in v0.2.0

func NSColor_systemMintColor() (
	r0 NSColor,
)

func (NSColor) AlphaComponent added in v0.2.0

func (x NSColor) AlphaComponent() (
	r0 core.CGFloat,
)

func (NSColor) BlackComponent added in v0.2.0

func (x NSColor) BlackComponent() (
	r0 core.CGFloat,
)

func (NSColor) BlendedColorWithFraction_ofColor_ added in v0.2.0

func (x NSColor) BlendedColorWithFraction_ofColor_(
	fraction core.CGFloat,
	color NSColorRef,
) (
	r0 NSColor,
)

func (NSColor) BlueComponent added in v0.2.0

func (x NSColor) BlueComponent() (
	r0 core.CGFloat,
)

func (NSColor) BrightnessComponent added in v0.2.0

func (x NSColor) BrightnessComponent() (
	r0 core.CGFloat,
)

func (NSColor) ColorWithAlphaComponent_ added in v0.2.0

func (x NSColor) ColorWithAlphaComponent_(
	alpha core.CGFloat,
) (
	r0 NSColor,
)

func (NSColor) CyanComponent added in v0.2.0

func (x NSColor) CyanComponent() (
	r0 core.CGFloat,
)

func (NSColor) DrawSwatchInRect_ added in v0.2.0

func (x NSColor) DrawSwatchInRect_(
	rect core.NSRect,
)

func (NSColor) GreenComponent added in v0.2.0

func (x NSColor) GreenComponent() (
	r0 core.CGFloat,
)

func (NSColor) HighlightWithLevel_ added in v0.2.0

func (x NSColor) HighlightWithLevel_(
	val core.CGFloat,
) (
	r0 NSColor,
)

func (NSColor) HueComponent added in v0.2.0

func (x NSColor) HueComponent() (
	r0 core.CGFloat,
)

func (NSColor) Init_asNSColor added in v0.2.0

func (x NSColor) Init_asNSColor() (
	r0 NSColor,
)

func (NSColor) LocalizedCatalogNameComponent added in v0.2.0

func (x NSColor) LocalizedCatalogNameComponent() (
	r0 core.NSString,
)

func (NSColor) LocalizedColorNameComponent added in v0.2.0

func (x NSColor) LocalizedColorNameComponent() (
	r0 core.NSString,
)

func (NSColor) MagentaComponent added in v0.2.0

func (x NSColor) MagentaComponent() (
	r0 core.CGFloat,
)

func (NSColor) NumberOfComponents added in v0.2.0

func (x NSColor) NumberOfComponents() (
	r0 core.NSInteger,
)

func (NSColor) RedComponent added in v0.2.0

func (x NSColor) RedComponent() (
	r0 core.CGFloat,
)

func (NSColor) SaturationComponent added in v0.2.0

func (x NSColor) SaturationComponent() (
	r0 core.CGFloat,
)

func (NSColor) Set added in v0.2.0

func (x NSColor) Set()

func (NSColor) SetFill added in v0.2.0

func (x NSColor) SetFill()

func (NSColor) SetStroke added in v0.2.0

func (x NSColor) SetStroke()

func (NSColor) ShadowWithLevel_ added in v0.2.0

func (x NSColor) ShadowWithLevel_(
	val core.CGFloat,
) (
	r0 NSColor,
)

func (NSColor) WhiteComponent added in v0.2.0

func (x NSColor) WhiteComponent() (
	r0 core.CGFloat,
)

func (NSColor) WriteToPasteboard_ added in v0.2.0

func (x NSColor) WriteToPasteboard_(
	pasteBoard NSPasteboardRef,
)

func (NSColor) YellowComponent added in v0.2.0

func (x NSColor) YellowComponent() (
	r0 core.CGFloat,
)

type NSColorRef added in v0.2.0

type NSColorRef interface {
	Pointer() uintptr
	Init_asNSColor() NSColor
}

type NSControl added in v0.2.0

type NSControl struct {
	// contains filtered or unexported fields
}

func NSControl_Init added in v0.2.0

func NSControl_Init(frame core.NSRect) NSControl

func NSControl_alloc added in v0.2.0

func NSControl_alloc() (
	r0 NSControl,
)

func NSControl_fromPointer added in v0.2.0

func NSControl_fromPointer(ptr unsafe.Pointer) NSControl

func NSControl_fromRef added in v0.2.0

func NSControl_fromRef(ref objc.Ref) NSControl

func (NSControl) AbortEditing added in v0.2.0

func (x NSControl) AbortEditing() (
	r0 bool,
)

func (NSControl) Action added in v0.2.0

func (x NSControl) Action() (
	r0 objc.Selector,
)

func (NSControl) AllowsExpansionToolTips added in v0.2.0

func (x NSControl) AllowsExpansionToolTips() (
	r0 bool,
)

func (NSControl) AttributedStringValue added in v0.2.0

func (x NSControl) AttributedStringValue() (
	r0 core.NSAttributedString,
)

func (NSControl) CurrentEditor added in v0.2.0

func (x NSControl) CurrentEditor() (
	r0 NSText,
)

func (NSControl) DrawWithExpansionFrame_inView_ added in v0.2.0

func (x NSControl) DrawWithExpansionFrame_inView_(
	contentFrame core.NSRect,
	view NSViewRef,
)

func (NSControl) EditWithFrame_editor_delegate_event_ added in v0.2.0

func (x NSControl) EditWithFrame_editor_delegate_event_(
	rect core.NSRect,
	textObj NSTextRef,
	delegate objc.Ref,
	event NSEventRef,
)

func (NSControl) EndEditing_ added in v0.2.0

func (x NSControl) EndEditing_(
	textObj NSTextRef,
)

func (NSControl) ExpansionFrameWithFrame_ added in v0.2.0

func (x NSControl) ExpansionFrameWithFrame_(
	contentFrame core.NSRect,
) (
	r0 core.NSRect,
)

func (NSControl) Font added in v0.2.0

func (x NSControl) Font() (
	r0 NSFont,
)

func (NSControl) IgnoresMultiClick added in v0.2.0

func (x NSControl) IgnoresMultiClick() (
	r0 bool,
)

func (NSControl) InitWithFrame__asNSControl added in v0.2.0

func (x NSControl) InitWithFrame__asNSControl(
	frameRect core.NSRect,
) (
	r0 NSControl,
)

func (NSControl) Init_asNSControl added in v0.2.0

func (x NSControl) Init_asNSControl() (
	r0 NSControl,
)

func (NSControl) IntValue added in v0.2.0

func (x NSControl) IntValue() (
	r0 int32,
)

func (NSControl) IntegerValue added in v0.2.0

func (x NSControl) IntegerValue() (
	r0 core.NSInteger,
)

func (NSControl) IsContinuous added in v0.2.0

func (x NSControl) IsContinuous() (
	r0 bool,
)

func (NSControl) IsEnabled added in v0.2.0

func (x NSControl) IsEnabled() (
	r0 bool,
)

func (NSControl) IsHighlighted added in v0.2.0

func (x NSControl) IsHighlighted() (
	r0 bool,
)

func (NSControl) MouseDown_ added in v0.2.0

func (x NSControl) MouseDown_(
	event NSEventRef,
)

func (NSControl) ObjectValue added in v0.2.0

func (x NSControl) ObjectValue() (
	r0 objc.Object,
)

func (NSControl) PerformClick_ added in v0.2.0

func (x NSControl) PerformClick_(
	sender objc.Ref,
)

func (NSControl) RefusesFirstResponder added in v0.2.0

func (x NSControl) RefusesFirstResponder() (
	r0 bool,
)

func (NSControl) SelectWithFrame_editor_delegate_start_length_ added in v0.2.0

func (x NSControl) SelectWithFrame_editor_delegate_start_length_(
	rect core.NSRect,
	textObj NSTextRef,
	delegate objc.Ref,
	selStart core.NSInteger,
	selLength core.NSInteger,
)

func (NSControl) SendAction_to_ added in v0.2.0

func (x NSControl) SendAction_to_(
	action objc.Selector,
	target objc.Ref,
) (
	r0 bool,
)

func (NSControl) SetAction_ added in v0.2.0

func (x NSControl) SetAction_(
	value objc.Selector,
)

func (NSControl) SetAllowsExpansionToolTips_ added in v0.2.0

func (x NSControl) SetAllowsExpansionToolTips_(
	value bool,
)

func (NSControl) SetAttributedStringValue_ added in v0.2.0

func (x NSControl) SetAttributedStringValue_(
	value core.NSAttributedStringRef,
)

func (NSControl) SetContinuous_ added in v0.2.0

func (x NSControl) SetContinuous_(
	value bool,
)

func (NSControl) SetEnabled_ added in v0.2.0

func (x NSControl) SetEnabled_(
	value bool,
)

func (NSControl) SetFont_ added in v0.2.0

func (x NSControl) SetFont_(
	value NSFontRef,
)

func (NSControl) SetHighlighted_ added in v0.2.0

func (x NSControl) SetHighlighted_(
	value bool,
)

func (NSControl) SetIgnoresMultiClick_ added in v0.2.0

func (x NSControl) SetIgnoresMultiClick_(
	value bool,
)

func (NSControl) SetIntValue_ added in v0.2.0

func (x NSControl) SetIntValue_(
	value int32,
)

func (NSControl) SetIntegerValue_ added in v0.2.0

func (x NSControl) SetIntegerValue_(
	value core.NSInteger,
)

func (NSControl) SetObjectValue_ added in v0.2.0

func (x NSControl) SetObjectValue_(
	value objc.Ref,
)

func (NSControl) SetRefusesFirstResponder_ added in v0.2.0

func (x NSControl) SetRefusesFirstResponder_(
	value bool,
)

func (NSControl) SetStringValue_ added in v0.2.0

func (x NSControl) SetStringValue_(
	value core.NSStringRef,
)

func (NSControl) SetTag_ added in v0.2.0

func (x NSControl) SetTag_(
	value core.NSInteger,
)

func (NSControl) SetTarget_ added in v0.2.0

func (x NSControl) SetTarget_(
	value objc.Ref,
)

func (NSControl) SetUsesSingleLineMode_ added in v0.2.0

func (x NSControl) SetUsesSingleLineMode_(
	value bool,
)

func (NSControl) SizeThatFits_ added in v0.2.0

func (x NSControl) SizeThatFits_(
	size core.NSSize,
) (
	r0 core.NSSize,
)

func (NSControl) SizeToFit added in v0.2.0

func (x NSControl) SizeToFit()

func (NSControl) StringValue added in v0.2.0

func (x NSControl) StringValue() (
	r0 core.NSString,
)

func (NSControl) Tag added in v0.2.0

func (x NSControl) Tag() (
	r0 core.NSInteger,
)

func (NSControl) TakeDoubleValueFrom_ added in v0.2.0

func (x NSControl) TakeDoubleValueFrom_(
	sender objc.Ref,
)

func (NSControl) TakeFloatValueFrom_ added in v0.2.0

func (x NSControl) TakeFloatValueFrom_(
	sender objc.Ref,
)

func (NSControl) TakeIntValueFrom_ added in v0.2.0

func (x NSControl) TakeIntValueFrom_(
	sender objc.Ref,
)

func (NSControl) TakeIntegerValueFrom_ added in v0.2.0

func (x NSControl) TakeIntegerValueFrom_(
	sender objc.Ref,
)

func (NSControl) TakeObjectValueFrom_ added in v0.2.0

func (x NSControl) TakeObjectValueFrom_(
	sender objc.Ref,
)

func (NSControl) TakeStringValueFrom_ added in v0.2.0

func (x NSControl) TakeStringValueFrom_(
	sender objc.Ref,
)

func (NSControl) Target added in v0.2.0

func (x NSControl) Target() (
	r0 objc.Object,
)

func (NSControl) UsesSingleLineMode added in v0.2.0

func (x NSControl) UsesSingleLineMode() (
	r0 bool,
)

func (NSControl) ValidateEditing added in v0.2.0

func (x NSControl) ValidateEditing()

type NSControlRef added in v0.2.0

type NSControlRef interface {
	Pointer() uintptr
	Init_asNSControl() NSControl
}

type NSEvent

type NSEvent struct {
	// contains filtered or unexported fields
}

func NSEvent_alloc added in v0.2.0

func NSEvent_alloc() (
	r0 NSEvent,
)

func NSEvent_eventWithEventRef_ added in v0.2.0

func NSEvent_eventWithEventRef_(
	eventRef unsafe.Pointer,
) (
	r0 NSEvent,
)

func NSEvent_fromPointer added in v0.2.0

func NSEvent_fromPointer(ptr unsafe.Pointer) NSEvent

func NSEvent_fromRef added in v0.2.0

func NSEvent_fromRef(ref objc.Ref) NSEvent

func (NSEvent) AbsoluteX added in v0.2.0

func (x NSEvent) AbsoluteX() (
	r0 core.NSInteger,
)

func (NSEvent) AbsoluteY added in v0.2.0

func (x NSEvent) AbsoluteY() (
	r0 core.NSInteger,
)

func (NSEvent) AbsoluteZ added in v0.2.0

func (x NSEvent) AbsoluteZ() (
	r0 core.NSInteger,
)

func (NSEvent) ButtonNumber added in v0.2.0

func (x NSEvent) ButtonNumber() (
	r0 core.NSInteger,
)

func (NSEvent) CapabilityMask added in v0.2.0

func (x NSEvent) CapabilityMask() (
	r0 core.NSUInteger,
)

func (NSEvent) Characters added in v0.0.2

func (e NSEvent) Characters() (string, error)

func (NSEvent) CharactersIgnoringModifiers added in v0.2.0

func (x NSEvent) CharactersIgnoringModifiers() (
	r0 core.NSString,
)

func (NSEvent) ClickCount added in v0.2.0

func (x NSEvent) ClickCount() (
	r0 core.NSInteger,
)

func (NSEvent) Data1 added in v0.2.0

func (x NSEvent) Data1() (
	r0 core.NSInteger,
)

func (NSEvent) Data2 added in v0.2.0

func (x NSEvent) Data2() (
	r0 core.NSInteger,
)

func (NSEvent) DeltaX added in v0.2.0

func (x NSEvent) DeltaX() (
	r0 core.CGFloat,
)

func (NSEvent) DeltaY added in v0.2.0

func (x NSEvent) DeltaY() (
	r0 core.CGFloat,
)

func (NSEvent) DeltaZ added in v0.2.0

func (x NSEvent) DeltaZ() (
	r0 core.CGFloat,
)

func (NSEvent) DeviceID added in v0.2.0

func (x NSEvent) DeviceID() (
	r0 core.NSUInteger,
)

func (NSEvent) EventNumber added in v0.2.0

func (x NSEvent) EventNumber() (
	r0 core.NSInteger,
)

func (NSEvent) EventRef added in v0.2.0

func (x NSEvent) EventRef() (
	r0 unsafe.Pointer,
)

func (NSEvent) HasPreciseScrollingDeltas added in v0.2.0

func (x NSEvent) HasPreciseScrollingDeltas() (
	r0 bool,
)

func (NSEvent) Init_asNSEvent added in v0.2.0

func (x NSEvent) Init_asNSEvent() (
	r0 NSEvent,
)

func (NSEvent) IsARepeat added in v0.2.0

func (x NSEvent) IsARepeat() (
	r0 bool,
)

func (NSEvent) IsDirectionInvertedFromDevice added in v0.2.0

func (x NSEvent) IsDirectionInvertedFromDevice() (
	r0 bool,
)

func (NSEvent) IsEnteringProximity added in v0.2.0

func (x NSEvent) IsEnteringProximity() (
	r0 bool,
)

func (NSEvent) KeyCode

func (e NSEvent) KeyCode() (int64, error)

func (NSEvent) LocationInWindow added in v0.2.0

func (x NSEvent) LocationInWindow() (
	r0 core.NSPoint,
)

func (NSEvent) Magnification added in v0.2.0

func (x NSEvent) Magnification() (
	r0 core.CGFloat,
)

func (NSEvent) PointingDeviceID added in v0.2.0

func (x NSEvent) PointingDeviceID() (
	r0 core.NSUInteger,
)

func (NSEvent) PointingDeviceSerialNumber added in v0.2.0

func (x NSEvent) PointingDeviceSerialNumber() (
	r0 core.NSUInteger,
)

func (NSEvent) ScrollingDeltaX added in v0.2.0

func (x NSEvent) ScrollingDeltaX() (
	r0 core.CGFloat,
)

func (NSEvent) ScrollingDeltaY added in v0.2.0

func (x NSEvent) ScrollingDeltaY() (
	r0 core.CGFloat,
)

func (NSEvent) Stage added in v0.2.0

func (x NSEvent) Stage() (
	r0 core.NSInteger,
)

func (NSEvent) StageTransition added in v0.2.0

func (x NSEvent) StageTransition() (
	r0 core.CGFloat,
)

func (NSEvent) SystemTabletID added in v0.2.0

func (x NSEvent) SystemTabletID() (
	r0 core.NSUInteger,
)

func (NSEvent) TabletID added in v0.2.0

func (x NSEvent) TabletID() (
	r0 core.NSUInteger,
)

func (NSEvent) Tilt added in v0.2.0

func (x NSEvent) Tilt() (
	r0 core.NSPoint,
)

func (NSEvent) TrackingNumber added in v0.2.0

func (x NSEvent) TrackingNumber() (
	r0 core.NSInteger,
)

func (NSEvent) Type added in v0.0.2

func (e NSEvent) Type() int64

func (NSEvent) UserData added in v0.2.0

func (x NSEvent) UserData() (
	r0 unsafe.Pointer,
)

func (NSEvent) VendorDefined added in v0.2.0

func (x NSEvent) VendorDefined() (
	r0 objc.Object,
)

func (NSEvent) VendorID added in v0.2.0

func (x NSEvent) VendorID() (
	r0 core.NSUInteger,
)

func (NSEvent) VendorPointingDeviceType added in v0.2.0

func (x NSEvent) VendorPointingDeviceType() (
	r0 core.NSUInteger,
)

func (NSEvent) Window added in v0.2.0

func (x NSEvent) Window() (
	r0 NSWindow,
)

func (NSEvent) WindowNumber added in v0.2.0

func (x NSEvent) WindowNumber() (
	r0 core.NSInteger,
)

type NSEventRef added in v0.2.0

type NSEventRef interface {
	Pointer() uintptr
	Init_asNSEvent() NSEvent
}

type NSFont

type NSFont struct {
	// contains filtered or unexported fields
}

func Font

func Font(fontName string, size float64) NSFont

func NSFont_Init

func NSFont_Init(fontName string, size float64) NSFont

func NSFont_alloc added in v0.2.0

func NSFont_alloc() (
	r0 NSFont,
)

func NSFont_boldSystemFontOfSize_ added in v0.2.0

func NSFont_boldSystemFontOfSize_(
	fontSize core.CGFloat,
) (
	r0 NSFont,
)

func NSFont_controlContentFontOfSize_ added in v0.2.0

func NSFont_controlContentFontOfSize_(
	fontSize core.CGFloat,
) (
	r0 NSFont,
)

func NSFont_fontWithName_size_ added in v0.2.0

func NSFont_fontWithName_size_(
	fontName core.NSStringRef,
	fontSize core.CGFloat,
) (
	r0 NSFont,
)

func NSFont_fromPointer added in v0.2.0

func NSFont_fromPointer(ptr unsafe.Pointer) NSFont

func NSFont_fromRef added in v0.2.0

func NSFont_fromRef(ref objc.Ref) NSFont

func NSFont_labelFontOfSize_ added in v0.2.0

func NSFont_labelFontOfSize_(
	fontSize core.CGFloat,
) (
	r0 NSFont,
)

func NSFont_menuBarFontOfSize_ added in v0.2.0

func NSFont_menuBarFontOfSize_(
	fontSize core.CGFloat,
) (
	r0 NSFont,
)

func NSFont_menuFontOfSize_ added in v0.2.0

func NSFont_menuFontOfSize_(
	fontSize core.CGFloat,
) (
	r0 NSFont,
)

func NSFont_messageFontOfSize_ added in v0.2.0

func NSFont_messageFontOfSize_(
	fontSize core.CGFloat,
) (
	r0 NSFont,
)

func NSFont_paletteFontOfSize_ added in v0.2.0

func NSFont_paletteFontOfSize_(
	fontSize core.CGFloat,
) (
	r0 NSFont,
)

func NSFont_systemFontOfSize_ added in v0.2.0

func NSFont_systemFontOfSize_(
	fontSize core.CGFloat,
) (
	r0 NSFont,
)

func NSFont_titleBarFontOfSize_ added in v0.2.0

func NSFont_titleBarFontOfSize_(
	fontSize core.CGFloat,
) (
	r0 NSFont,
)

func NSFont_toolTipsFontOfSize_ added in v0.2.0

func NSFont_toolTipsFontOfSize_(
	fontSize core.CGFloat,
) (
	r0 NSFont,
)

func NSFont_userFixedPitchFontOfSize_ added in v0.2.0

func NSFont_userFixedPitchFontOfSize_(
	fontSize core.CGFloat,
) (
	r0 NSFont,
)