Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsyncImage ¶
func AsyncImage(ctx context.Context, img ImageContainer, imageURL string, procs ...imgutil.Processor)
AsyncImage loads an image. This method uses the cache. It prefers loading SetFromSurface over SetFromPixbuf, but will fallback if needed be.
Types ¶
type ImageContainer ¶
type ImageContainer interface { primitives.Connector SetFromPixbuf(*gdk.Pixbuf) SetFromAnimation(*gdk.PixbufAnimation) GetSizeRequest() (w, h int) }
type SurfaceContainer ¶
type SurfaceContainer interface { ImageContainer GetScaleFactor() int SetFromSurface(*cairo.Surface) }
Click to show internal directories.
Click to hide internal directories.