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 /Panel.h | |
parent | ad99187680585bf66f9de4f617e897dada8767f7 (diff) |
Move responsibility for cursor placement to Panels
Diffstat (limited to 'Panel.h')
-rw-r--r-- | Panel.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -46,6 +46,7 @@ typedef struct PanelClass_ { struct Panel_ { Object super; int x, y, w, h; + int cursorX, cursorY; WINDOW* window; Vector* items; int selected; @@ -55,6 +56,7 @@ struct Panel_ { int scrollV; short scrollH; bool needsRedraw; + bool cursorOn; FunctionBar* currentBar; FunctionBar* defaultBar; RichString header; @@ -73,6 +75,8 @@ struct Panel_ { #define KEY_CTRL(l) ((l)-'A'+1) +void Panel_setCursorToSelection(Panel* this); + extern PanelClass Panel_class; Panel* Panel_new(int x, int y, int w, int h, bool owner, ObjectClass* type, FunctionBar* fuBar); @@ -123,4 +127,7 @@ bool Panel_onKey(Panel* this, int key); HandlerResult Panel_selectByTyping(Panel* this, int ch); +int Panel_getCh(Panel* this); + + #endif |