cursor

package
v0.0.0-...-af996ba Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2019 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Arrow            = &Cursor{id: arrow}
	Text             = &Cursor{id: text}
	VerticalText     = &Cursor{id: verticalText}
	CrossHair        = &Cursor{id: crossHair}
	ClosedHand       = &Cursor{id: closedHand}
	OpenHand         = &Cursor{id: openHand}
	PointingHand     = &Cursor{id: pointingHand}
	ResizeLeft       = &Cursor{id: resizeLeft}
	ResizeRight      = &Cursor{id: resizeRight}
	ResizeLeftRight  = &Cursor{id: resizeLeftRight}
	ResizeUp         = &Cursor{id: resizeUp}
	ResizeDown       = &Cursor{id: resizeDown}
	ResizeUpDown     = &Cursor{id: resizeUpDown}
	DisappearingItem = &Cursor{id: disappearingItem}
	NotAllowed       = &Cursor{id: notAllowed}
	DragLink         = &Cursor{id: dragLink}
	DragCopy         = &Cursor{id: dragCopy}
	ContextMenu      = &Cursor{id: contextMenu}
)

Available system cursors

Functions

This section is empty.

Types

type Cursor

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

Cursor provides a graphical cursor for the mouse location.

func NewCursor

func NewCursor(imgData *draw.ImageData, hotSpot geom.Point) *Cursor

NewCursor creates a new cursor from an image.

func (*Cursor) Dispose

func (cursor *Cursor) Dispose()

Dispose of the cursor. Has no effect on system-defined cursors.

func (*Cursor) PlatformPtr

func (cursor *Cursor) PlatformPtr() unsafe.Pointer

PlatformPtr returns a pointer to the underlying platform-specific data.

Jump to

Keyboard shortcuts

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