summaryrefslogtreecommitdiffstats
path: root/pkg/gui/types
diff options
context:
space:
mode:
authorStefan Haller <stefan@haller-berlin.de>2023-08-08 12:46:04 +0200
committerStefan Haller <stefan@haller-berlin.de>2023-08-29 08:04:47 +0200
commit3df01aaff08b68a860b52aee5acee411c8ad63d5 (patch)
treec5bdffdbe92b71675caf0549a5544f2a50a86df1 /pkg/gui/types
parent4ee4f6f34bc5ac736058350bf10efe71c10c1282 (diff)
Add a mechanism to insert non-model items into list contexts
Not used by anything yet.
Diffstat (limited to 'pkg/gui/types')
-rw-r--r--pkg/gui/types/context.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/gui/types/context.go b/pkg/gui/types/context.go
index dca5b042c..7aa07056e 100644
--- a/pkg/gui/types/context.go
+++ b/pkg/gui/types/context.go
@@ -124,6 +124,8 @@ type IListContext interface {
GetSelectedItemId() string
GetList() IList
+ ViewIndexToModelIndex(int) int
+ ModelIndexToViewIndex(int) int
FocusLine()
IsListContext() // used for type switch