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-01-30 12:51:27 -0200
commit673f098734a03a5643465563b5df3e7a69ed9d7a (patch)
treee4b5a09eff3f9996c130e563f6f393d9632b2706 /Panel.h
parentad99187680585bf66f9de4f617e897dada8767f7 (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