aboutsummaryrefslogtreecommitdiffstats
path: root/layout/layer.go
diff options
context:
space:
mode:
Diffstat (limited to 'layout/layer.go')
-rw-r--r--layout/layer.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/layout/layer.go b/layout/layer.go
index 8170f25..42000a5 100644
--- a/layout/layer.go
+++ b/layout/layer.go
@@ -46,7 +46,7 @@ func NewLayerList(dst EventImageFlusher) *LayerList {
return l
}
-func (l *LayerList) Push() *Layer {
+func (l *LayerList) Add() *Layer {
layer := &Layer{
lst: l,
rgba: image.NewRGBA(l.dst.Image().Bounds()),
@@ -83,7 +83,7 @@ func (l *LayerList) Happen(event string) bool {
return false
}
-func (l *LayerList) flush(r image.Rectangle) {
+func (l *LayerList) Flush(r image.Rectangle) {
if l.dst == nil {
panic(errors.New("layer: Flush: no destination"))
}
@@ -114,5 +114,5 @@ func (l *Layer) Flush(r image.Rectangle) {
if l.lst == nil {
panic(errors.New("layer: Flush: layer removed"))
}
- l.lst.flush(r)
+ l.lst.Flush(r)
}