summaryrefslogtreecommitdiff
path: root/src/widget/widget_catchkey.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/widget/widget_catchkey.h')
-rw-r--r--src/widget/widget_catchkey.h25
1 files changed, 12 insertions, 13 deletions
diff --git a/src/widget/widget_catchkey.h b/src/widget/widget_catchkey.h
index 9a1da1c..a030f6e 100644
--- a/src/widget/widget_catchkey.h
+++ b/src/widget/widget_catchkey.h
@@ -1,14 +1,13 @@
#ifndef WIDGET_CATCHKEY_H
+#define WIDGET_CATCHKEY_H
-# define WIDGET_CATCHKEY_H
+#include "main.h"
+#include "widget.h"
-# include "main.h"
-# include "widget.h"
+#define WIDGET_CATCHKEY_NOKEY -1
-# define WIDGET_CATCHKEY_WIDTH 110
-# define WIDGET_CATCHKEY_HEIGHT 12
-
-# define WIDGET_CATCHKEY_NOKEY -1
+#define WIDGET_CATCHKEY_WIDTH 110
+#define WIDGET_CATCHKEY_HEIGHT 12
typedef struct widget_catchkey_struct {
int w, h;
@@ -18,10 +17,10 @@ typedef struct widget_catchkey_struct {
} widget_catchkey_t;
extern widget_t *catch_key_new(int key, int x, int y, void *event);
-extern int catch_key_get(widget_t * p);
-extern void catch_key_set(widget_t * p, int key);
-extern void catch_key_draw(widget_t * p);
-extern void catch_key_event(widget_t * p);
-extern void catch_key_destroy(widget_t * p);
+extern int catch_key_get(widget_t *p);
+extern void catch_key_set(widget_t *p, int key);
+extern void catch_key_draw(widget_t *p);
+extern void catch_key_event(widget_t *p);
+extern void catch_key_destroy(widget_t *p);
-#endif
+#endif /* WIDGET_CATCHKEY_H */