summaryrefslogtreecommitdiff
path: root/src/widget/widget.h
diff options
context:
space:
mode:
authorxHire <xhire@tuxportal.cz>2008-10-25 14:11:06 +0200
committerxHire <xhire@tuxportal.cz>2008-10-25 14:11:06 +0200
commitc8a9209d77a896bf49227e5aeccd54e91ccf29cc (patch)
tree6b7367406ebbc6ce3ea5e0c8668c75f6fb3f6ae9 /src/widget/widget.h
parentcb9deba915dd7b114eeb76601eb1c8b07c1ba90f (diff)
Changed style of the code to the K&R standard
Diffstat (limited to 'src/widget/widget.h')
-rw-r--r--src/widget/widget.h35
1 files changed, 17 insertions, 18 deletions
diff --git a/src/widget/widget.h b/src/widget/widget.h
index 05fce33..c18a687 100644
--- a/src/widget/widget.h
+++ b/src/widget/widget.h
@@ -1,30 +1,29 @@
#ifndef WIDGET_H
-#define WIDGET_H
+# define WIDGET_H
-#include "main.h"
+# include "main.h"
-#define WIDGET_TYPE_LABEL 1
-#define WIDGET_TYPE_BUTTON 2
-#define WIDGET_TYPE_BUTTONIMAGE 3
-#define WIDGET_TYPE_TEXTFILED 4
-#define WIDGET_TYPE_CATCHKEY 4
-#define WIDGET_TYPE_CHECK 5
-#define WIDGET_TYPE_CHOICE 6
-#define WIDGET_TYPE_IMAGE 7
-#define WIDGET_TYPE_SELECT 8
+# define WIDGET_TYPE_LABEL 1
+# define WIDGET_TYPE_BUTTON 2
+# define WIDGET_TYPE_BUTTONIMAGE 3
+# define WIDGET_TYPE_TEXTFILED 4
+# define WIDGET_TYPE_CATCHKEY 4
+# define WIDGET_TYPE_CHECK 5
+# define WIDGET_TYPE_CHOICE 6
+# define WIDGET_TYPE_IMAGE 7
+# define WIDGET_TYPE_SELECT 8
-typedef struct widget_struct
-{
- int type;
- int x, y;
- int w, h;
- void *private_data;
+typedef struct widget_struct {
+ int type;
+ int x, y;
+ int w, h;
+ void *private_data;
} widget_t;
extern widget_t *newWidget(int type, int x, int y, int w, int h,
- void *private_data);
+ void *private_data);
extern void widgetSetLocation(widget_t * p, int x, int y);
extern void widgetGetLocation(widget_t * p, int *x, int *y);
extern void widgetSetSize(widget_t * p, int w, int h);