Back to

Package appkit

Latest Go to latest

The latest major version is .

Published: Dec 3, 2019 | License: BSD-3-Clause | Module:


Package appkit provides access to Apple's AppKit API (

This package is in very early stages of development. It's a minimal implementation with scope limited to supporting the movingtriangle example.


type View

type View struct {
	// contains filtered or unexported fields

View is the infrastructure for drawing, printing, and handling events in an app.


func (View) SetLayer

func (v View) SetLayer(l coreanim.Layer)

SetLayer sets v.layer to l.


func (View) SetWantsLayer

func (v View) SetWantsLayer(wantsLayer bool)

SetWantsLayer sets v.wantsLayer to wantsLayer.


type Window

type Window struct {
	// contains filtered or unexported fields

Window is a window that an app displays on the screen.


func NewWindow

func NewWindow(window unsafe.Pointer) Window

NewWindow returns a Window that wraps an existing NSWindow * pointer.

func (Window) ContentView

func (w Window) ContentView() View

ContentView returns the window's content view, the highest accessible View in the window's view hierarchy.


Package Files

Documentation was rendered with GOOS=darwin and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier