urlimageview

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package urlimageview implements a view which loads and displays an image.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type View

type View struct {
	view.Embed
	PaintStyle *paint.Style
	ResizeMode imageview.ResizeMode
	URL        string
	Path       string
	Tint       color.Color
	// contains filtered or unexported fields
}

func New

func New(ctx *view.Context, key string) *View

New returns either the previous View in ctx with matching key, or a new View if none exists.

func (*View) Build

func (v *View) Build(ctx *view.Context) view.Model

Build implements view.View.

func (*View) Lifecycle

func (v *View) Lifecycle(from, to view.Stage)

Lifecycle implements view.View.

Jump to

Keyboard shortcuts

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