rnd-20030404-3-src
[rocksndiamonds.git] / src / libgame / gadgets.h
index e12089945f32d6c7b04c4fdf9f4b4499b93f30eb..ab8e91439bc9c9702186f87b98c1962e4a3b8769 100644 (file)
@@ -144,8 +144,9 @@ struct GadgetTextInput
   int number_min;                      /* minimal allowed numeric value */
   int number_max;                      /* maximal allowed numeric value */
   int size;                            /* maximal size of input text */
-  int cursor_position;                 /* actual cursor position */
   int font_type;                       /* font to use for text input */
+  int cursor_position;                 /* actual cursor position */
+  Pixel inverse_color;                 /* color for highlighting */
 };
 
 struct GadgetSelectbox
@@ -154,6 +155,17 @@ struct GadgetSelectbox
   int index;                           /* index of actual text string */
   int size;                            /* maximal size of text strings */
   int font_type;                       /* font to use for text input */
+
+  /* automatically determined values */
+  int x, y;                            /* open selectbox position */
+  int width, height;                   /* open selectbox size */
+  int num_values;                      /* number of text strings */
+  Pixel inverse_color;                 /* color for highlighting */
+
+  /* runtime values */
+  boolean open;                                /* opening state of selectbox */
+  boolean stay_open;                   /* open after button release */
+  int current_index;                   /* index of text while selecting */
 };
 
 struct GadgetScrollbar