background

package
v0.1.117 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ShapeCircle = shape.ShapeCircle
View Source
var ShapeRectangle = shape.ShapeRectangle
View Source
var ToNRGBA = helpers.ToNRGBA

Functions

func Background

func Background(col graphics.Color, options ...BackgroundOption) ui.Modifier

func CompareBackground

func CompareBackground(a, b BackgroundData) bool

Types

type BackgroundData

type BackgroundData struct {
	Color graphics.Color
	Shape Shape
}

type BackgroundElement

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

Hold the behavior

func (BackgroundElement) Background

func (be BackgroundElement) Background() BackgroundData

func (BackgroundElement) Create

func (be BackgroundElement) Create() Node

Create creates a new Chain Node instance

func (BackgroundElement) Equals

func (be BackgroundElement) Equals(other Element) bool

Equals checks if this element is equivalent to another used during filter operations like Modifier.Any

func (BackgroundElement) Update

func (be BackgroundElement) Update(node Node)

Update updates an existing Chain node for efficiency

type BackgroundNode

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

type BackgroundOption

type BackgroundOption func(options *BackgroundOptions)

func WithShape

func WithShape(shape Shape) BackgroundOption

WithShape sets the shape for the background (e.g., rounded corners)

type BackgroundOptions

type BackgroundOptions struct {
	Shape Shape
}

func DefaultBackgroundOptions

func DefaultBackgroundOptions() BackgroundOptions

type ChainNode

type ChainNode = node.ChainNode

func NewBackGroundNode

func NewBackGroundNode(background BackgroundData) 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 PointerModifierNode

type PointerModifierNode = layoutnode.PointerInputModifierNode

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