icon

package
v0.1.122 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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 ui.Modifier) IconOption

func WithSize added in v0.1.122

func WithSize(size unit.Dp) IconOption

type IconOptions

type IconOptions struct {
	Modifier ui.Modifier
	Color    graphics.Color
	Size     unit.Dp // Unified size for both IconBytes and SymbolName

}

func DefaultIconOptions

func DefaultIconOptions() IconOptions

type IconWidget

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

Jump to

Keyboard shortcuts

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