SDL_DirectFB_WM.h
Go to the documentation of this file.
/*
Simple DirectMedia Layer
Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#ifndef SDL_directfb_wm_h_
#define SDL_directfb_wm_h_
#include "SDL_DirectFB_video.h"
typedef struct _DFB_Theme DFB_Theme;
struct _DFB_Theme
{
int left_size;
int right_size;
int top_size;
int bottom_size;
DFBColor frame_color;
int caption_size;
DFBColor caption_color;
int font_size;
DFBColor font_color;
char *font;
DFBColor close_color;
DFBColor max_color;
};
extern void DirectFB_WM_AdjustWindowLayout(SDL_Window * window, int flags, int w, int h);
extern void DirectFB_WM_RedrawLayout(_THIS, SDL_Window * window);
extern int DirectFB_WM_ProcessEvent(_THIS, SDL_Window * window,
DFBWindowEvent * evt);
extern DFBResult DirectFB_WM_GetClientSize(_THIS, SDL_Window * window,
int *cw, int *ch);
#endif /* SDL_directfb_wm_h_ */
/* vi: set ts=4 sw=4 expandtab: */
SDL_DirectFB_video.h
_DFB_Theme::font
char * font
Definition: SDL_DirectFB_WM.h:39
DirectFB_WM_ProcessEvent
int DirectFB_WM_ProcessEvent(_THIS, SDL_Window *window, DFBWindowEvent *evt)
h
GLfloat GLfloat GLfloat GLfloat h
Definition: SDL_opengl_glext.h:1946
DirectFB_WM_AdjustWindowLayout
void DirectFB_WM_AdjustWindowLayout(SDL_Window *window, int flags, int w, int h)
_DFB_Theme::font_color
DFBColor font_color
Definition: SDL_DirectFB_WM.h:38
_DFB_Theme::left_size
int left_size
Definition: SDL_DirectFB_WM.h:30
_DFB_Theme::bottom_size
int bottom_size
Definition: SDL_DirectFB_WM.h:33
_DFB_Theme::caption_size
int caption_size
Definition: SDL_DirectFB_WM.h:35
_DFB_Theme::caption_color
DFBColor caption_color
Definition: SDL_DirectFB_WM.h:36
DirectFB_WM_GetClientSize
DFBResult DirectFB_WM_GetClientSize(_THIS, SDL_Window *window, int *cw, int *ch)
_THIS
#define _THIS
Definition: SDL_alsa_audio.h:31
w
GLubyte GLubyte GLubyte GLubyte w
Definition: SDL_opengl_glext.h:731
_DFB_Theme::frame_color
DFBColor frame_color
Definition: SDL_DirectFB_WM.h:34
flags
GLbitfield flags
Definition: SDL_opengl_glext.h:1480
_DFB_Theme
Definition: SDL_DirectFB_WM.h:28
window
EGLSurface EGLNativeWindowType * window
Definition: eglext.h:1025
DirectFB_WM_RedrawLayout
void DirectFB_WM_RedrawLayout(_THIS, SDL_Window *window)
SDL_Window
The type used to identify a window.
Definition: SDL_sysvideo.h:73
_DFB_Theme::font_size
int font_size
Definition: SDL_DirectFB_WM.h:37
_DFB_Theme::close_color
DFBColor close_color
Definition: SDL_DirectFB_WM.h:40
_DFB_Theme::top_size
int top_size
Definition: SDL_DirectFB_WM.h:32
_DFB_Theme::max_color
DFBColor max_color
Definition: SDL_DirectFB_WM.h:41
_DFB_Theme::right_size
int right_size
Definition: SDL_DirectFB_WM.h:31