Include new API in interface.

This commit is contained in:
Jonathan Feinberg 2013-05-27 15:09:57 -04:00
parent 19b0ec55b5
commit 80a6c6c182

View file

@ -43,8 +43,11 @@ type GraphicContext interface {
ClearRect(x1, y1, x2, y2 int) ClearRect(x1, y1, x2, y2 int)
SetDPI(dpi int) SetDPI(dpi int)
GetDPI() int GetDPI() int
CreateStringPath(text string, x, y float64) (cursor float64)
FillString(text string) (cursor float64) FillString(text string) (cursor float64)
FillStringAt(text string, x, y float64) (cursor float64)
StrokeString(text string) (cursor float64) StrokeString(text string) (cursor float64)
StrokeStringAt(text string, x, y float64) (cursor float64)
Stroke(paths ...*PathStorage) Stroke(paths ...*PathStorage)
Fill(paths ...*PathStorage) Fill(paths ...*PathStorage)
FillStroke(paths ...*PathStorage) FillStroke(paths ...*PathStorage)