Documentation
¶
Index ¶
- Variables
- func CompareBackground(a, b BackgroundData) bool
- type BackgroundData
- type BackgroundElement
- type BackgroundNode
- type BackgroundOption
- type BackgroundOptions
- type ChainNode
- type DrawModifierNode
- type Element
- type InspectableModifier
- type LayoutContext
- type LayoutModifierNode
- type LayoutWidget
- type Modifier
- type ModifierInspectorInfo
- type Node
- type PointerModifierNode
- type Shape
- type TreeNode
Constants ¶
This section is empty.
Variables ¶
View Source
var EmptyModifier = modifier.EmptyModifier
View Source
var ShapeCircle = shape.ShapeCircle
View Source
var ShapeRectangle = shape.ShapeRectangle
View Source
var ToNRGBA = helpers.ToNRGBA
Functions ¶
func CompareBackground ¶
func CompareBackground(a, b BackgroundData) bool
Types ¶
type BackgroundData ¶
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 ¶
func NewBackGroundNode ¶
func NewBackGroundNode(background BackgroundData) ChainNode
type DrawModifierNode ¶
type DrawModifierNode = layoutnode.DrawModifierNode
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 Modifier ¶
func Background ¶
func Background(col graphics.Color, options ...BackgroundOption) Modifier
type ModifierInspectorInfo ¶
type ModifierInspectorInfo = modifier.InspectorInfo
type PointerModifierNode ¶
type PointerModifierNode = layoutnode.PointerInputModifierNode
Click to show internal directories.
Click to hide internal directories.