uilayout

package
v0.0.0-...-69d35df Latest Latest
Warning

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

Go to latest
Published: May 4, 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 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.

Jump to

Keyboard shortcuts

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