padding

package
v0.1.49 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const NotSet = -1
View Source
const RTL = system.RTL

Variables

This section is empty.

Functions

func All

func All(value int, options ...PaddingOption) ui.Modifier

func ComparePadding

func ComparePadding(a, b PaddingData) bool

func Horizontal

func Horizontal(start, end int, options ...PaddingOption) ui.Modifier

func Padding

func Padding(start, top, end, bottom int, options ...PaddingOption) ui.Modifier

func Vertical

func Vertical(top, bottom int, options ...PaddingOption) ui.Modifier

Types

type ChainNode

type ChainNode = node.ChainNode

type DrawModifierNode

type DrawModifierNode = layoutnode.DrawModifierNode

type Element

type Element = modifier.Element

type InspectableModifier

type InspectableModifier = modifier.InspectableModifier

type LayoutContext

type LayoutContext = layoutnode.LayoutContext

type LayoutModifierNode

type LayoutModifierNode = layoutnode.LayoutModifierNode

type LayoutWidget

type LayoutWidget = layoutnode.LayoutWidget

type ModifierInspectorInfo

type ModifierInspectorInfo = modifier.InspectorInfo

type Node

type Node = node.Node

type PaddingData

type PaddingData struct {
	Start    int
	Top      int
	End      int
	Bottom   int
	RtlAware bool // future proofing for RTL support
}

func DefaultPadding

func DefaultPadding() PaddingData

type PaddingNode

type PaddingNode struct {
	ChainNode
	// contains filtered or unexported fields
}

type PaddingOption

type PaddingOption func(options *PaddingOptions)

type PaddingOptions

type PaddingOptions struct {
	RtlAware bool
}

func DefaultPaddingOptions

func DefaultPaddingOptions() PaddingOptions

type PointerModifierNode

type PointerModifierNode = layoutnode.PointerInputModifierNode

type TreeNode

type TreeNode = node.TreeNode

Jump to

Keyboard shortcuts

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