bento

package module
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 8 Imported by: 0

README

bento

Bento shows messages for fyne applications.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Box

type Box struct {
	widget.BaseWidget
	// contains filtered or unexported fields
}

func NewBox

func NewBox() *Box

func (*Box) AddItem

func (b *Box) AddItem(i *Item)

func (*Box) CreateRenderer

func (b *Box) CreateRenderer() fyne.WidgetRenderer

func (*Box) UpdateBottomOffset

func (b *Box) UpdateBottomOffset(offset float32)

type Item

type Item struct {
	widget.BaseWidget
	// contains filtered or unexported fields
}

func NewItemWithMessage

func NewItemWithMessage(message string, length ItemLength) *Item

func (*Item) AddAction

func (i *Item) AddAction(title string, action func())

func (*Item) CreateRenderer

func (i *Item) CreateRenderer() fyne.WidgetRenderer

func (*Item) SetBackgroundColor

func (i *Item) SetBackgroundColor(c color.Color)

type ItemLength

type ItemLength int
const (
	LengthShort ItemLength = iota
	LengthLong
	LengthIndefinite
)

Jump to

Keyboard shortcuts

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