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

Interface ImageProvider

models.go:299–307  ·  view source on GitHub ↗

ImageProvider is the interface that a model must implement to support displaying an item image.

Source from the content-addressed store, hash-verified

297// ImageProvider is the interface that a model must implement to support
298// displaying an item image.
299type ImageProvider interface {
300 // Image returns the image to display for the item at index index.
301 //
302 // Supported types are *walk.Bitmap, *walk.Icon and string. A string will be
303 // interpreted as a file path and the icon associated with the file will be
304 // used. It is not supported to use strings together with the other options
305 // in the same model instance.
306 Image(index int) interface{}
307}
308
309// CellStyler is the interface that must be implemented to provide a tabular
310// widget like TableView with cell display style information.

Callers

nothing calls this directly

Implementers 9

imageReflectTableModelreflectmodels.go
ImageViewimageview.go
ResourceManagerresourcemanager.go
Buttonbutton.go
Actionaction.go
TabPagetabpage.go
Directoryexamples/filebrowser/filebrowser.go
FileInfoModelexamples/filebrowser/filebrowser.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…