# Documentación de la biblioteca MLV-2.0.2

- Presentación
- Descargar
- Instalación
- Compilatción
- Ejemplos
- API
- Lista de las subrutinas
- bugs
- FAQ
- Contactos

MLV_text_va.h
1 /*
2 * This file is part of the MLV Library.
3 *
4 * Copyright (C) 2013-2014 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
31 #ifndef __MLV__MLV_TEXT_VA_H__
32 #define __MLV__MLV_TEXT_VA_H__
33
34 #include "MLV_color.h"
35 #include "MLV_image.h"
36 #include "MLV_text.h"
37
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41
58 void MLV_draw_text_va(
59 int x, int y, const char *text, MLV_Color color, va_list pile
60 );
61
62
81 void MLV_draw_text_with_font_va(
82 int x, int y, const char *text, const MLV_Font* font, MLV_Color color,
83 va_list pile
84 );
85
106 void MLV_draw_text_with_font_on_image_va(
107 int x, int y, const char *text, const MLV_Font* font, MLV_Color color,
108 MLV_Image* image, va_list pile
109 );
110
128 void MLV_get_size_of_text_va(
129 const char *text, int *width, int *height, va_list pile
130 );
131
150 void MLV_get_size_of_text_with_font_va(
151 const char *text, int *width, int *height, const MLV_Font* font,
152 va_list pile
153 );
154
155
179 void MLV_draw_adapted_text_box_with_font_va(
180 int x, int y,
181 const char* message,
182 const MLV_Font* font,
183 int sizeInterligne,
184 MLV_Color borderColor, MLV_Color textColor, MLV_Color backgroundColor,
185 MLV_Text_justification text_justification,
186 va_list pile
187 );
188
210 void MLV_draw_adapted_text_box_va(
211 int x, int y,
212 const char* message,
213 int sizeInterligne,
214 MLV_Color borderColor, MLV_Color textColor, MLV_Color backgroundColor,
215 MLV_Text_justification text_justification, va_list pile
216 );
217
241 void MLV_draw_adapted_text_box_on_image_va(
242 int x, int y,
243 const char* message,
244 int sizeInterligne,
245 MLV_Color borderColor, MLV_Color textColor, MLV_Color backgroundColor,
246 MLV_Text_justification text_justification,
247 MLV_Image* image, va_list pile
248 );
249
274 void MLV_draw_adapted_text_box_with_font_on_image_va(
275 int x, int y,
276 const char* message,
277 const MLV_Font* font,
278 int sizeInterligne,
279 MLV_Color borderColor, MLV_Color textColor, MLV_Color backgroundColor,
280 MLV_Text_justification text_justification,
281 MLV_Image* image, va_list pile
282 );
283
307 int MLV_get_size_of_adapted_text_box_va(
308 const char* message,
309 int sizeInterligne,
310 int *result_width, int *result_height,
311 va_list pile
312 );
313
339 int MLV_get_size_of_adapted_text_box_with_font_va(
340 const char* message,
341 const MLV_Font* font,
342 int sizeInterligne,
343 int *result_width, int *result_height,
344 va_list pile
345 );
346
347
376 void MLV_draw_text_box_with_font_va(
377 int x, int y,
378 int width, int height,
379 const char* message ,
380 const MLV_Font* font,
381 int sizeInterligne,
382 MLV_Color borderColor, MLV_Color textColor, MLV_Color backgroundColor,
383 MLV_Text_justification text_justification,
384 MLV_Horizontal_position horizontal_position,
385 MLV_Vertical_position vertical_position,
386 va_list pile
387 );
388
416 void MLV_draw_text_box_va(
417 int x, int y,
418 int width, int height,
419 const char* message ,
420 int sizeInterligne,
421 MLV_Color borderColor, MLV_Color textColor, MLV_Color backgroundColor,
422 MLV_Text_justification text_justification,
423 MLV_Horizontal_position horizontal_position,
424 MLV_Vertical_position vertical_position,
425 va_list pile
426 );
427
457 void MLV_draw_text_box_with_font_on_image_va(
458 int x, int y,
459 int width, int height,
460 const char* message ,
461 MLV_Font* font,
462 int sizeInterligne,
463 MLV_Color borderColor, MLV_Color textColor, MLV_Color backgroundColor,
464 MLV_Text_justification text_justification,
465 MLV_Horizontal_position horizontal_position,
466 MLV_Vertical_position vertical_position,
467 MLV_Image* image,
468 va_list pile
469 );
470
498 void MLV_draw_text_box_on_image_va(
499 int x, int y,
500 int width, int height,
501 const char* message ,
502 int sizeInterligne,
503 MLV_Color borderColor, MLV_Color textColor, MLV_Color backgroundColor,
504 MLV_Text_justification text_justification,
505 MLV_Horizontal_position horizontal_position,
506 MLV_Vertical_position vertical_position,
507 MLV_Image* image,
508 va_list pile
509 );
510
511 #ifdef __cplusplus
512 }
513 #endif
514
515 #endif
516