projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20050603-1-src
[rocksndiamonds.git]
/
src
/
libgame
/
gadgets.h
diff --git
a/src/libgame/gadgets.h
b/src/libgame/gadgets.h
index 160bd611a375311d5372208270f92499be2f21a3..d69c40170c8d65d488dcad56ac876c9415c16961 100644
(file)
--- a/
src/libgame/gadgets.h
+++ b/
src/libgame/gadgets.h
@@
-152,6
+152,7
@@
struct GadgetTextButton
struct GadgetTextInput
{
char value[MAX_GADGET_TEXTSIZE]; /* text string in input field */
struct GadgetTextInput
{
char value[MAX_GADGET_TEXTSIZE]; /* text string in input field */
+ char last_value[MAX_GADGET_TEXTSIZE]; /* last text string in input field */
int cursor_position; /* actual text cursor position */
int number_value; /* integer value, if numeric */
int number_min; /* minimal allowed numeric value */
int cursor_position; /* actual text cursor position */
int number_value; /* integer value, if numeric */
int number_min; /* minimal allowed numeric value */
@@
-162,6
+163,7
@@
struct GadgetTextInput
struct GadgetTextArea
{
char value[MAX_GADGET_TEXTSIZE]; /* text string in input field */
struct GadgetTextArea
{
char value[MAX_GADGET_TEXTSIZE]; /* text string in input field */
+ char last_value[MAX_GADGET_TEXTSIZE]; /* last text string in input field */
int cursor_position; /* actual text cursor position */
int cursor_x; /* actual x cursor position */
int cursor_y; /* actual y cursor position */
int cursor_position; /* actual text cursor position */
int cursor_x; /* actual x cursor position */
int cursor_y; /* actual y cursor position */
@@
-193,7
+195,9
@@
struct GadgetScrollbar
int items_max; /* number of items to access */
int items_visible; /* number of visible items */
int item_position; /* actual item position */
int items_max; /* number of items to access */
int items_visible; /* number of visible items */
int item_position; /* actual item position */
+ int size_min; /* minimal scrollbar size */
int size_max; /* this is either width or height */
int size_max; /* this is either width or height */
+ int size_max_cmp; /* needed for minimal scrollbar size */
int size; /* scrollbar size on screen */
int position; /* scrollbar position on screen */
int position_max; /* bottom/right scrollbar position */
int size; /* scrollbar size on screen */
int position; /* scrollbar position on screen */
int position_max; /* bottom/right scrollbar position */
@@
-246,10
+250,15
@@
void UnmapGadget(struct GadgetInfo *);
void UnmapAllGadgets();
void RemapAllGadgets();
void UnmapAllGadgets();
void RemapAllGadgets();
+boolean anyTextInputGadgetActive();
+boolean anyTextAreaGadgetActive();
+boolean anySelectboxGadgetActive();
+boolean anyScrollbarGadgetActive();
boolean anyTextGadgetActive();
boolean anyTextGadgetActive();
+
void ClickOnGadget(struct GadgetInfo *, int);
void ClickOnGadget(struct GadgetInfo *, int);
-
void
HandleGadgets(int, int, int);
-
void
HandleGadgetsKeyInput(Key);
+
boolean
HandleGadgets(int, int, int);
+
boolean
HandleGadgetsKeyInput(Key);
#endif /* GADGETS_H */
#endif /* GADGETS_H */