DefaultLayouts

package
v0.0.0-...-6b2d15a Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BorderLayoutHandler

func BorderLayoutHandler(window fyne.Window, _ *NFData.NFInterfaceMap, l *NFLayout.Layout) (fyne.CanvasObject, error)

BorderLayoutHandler simply adds all children to a border layout The children must have a "Position" property that is either "Top", "Bottom", "Left", "Right", or "Center" The children are placed into the border layout based on their position

func GridLayoutHandler

func GridLayoutHandler(window fyne.Window, args *NFData.NFInterfaceMap, l *NFLayout.Layout) (fyne.CanvasObject, error)

GridLayoutHandler simply adds all children to a grid that has args["Columns"] columns

func HBoxLayoutHandler

func HBoxLayoutHandler(window fyne.Window, _ *NFData.NFInterfaceMap, l *NFLayout.Layout) (fyne.CanvasObject, error)

HBoxLayoutHandler simply adds all children to a horizontal box

func Import

func Import()

Import is an empty function, created to allow the inclusion of this package in other parts of the code, even if none of its functions are directly used. This ensures that the init function is executed without triggering warnings about unused imports.

While it's possible to import a package for its side effects by changing its alias to _, using the Import function provides the added benefit of retaining direct access to the package's contents.

func TabLayoutHandler

func TabLayoutHandler(window fyne.Window, _ *NFData.NFInterfaceMap, l *NFLayout.Layout) (fyne.CanvasObject, error)

TabLayoutHandler simply adds all children to a tab layout

func VBoxLayoutHandler

func VBoxLayoutHandler(window fyne.Window, _ *NFData.NFInterfaceMap, l *NFLayout.Layout) (fyne.CanvasObject, error)

VBoxLayoutHandler simply adds all children to a vertical box

Types

This section is empty.

Jump to

Keyboard shortcuts

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