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 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 ¶
Click to show internal directories.
Click to hide internal directories.