diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2018-01-27 23:28:37 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-02-26 20:13:09 -0300 |
commit | 1edcfad874e7ed093bd8489a42f7a6f86c19e5c5 (patch) | |
tree | 979449ec7745af2b37dce3b873434ccd8e9c2273 /Panel.h | |
parent | d4ea7cd65ccf8551cabb0706167b2c15aad7866d (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 |