Documentation de la bibliothèque MLV-3.1.0

MLV_window.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 
32 #ifndef __MLV__MLV_WINDOW_H__
33 #define __MLV__MLV_WINDOW_H__
34 
35 #include "MLV_color.h"
36 #include "MLV_image.h"
37 
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41 
82  const char* window_name, const char* icone_name,
83  unsigned int width, unsigned int height
84 );
85 
86 
102  const char* window_name, const char* icone_name,
103  unsigned int width, unsigned int height,
104  const char* path_to_font, unsigned int size_font
105 );
106 
123 void MLV_change_default_font( const char* path_to_font, unsigned int size_font );
124 
139  const char* window_name, const char* icone_name,
140  unsigned int width, unsigned int height
141 );
142 
160  const char* window_name, const char* icone_name,
161  unsigned int width, unsigned int height,
162  const char* path_to_font, unsigned int size_font
163 );
164 
165 
174 
179 
186 
200 void MLV_change_window_size( unsigned int width, unsigned int height );
201 
209  const char* window_name, const char* icone_name
210 );
211 
218 void MLV_get_window_size( unsigned int* width, unsigned int* height );
219 
224 
229 
237 
246 
257 
266 
281 void MLV_execute_at_exit( void (*function)(void*), void* data );
282 
290 void MLV_get_desktop_size( unsigned int* width, unsigned int* height );
291 
296 
301 
302 #ifdef __cplusplus
303 }
304 #endif
305 
306 #endif
MLV_get_desktop_height
int MLV_get_desktop_height()
Renvoie la hauteur de l'environement de bureau de l'ordinateur.
MLV_create_full_screen_window
void MLV_create_full_screen_window(const char *window_name, const char *icone_name, unsigned int width, unsigned int height)
Même chose que MLV_create_window(), mais configure la fenêtre en mode plein écran.
MLV_change_window_caption
void MLV_change_window_caption(const char *window_name, const char *icone_name)
Change les intitulés de la fenêtre principale.
MLV_create_window
void MLV_create_window(const char *window_name, const char *icone_name, unsigned int width, unsigned int height)
Créé une fenêtre dont la taille, et les différents noms sont passés en paramètres.
MLV_actualise_window
void MLV_actualise_window()
Actualise l'affichage de la fenêtre.
MLV_disable_full_screen
void MLV_disable_full_screen()
Désactve le mode plein écran de la fenêtre.
MLV_color.h
Définit toutes les couleurs disponibles dans la bibliothèque MLV.
MLV_Color
Uint32 MLV_Color
Définit un type couleur pour la bibliothèque MLV.
Definition: MLV_color.h:54
MLV_free_window
void MLV_free_window()
Ferme la fenêtre de la bibliothèque MLV.
MLV_change_window_size
void MLV_change_window_size(unsigned int width, unsigned int height)
Change la taille de la fenêtre.
MLV_update_window
void MLV_update_window()
Met à jour l'affichage de la fenêtre.
MLV_enable_full_screen
void MLV_enable_full_screen()
Affiche la fenêtre en plein ecran.
MLV_get_window_size
void MLV_get_window_size(unsigned int *width, unsigned int *height)
Renvoie dans les paramètres, la hauteur et la largeur de la fentre.
MLV_get_window_height
int MLV_get_window_height()
Retourne la hauteur de la fenêtre.
MLV_get_window_width
int MLV_get_window_width()
Retourne la largeur de la fenêtre.
MLV_change_default_font
void MLV_change_default_font(const char *path_to_font, unsigned int size_font)
Change la fonte de caractères par défault de la bibliothèque MLV.
MLV_image.h
Ce fichier définit tous les prototypes concernant les fonctions permettant d'insérer des images.
MLV_clear_window
void MLV_clear_window(MLV_Color color)
Éfface la fenêtre et la remplace par un monochrome de la couleur donnée en paramètre.
MLV_get_desktop_width
int MLV_get_desktop_width()
Renvoie la largeur de l'environement de bureau de l'ordinateur.
MLV_create_full_screen_window_with_default_font
void MLV_create_full_screen_window_with_default_font(const char *window_name, const char *icone_name, unsigned int width, unsigned int height, const char *path_to_font, unsigned int size_font)
Même chose que MLV_create_window(), mais configure la fenêtre en mode plein écran.
MLV_is_full_screen
int MLV_is_full_screen()
Test si l'affichage est en mode plein écran ou en mode fenêtre.
MLV_get_desktop_size
void MLV_get_desktop_size(unsigned int *width, unsigned int *height)
Renvoie dans les paramètres, la hauteur et la largeur de l'environement de bureau de l'ordinateur.
MLV_execute_at_exit
void MLV_execute_at_exit(void(*function)(void *), void *data)
Exécute la fonction de call back donnée en paramètre lorsque le système envoie un signal d'arrêt,...
MLV_create_window_with_default_font
void MLV_create_window_with_default_font(const char *window_name, const char *icone_name, unsigned int width, unsigned int height, const char *path_to_font, unsigned int size_font)
Même chose que MLV_create_window(), mais en utilisant une fonte de caractères particulière.