button

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WithShortcut

type WithShortcut struct {
	*tview.Button
	// contains filtered or unexported fields
}

WithShortcut is a button that displays a keyboard shortcut

func NewWithShortcut

func NewWithShortcut(label string, shortcut rune) *WithShortcut

NewWithShortcut creates a new button with a keyboard shortcut indicator

func (*WithShortcut) Draw

func (b *WithShortcut) Draw(screen tcell.Screen)

Draw draws this primitive onto the screen.

func (*WithShortcut) SetShortcutStyle

func (b *WithShortcut) SetShortcutStyle(style tcell.Style) *WithShortcut

SetShortcutStyle sets the style for the shortcut indicator

Jump to

Keyboard shortcuts

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