components

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EmptyUsable = iota
	EmptyUnusable
	FilledUsable
)

Variables

This section is empty.

Functions

func NewFooter

func NewFooter(gtx layout.Context, theme *material.Theme, obj FooterItems) layout.Dimensions

func NewHeader

func NewHeader(gtx layout.Context, theme *material.Theme, state string) layout.Dimensions

func NewMessage

func NewMessage(gtx layout.Context, theme *material.Theme, message Message) layout.Dimensions

func NewShortcuts

func NewShortcuts(gtx layout.Context, theme *material.Theme) layout.Dimensions

func NewSlot

func NewSlot(gtx layout.Context, theme *material.Theme, slot Slot) layout.Dimensions

Types

type FooterItems

type FooterItems struct {
	SourceButton *widget.Clickable
	DocsButton   *widget.Clickable
}

FooterItems contains all the pointers to its interactive items.

type Message

type Message struct {
	Image string
	Title string
	Text  string
}

type Slot

type Slot struct {
	Text   string
	Extra  string
	Button *widget.Clickable
	Action func()
	Number int
	State  SlotState
	Type   SlotType
}

type SlotState

type SlotState int

type SlotType

type SlotType string
const (
	SlotText  SlotType = "TEXT"
	SlotImage SlotType = "IMAGE"
)

Jump to

Keyboard shortcuts

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