btns

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BtnKey

type BtnKey string
const (
	// Containers
	Containers       BtnKey = "conts"
	ContPrev         BtnKey = "contPrev"
	ContNext         BtnKey = "contNext"
	ContBack         BtnKey = "contBack"
	ContLogs         BtnKey = "contLogs"
	ContStop         BtnKey = "contStop"
	ContStart        BtnKey = "contStart"
	ContStats        BtnKey = "contStats"
	ContRename       BtnKey = "contRename"
	ContRemoveForm   BtnKey = "contRmForm"
	ContRemoveForce  BtnKey = "contFcRm"
	ContRemoveVolume BtnKey = "contRmVol"
	ContRemoveDone   BtnKey = "contRmDone"

	// Images
	Images     BtnKey = "imgs"
	ImgPrev    BtnKey = "imgPrev"
	ImgNext    BtnKey = "imgNext"
	ImgBack    BtnKey = "imgBack"
	ImgRun     BtnKey = "imgRun"
	ImgRmForm  BtnKey = "imgRmForm"
	ImgRmForce BtnKey = "imgRmFc"
	// ImageRemovePruneChildren
	ImgRmPruneCh BtnKey = "imgPnCh"
	ImgRmDone    BtnKey = "imgRmDone"
	ImgTag       BtnKey = "imgTag"
)

func (BtnKey) Key

func (bk BtnKey) Key() string

Turns button unique to a pair of (`\f` + button string value) so it can accessible for handlers.

func (BtnKey) String

func (bk BtnKey) String() string

Turns button unique directly to its string value without any extra information attached.

Jump to

Keyboard shortcuts

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