cocoa

package
v2.5.0-alpha.12 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 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 added in v2.5.0

type CGPoint struct {
	X, Y float64
}

type CGRect added in v2.5.0

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 added in v2.5.0

type NSColor struct {
	objc.ID
}

func NSColor_colorWithSRGBRedGreenBlueAlpha added in v2.5.0

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

type NSDictionary added in v2.5.0

type NSDictionary struct {
	objc.ID
}

func (NSDictionary) ObjectForKey added in v2.5.0

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

type NSError

type NSError struct {
	objc.ID
}

type NSInteger added in v2.5.0

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 added in v2.5.0

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 added in v2.5.0

type NSNotification struct {
	objc.ID
}

func (NSNotification) Object added in v2.5.0

func (n NSNotification) Object() objc.ID

type NSNumber added in v2.5.0

type NSNumber struct {
	objc.ID
}

func (NSNumber) UnsignedIntValue added in v2.5.0

func (n NSNumber) UnsignedIntValue() uint

type NSOperatingSystemVersion added in v2.5.0

type NSOperatingSystemVersion struct {
	Major, Minor, Patch NSInteger
}

type NSPoint added in v2.5.0

type NSPoint = CGPoint

type NSProcessInfo added in v2.5.0

type NSProcessInfo struct {
	objc.ID
}

func NSProcessInfo_processInfo added in v2.5.0

func NSProcessInfo_processInfo() NSProcessInfo

type NSRect added in v2.5.0

type NSRect = CGRect

type NSScreen added in v2.5.0

type NSScreen struct {
	objc.ID
}

func NSScreen_mainScreen added in v2.5.0

func NSScreen_mainScreen() NSScreen

func (NSScreen) DeviceDescription added in v2.5.0

func (s NSScreen) DeviceDescription() NSDictionary

type NSSize added in v2.5.0

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 added in v2.5.0

type NSUInteger = uint

type NSView added in v2.5.0

type NSView struct {
	objc.ID
}

func (NSView) Frame added in v2.5.0

func (v NSView) Frame() NSRect

func (NSView) SetFrameSize added in v2.5.0

func (v NSView) SetFrameSize(size CGSize)

type NSWindow added in v2.5.0

type NSWindow struct {
	objc.ID
}

func (NSWindow) ContentView added in v2.5.0

func (w NSWindow) ContentView() NSView

func (NSWindow) Frame added in v2.5.0

func (w NSWindow) Frame() NSRect

func (NSWindow) IsVisibile

func (w NSWindow) IsVisibile() bool

func (NSWindow) Screen added in v2.5.0

func (w NSWindow) Screen() NSScreen

func (NSWindow) SetBackgroundColor added in v2.5.0

func (w NSWindow) SetBackgroundColor(color NSColor)

func (NSWindow) SetStyleMask added in v2.5.0

func (w NSWindow) SetStyleMask(styleMask NSUInteger)

func (NSWindow) StyleMask added in v2.5.0

func (w NSWindow) StyleMask() NSUInteger

Jump to

Keyboard shortcuts

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