# Documentation of the MLV-0.6.705 library

- Presentation
- Downloads
- Installation
- Compilation
- Examples
- API
- List of functions
- bugs
- contacts

# MLV_input_box.h

    00001 /*
    00002  *   This file is part of the MLV Library.
    00003  *
    00004  *   Copyright (C) 2010,2011,2012 Adrien Boussicault, Marc Zipstein
    00005  *
    00006  *
    00007  *    This Library is free software: you can redistribute it and/or modify
    00008  *    it under the terms of the GNU General Public License as published by
    00009  *    the Free Software Foundation, either version 3 of the License, or
    00010  *    (at your option) any later version.
    00011  *
    00012  *    This Library is distributed in the hope that it will be useful,
    00013  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
    00014  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    00015  *    GNU General Public License for more details.
    00016  *
    00017  *    You should have received a copy of the GNU General Public License
    00018  *    along with this Library.  If not, see <http://www.gnu.org/licenses/>.
    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