layout

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlignBottomFrom

func AlignBottomFrom(startY, containerHeight, elementHeight uint32) uint32

func AlignLeft

func AlignLeft() uint32

func AlignLeftFrom

func AlignLeftFrom(startX uint32) uint32

func AlignRight

func AlignRight(pageWidth, elementWidth uint32) uint32

func AlignRightFrom

func AlignRightFrom(startX, elementWidth uint32) uint32

func AlignTopFrom

func AlignTopFrom(startY, elementHeight uint32) uint32

func CenterElement

func CenterElement(pageWidth, elementWidth uint32) uint32

func CenterElementFrom

func CenterElementFrom(startX, containerWidth, elementWidth uint32) uint32

func CenterElementVerticallyFrom

func CenterElementVerticallyFrom(startY, containerHeight, elementHeight uint32) uint32

func TruncateString

func TruncateString(str string, maxLength int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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