54 void set_text (
const string & text);
60 void add_text (
const string & text);
67 void set_form (
const u_int8 form);
73 void set_cursor_visible (
const bool b);
79 void set_cursor_moveable (
const bool b);
97 const string & text_string ()
const;
103 const char * text_char ()
const;
114 #define label_NOTHING 0;
115 #define label_AUTO_HEIGHT 1;
116 #define label_AUTO_SIZE 2;
118 #define label_KEY_CURSOR_NEXT SDLK_RIGHT;
119 #define label_KEY_CURSOR_PREVIOUS SDLK_LEFT;
125 static const u_int8 NOTHING = 0;
126 static const u_int8 AUTO_HEIGHT = 1;
127 static const u_int8 AUTO_SIZE = 2;
130 const static SDL_Keycode KEY_CURSOR_NEXT = SDLK_RIGHT;
131 const static SDL_Keycode KEY_CURSOR_PREVIOUS = SDLK_LEFT;
137 void fit_text_width();
141 return ucd(my_text_, idx);
166 void init_vec_cursor ();
173 void build(
const bool erase_all);
179 void build_form_nothing ();
185 void build_form_auto_height ();
189 void build_form_auto_size();
194 void clean_surface (
const bool erase_all);
202 void draw_string (
const bool at_cursor);
208 void update_cursor ();
217 void cursor_previous ();
223 void cursor_undraw ();
225 bool last_letter (
u_int16 idx);
242 bool visible_cursor_;
245 bool moveable_cursor_;
251 static u_int16 cursor_blink_cycle;
260 vector<Sline_text> my_vect_;