icon

package
v0.1.39 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const Material3IconNodeID = "Material3Icon"

Variables

View Source
var EmptyModifier = modifier.EmptyModifier

Functions

func NewGlobalIconCache

func NewGlobalIconCache() any

Types

type Composable

type Composable = api.Composable

func Icon

func Icon(iconByte []byte, options ...IconOption) Composable

icons from golang.org/x/exp/shiny/materialdesign/icons

type Composer

type Composer = api.Composer

type GlobalIconCache

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

GlobalIconCache manages the LRU cache for icon rendering operations

type IconOption

type IconOption func(*IconOptions)

func WithColor

func WithColor(col graphics.Color) IconOption

func WithModifier

func WithModifier(m Modifier) IconOption

type IconOptions

type IconOptions struct {
	Modifier Modifier
	Color    graphics.Color
}

func DefaultIconOptions

func DefaultIconOptions() IconOptions

type IconWidget

type IconWidget = func(gtx layoutContext, foreground color.NRGBA) layoutDimensions

type Modifier

type Modifier = modifier.Modifier

Jump to

Keyboard shortcuts

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