# Documentation de la bibliothèque MLV-0.6.716

- Presentation
- Téléchargement
- Installation
- Compilation
- Exemples
- API
- Liste des fonctions
- bogues
- contacts

# MLV_window.h

Aller à la documentation de ce fichier.

    00001 /*
    00002  *   This file is part of the MLV Library.
    00003  *
    00004  *   Copyright (C) 2010,2011,2012 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__MLV_WINDOW_H__
    00033 #define __MLV__MLV_WINDOW_H__
    00034
    00035 #ifdef __cplusplus
    00036 extern "C" {
    00037 #endif
    00038
    00078 void MLV_create_window(
    00079         const char* window_name, const char* icone_name,
    00080         unsigned int width, unsigned int height
    00081 );
    00082
    00083
    00098 void MLV_create_window_with_default_font(
    00099         const char* window_name, const char* icone_name,
    00100         unsigned int width, unsigned int height,
    00101         const char* path_to_font, unsigned int size_font
    00102 );
    00103
    00120 void MLV_change_default_font( const char* path_to_font, unsigned int size_font );
    00121
    00135 void MLV_create_full_screen_window(
    00136         const char* window_name, const char* icone_name,
    00137         unsigned int width, unsigned int height
    00138 );
    00139
    00147 void MLV_enable_full_screen();
    00148
    00152 void MLV_disable_full_screen();
    00153
    00159 int MLV_is_full_screen();
    00160
    00174 void MLV_change_window_size( unsigned int width, unsigned int height );
    00175
    00182 void MLV_change_window_caption(
    00183         const char* window_name, const char* icone_name
    00184 );
    00185
    00192 void MLV_get_window_size( unsigned int* width, unsigned int* height );
    00193
    00197 int MLV_get_window_height( );
    00198
    00202 int MLV_get_window_width( );
    00203
    00211 void MLV_free_window();
    00212
    00220 void MLV_actualise_window();
    00221
    00236 void MLV_execute_at_exit( void (*function)(void*), void* data );
    00237
    00238 #ifdef __cplusplus
    00239 }
    00240 #endif
    00241
    00242 #endif