-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtypes.go
62 lines (49 loc) · 1.13 KB
/
types.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
58
59
60
61
62
/*
* Copyright 2019 Tapir Liu.
*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
// Please see file ctypes.go on how this file is created.
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
// cgo -godefs ctypes.go
package skia
type Color uint32
type ColorType uint32
const (
UNKNOWN_COLORTYPE ColorType = 0x0
RGBA_8888_COLORTYPE ColorType = 0x4
BGRA_8888_COLORTYPE ColorType = 0x6
ALPHA_8_COLORTYPE ColorType = 0x1
)
type AlphaType uint32
const (
OPAQUE_ALPHATYPE AlphaType = 0x1
PREMUL_ALPHATYPE AlphaType = 0x2
UNPREMUL_ALPHATYPE AlphaType = 0x3
)
type PixelGeometry uint32
const (
UNKNOWN_SK_PIXELGEOMETRY PixelGeometry = 0x0
RGB_H_SK_PIXELGEOMETRY PixelGeometry = 0x1
BGR_H_SK_PIXELGEOMETRY PixelGeometry = 0x2
RGB_V_SK_PIXELGEOMETRY PixelGeometry = 0x3
BGR_V_SK_PIXELGEOMETRY PixelGeometry = 0x4
)
type ImageInfo struct {
Width int32
Height int32
ColorType ColorType
AlphaType AlphaType
}
type SurfaceProps struct {
PixelGeometry uint32
}
type Rect struct {
Left float32
Top float32
Right float32
Bottom float32
}