shadow

package
v0.1.54 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ToNRGBA = helpers.ToNRGBA

Functions

func Shadow

func Shadow(elevation Dp, shape Shape, ambientColor, spotColor graphics.Color) ui.Modifier

func Simple

func Simple(elevation Dp, shape Shape) ui.Modifier

Simple Shadow with defaults using theme Shadow role

Types

type ChainNode

type ChainNode = node.ChainNode

type Color

type Color = color.Color

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 ShadowData

type ShadowData struct {
	Elevation    Dp
	Shape        Shape
	AmbientColor graphics.Color
	SpotColor    graphics.Color
}

type ShadowElement

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

func (*ShadowElement) Create

func (e *ShadowElement) Create() Node

func (*ShadowElement) Equals

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

func (*ShadowElement) Update

func (e *ShadowElement) Update(node Node)

type ShadowNode

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

func NewShadowNode

func NewShadowNode(element ShadowElement) *ShadowNode

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