adam-gui/vendor/fyne.io/fyne/v2/driver/mobile/keyboard.go

27 lines
714 B
Go
Raw Permalink Normal View History

2024-04-29 19:13:50 +02:00
package mobile
import (
"fyne.io/fyne/v2"
)
// KeyboardType represents a type of virtual keyboard
type KeyboardType int32
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
// PasswordKeyboard is used to ensure that text is not leaked to 3rd party keyboard providers
PasswordKeyboard
)
// Keyboardable describes any CanvasObject that needs a keyboard
type Keyboardable interface {
fyne.Focusable
Keyboard() KeyboardType
}