border

package
v0.1.40 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ToNRGBA = helpers.ToNRGBA

Functions

func Border

func Border(width Dp, col graphics.Color, shape Shape) ui.Modifier

func Simple

func Simple(width Dp, col graphics.Color) ui.Modifier

Border with defaults usually needs width and color at least? For Shape, default to Rectangle if nil? Or caller handles it. Default to Rectangle if nil.

Types

type BorderData

type BorderData struct {
	Width Dp
	Shape Shape
	Color graphics.Color
}

type BorderElement

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

func (*BorderElement) Create

func (e *BorderElement) Create() Node

func (*BorderElement) Equals

func (e *BorderElement) Equals(other Element) bool

func (*BorderElement) Update

func (e *BorderElement) Update(node Node)

type BorderNode

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

func NewBorderNode

func NewBorderNode(element BorderElement) *BorderNode

type ChainNode

type ChainNode = node.ChainNode

type Dp

type Dp = unit.Dp

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 LayoutDimensions

type LayoutDimensions = layoutnode.LayoutDimensions

type LayoutWidget

type LayoutWidget = layoutnode.LayoutWidget

type ModifierInspectorInfo

type ModifierInspectorInfo = modifier.InspectorInfo

type Node

type Node = node.Node

type Shape

type Shape = shape.Shape

type TreeNode

type TreeNode = node.TreeNode

Jump to

Keyboard shortcuts

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