uilayout

package
v0.0.0-...-050b94d Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Margin

type Margin struct {
	// contains filtered or unexported fields
}

func NewMargin

func NewMargin(
	top, bottom, left, right float32,
) *Margin

func (*Margin) Layout

func (m *Margin) Layout(
	objects []fyne.CanvasObject,
	containerSize fyne.Size,
)

func (*Margin) MinSize

func (m *Margin) MinSize(objects []fyne.CanvasObject) fyne.Size

type MinSize

type MinSize struct {
	// contains filtered or unexported fields
}

MinSize implements a min size layout.

The MinSize layout will ensure that the container is rendered at a size that is at least as large as the minimum size provided.

func NewMinSizeLayout

func NewMinSizeLayout(minSize fyne.Size) *MinSize

NewMinSizeLayout creates a new MinSize layout with the specified minimum size.

Arguments: - minSize: the minimum size for the layout.

Returns *MinSize: a pointer to the newly created MinSize layout.

func (*MinSize) Layout

func (l *MinSize) Layout(objects []fyne.CanvasObject, containerSize fyne.Size)

Layout implements the Layout interface.

func (*MinSize) MinSize

func (l *MinSize) MinSize(objects []fyne.CanvasObject) fyne.Size

MinSize calculates the minimum size of the layout on the current screen. The reported size will be at least as large as the configured minimum size.

type Padding

type Padding struct {
	// contains filtered or unexported fields
}

func NewPadding

func NewPadding(
	top, bottom, left, right float32,
) *Padding

func (*Padding) Layout

func (p *Padding) Layout(
	objects []fyne.CanvasObject,
	containerSize fyne.Size,
)

func (*Padding) MinSize

func (p *Padding) MinSize(objects []fyne.CanvasObject) fyne.Size

Jump to

Keyboard shortcuts

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