50 void set_text (
const string & text);
56 void add_text (
const string & text);
63 void set_form (
const u_int8 form);
69 void set_cursor_visible (
const bool b);
75 void set_cursor_moveable (
const bool b);
93 const string text_string ()
const;
99 const char * text_char ()
const;
110 #define label_NOTHING 0;
111 #define label_AUTO_HEIGHT 1;
112 #define label_AUTO_SIZE 2;
114 #define label_KEY_CURSOR_NEXT SDLK_RIGHT;
115 #define label_KEY_CURSOR_PREVIOUS SDLK_LEFT;
121 static const u_int8 NOTHING = 0;
122 static const u_int8 AUTO_HEIGHT = 1;
123 static const u_int8 AUTO_SIZE = 2;
126 const static SDLKey KEY_CURSOR_NEXT = SDLK_RIGHT;
127 const static SDLKey KEY_CURSOR_PREVIOUS = SDLK_LEFT;
152 void init_vec_cursor ();
159 void build(
const bool erase_all);
165 void build_form_nothing ();
171 void build_form_auto_height ();
175 void build_form_auto_size();
180 void clean_surface (
const bool erase_all);
188 void draw_string (
const bool at_cursor);
194 void update_cursor ();
203 void cursor_previous ();
209 void cursor_undraw ();
211 bool last_letter (
u_int16 idx);
228 bool visible_cursor_;
231 bool moveable_cursor_;
237 static u_int16 cursor_blink_cycle;
246 vector<Sline_text> my_vect_;