drawpix

package
v0.0.0-...-194f655 Latest Latest
Warning

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

Go to latest
Published: May 10, 2018 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DeltaX, DeltaY int = 0, 0

	KeyHorizontalMoveStep           = 32
	KeyVerticalMoveStep             = 16
	ToScale               ScaleMode = No
)

Functions

func DrawPixbufHandler

func DrawPixbufHandler(widget *gtk.DrawingArea, cairoCtx *cairo.Context) bool

"draw"

func IfMustScale

func IfMustScale()

func Move

func Move(widget *gtk.DrawingArea, cairoCtx *cairo.Context)

func ScaleDown

func ScaleDown(widget *gtk.Window, ev *gdk.Event) bool

func ScaleUp

func ScaleUp(widget *gtk.Window, ev *gdk.Event) bool

func WheelHandler

func WheelHandler(widget *gtk.Window, ev *gdk.Event) bool

"scroll-event"

Types

type ScaleMode

type ScaleMode uint
const (
	No ScaleMode = iota
	Up
	Down
)

Jump to

Keyboard shortcuts

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