clickable

package
v0.1.74 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ToNRGBA = helpers.ToNRGBA

Functions

func OnClick

func OnClick(onClick func(), options ...ClickableOption) ui.Modifier

Types

type ChainNode

type ChainNode = node.ChainNode

func NewClickableNode

func NewClickableNode(element ClickableElement) ChainNode

type ClickableData

type ClickableData struct {
	OnClick   func()
	Clickable *GioClickable
}

type ClickableElement

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

func (ClickableElement) ClickableData

func (e ClickableElement) ClickableData() ClickableData

func (ClickableElement) Create

func (e ClickableElement) Create() Node

Create creates a new Chain Node instance

func (ClickableElement) Equals

func (e ClickableElement) Equals(other Element) bool

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

func (ClickableElement) Update

func (e ClickableElement) Update(node Node)

Update updates an existing Chain node for efficiency

type ClickableNode

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

type ClickableOption

type ClickableOption func(*ClickableOptions)

func WithClickable

func WithClickable(clickable *GioClickable) ClickableOption

type ClickableOptions

type ClickableOptions struct {
	Clickable *GioClickable
}

func DefaultClickableOptions

func DefaultClickableOptions() ClickableOptions

type DrawModifierNode

type DrawModifierNode = layoutnode.DrawModifierNode

type Element

type Element = modifier.Element

type GioClickable

type GioClickable = widget.Clickable

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

Jump to

Keyboard shortcuts

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