icon

package
v0.1.56 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2026 License: MIT Imports: 12 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

type IconOptions

type IconOptions struct {
	Modifier ui.Modifier
	Color    graphics.Color
}

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