summaryrefslogtreecommitdiff
path: root/draw.go
diff options
context:
space:
mode:
Diffstat (limited to 'draw.go')
-rw-r--r--draw.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/draw.go b/draw.go
index 237e9c7..fd21a75 100644
--- a/draw.go
+++ b/draw.go
@@ -206,10 +206,10 @@ type DrawContext struct {
// TODO disclaimer
type BrushType int
const (
- Solid BrushType = iota
- LinearGradient
- RadialGradient
- Image // presently unimplemented
+ BrushTypeSolid BrushType = iota
+ BrushTypeLinearGradient
+ BrushTypeRadialGradient
+ BrushTypeImage // presently unimplemented
)
// TODO
@@ -270,12 +270,12 @@ func (b *Brush) toC() *C.uiDrawBrush {
cb := C.newBrush()
cb.Type = C.uiDrawBrushType(b.Type)
switch b.Type {
- case Solid:
+ case BrushTypeSolid:
cb.R = C.double(b.R)
cb.G = C.double(b.G)
cb.B = C.double(b.B)
cb.A = C.double(b.A)
- case LinearGradient, RadialGradient:
+ case BrushTypeLinearGradient, BrushTypeRadialGradient:
cb.X0 = C.double(b.X0)
cb.Y0 = C.double(b.Y0)
cb.X1 = C.double(b.X1)
@@ -291,7 +291,7 @@ func (b *Brush) toC() *C.uiDrawBrush {
C.double(s.B),
C.double(s.A))
}
- case Image:
+ case BrushTypeImage:
panic("unimplemented")
default:
panic("invalid brush type in Brush.toC()")