src/video/directfb/SDL_DirectFB_WM.h
author Sam Lantinga <slouken@libsdl.org>
Sat, 05 Feb 2011 16:07:10 -0800
changeset 5199 164f20ba08eb
parent 4636 b196d2758026
child 5262 b530ef003506
permissions -rw-r--r--
Updated the DirectFB support, from Couriersud

attached is a working directfb driver diff which works with the current
changes. There are a number of changes around it as well, e.g.
configure.in.

The directfb renderdriver right now still depends on a some "includes"
from src/video/directfb. That's why it is not yet moved to the new
render folder.
couriersud@3023
     1
/*
couriersud@3023
     2
    SDL - Simple DirectMedia Layer
slouken@3697
     3
    Copyright (C) 1997-2010 Sam Lantinga
couriersud@3023
     4
couriersud@3023
     5
    This library is free software; you can redistribute it and/or
couriersud@3023
     6
    modify it under the terms of the GNU Lesser General Public
couriersud@3023
     7
    License as published by the Free Software Foundation; either
couriersud@3023
     8
    version 2.1 of the License, or (at your option) any later version.
couriersud@3023
     9
couriersud@3023
    10
    This library is distributed in the hope that it will be useful,
couriersud@3023
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
couriersud@3023
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
couriersud@3023
    13
    Lesser General Public License for more details.
couriersud@3023
    14
couriersud@3023
    15
    You should have received a copy of the GNU Lesser General Public
couriersud@3023
    16
    License along with this library; if not, write to the Free Software
couriersud@3023
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
couriersud@3023
    18
couriersud@3023
    19
    Sam Lantinga
couriersud@3023
    20
    slouken@libsdl.org
slouken@5199
    21
slouken@5199
    22
    SDL1.3 DirectFB driver by couriersud@arcor.de
slouken@5199
    23
	
couriersud@3023
    24
*/
couriersud@3023
    25
couriersud@3023
    26
#ifndef _SDL_directfb_wm_h
couriersud@3023
    27
#define _SDL_directfb_wm_h
couriersud@3023
    28
slouken@5199
    29
#include "SDL_DirectFB_video.h"
slouken@5199
    30
couriersud@3023
    31
typedef struct _DFB_Theme DFB_Theme;
couriersud@3023
    32
struct _DFB_Theme
couriersud@3023
    33
{
couriersud@3023
    34
    int left_size;
couriersud@3023
    35
    int right_size;
couriersud@3023
    36
    int top_size;
couriersud@3023
    37
    int bottom_size;
couriersud@3023
    38
    DFBColor frame_color;
couriersud@3023
    39
    int caption_size;
couriersud@3023
    40
    DFBColor caption_color;
couriersud@3023
    41
    int font_size;
couriersud@3023
    42
    DFBColor font_color;
couriersud@3023
    43
    char *font;
couriersud@3023
    44
    DFBColor close_color;
couriersud@3023
    45
    DFBColor max_color;
couriersud@3023
    46
};
couriersud@3023
    47
slouken@4636
    48
extern void DirectFB_WM_AdjustWindowLayout(SDL_Window * window, int flags, int w, int h);
slouken@4636
    49
extern void DirectFB_WM_RedrawLayout(_THIS, SDL_Window * window);
couriersud@3023
    50
slouken@3040
    51
extern int DirectFB_WM_ProcessEvent(_THIS, SDL_Window * window,
slouken@3040
    52
                                    DFBWindowEvent * evt);
couriersud@3023
    53
slouken@3040
    54
extern DFBResult DirectFB_WM_GetClientSize(_THIS, SDL_Window * window,
slouken@3040
    55
                                           int *cw, int *ch);
couriersud@3023
    56
couriersud@3023
    57
couriersud@3023
    58
#endif /* _SDL_directfb_wm_h */
couriersud@3023
    59
couriersud@3023
    60
/* vi: set ts=4 sw=4 expandtab: */