forked from ungerik/go-cairo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconsts_status.go
57 lines (53 loc) · 1.19 KB
/
consts_status.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// Package cairo wraps the c cairographics library.
package cairo
// #cgo pkg-config: cairo
// #include <cairo/cairo-pdf.h>
// #include <cairo/cairo-ps.h>
// #include <cairo/cairo-svg.h>
// #include <stdlib.h>
// #include <string.h>
import "C"
// Status cairo_status_t
type Status int
func (s Status) String() string {
return C.GoString(C.cairo_status_to_string(C.cairo_status_t(s)))
}
// Status constants
const (
StatusSuccess Status = iota
StatusNoMemory
StatusInvalidRestore
StatusInvalidPopGroup
StatusNoCurrentPoint
StatusInvalidMatrix
StatusInvalidStatus
StatusNullPointer
StatusInvalidString
StatusInvalidPathData
StatusReadError
StatusWriteError
StatusSurfaceFinished
StatusSurfaceTypeMismatch
StatusPatternTypeMismatch
StatusInvalidContent
StatusInvalidFormat
StatusInvalidVisual
StatusFileNotFound
StatusInvalidDash
StatusInvalidDscComment
StatusInvalidIndex
StatusClipNotRepresentable
StatusTempFileError
StatusInvalidStride
StatusFontTypeMismatch
StatusUserFontImmutable
StatusUserFontError
StatusNegativeCount
StatusInvalidClusters
StatusInvalidSlant
StatusInvalidWeight
StatusInvalidSize
StatusUserFontNotImplemented
statusDeviceTypeMismatch
StatusDeviceError
)