diff options
| author | faiface <faiface@ksp.sk> | 2017-08-22 23:52:19 +0200 |
|---|---|---|
| committer | faiface <faiface@ksp.sk> | 2017-08-22 23:52:19 +0200 |
| commit | df69ad70ca3c0b7f9d9f22396810188addf6caa9 (patch) | |
| tree | dbc60ff484c1c5adb3fecc91d2c67155fa1d6109 | |
| parent | 5ecc83c6bc073eba1530d5d302f295cbc9d306fd (diff) | |
| download | gui-df69ad70ca3c0b7f9d9f22396810188addf6caa9.zip | |
layout: minor renaming
| -rw-r--r-- | layout/layer.go | 6 |
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) } |