00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00033 #ifndef __MLV__MLV_INPUT_BOX_H__
00034 #define __MLV__MLV_INPUT_BOX_H__
00035
00036 #include "MLV_color.h"
00037 #include "MLV_text.h"
00038
00039 #ifdef __cplusplus
00040 extern "C" {
00041 #endif
00042
00047 typedef struct _MLV_Input_box MLV_Input_box;
00048
00084 void MLV_wait_input_box(
00085 int sommetHautGaucheX, int sommetHautGaucheY,
00086 int sommetBasDroitX, int sommetBasDroitY,
00087 MLV_Color borderColor, MLV_Color textColor,
00088 MLV_Color backgroundColor,
00089 const char* informativeMessage,
00090 char** text
00091 );
00092
00119 void MLV_wait_input_box_with_font(
00120 int sommetHautGaucheX, int sommetHautGaucheY,
00121 int sommetBasDroitX, int sommetBasDroitY,
00122 MLV_Color borderColor, MLV_Color textColor,
00123 MLV_Color backgroundColor,
00124 const char* informativeMessage,
00125 char** text,
00126 const MLV_Font* font
00127 );
00128
00129
00138 void MLV_wait_particular_input_box( MLV_Input_box* input_box, char** text);
00139
00140
00168 MLV_Input_box* MLV_create_input_box(
00169 int sommetHautGaucheX, int sommetHautGaucheY,
00170 int width, int height,
00171 MLV_Color borderColor, MLV_Color textColor,
00172 MLV_Color backgroundColor,
00173 const char* informativeMessage
00174 );
00175
00189 MLV_Input_box* MLV_create_input_box_with_font(
00190 int sommetHautGaucheX, int sommetHautGaucheY,
00191 int width, int height,
00192 MLV_Color borderColor, MLV_Color textColor,
00193 MLV_Color backgroundColor,
00194 const char* informativeMessage,
00195 const MLV_Font* font
00196 );
00197
00198
00206 void MLV_free_input_box( MLV_Input_box* input_box );
00207
00214 void MLV_change_informative_message_of_input_box(
00215 MLV_Input_box* input_box, const char* message
00216 );
00217
00223 void MLV_draw_input_box( MLV_Input_box* input_box );
00224
00230 void MLV_draw_all_input_boxes();
00231
00237 void MLV_suppress_history( MLV_Input_box* input_box );
00238
00250 void MLV_change_input_box_geometry(
00251 MLV_Input_box* input_box, int sommetHautGaucheX, int sommetHautGaucheY,
00252 int width, int height
00253 );
00254
00262 void MLV_change_input_box_size(MLV_Input_box* input_box, int width, int height);
00263
00273 void MLV_change_input_box_position(
00274 MLV_Input_box* input_box, int sommetHautGaucheX, int sommetHautGaucheY
00275 );
00276
00285 void MLV_change_input_box_colors(
00286 MLV_Input_box* input_box, MLV_Color borderColor, MLV_Color textColor,
00287 MLV_Color backgroundColor
00288 );
00289
00304 void MLV_activate_input_box( MLV_Input_box* input_box );
00305
00311 void MLV_desactivate_input_box( );
00312
00313 #ifdef __cplusplus
00314 }
00315 #endif
00316
00317 #endif