image

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Crop

func Crop() seed.Option

Crop crops the image to fill its bounding box.

func New

func New(options ...seed.Option) seed.Seed

New returns a new image widget.

func Set

func Set(path string) seed.Option

Set sets the image path.

func SetFallback

func SetFallback(src string) seed.Option

SetFallback sets a fallback image to be used, this must be a local, cacheable image.

func SetOffset

func SetOffset(x, y units.Unit) css.Rule

SetOffset sets the offset of this image within its container.

func SetSize

func SetSize(size float32) seed.Option

func SetTo

func SetTo(path client.String) seed.Option

SetTo sets the image path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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