widgets

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBoldLabel

func NewBoldLabel(text string) *widget.Label

NewBoldLabel returns a new label with bold text.

Types

type CodeLabel

type CodeLabel struct {
	widget.Label
	// contains filtered or unexported fields
}

CodeLabel is a label extended to copy the code with a menu popup on rightclick.

func NewCodeLabel

func NewCodeLabel(code chan string) *CodeLabel

NewCodeLabel creates a new code label.

func (*CodeLabel) TappedSecondary

func (cl *CodeLabel) TappedSecondary(pe *fyne.PointEvent)

TappedSecondary adds rightclick for showing a menu and copy code.

type PressEntry

type PressEntry struct {
	widget.Entry
	OnReturn func()
}

PressEntry is an extended entry for running a function on pressing enter.

func NewPressEntry

func NewPressEntry(placeholder string) *PressEntry

NewPressEntry returns a new entry that runs a function on pressing return.

func (*PressEntry) TypedKey

func (p *PressEntry) TypedKey(ev *fyne.KeyEvent)

TypedKey handles the key presses inside our UsernameEntry and uses Action to press the linked button.

Jump to

Keyboard shortcuts

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