summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-06-26 15:48:12 +0200
committerDave Davenport <qball@gmpclient.org>2016-06-26 15:48:12 +0200
commit6e2d0b63191996b3d247cb535aa9c100c13c7464 (patch)
tree796bd328a199244ee4807b49e6dcba870a4b1f28 /include
parentad5b985abe444d45005f74e3eb45c66a3c8e334b (diff)
Add selection counter in dmenu mode
Diffstat (limited to 'include')
-rw-r--r--include/view-internal.h2
-rw-r--r--include/view.h1
-rw-r--r--include/widget.h14
3 files changed, 13 insertions, 4 deletions
diff --git a/include/view-internal.h b/include/view-internal.h
index 43ba6875..8d6f2bdd 100644
--- a/include/view-internal.h
+++ b/include/view-internal.h
@@ -37,6 +37,8 @@ struct RofiViewState
textbox *case_indicator;
textbox **boxes;
scrollbar *scrollbar;
+ // Small overlay.
+ textbox *overlay;
int *distance;
unsigned int *line_map;
diff --git a/include/view.h b/include/view.h
index 4a69ab83..28f4e438 100644
--- a/include/view.h
+++ b/include/view.h
@@ -154,5 +154,6 @@ void rofi_view_workers_initialize ( void );
void rofi_view_workers_finalize ( void );
void __create_window ( MenuFlags menu_flags );
+void rofi_view_set_overlay ( RofiViewState *state, const char *text );
/**@}*/
#endif
diff --git a/include/widget.h b/include/widget.h
index 57e2371a..acf3037d 100644
--- a/include/widget.h
+++ b/include/widget.h
@@ -11,13 +11,15 @@
typedef struct
{
/** X position relative to parent */
- short x;
+ short x;
/** Y position relative to parent */
- short y;
+ short y;
/** Width of the widget */
- short w;
+ short w;
/** Height of the widget */
- short h;
+ short h;
+ /** enabled or not */
+ gboolean enabled;
} Widget;
/** Macro to get widget from an implementation (e.g. textbox/scrollbar) */
@@ -43,5 +45,9 @@ int widget_intersect ( const Widget *widget, int x, int y );
*/
void widget_move ( Widget *widget, short x, short y );
+gboolean widget_enabled ( Widget *widget );
+void widget_disable ( Widget *widget );
+void widget_enable ( Widget *widget );
+
/*@}*/
#endif // ROFI_WIDGET_H