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.
| 26 | // The resources can be either embedded in the running executable |
| 27 | // file or located below a specified root directory in the file system. |
| 28 | type 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. |
| 35 | func (rm *ResourceManager) RootDirPath() string { |
nothing calls this directly
no outgoing calls
no test coverage detected