Added SDL_x11shape.h.
authorEli Gottlieb
Fri, 02 Jul 2010 12:02:18 -0400
changeset 478343826836b995
parent 4782 b6930aefd008
child 4784 2878650e0dc9
Added SDL_x11shape.h.
src/video/x11/SDL_x11shape.h
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/video/x11/SDL_x11shape.h	Fri Jul 02 12:02:18 2010 -0400
     1.3 @@ -0,0 +1,40 @@
     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 +#include "SDL_config.h"
    1.26 +
    1.27 +#ifndef _SDL_x11shape_h
    1.28 +#define _SDL_x11shape_h
    1.29 +
    1.30 +#include "SDL_video.h"
    1.31 +#include "SDL_shape.h"
    1.32 +#include "../SDL_sysvideo.h"
    1.33 +
    1.34 +typedef struct {
    1.35 +	void* bitmap;
    1.36 +	Uint32 bitmapsize;
    1.37 +} SDL_ShapeData;
    1.38 +
    1.39 +extern SDL_WindowShaper* X11_CreateShaper(SDL_Window* window);
    1.40 +extern int X11_ResizeWindowShape(SDL_Window* window);
    1.41 +extern int X11_SetWindowShape(SDL_WindowShaper *shaper,SDL_Surface *shape,SDL_WindowShapeMode *shapeMode);	
    1.42 +
    1.43 +#endif /* _SDL_x11shape_h */