include/SDL_shape.h
changeset 4766 7b50faf23907
child 4767 dc3fd9b7fcbc
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/include/SDL_shape.h	Fri May 21 17:28:12 2010 -0400
     1.3 @@ -0,0 +1,55 @@
     1.4 +/*
     1.5 +    SDL - Simple DirectMedia Layer
     1.6 +    Copyright (C) 2010 Eli Gottlieb
     1.7 +
     1.8 +    This library is free software; you can redistribute it and/or
     1.9 +    modify it under the terms of the GNU Lesser General Public
    1.10 +    License as published by the Free Software Foundation; either
    1.11 +    version 2.1 of the License, or (at your option) any later version.
    1.12 +
    1.13 +    This library is distributed in the hope that it will be useful,
    1.14 +    but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.15 +    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    1.16 +    Lesser General Public License for more details.
    1.17 +
    1.18 +    You should have received a copy of the GNU Lesser General Public
    1.19 +    License along with this library; if not, write to the Free Software
    1.20 +    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    1.21 +
    1.22 +    Eli Gottlieb
    1.23 +    eligottlieb@gmail.com
    1.24 +*/
    1.25 +
    1.26 +struct SDL_Shaped_Window;
    1.27 +typedef struct SDL_Shaped_Window SDL_Shaped_Window;
    1.28 +
    1.29 +/**
    1.30 + *  \brief Create a shaped window with the specified position, dimensions, and flags.
    1.31 + *  
    1.32 + *  \param title The title of the window, in UTF-8 encoding.
    1.33 + *  \param x     The x position of the window, ::SDL_WINDOWPOS_CENTERED, or 
    1.34 + *               ::SDL_WINDOWPOS_UNDEFINED.
    1.35 + *  \param y     The y position of the window, ::SDL_WINDOWPOS_CENTERED, or 
    1.36 + *               ::SDL_WINDOWPOS_UNDEFINED.
    1.37 + *  \param w     The width of the window.
    1.38 + *  \param h     The height of the window.
    1.39 + *  \param flags The flags for the window, a mask of SDL_WINDOW_BORDERLESS with any of the following: 
    1.40 + *               ::SDL_WINDOW_FULLSCREEN, ::SDL_WINDOW_OPENGL, 
    1.41 + *               ::SDL_WINDOW_SHOWN,      ::SDL_WINDOW_RESIZABLE,
    1.42 + *               ::SDL_WINDOW_MAXIMIZED,  ::SDL_WINDOW_MINIMIZED,
    1.43 + *               ::SDL_WINDOW_INPUT_GRABBED.
    1.44 + *  
    1.45 + *  \return The id of the window created, or zero if window creation failed.
    1.46 + *  
    1.47 + *  \sa SDL_DestroyWindow()
    1.48 + */
    1.49 +extern DECLSPEC SDL_Shaped_Window * SDLCALL SDL_CreateShapedWindow(const char *title,unsigned int x,unsigned int y,unsigned int w,unsigned int h,Uint32 flags);
    1.50 +
    1.51 +extern DECLSPEC SDL_Surface * SDLCALL SDL_LockWindowShape(const SDL_Shaped_Window *window);
    1.52 +extern DECLSPEC void SDLCALL SDL_UnlockWindowShape(const SDL_Shaped_Window *window);
    1.53 +extern DECLSPEC int SDLCALL SDL_PresentWindowShape(const SDL_Shaped_Window *window);
    1.54 +
    1.55 +extern DECLSPEC SDL_Window * SDLCALL SDL_LockShapedWindow(const SDL_Shaped_Window *window);
    1.56 +extern DECLSPEC void SDLCALL SDL_UnlockShapedWindow(const SDL_Shaped_Window *window);
    1.57 +
    1.58 +extern DECLSPEC void SDLCALL SDL_DestroyShapedWindow(const SDL_Shaped_Window *window);