Documentation de la bibliothèque MLV-3.1.0

MLV_input_box.h
Aller à la documentation de ce fichier.
1/*
2 * This file is part of the MLV Library.
3 *
4 * Copyright (C) 2010,2011,2012 Adrien Boussicault, Marc Zipstein
5 *
6 *
7 * This Library is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This Library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this Library. If not, see <http://www.gnu.org/licenses/>.
19 */
20
33#ifndef __MLV__MLV_INPUT_BOX_H__
34#define __MLV__MLV_INPUT_BOX_H__
35
36#include "MLV_color.h"
37#include "MLV_text.h"
38
39#ifdef __cplusplus
40extern "C" {
41#endif
42
47typedef struct _MLV_Input_box MLV_Input_box;
48
83 int top_left_corner_X, int top_left_corner_Y,
84 int width, int height,
85 MLV_Color borderColor, MLV_Color textColor,
86 MLV_Color backgroundColor,
87 const char* informativeMessage,
88 char** text, ...
89);
90
116 int top_left_corner_X, int top_left_corner_Y,
117 int width, int height,
118 MLV_Color borderColor, MLV_Color textColor,
119 MLV_Color backgroundColor,
120 const char* informativeMessage,
121 char** text,
122 const MLV_Font* font, ...
123);
124
133void MLV_wait_particular_input_box( MLV_Input_box* input_box, char** text);
134
163 int top_left_corner_X, int top_left_corner_Y,
164 int width, int height,
165 MLV_Color borderColor, MLV_Color textColor,
166 MLV_Color backgroundColor,
167 const char* informativeMessage, ...
168);
169
184 int top_left_corner_X, int top_left_corner_Y,
185 int width, int height,
186 MLV_Color borderColor, MLV_Color textColor,
187 MLV_Color backgroundColor,
188 const char* informativeMessage,
189 const MLV_Font* font, ...
190);
191
192
201
209 MLV_Input_box* input_box, const char* message, ...
210);
211
218
225
232
245 MLV_Input_box* input_box, int top_left_corner_X, int top_left_corner_Y,
246 int width, int height
247);
248
256void MLV_change_input_box_size(MLV_Input_box* input_box, int width, int height);
257
268 MLV_Input_box* input_box, int top_left_corner_X, int top_left_corner_Y
269);
270
280 MLV_Input_box* input_box, MLV_Color borderColor, MLV_Color textColor,
281 MLV_Color backgroundColor
282);
283
299
306
307#ifdef __cplusplus
308}
309#endif
310
311#endif
Uint32 MLV_Color
Définit un type couleur pour la bibliothèque MLV.
Definition MLV_color.h:54
Définit toutes les couleurs disponibles dans la bibliothèque MLV.
void MLV_wait_particular_input_box(MLV_Input_box *input_box, char **text)
Cette fonction suspend l'exécution du programme jusqu'à ce que l'utilisateur écrive une phrase dans l...
void MLV_change_input_box_size(MLV_Input_box *input_box, int width, int height)
Cette fonction change la taille d'une boîte de saisie.
void MLV_change_input_box_position(MLV_Input_box *input_box, int top_left_corner_X, int top_left_corner_Y)
Cette fonction change la position d'une boîte de saisie donnée en paramètre.
void MLV_change_input_box_colors(MLV_Input_box *input_box, MLV_Color borderColor, MLV_Color textColor, MLV_Color backgroundColor)
Cette fonction change les différentes couleurs d'une boîte de saisie donnée.
void MLV_wait_input_box_with_font(int top_left_corner_X, int top_left_corner_Y, int width, int height, MLV_Color borderColor, MLV_Color textColor, MLV_Color backgroundColor, const char *informativeMessage, char **text, const MLV_Font *font,...)
Même chose que MLV_wait_input_box(), mais il est possible de changer la fonte du du texte.
MLV_Input_box * MLV_create_input_box_with_font(int top_left_corner_X, int top_left_corner_Y, int width, int height, MLV_Color borderColor, MLV_Color textColor, MLV_Color backgroundColor, const char *informativeMessage, const MLV_Font *font,...)
Cette fonction créé une boîte de saisie avec une font spécifique.
void MLV_change_informative_message_of_input_box(MLV_Input_box *input_box, const char *message,...)
Cette fonction change le message d'entête d'une boîte de saisie.
void MLV_wait_input_box(int top_left_corner_X, int top_left_corner_Y, int width, int height, MLV_Color borderColor, MLV_Color textColor, MLV_Color backgroundColor, const char *informativeMessage, char **text,...)
Cette fonction suspend l'exécution du programme, affiche une boîte de saisie et attends que l'utilisa...
void MLV_change_input_box_geometry(MLV_Input_box *input_box, int top_left_corner_X, int top_left_corner_Y, int width, int height)
Cette fonction change la taille et la position d'une boîte de saisie donnée en paramètre.
void MLV_suppress_history(MLV_Input_box *input_box)
Cette fonction supprime l'historique d'une boîte de saisie.
void MLV_free_input_box(MLV_Input_box *input_box)
Cette fonction ferme une boîte de saisie précédement créée.
void MLV_draw_input_box(MLV_Input_box *input_box)
Cette fonction dessine une boîte de saisie particulière.
MLV_Input_box * MLV_create_input_box(int top_left_corner_X, int top_left_corner_Y, int width, int height, MLV_Color borderColor, MLV_Color textColor, MLV_Color backgroundColor, const char *informativeMessage,...)
Cette fonction créé une boîte de saisie.
void MLV_desactivate_input_box()
Cette fonction désactive la boîte de saisie qui est active.
void MLV_activate_input_box(MLV_Input_box *input_box)
Cette fonction active une boîte de saisie.
void MLV_draw_all_input_boxes()
Cette fonction dessine tous les boîtes de saisies.
struct _MLV_Input_box MLV_Input_box
Définition du type des boîtes de saisies.
Definition MLV_input_box.h:47
struct _MLV_Font MLV_Font
Definition MLV_text.h:77
Ce fichier définit les différents prototypes des fonctions permmettant d'afficher du texte et des boî...