summaryrefslogtreecommitdiffstats
path: root/IncSet.h
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2018-01-27 23:28:37 -0200
committerHisham Muhammad <hisham@gobolinux.org>2018-01-30 12:51:27 -0200
commit673f098734a03a5643465563b5df3e7a69ed9d7a (patch)
treee4b5a09eff3f9996c130e563f6f393d9632b2706 /IncSet.h
parentad99187680585bf66f9de4f617e897dada8767f7 (diff)
Move responsibility for cursor placement to Panels
Diffstat (limited to 'IncSet.h')
-rw-r--r--IncSet.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/IncSet.h b/IncSet.h
index 27538f4b..393e64b6 100644
--- a/IncSet.h
+++ b/IncSet.h
@@ -33,6 +33,7 @@ typedef struct IncMode_ {
typedef struct IncSet_ {
IncMode modes[2];
IncMode* active;
+ Panel* panel;
FunctionBar* defaultBar;
bool filtering;
bool found;
@@ -45,13 +46,13 @@ IncSet* IncSet_new(FunctionBar* bar);
void IncSet_delete(IncSet* this);
+void IncSet_activate(IncSet* this, IncType type, Panel* panel);
+
bool IncSet_handleKey(IncSet* this, int ch, Panel* panel, IncMode_GetPanelValue getPanelValue, Vector* lines);
const char* IncSet_getListItemValue(Panel* panel, int i);
-void IncSet_activate(IncSet* this, IncType type, Panel* panel);
-
-void IncSet_drawBar(IncSet* this);
+void IncSet_drawBar(IncSet* this, int attr);
int IncSet_synthesizeEvent(IncSet* this, int x);

© 2014-2024 Faster IT GmbH | imprint | privacy policy