src/video/directfb/SDL_DirectFB_WM.h
author Sam Lantinga <slouken@libsdl.org>
Sun, 14 Jul 2013 11:28:44 -0700
changeset 7776 d4a39491577f
parent 6885 700f1b25f77f
child 8149 681eb46b8ac4
permissions -rw-r--r--
Added the platform specific messagebox function to the video function list
couriersud@3023
     1
/*
slouken@5535
     2
  Simple DirectMedia Layer
slouken@6885
     3
  Copyright (C) 1997-2013 Sam Lantinga <slouken@libsdl.org>
couriersud@3023
     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.
couriersud@3023
     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:
couriersud@3023
    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.
couriersud@3023
    20
*/
couriersud@3023
    21
couriersud@3023
    22
#ifndef _SDL_directfb_wm_h
couriersud@3023
    23
#define _SDL_directfb_wm_h
couriersud@3023
    24
slouken@5199
    25
#include "SDL_DirectFB_video.h"
slouken@5199
    26
couriersud@3023
    27
typedef struct _DFB_Theme DFB_Theme;
couriersud@3023
    28
struct _DFB_Theme
couriersud@3023
    29
{
couriersud@3023
    30
    int left_size;
couriersud@3023
    31
    int right_size;
couriersud@3023
    32
    int top_size;
couriersud@3023
    33
    int bottom_size;
couriersud@3023
    34
    DFBColor frame_color;
couriersud@3023
    35
    int caption_size;
couriersud@3023
    36
    DFBColor caption_color;
couriersud@3023
    37
    int font_size;
couriersud@3023
    38
    DFBColor font_color;
couriersud@3023
    39
    char *font;
couriersud@3023
    40
    DFBColor close_color;
couriersud@3023
    41
    DFBColor max_color;
couriersud@3023
    42
};
couriersud@3023
    43
slouken@4636
    44
extern void DirectFB_WM_AdjustWindowLayout(SDL_Window * window, int flags, int w, int h);
slouken@4636
    45
extern void DirectFB_WM_RedrawLayout(_THIS, SDL_Window * window);
couriersud@3023
    46
slouken@3040
    47
extern int DirectFB_WM_ProcessEvent(_THIS, SDL_Window * window,
slouken@3040
    48
                                    DFBWindowEvent * evt);
couriersud@3023
    49
slouken@3040
    50
extern DFBResult DirectFB_WM_GetClientSize(_THIS, SDL_Window * window,
slouken@3040
    51
                                           int *cw, int *ch);
couriersud@3023
    52
couriersud@3023
    53
couriersud@3023
    54
#endif /* _SDL_directfb_wm_h */
couriersud@3023
    55
couriersud@3023
    56
/* vi: set ts=4 sw=4 expandtab: */