mainview

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MainView

type MainView struct {
	ResizedImage *image.NRGBA

	VisibleAreaImage *image.NRGBA
	VisibleArea      *nkhelper.Texture

	LatestImageRect     image.Rectangle
	LatestActiveRect    image.Rectangle
	LatestWorkspaceSize image.Point

	BG       *nkhelper.Texture
	BGScroll float32

	ForceUpdate         bool
	ForceScrollToCenter bool
}

func (*MainView) Clear

func (mv *MainView) Clear()

func (*MainView) Init

func (mv *MainView) Init(bg image.Image)

func (*MainView) Render

func (mv *MainView) Render(ctx *nk.Context, winRect nk.Rect, zoom float64)

Jump to

Keyboard shortcuts

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