weight

package
v0.1.113 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const WeightElementKey = "weight"

Variables

View Source
var Clamp = helpers.Clamp

Functions

func CompareWeight

func CompareWeight(a, b WeightData) bool

func Weight

func Weight(weight int) ui.Modifier

Types

type ChainNode

type ChainNode = node.ChainNode

func NewWeightNode

func NewWeightNode(element WeightElement) 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 TreeNode

type TreeNode = node.TreeNode

type WeightData

type WeightData struct {
	Weight float32
}

type WeightElement

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

func (WeightElement) Create

func (e WeightElement) Create() Node

Create creates a new Chain Node instance

func (WeightElement) Equals

func (se WeightElement) Equals(other Element) bool

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

func (WeightElement) Update

func (e WeightElement) Update(node Node)

Update updates an existing Chain node for efficiency

func (WeightElement) WeightData

func (se WeightElement) WeightData() WeightData

type WeightNode

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

Jump to

Keyboard shortcuts

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