MCPcopy
hub / github.com/lxn/walk / ResourceManager

Struct ResourceManager

resourcemanager.go:28–32  ·  view source on GitHub ↗

ResourceManager is a cache for sharing resources like bitmaps and icons. The resources can be either embedded in the running executable file or located below a specified root directory in the file system.

Source from the content-addressed store, hash-verified

26// The resources can be either embedded in the running executable
27// file or located below a specified root directory in the file system.
28type ResourceManager struct {
29 rootDirPath string
30 bitmaps map[string]*Bitmap
31 icons map[string]*Icon
32}
33
34// RootDirPath returns the root directory path where resources are to be loaded from.
35func (rm *ResourceManager) RootDirPath() string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected