Documentation de la bibliothèque MLV-0.5

MLV_prompt.h

Aller à la documentation de ce fichier.
00001 /*
00002  *   This file is part of the MLV Library.
00003  *
00004  *   Copyright (C) 2010 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 
00032 #ifndef __MLV_PROMPT_H__
00033 #define __MLV_PROMPT_H__
00034 
00035 #include "MLV_color.h"
00036 
00037 #ifdef __cplusplus
00038 extern "C" {
00039 #endif
00040 
00045 typedef struct _MLV_Prompt MLV_Prompt;
00046 
00079 void MLV_wait_prompt(
00080         int sommetHautGaucheX, int sommetHautGaucheY,
00081         int sommetBasDroitX, int sommetBasDroitY,
00082         MLV_Color borderColor, MLV_Color textColor,
00083         MLV_Color backgroundColor,
00084         const char* informativeMessage,
00085         char** text
00086 );
00087 
00088 
00096 void MLV_wait_particular_prompt( MLV_Prompt* prompt, char** text);
00097 
00098 
00126 MLV_Prompt* MLV_create_prompt(
00127         int sommetHautGaucheX, int sommetHautGaucheY,
00128         int width, int height,
00129         MLV_Color borderColor, MLV_Color textColor,
00130         MLV_Color backgroundColor,
00131         const char* informativeMessage
00132 );
00138 void MLV_free_prompt( MLV_Prompt* prompt );
00145 void MLV_change_informative_message_of_prompt(
00146         MLV_Prompt* prompt, const char* message
00147 );
00153 void MLV_draw_prompt(MLV_Prompt* prompt);
00159 void MLV_draw_all_prompt();
00165 void MLV_suppress_history( MLV_Prompt* prompt );
00177 void MLV_change_prompt_geometry(
00178         MLV_Prompt* prompt,  int sommetHautGaucheX, int sommetHautGaucheY,
00179         int width, int height
00180 );
00188 void MLV_change_prompt_size(MLV_Prompt* prompt, int width, int height);
00198 void MLV_change_prompt_position(
00199         MLV_Prompt* prompt, int sommetHautGaucheX, int sommetHautGaucheY
00200 );
00209 void MLV_change_prompt_colors( 
00210         MLV_Prompt* prompt,  MLV_Color borderColor, MLV_Color textColor,
00211         MLV_Color backgroundColor
00212 );
00219 void MLV_activate_prompt( MLV_Prompt* prompt );
00224 void MLV_desactivate_prompt( );
00225 
00226 #ifdef __cplusplus
00227 }
00228 #endif
00229 
00230 #endif