mobile

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: BSD-3-Clause Imports: 1 Imported by: 44

Documentation

Overview

Package mobile provides mobile specific driver functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device interface {
	// Request that the mobile device show the touch screen keyboard (standard layout)
	ShowVirtualKeyboard()
	// Request that the mobile device show the touch screen keyboard (custom layout)
	ShowVirtualKeyboardType(KeyboardType)
	// Request that the mobile device dismiss the touch screen keyboard
	HideVirtualKeyboard()
}

Device describes functionality only available on mobile

type KeyboardType

type KeyboardType int32

KeyboardType represents a type of virtual keyboard

const (
	// DefaultKeyboard is the keyboard with default input style and "return" return key
	DefaultKeyboard KeyboardType = iota
	// SingleLineKeyboard is the keyboard with default input style and "Done" return key
	SingleLineKeyboard
	// NumberKeyboard is the keyboard with number input style and "Done" return key
	NumberKeyboard
)

type Keyboardable

type Keyboardable interface {
	fyne.Focusable

	Keyboard() KeyboardType
}

Keyboardable describes any CanvasObject that needs a keyboard

type TouchEvent

type TouchEvent struct {
	fyne.PointEvent
}

TouchEvent contains data relating to mobile touch events

type Touchable

type Touchable interface {
	TouchDown(*TouchEvent)
	TouchUp(*TouchEvent)
	TouchCancel(*TouchEvent)
}

Touchable represents mobile touch events that can be sent to CanvasObjects

Jump to

Keyboard shortcuts

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