summaryrefslogtreecommitdiffstats
path: root/Panel.h
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2018-01-27 23:28:37 -0200
committerHisham Muhammad <hisham@gobolinux.org>2018-02-26 20:13:09 -0300
commit1edcfad874e7ed093bd8489a42f7a6f86c19e5c5 (patch)
tree979449ec7745af2b37dce3b873434ccd8e9c2273 /Panel.h
parentd4ea7cd65ccf8551cabb0706167b2c15aad7866d (diff)
Move responsibility for cursor placement to Panels
Diffstat (limited to 'Panel.h')
-rw-r--r--Panel.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Panel.h b/Panel.h
index 5253fc2e..1ebeedf7 100644
--- a/Panel.h
+++ b/Panel.h
@@ -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

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