metadata

package
v0.48.1 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoMetadata = errors.New("no metadata available")

Functions

func AttachToThread

func AttachToThread(t *starlark.Thread, m Metadata)

Types

type Metadata

type Metadata struct {
	Width  int
	Height int
	Is2x   bool
}

func FromThread

func FromThread(thread *starlark.Thread) (Metadata, error)

func (Metadata) ScaledHeight

func (m Metadata) ScaledHeight() int

func (Metadata) ScaledWidth

func (m Metadata) ScaledWidth() int

Jump to

Keyboard shortcuts

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