Edit me

widget


import "fyne.io/fyne/widget"

Usage

type Box

type Box struct {
	BaseWidget

	Horizontal bool
	Children   []fyne.CanvasObject
}

Box widget is a simple list where the child elements are arranged in a single column for vertical or a single row for horizontal arrangement

func NewHBox

func NewHBox(children ...fyne.CanvasObject) *Box

NewHBox creates a new horizontally aligned box widget with the specified list of child objects

func NewVBox

func NewVBox(children ...fyne.CanvasObject) *Box

NewVBox creates a new vertically aligned box widget with the specified list of child objects

func (*Box) Append

func (b *Box) Append(object fyne.CanvasObject)

Append adds a new CanvasObject to the end/right of the box

func (*Box) CreateRenderer

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

CreateRenderer is a private method to Fyne which links this widget to its renderer

func (*Box) MinSize

func (b *Box) MinSize() fyne.Size

MinSize returns the size that this widget should not shrink below

func (*Box) Prepend

func (b *Box) Prepend(object fyne.CanvasObject)

Prepend inserts a new CanvasObject at the top/left of the box

func (*Box) Refresh

func (b *Box) Refresh()

Refresh updates this box to match the current theme

Tags: