ui: rename ops to have Op suffixed, not prefixed

Match Go's FooError name pattern.

While we're here, rename RedrawOp to InvalidateOp.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-06-21 16:59:26 +02:00
parent b981ccf9ed
commit 7aa7bb3be4
21 changed files with 122 additions and 122 deletions
+3 -3
View File
@@ -77,7 +77,7 @@ const (
)
func (c *Click) Add(ops *ui.Ops) {
op := pointer.OpHandler{Key: c}
op := pointer.HandlerOp{Key: c}
op.Add(ops)
}
@@ -118,10 +118,10 @@ func (c *Click) Update(q input.Events) []ClickEvent {
}
func (s *Scroll) Add(ops *ui.Ops) {
oph := pointer.OpHandler{Key: s, Grab: s.grab}
oph := pointer.HandlerOp{Key: s, Grab: s.grab}
oph.Add(ops)
if s.flinger.Active() {
ui.OpRedraw{}.Add(ops)
ui.InvalidateOp{}.Add(ops)
}
}