projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-19981217-1
[rocksndiamonds.git]
/
src
/
buttons.h
diff --git
a/src/buttons.h
b/src/buttons.h
index 94616e069e54daad16fc8584a1e4b071dde7ff89..34797401c7b5529b510f9068f73957d389186709 100644
(file)
--- a/
src/buttons.h
+++ b/
src/buttons.h
@@
-286,6
+286,7
@@
int CheckCountButtons(int, int, int);
#define GD_EVENT_PRESSED (1<<0)
#define GD_EVENT_RELEASED (1<<1)
#define GD_EVENT_MOVING (1<<2)
#define GD_EVENT_PRESSED (1<<0)
#define GD_EVENT_RELEASED (1<<1)
#define GD_EVENT_MOVING (1<<2)
+#define GD_EVENT_REPEATED (1<<3)
/* gadget button states */
#define GD_BUTTON_UNPRESSED 0
/* gadget button states */
#define GD_BUTTON_UNPRESSED 0
@@
-296,7
+297,7
@@
int CheckCountButtons(int, int, int);
/* gadget creation tags */
#define GDI_END 0
/* gadget creation tags */
#define GDI_END 0
-#define GDI_
ID
1
+#define GDI_
CUSTOM_ID
1
#define GDI_X 2
#define GDI_Y 3
#define GDI_WIDTH 4
#define GDI_X 2
#define GDI_Y 3
#define GDI_WIDTH 4
@@
-313,6
+314,8
@@
int CheckCountButtons(int, int, int);
#define GDI_EVENT_MASK 15
#define GDI_EVENT 16
#define GDI_CALLBACK 17
#define GDI_EVENT_MASK 15
#define GDI_EVENT 16
#define GDI_CALLBACK 17
+#define GDI_AREA_SIZE 18
+#define GDI_ITEM_SIZE 19
typedef void (*gadget_callback_function)(void *);
typedef void (*gadget_callback_function)(void *);
@@
-326,11
+329,19
@@
struct GadgetEvent
{
unsigned long type; /* event type */
int button; /* button number for button events */
{
unsigned long type; /* event type */
int button; /* button number for button events */
+ int x, y; /* gadget position at event time */
+};
+
+struct GadgetDrawingArea
+{
+ int area_xsize, area_ysize; /* size of drawing area (in items) */
+ int item_xsize, item_ysize; /* size of each item in drawing area */
};
struct GadgetInfo
{
};
struct GadgetInfo
{
- int id; /* gadget identifier */
+ int id; /* internal gadget identifier */
+ int custom_id; /* custom gadget identifier */
int x, y; /* gadget position */
int width, height; /* gadget size */
unsigned long type; /* type (button, text input, ...) */
int x, y; /* gadget position */
int width, height; /* gadget size */
unsigned long type; /* type (button, text input, ...) */
@@
-344,6
+355,7
@@
struct GadgetInfo
unsigned long event_mask; /* possible events for this gadget */
struct GadgetEvent event; /* actual gadget event */
gadget_callback_function callback;
unsigned long event_mask; /* possible events for this gadget */
struct GadgetEvent event; /* actual gadget event */
gadget_callback_function callback;
+ struct GadgetDrawingArea drawing; /* fields for drawing area gadget */
struct GadgetInfo *next; /* next list entry */
};
struct GadgetInfo *next; /* next list entry */
};