wydget

package module
v0.0.0-...-60e23a1 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 4 Imported by: 0

README

Wydget - some custom widgets for fyne.

wydget.Entry

wydget.Entry extends widget.Entry with the following functionality:

  • OnFocusGained, OnFocusLost event callbacks to follow the focus
  • OnTab event callback to handle the TAB key
  • OnShortcutTyped event callback to handle shortcuts
  • OnKeyTyped event callback to handle keyboard input
  • OnRuneTyped event callback to handle the input of runes
  • MinWidth to set the minimum width

License

This software is published under the MIT License.

Copyright Florian Thienel

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	widget.Entry

	MinWidth float32

	OnFocusGained   func()                                      `json:"-"`
	OnFocusLost     func()                                      `json:"-"`
	OnTab           func(fyne.KeyModifier) bool                 `json:"-"`
	OnShortcutTyped func(fyne.Shortcut) bool                    `json:"-"`
	OnKeyTyped      func(*fyne.KeyEvent, fyne.KeyModifier) bool `json:"-"`
	OnRuneTyped     func(r rune) bool                           `json:"-"`
	// contains filtered or unexported fields
}

func NewEntry

func NewEntry() *Entry

func (*Entry) AcceptsTab

func (e *Entry) AcceptsTab() bool

func (*Entry) CreateRenderer

func (e *Entry) CreateRenderer() fyne.WidgetRenderer

func (*Entry) FocusGained

func (e *Entry) FocusGained()

func (*Entry) FocusLost

func (e *Entry) FocusLost()

func (*Entry) KeyDown

func (e *Entry) KeyDown(key *fyne.KeyEvent)

func (*Entry) KeyUp

func (e *Entry) KeyUp(key *fyne.KeyEvent)

func (*Entry) TypedKey

func (e *Entry) TypedKey(key *fyne.KeyEvent)

func (*Entry) TypedRune

func (e *Entry) TypedRune(r rune)

func (*Entry) TypedShortcut

func (e *Entry) TypedShortcut(shortcut fyne.Shortcut)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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