summaryrefslogtreecommitdiff
path: root/src/hints.h
diff options
context:
space:
mode:
authorDaniel Carl <danielcarl@gmx.de>2012-12-21 14:22:37 +0100
committerDaniel Carl <danielcarl@gmx.de>2012-12-21 14:30:22 +0100
commitbb1073fa828ebe2f0043ee52f33eafbb652d896b (patch)
tree672196c9670f00dd64361cec5984566264b9e417 /src/hints.h
parent2c0d713f664254687904d517f367cc333f6aad60 (diff)
Use a bitmap for the hints type and open modes.
Diffstat (limited to 'src/hints.h')
-rw-r--r--src/hints.h25
1 files changed, 19 insertions, 6 deletions
diff --git a/src/hints.h b/src/hints.h
index 6a0840f..2e7c4c9 100644
--- a/src/hints.h
+++ b/src/hints.h
@@ -22,13 +22,26 @@
#include "main.h"
-typedef enum {
- HINTS_MODE_LINK = 1,
- HINTS_MODE_LINK_NEW = 2,
- HINTS_MODE_IMAGE = 3,
-} HintMode;
+#define CLEAN_HINTS_TYPE(type) ((type) & ~(HINTS_OPEN_USE | HINTS_CLICK_BLANK))
-void hints_create(const gchar* input, HintMode mode);
+enum {
+ HINTS_TYPE_LINK,
+ HINTS_TYPE_IMAGE,
+ HINTS_TYPE_DEFAULT,
+ HINTS_TYPE_FORM
+} HintsType;
+
+enum {
+ HINTS_OPEN_CLICK,
+ HINTS_OPEN_USE = (1 << 2)
+};
+
+enum {
+ HINTS_CLICK_CURRENT,
+ HINTS_CLICK_BLANK = (1 << 3)
+};
+
+void hints_create(const gchar* input, guint mode);
void hints_update(const gulong num);
void hints_clear(void);
void hints_clear_focus(void);