asset

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct{}

Manager manages the loading of UI assets.

func NewManager

func NewManager() *Manager

NewManager creates a new asset manager.

func (*Manager) GetIcon

func (am *Manager) GetIcon(name string) (fyne.Resource, error)

GetIcon loads and returns embedded icon asset by name.

func (*Manager) GetImage

func (am *Manager) GetImage(name string) (image.Image, error)

GetImage loads and returns embedded image asset by name.

func (*Manager) GetText

func (am *Manager) GetText(name string) (string, error)

GetText loads and returns embedded text asset by name.

Jump to

Keyboard shortcuts

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