avyos.dev/pkg/graphics/icons

package icons

Overview

No package-level documentation is provided.

Export GroupCount
Constants0
Variables0
Functions4
Types0

Functions

Load

func Load(name string, size int) (*core.Buffer, error)

Load loads an icon by name and size as a Buffer.

LoadIcon

func LoadIcon(name string, size int) (*core.Buffer, error)

LoadIcon loads an icon by name and size as a Buffer.

ResolveIconPath

func ResolveIconPath(name string, size int) string

ResolveIconPath returns the best icon file path for name+size.

ResolvePath

func ResolvePath(name string, size int) string

ResolvePath returns the best icon file path for name+size. Falls back to help.{svg,png} if the requested icon is missing.