nanovg

package module
v0.0.0-...-27ad6c5 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2016 License: Zlib Imports: 2 Imported by: 1

README

Just trying some stuff. Currently not planning to complete it. Feel free to send a pull request. I'll review and test it. :)

Documentation

Index

Constants

View Source
const (
	ANTIALIAS       createFlags = C.NVG_ANTIALIAS
	STENCIL_STROKES             = C.NVG_STENCIL_STROKES
	DEBUG                       = C.NVG_DEBUG
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Color

type Color struct {
	// contains filtered or unexported fields
}

func RGBA

func RGBA(r, g, b, a uint8) Color

type Context

type Context struct {
	// contains filtered or unexported fields
}

func CreateCtx

func CreateCtx(flags createFlags) (*Context, error)

func (*Context) BeginFrame

func (c *Context) BeginFrame(windowWidth, windowHeight int, devicePixelRatio float32)

func (*Context) BeginPath

func (c *Context) BeginPath()

func (*Context) CancelFrame

func (c *Context) CancelFrame()

func (*Context) Close

func (c *Context) Close()

func (*Context) ClosePath

func (c *Context) ClosePath()

func (*Context) EndFrame

func (c *Context) EndFrame()

func (*Context) Fill

func (c *Context) Fill()

func (*Context) FillColor

func (c *Context) FillColor(color Color)

func (*Context) LineTo

func (c *Context) LineTo(x, y float32)

func (*Context) MoveTo

func (c *Context) MoveTo(x, y float32)

func (*Context) Rect

func (c *Context) Rect(x, y, w, h float32)

func (*Context) Stroke

func (c *Context) Stroke()

func (*Context) StrokeColor

func (c *Context) StrokeColor(color Color)

func (*Context) StrokeWidth

func (c *Context) StrokeWidth(size float32)

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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