event

package
v0.0.0-...-f3d8a94 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

The event package demonstrates use of the callback package to call Go functions from a non-Go-created thread. The C "window" API is intended to represent a conventional C API which invokes callbacks from a thread it has created itself. The event package layers a Go callback on top of that.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Window

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

func NewWindow

func NewWindow() *Window

func (*Window) SetCallback

func (w *Window) SetCallback(f func(int))

Jump to

Keyboard shortcuts

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