mouse

package
Version: v0.0.0-...-090ff97 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

README

./platform.png

For engine, please, see engine repository

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BrowserMouseClickToPlatformMouseClickEvent chan Click
View Source
var BrowserMouseDoubleClickToPlatformMouseDoubleClickEvent chan DoubleClick
View Source
var BrowserMouseDownToPlatformMouseDownEvent chan Press
View Source
var BrowserMouseToPlatformMouseCoordinate chan Move
View Source
var BrowserMouseUpToPlatformMouseUpEvent chan Release

Functions

This section is empty.

Types

type Click

type Click Coordinate

type Coordinate

type Coordinate struct {
	X int
	Y int
}

type Cursor

type Cursor struct {
	Name string
}

cursor name

type DoubleClick

type DoubleClick Coordinate

type Event

type Event int
const (
	// KClick
	// English: The event occurs when the user clicks on an element
	KClick Event = iota

	// KContextMenu
	// English: The event occurs when the user right-clicks on an element to open a context
	// menu
	KContextMenu

	// KDblClick
	// English: The event occurs when the user double-clicks on an element
	KDblClick

	// KMouseDown
	// English: The event occurs when the user presses a mouse button over an element
	KMouseDown

	// KMouseEnter
	// English: The event occurs when the pointer is moved onto an element
	KMouseEnter

	// KMouseLeave
	// English: The event occurs when the pointer is moved out of an element
	KMouseLeave

	// KMouseMove
	// English: The event occurs when the pointer is moving while it is over an element
	KMouseMove

	// KMouseOver
	// English: The event occurs when the pointer is moved onto an element, or onto one of
	// its children
	KMouseOver

	// KMouseOut
	// English: The event occurs when a user moves the mouse pointer out of an element, or
	// out of one of its children
	KMouseOut

	// KMouseUp
	// English: The event occurs when a user releases a mouse button over an element
	KMouseUp
)

func (Event) String

func (el Event) String() string

type Move

type Move Coordinate

type Press

type Press Coordinate

type Release

type Release Coordinate

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL