31 #ifndef __MLV__MLV_TEXT_H__
32 #define __MLV__MLV_TEXT_H__
121 const char *text,
int *width,
int *height,
const MLV_Font* font, ...
253 int *result_width,
int *result_height,
326 int *result_width,
int *result_height,
364 int width,
int height,
365 const char* message ,
394 int width,
int height,
395 const char* message ,
426 int width,
int height,
427 const char* message ,
459 int width,
int height,
460 const char* message ,
MLV_Horizontal_position
Énumère les différents types de position horizontale du texte dans une boîte.
Definition: MLV_text.h:53
Definition: MLV_text.h:46
MLV_Font * MLV_load_font(const char *file_font, int size)
Cette fonction charge en mémoire une fonte de caractères de standard "TrueType" (fichiers ayant une e...
Definition: MLV_text.h:66
Definition: MLV_text.h:58
Definition: MLV_text.h:70
Ce fichier définit tous les prototypes concernant les fonctions permettant d'insérer des images...
Définit toutes les couleurs disponibles dans la bibliothèque MLV.
int MLV_get_size_of_adapted_text_box_with_font(const char *message, const MLV_Font *font, int sizeInterligne, int *result_width, int *result_height,...)
Cette fonction calcule la taille de la boîte de texte qui serait obtenue si vous utilisez la fonction...
void MLV_draw_text_box_with_font_on_image(int x, int y, int width, int height, const char *message, MLV_Font *font, int sizeInterligne, MLV_Color borderColor, MLV_Color textColor, MLV_Color backgroundColor, MLV_Text_justification text_justification, MLV_Horizontal_position horizontal_position, MLV_Vertical_position vertical_position, MLV_Image *image,...)
Même chose que la fonction MLV_draw_text_box_with_font() mis à part que le texte n'est pas dessinné d...
void MLV_free_font(MLV_Font *font)
Cette fonction libère la mémoire d'une fonte de caractères précédement chargée.
Definition: MLV_text.h:47
struct _MLV_Font MLV_Font
Definition: MLV_text.h:77
struct _MLV_Image MLV_Image
Définit le type Image dans la bibliothèque MLV.
Definition: MLV_image.h:53
Uint32 MLV_Color
Définit un type couleur pour la bibliothèque MLV.
Definition: MLV_color.h:54
Definition: MLV_text.h:54
void MLV_draw_text(int x, int y, const char *text, MLV_Color color,...)
Imprime un texte donné à une position et une couleur données.
void MLV_draw_text_box_with_font(int x, int y, int width, int height, const char *message, const MLV_Font *font, int sizeInterligne, MLV_Color borderColor, MLV_Color textColor, MLV_Color backgroundColor, MLV_Text_justification text_justification, MLV_Horizontal_position horizontal_position, MLV_Vertical_position vertical_position,...)
Même chose que la fonction MLV_draw_text_box() mis à part que le texte est rendu avec une fonte de ca...
Definition: MLV_text.h:68
MLV_Text_justification
Énumère les différents types de justification du texte.
Definition: MLV_text.h:44
int MLV_get_size_of_adapted_text_box(const char *message, int sizeInterligne, int *result_width, int *result_height,...)
Cette fonction calcule la taille de la boîte de texte qui serait obtenue si vous utilisez la fonction...
void MLV_draw_adapted_text_box(int x, int y, const char *message, int sizeInterligne, MLV_Color borderColor, MLV_Color textColor, MLV_Color backgroundColor, MLV_Text_justification text_justification,...)
Dessine une boîte contenant du texte.
void MLV_draw_adapted_text_box_with_font_on_image(int x, int y, const char *message, const MLV_Font *font, int sizeInterligne, MLV_Color borderColor, MLV_Color textColor, MLV_Color backgroundColor, MLV_Text_justification text_justification, MLV_Image *image,...)
Même chose que MLV_draw_adapted_text_box_with_font() mis à part que le texte est rendu sur une image ...
MLV_Vertical_position
Énumère les différents types de positions verticales du texte dans une boîte.
Definition: MLV_text.h:65
Definition: MLV_text.h:45
Definition: MLV_text.h:56
void MLV_get_size_of_text(const char *text, int *width, int *height,...)
Cette fonction calcule la taille du texte qui sera affiché sur l'écran à l'aide de la fonction MLV_dr...
void MLV_draw_text_with_font(int x, int y, const char *text, const MLV_Font *font, MLV_Color color,...)
Écrit du texte sur l'écran en utilisant une couleur et une fonte de caractères données en paramètres...
void MLV_draw_text_box(int x, int y, int width, int height, const char *message, int sizeInterligne, MLV_Color borderColor, MLV_Color textColor, MLV_Color backgroundColor, MLV_Text_justification text_justification, MLV_Horizontal_position horizontal_position, MLV_Vertical_position vertical_position,...)
Dessine une boîte de taille donnée par l'utilisateur et contenant un texte donné par l'utilisateur...
void MLV_draw_text_on_image(int x, int y, const char *text, MLV_Color color, MLV_Image *image,...)
Écrit sur une image un texte donné à une position et une couleur données.
char * MLV_convert_unicode_to_string(int unicode)
Transforme un caractère en format unicode en chaîne de caractères compatible avec le codage local (co...
void MLV_draw_adapted_text_box_with_font(int x, int y, const char *message, const MLV_Font *font, int sizeInterligne, MLV_Color borderColor, MLV_Color textColor, MLV_Color backgroundColor, MLV_Text_justification text_justification,...)
Même chose que MLV_draw_adapted_text_box() mis à part que le texte est rendu avec une fonte de caract...
void MLV_draw_text_box_on_image(int x, int y, int width, int height, const char *message, int sizeInterligne, MLV_Color borderColor, MLV_Color textColor, MLV_Color backgroundColor, MLV_Text_justification text_justification, MLV_Horizontal_position horizontal_position, MLV_Vertical_position vertical_position, MLV_Image *image,...)
Même chose que MLV_draw_text_box() mis à part que le texte n'est pas écrit directement sur l'écran...
void MLV_get_size_of_text_with_font(const char *text, int *width, int *height, const MLV_Font *font,...)
Cette fonction calcule la taille du texte qui sera affiché sur l'écran à l'aide de la fonction MLV_dr...
void MLV_draw_text_with_font_on_image(int x, int y, const char *text, const MLV_Font *font, MLV_Color color, MLV_Image *image,...)
Écrit du texte sur une image en utilisant une couleur et une fonte de caractères données en paramètre...
void MLV_draw_adapted_text_box_on_image(int x, int y, const char *message, int sizeInterligne, MLV_Color borderColor, MLV_Color textColor, MLV_Color backgroundColor, MLV_Text_justification text_justification, MLV_Image *image,...)
Même chose que MLV_draw_adapted_text_box() mis à part que le texte est rendu avec une fonte de caract...