imagesrc

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package imagesrc seals ui.ImageSource: the pictures ui.Image shows are package ui's bitmaps and SVGs, and Frames, the textures of native modules (internal/texture), which embed Mark. Package ui knows textures only through Frames, so that apps without one link none of their code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Frames

type Frames interface {
	Source
	// Size returns the size of the last frame, in pixels.
	Size() (w, h float32)
	// Frame returns the image a frame draws, nil before there is one;
	// invalidate asks the window of key for a frame once another comes.
	// Main thread only.
	Frame(key any, invalidate func()) *scene.Image
}

Frames is a Source whose frames something else draws: a native.Texture.

type Mark

type Mark struct{}

Mark makes the type embedding it a Source.

type Source

type Source interface {
	// contains filtered or unexported methods
}

Source is what ui.Image shows.

Jump to

Keyboard shortcuts

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