aboutsummaryrefslogtreecommitdiff
path: root/ui/types.go
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-01-10 22:54:55 -0500
committerDrew DeVault <sir@cmpwn.com>2018-01-10 22:54:55 -0500
commit55e84533022c1f9bf9fd9e2cd2db930394b590b8 (patch)
tree513ee239f641aa5154427776efa18fda752e642d /ui/types.go
parent77a0f68758905faa74407499ff92c90929e27989 (diff)
Improve invalidation logic
Diffstat (limited to 'ui/types.go')
-rw-r--r--ui/types.go11
1 files changed, 7 insertions, 4 deletions
diff --git a/ui/types.go b/ui/types.go
index 588c3b3..14a91c3 100644
--- a/ui/types.go
+++ b/ui/types.go
@@ -7,14 +7,18 @@ import (
)
const (
- Valid = 0
- InvalidateTabs = 1 << iota
+ Valid = 0
+ InvalidateTabList = 1 << iota
+ InvalidateTabView
InvalidateSidebar
InvalidateStatusBar
)
const (
- InvalidateAll = InvalidateTabs | InvalidateSidebar | InvalidateStatusBar
+ InvalidateAll = InvalidateTabList |
+ InvalidateTabView |
+ InvalidateSidebar |
+ InvalidateStatusBar
)
type Geometry struct {
@@ -26,7 +30,6 @@ type Geometry struct {
type AercTab interface {
Name() string
- Invalid() bool
Render(at Geometry)
SetParent(parent *UIState)
}