projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20060726-2-src
[rocksndiamonds.git]
/
src
/
libgame
/
gadgets.h
diff --git
a/src/libgame/gadgets.h
b/src/libgame/gadgets.h
index ec03d0b724f349a8e65d1c9f27ab36e99e1ac85e..86b9bfb13ea8414fa49ad3b7601da69069537108 100644
(file)
--- a/
src/libgame/gadgets.h
+++ b/
src/libgame/gadgets.h
@@
-17,7
+17,8
@@
#include "system.h"
#include "system.h"
-#define GADGET_FRAME_DELAY 150 /* delay between gadget actions */
+#define GADGET_FRAME_DELAY_FIRST 250 /* delay after first click */
+#define GADGET_FRAME_DELAY 100 /* delay for pressed butten */
/* gadget types */
#define GD_TYPE_NORMAL_BUTTON (1 << 0)
/* gadget types */
#define GD_TYPE_NORMAL_BUTTON (1 << 0)
@@
-213,8
+214,8
@@
struct GadgetInfo
char info_text[MAX_INFO_TEXTSIZE]; /* short popup info text */
int x, y; /* gadget position */
int width, height; /* gadget size */
char info_text[MAX_INFO_TEXTSIZE]; /* short popup info text */
int x, y; /* gadget position */
int width, height; /* gadget size */
- unsigned
long type;
/* type (button, text input, ...) */
- unsigned
long state;
/* state (pressed, released, ...) */
+ unsigned
int type;
/* type (button, text input, ...) */
+ unsigned
int state;
/* state (pressed, released, ...) */
boolean checked; /* check/radio button state */
int radio_nr; /* number of radio button series */
boolean mapped; /* gadget is mapped on the screen */
boolean checked; /* check/radio button state */
int radio_nr; /* number of radio button series */
boolean mapped; /* gadget is mapped on the screen */
@@
-226,7
+227,7
@@
struct GadgetInfo
struct GadgetDesign design[2]; /* 0: normal; 1: pressed */
struct GadgetDesign alt_design[2]; /* alternative design */
struct GadgetDecoration deco; /* decoration on top of gadget */
struct GadgetDesign design[2]; /* 0: normal; 1: pressed */
struct GadgetDesign alt_design[2]; /* alternative design */
struct GadgetDecoration deco; /* decoration on top of gadget */
- unsigned
long event_mask;
/* possible events for this gadget */
+ unsigned
int event_mask;
/* possible events for this gadget */
struct GadgetEvent event; /* actual gadget event */
gadget_function callback_info; /* function for pop-up info text */
gadget_function callback_action; /* function for gadget action */
struct GadgetEvent event; /* actual gadget event */
gadget_function callback_info; /* function for pop-up info text */
gadget_function callback_action; /* function for gadget action */
@@
-250,6
+251,10
@@
void UnmapGadget(struct GadgetInfo *);
void UnmapAllGadgets();
void RemapAllGadgets();
void UnmapAllGadgets();
void RemapAllGadgets();
+boolean anyTextInputGadgetActive();
+boolean anyTextAreaGadgetActive();
+boolean anySelectboxGadgetActive();
+boolean anyScrollbarGadgetActive();
boolean anyTextGadgetActive();
void ClickOnGadget(struct GadgetInfo *, int);
boolean anyTextGadgetActive();
void ClickOnGadget(struct GadgetInfo *, int);