clip

package
v0.1.75 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 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 Clip

func Clip(shape Shape) ui.Modifier

func ClipShape

func ClipShape(shape Shape, gtx layout.Context, dimensions layoutnode.LayoutDimensions) clip.Stack

func ClipToBounds

func ClipToBounds() ui.Modifier

Types

type ChainNode

type ChainNode = node.ChainNode

func NewClipNode

func NewClipNode(element ClipElement) ChainNode

type ClipData

type ClipData struct {
	Shape        Shape
	ClipToBounds bool
}

type ClipElement

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

func (ClipElement) ClipData

func (e ClipElement) ClipData() ClipData

func (ClipElement) Create

func (e ClipElement) Create() Node

Create creates a new Chain Node instance

func (ClipElement) Equals

func (e ClipElement) Equals(other Element) bool

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

func (ClipElement) Update

func (e ClipElement) Update(node Node)

Update updates an existing Chain node for efficiency

type ClipNode

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

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