diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2018-01-27 23:28:37 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-01-30 12:51:27 -0200 |
commit | 673f098734a03a5643465563b5df3e7a69ed9d7a (patch) | |
tree | e4b5a09eff3f9996c130e563f6f393d9632b2706 /IncSet.h | |
parent | ad99187680585bf66f9de4f617e897dada8767f7 (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); |