cocoa

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Rendered for darwin/amd64

Index

Constants

View Source
const (
	NSWindowCollectionBehaviorManaged           = 1 << 2
	NSWindowCollectionBehaviorFullScreenPrimary = 1 << 7
	NSWindowCollectionBehaviorFullScreenNone    = 1 << 9
)
View Source
const (
	NSWindowStyleMaskResizable  = 1 << 3
	NSWindowStyleMaskFullScreen = 1 << 14
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CGFloat

type CGFloat = float64

type CGPoint

type CGPoint struct {
	X, Y float64
}

type CGRect

type CGRect struct {
	Origin CGPoint
	Size   CGSize
}

type CGSize

type CGSize struct {
	Width, Height CGFloat
}

type NSAutoreleasePool

type NSAutoreleasePool struct {
	objc.ID
}

func NSAutoreleasePool_new

func NSAutoreleasePool_new() NSAutoreleasePool

func (NSAutoreleasePool) Release

func (p NSAutoreleasePool) Release()

type NSColor

type NSColor struct {
	objc.ID
}

func NSColor_colorWithSRGBRedGreenBlueAlpha

func NSColor_colorWithSRGBRedGreenBlueAlpha(red, green, blue, alpha CGFloat) (color NSColor)

type NSDictionary

type NSDictionary struct {
	objc.ID
}

func (NSDictionary) ObjectForKey

func (d NSDictionary) ObjectForKey(object objc.ID) objc.ID

type NSError

type NSError struct {
	objc.ID
}

type NSInteger

type NSInteger = int

type NSInvocation

type NSInvocation struct {
	objc.ID
}

NSInvocation is being used to call functions that can't be called directly with purego.SyscallN. See the downsides of that function for what it cannot do.

func NSInvocation_invocationWithMethodSignature

func NSInvocation_invocationWithMethodSignature(sig NSMethodSignature) NSInvocation

func (NSInvocation) GetReturnValue

func (i NSInvocation) GetReturnValue(ret unsafe.Pointer)

func (NSInvocation) Invoke

func (i NSInvocation) Invoke()

func (NSInvocation) InvokeWithTarget

func (i NSInvocation) InvokeWithTarget(target objc.ID)

func (NSInvocation) SetArgumentAtIndex

func (i NSInvocation) SetArgumentAtIndex(arg unsafe.Pointer, idx int)

func (NSInvocation) SetSelector

func (i NSInvocation) SetSelector(cmd objc.SEL)

func (NSInvocation) SetTarget

func (i NSInvocation) SetTarget(target objc.ID)

type NSMethodSignature

type NSMethodSignature struct {
	objc.ID
}

func NSMethodSignature_instanceMethodSignatureForSelector

func NSMethodSignature_instanceMethodSignatureForSelector(self objc.ID, cmd objc.SEL) NSMethodSignature

func NSMethodSignature_signatureWithObjCTypes

func NSMethodSignature_signatureWithObjCTypes(types string) NSMethodSignature

NSMethodSignature_signatureWithObjCTypes takes a string that represents the type signature of a method. It follows the encoding specified in the Apple Docs.

type NSNotification

type NSNotification struct {
	objc.ID
}

func (NSNotification) Object

func (n NSNotification) Object() objc.ID

type NSNumber

type NSNumber struct {
	objc.ID
}

func (NSNumber) UnsignedIntValue

func (n NSNumber) UnsignedIntValue() uint

type NSOperatingSystemVersion

type NSOperatingSystemVersion struct {
	Major, Minor, Patch NSInteger
}

type NSPoint

type NSPoint = CGPoint

type NSProcessInfo

type NSProcessInfo struct {
	objc.ID
}

func NSProcessInfo_processInfo

func NSProcessInfo_processInfo() NSProcessInfo

type NSRect

type NSRect = CGRect

type NSScreen

type NSScreen struct {
	objc.ID
}

func NSScreen_mainScreen

func NSScreen_mainScreen() NSScreen

func (NSScreen) DeviceDescription

func (s NSScreen) DeviceDescription() NSDictionary

type NSSize

type NSSize = CGSize

type NSString

type NSString struct {
	objc.ID
}

func NSString_alloc

func NSString_alloc() NSString

func (NSString) InitWithUTF8String

func (s NSString) InitWithUTF8String(utf8 string) NSString

func (NSString) String

func (s NSString) String() string

type NSUInteger

type NSUInteger = uint

type NSView

type NSView struct {
	objc.ID
}

func (NSView) Frame

func (v NSView) Frame() NSRect

func (NSView) SetFrameSize

func (v NSView) SetFrameSize(size CGSize)

type NSWindow

type NSWindow struct {
	objc.ID
}

func (NSWindow) ContentView

func (w NSWindow) ContentView() NSView

func (NSWindow) Frame

func (w NSWindow) Frame() NSRect

func (NSWindow) IsVisible

func (w NSWindow) IsVisible() bool

func (NSWindow) Screen

func (w NSWindow) Screen() NSScreen

func (NSWindow) SetBackgroundColor

func (w NSWindow) SetBackgroundColor(color NSColor)

func (NSWindow) SetStyleMask

func (w NSWindow) SetStyleMask(styleMask NSUInteger)

func (NSWindow) StyleMask

func (w NSWindow) StyleMask() NSUInteger

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL