tools

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2023 License: BSD-2-Clause-Views Imports: 1 Imported by: 3

Documentation

Index

Constants

View Source
const (
	IK_SB_PRESS int = iota // softbutton event
	IK_SB_RELEASE
	IK_M_PRESS // mouse hard button press/release
	IK_M_RELEASE
	IK_M_MOVED // mouse movement

)

Event type constants.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interaction

type Interaction struct {
	X    float64
	Y    float64
	Kind int // one of the IK_* constants
	Data int // data specific to the event (soft button id, mouse button etc.)
}

func (*Interaction) To_string

func (inst *Interaction) To_string() string

To_string generates a simple string representation of the instance.

type Point

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

An x,y point.

func Mk_point

func Mk_point(x float64, y float64) *Point

func (*Point) Get_xy

func (pt *Point) Get_xy() (x float64, y float64)

Jump to

Keyboard shortcuts

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