src/video/x11/SDL_x11shape.h
author Eli Gottlieb
Fri, 02 Jul 2010 12:02:18 -0400
changeset 4783 43826836b995
child 4809 329708ffe2a7
permissions -rw-r--r--
Added SDL_x11shape.h.
     1 /*
     2     SDL - Simple DirectMedia Layer
     3     Copyright (C) 2010 Eli Gottlieb
     4 
     5     This library is free software; you can redistribute it and/or
     6     modify it under the terms of the GNU Lesser General Public
     7     License as published by the Free Software Foundation; either
     8     version 2.1 of the License, or (at your option) any later version.
     9 
    10     This library is distributed in the hope that it will be useful,
    11     but WITHOUT ANY WARRANTY; without even the implied warranty of
    12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    13     Lesser General Public License for more details.
    14 
    15     You should have received a copy of the GNU Lesser General Public
    16     License along with this library; if not, write to the Free Software
    17     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    18 
    19     Eli Gottlieb
    20     eligottlieb@gmail.com
    21 */
    22 #include "SDL_config.h"
    23 
    24 #ifndef _SDL_x11shape_h
    25 #define _SDL_x11shape_h
    26 
    27 #include "SDL_video.h"
    28 #include "SDL_shape.h"
    29 #include "../SDL_sysvideo.h"
    30 
    31 typedef struct {
    32 	void* bitmap;
    33 	Uint32 bitmapsize;
    34 } SDL_ShapeData;
    35 
    36 extern SDL_WindowShaper* X11_CreateShaper(SDL_Window* window);
    37 extern int X11_ResizeWindowShape(SDL_Window* window);
    38 extern int X11_SetWindowShape(SDL_WindowShaper *shaper,SDL_Surface *shape,SDL_WindowShapeMode *shapeMode);	
    39 
    40 #endif /* _SDL_x11shape_h */