Documentation ¶
Index ¶
- Constants
- type Color
- type Context
- func (c *Context) BeginFrame(windowWidth, windowHeight int, devicePixelRatio float32)
- func (c *Context) BeginPath()
- func (c *Context) CancelFrame()
- func (c *Context) Close()
- func (c *Context) ClosePath()
- func (c *Context) EndFrame()
- func (c *Context) Fill()
- func (c *Context) FillColor(color Color)
- func (c *Context) LineTo(x, y float32)
- func (c *Context) MoveTo(x, y float32)
- func (c *Context) Rect(x, y, w, h float32)
- func (c *Context) Stroke()
- func (c *Context) StrokeColor(color Color)
- func (c *Context) StrokeWidth(size float32)
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 Context ¶
type Context struct {
// contains filtered or unexported fields
}
func (*Context) BeginFrame ¶
func (*Context) CancelFrame ¶
func (c *Context) CancelFrame()
func (*Context) StrokeColor ¶
func (*Context) StrokeWidth ¶
Click to show internal directories.
Click to hide internal directories.