core

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: MIT Imports: 6 Imported by: 46

Documentation

Index

Constants

View Source
const (
	NSUTF8StringEncoding = 4
)

Variables

View Source
var (
	True  objc.Object
	False objc.Object
)
View Source
var NSAutoreleasePool_ = objc.Get("NSAutoreleasePool")
View Source
var NSDictionary_ = objc.Get("NSDictionary")
View Source
var NSRunLoop_ = objc.Get("NSRunLoop")
View Source
var NSString_ = objc.Get("NSString")
View Source
var NSThread_ = objc.Get("NSThread")
View Source
var NSURLRequest_ = objc.Get("NSURLRequest")
View Source
var NSURL_ = objc.Get("NSURL")

Functions

func Callback

func Callback(fn interface{}) (objc.Object, objc.Selector)

func Dispatch

func Dispatch(fn func())

func NSThread_IsMainThread

func NSThread_IsMainThread() bool

Types

type CALayer

type CALayer struct {
	objc.Object
}

func (CALayer) Contents

func (l CALayer) Contents() objc.Object

func (CALayer) CornerRadius

func (l CALayer) CornerRadius() float64

func (CALayer) SetContents

func (l CALayer) SetContents(o objc.Object)

func (CALayer) SetCornerRadius

func (l CALayer) SetCornerRadius(r float64)

type NSAutoreleasePool

type NSAutoreleasePool struct {
	objc.Object
}

func NSAutoreleasePool_New

func NSAutoreleasePool_New() NSAutoreleasePool

type NSData

type NSData struct {
	objc.Object
}

func NSData_WithBytes

func NSData_WithBytes(b []byte, length uint64) NSData

type NSDictionary

type NSDictionary struct {
	objc.Object
}

func NSDictionary_Init

func NSDictionary_Init(valueKeys ...interface{}) NSDictionary

func NSDictionary_New

func NSDictionary_New() NSDictionary

func (NSDictionary) ObjectForKey

func (d NSDictionary) ObjectForKey(key objc.Object) objc.Object

type NSNumber

type NSNumber struct {
	objc.Object
}

func NSNumber_WithBool

func NSNumber_WithBool(b bool) NSNumber

type NSPoint

type NSPoint struct {
	X float64
	Y float64
}

func Point

func Point(x float64, y float64) NSPoint

func (NSPoint) String

func (pt NSPoint) String() string

type NSRect

type NSRect struct {
	Origin NSPoint
	Size   NSSize
}

func NSMakeRect

func NSMakeRect(x, y, w, h float64) NSRect

func Rect

func Rect(x, y, w, h float64) NSRect

func (NSRect) String

func (r NSRect) String() string

type NSRunLoop

type NSRunLoop struct {
	objc.Object
}

func NSRunLoop_Current

func NSRunLoop_Current() NSRunLoop

func NSRunLoop_Main

func NSRunLoop_Main() NSRunLoop

func (NSRunLoop) Run

func (rl NSRunLoop) Run()

type NSSize

type NSSize struct {
	Width  float64
	Height float64
}

func Size

func Size(width float64, height float64) NSSize

func (NSSize) String

func (sz NSSize) String() string

type NSString

type NSString struct {
	objc.Object
}

func NSString_FromObject

func NSString_FromObject(obj objc.Object) NSString

func NSString_FromString

func NSString_FromString(str string) NSString

func String

func String(str string) NSString

func (NSString) SizeWithAttributes

func (s NSString) SizeWithAttributes(attrs NSDictionary) NSSize

type NSThread

type NSThread struct {
	objc.Object
}

type NSUInteger

type NSUInteger uintptr

type NSURL

type NSURL struct {
	objc.Object
}

func NSURL_Init

func NSURL_Init(url string) NSURL

func URL

func URL(url string) NSURL

type NSURLRequest

type NSURLRequest struct {
	objc.Object
}

func NSURLRequest_Init

func NSURLRequest_Init(url NSURL) NSURLRequest

Jump to

Keyboard shortcuts

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