embedded

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: BSD-3-Clause Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CharacterEvent

type CharacterEvent struct {
	Rune rune
}

CharacterEvent is an event specifying that a character was created by a hardware or virtual keyboard.

Since: 1.0

type Driver

type Driver interface {
	Render(image.Image)
	Run(func())

	ScreenSize() geo.Size
	Queue() chan Event
}

Driver is an embedded driver designed for handling custom hardware. Various standard driver implementations are available in the fyne-x project.

Since: 1.0

type Event

type Event interface {
	// contains filtered or unexported methods
}

Event is the general type of all embedded device events.

Since: 1.0

type KeyDirection

type KeyDirection uint8

KeyDirection specifies the press/release of a key event

Since: 1.0

const (
	// KeyPressed specifies that a key was pushed down.
	//
	// Since: 1.0
	KeyPressed KeyDirection = iota

	// KeyReleased indicates a key was let back up.
	//
	// Since: 1.0
	KeyReleased
)

type KeyEvent

type KeyEvent struct {
	Name      event.KeyName
	Direction KeyDirection

	// Modifiers reports the modifier keys held when the event was generated.
	// The zero value means no modifiers; hosts without modifier information
	// may leave it unset. It is carried through to the Modifier field of the
	// event.KeyEvent delivered to key handlers.
	//
	// Since: 1.0
	Modifiers event.KeyModifier
}

KeyEvent is an event from keyboard actions occurring in an embedded device keyboard.

Since: 1.0

type TouchDownEvent

type TouchDownEvent struct {
	Position geo.Position
	ID       int
}

TouchDownEvent is for indicating that an embedded device touch screen or pointing device was pressed.

Since: 1.0

type TouchMoveEvent

type TouchMoveEvent struct {
	Position geo.Position
	ID       int
}

TouchMoveEvent is for indicating that an embedded device touch screen or pointing device was moved whilst being pressed.

Since: 1.0

type TouchUpEvent

type TouchUpEvent struct {
	Position geo.Position
	ID       int
}

TouchUpEvent is for indicating that an embedded device touch screen or pointing device was released.

Since: 1.0

Jump to

Keyboard shortcuts

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