summaryrefslogtreecommitdiff
path: root/src/widget/widget_button.h
diff options
context:
space:
mode:
authorxHire <xhire@tuxportal.cz>2009-05-22 18:39:29 +0200
committerxHire <xhire@tuxportal.cz>2009-05-26 01:10:58 +0200
commit78aa43a47bdcb3d88d267d8b65377b12d75a017b (patch)
tree842398fb20e97c9012e8dd791643a0b06dcbebbf /src/widget/widget_button.h
parentf3ccf7e671c1ce8e2ac3dd791bcfa60d8c5d9c0b (diff)
Rectified the coding style in widget .h files
Diffstat (limited to 'src/widget/widget_button.h')
-rw-r--r--src/widget/widget_button.h25
1 files changed, 11 insertions, 14 deletions
diff --git a/src/widget/widget_button.h b/src/widget/widget_button.h
index a42e35c..2ec4ae3 100644
--- a/src/widget/widget_button.h
+++ b/src/widget/widget_button.h
@@ -1,15 +1,13 @@
-
#ifndef WIDGET_BUTTON_H
+#define WIDGET_BUTTON_H
-# define WIDGET_BUTTON_H
-
-# include "main.h"
-# include "widget.h"
+#include "main.h"
+#include "widget.h"
-# define WIDGET_BUTTON_TIME 10
+#define WIDGET_BUTTON_TIME 10
-# define WIDGET_BUTTON_WIDTH 125
-# define WIDGET_BUTTON_HEIGHT 36
+#define WIDGET_BUTTON_WIDTH 125
+#define WIDGET_BUTTON_HEIGHT 36
typedef struct widget_button {
char *text;
@@ -17,10 +15,9 @@ typedef struct widget_button {
void (*fce_event) (void *);
} widget_button_t;
-extern widget_t *button_new(char *text, int x, int y,
- void (*fce_event) (void *));
-extern void button_draw(widget_t * widget);
-extern void button_event(widget_t * widget);
-extern void button_destroy(widget_t * widget);
+extern widget_t *button_new(char *text, int x, int y, void (*fce_event) (void *));
+extern void button_draw(widget_t *widget);
+extern void button_event(widget_t *widget);
+extern void button_destroy(widget_t *widget);
-#endif
+#endif /* WIDGET_BUTTON_H */