diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2018-01-27 23:28:37 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-02-17 15:30:15 -0200 |
commit | 52b5beb4e47b635712d9832ffe524d17c730f7b8 (patch) | |
tree | feae1d46425f262d1e4df752a26bd3548519d094 /IncSet.h | |
parent | df9922a67eb8e02ab4cf1ff8f24b40f14094e699 (diff) |
Move responsibility for cursor placement to Panels
Diffstat (limited to 'IncSet.h')
-rw-r--r-- | IncSet.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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); |