src/video/directfb/SDL_DirectFB_shape.h
author Sam Lantinga <slouken@libsdl.org>
Sun, 14 Jul 2013 11:28:44 -0700
changeset 7776 d4a39491577f
parent 7191 75360622e65f
child 8149 681eb46b8ac4
permissions -rw-r--r--
Added the platform specific messagebox function to the video function list
slouken@5488
     1
/*
slouken@5535
     2
  Simple DirectMedia Layer
slouken@6885
     3
  Copyright (C) 1997-2013 Sam Lantinga <slouken@libsdl.org>
slouken@5488
     4
slouken@5535
     5
  This software is provided 'as-is', without any express or implied
slouken@5535
     6
  warranty.  In no event will the authors be held liable for any damages
slouken@5535
     7
  arising from the use of this software.
slouken@5488
     8
slouken@5535
     9
  Permission is granted to anyone to use this software for any purpose,
slouken@5535
    10
  including commercial applications, and to alter it and redistribute it
slouken@5535
    11
  freely, subject to the following restrictions:
slouken@5488
    12
slouken@5535
    13
  1. The origin of this software must not be misrepresented; you must not
slouken@5535
    14
     claim that you wrote the original software. If you use this software
slouken@5535
    15
     in a product, an acknowledgment in the product documentation would be
slouken@5535
    16
     appreciated but is not required.
slouken@5535
    17
  2. Altered source versions must be plainly marked as such, and must not be
slouken@5535
    18
     misrepresented as being the original software.
slouken@5535
    19
  3. This notice may not be removed or altered from any source distribution.
slouken@5488
    20
*/
slouken@5488
    21
slouken@5488
    22
#ifndef _SDL_DirectFB_shape_h
slouken@5488
    23
#define _SDL_DirectFB_shape_h
slouken@5488
    24
slouken@5488
    25
#include <directfb.h>
slouken@5488
    26
slouken@5488
    27
#include "../SDL_sysvideo.h"
slouken@5488
    28
#include "SDL_shape.h"
slouken@5488
    29
slouken@5488
    30
typedef struct {
slouken@7191
    31
    IDirectFBSurface *surface;
slouken@5488
    32
} SDL_ShapeData;
slouken@5488
    33
slouken@5488
    34
extern SDL_Window* DirectFB_CreateShapedWindow(const char *title,unsigned int x,unsigned int y,unsigned int w,unsigned int h,Uint32 flags);
slouken@5488
    35
extern SDL_WindowShaper* DirectFB_CreateShaper(SDL_Window* window);
slouken@5488
    36
extern int DirectFB_ResizeWindowShape(SDL_Window* window);
slouken@7191
    37
extern int DirectFB_SetWindowShape(SDL_WindowShaper *shaper,SDL_Surface *shape,SDL_WindowShapeMode *shapeMode);
slouken@5488
    38
slouken@5488
    39
#endif /* _SDL_DirectFB_shape_h */