Mercurial > sdl-ios-xcode
diff src/video/directfb/SDL_DirectFB_window.h @ 3023:d72a0dd80e8b
DirectFB cleanups & simple window manager
- use SDL_getenv, not getenv ...
- no more support for 0.9.25 - not even mentioned any longer on directfb.org
- fix fullscreen issues
- add a simple window manager unless the directfb team comes up with a working wm.
The driver has support for a very, very basic window manager you may
want to use when runnning with "wm=default". Use
export SDL_DIRECTFB_WM=1
to enable basic window borders including icon support. In order to have the window title rendered,
you need to have the following font installed:
/usr/share/fonts/truetype/freefont/FreeSans.ttf
author | Couriersud <couriersud@arcor.de> |
---|---|
date | Sun, 11 Jan 2009 23:49:23 +0000 |
parents | 99210400e8b9 |
children | 64ce267332c6 |
line wrap: on
line diff
--- a/src/video/directfb/SDL_DirectFB_window.h Sun Jan 11 23:39:11 2009 +0000 +++ b/src/video/directfb/SDL_DirectFB_window.h Sun Jan 11 23:49:23 2009 +0000 @@ -24,25 +24,38 @@ #ifndef _SDL_directfb_window_h #define _SDL_directfb_window_h +#include "SDL_DirectFB_WM.h" + #define SDL_DFB_WINDOWDATA(win) DFB_WindowData *windata = ((win) ? (DFB_WindowData *) ((win)->driverdata) : NULL) typedef struct _DFB_WindowData DFB_WindowData; struct _DFB_WindowData { IDirectFBSurface *surface; + IDirectFBSurface *window_surface; /* only used with has_own_wm */ IDirectFBWindow *window; DirectFB_GLContext *gl_context; IDirectFBEventBuffer *eventbuffer; - DFBWindowID windowID; + SDL_WindowID sdl_id; DFB_WindowData *next; Uint8 opacity; - SDL_WindowID id; + DFBRectangle client; + DFBDimension size; + /* WM extras */ + DFBRectangle restore; + int is_managed; + int wm_needs_redraw; + IDirectFBSurface *icon; + DFB_Theme theme; }; extern int DirectFB_CreateWindow(_THIS, SDL_Window * window); extern int DirectFB_CreateWindowFrom(_THIS, SDL_Window * window, const void *data); extern void DirectFB_SetWindowTitle(_THIS, SDL_Window * window); +extern void DirectFB_SetWindowIcon(_THIS, SDL_Window * window, + SDL_Surface * icon); + extern void DirectFB_SetWindowPosition(_THIS, SDL_Window * window); extern void DirectFB_SetWindowSize(_THIS, SDL_Window * window); extern void DirectFB_ShowWindow(_THIS, SDL_Window * window); @@ -56,6 +69,8 @@ extern SDL_bool DirectFB_GetWindowWMInfo(_THIS, SDL_Window * window, struct SDL_SysWMinfo *info); +extern void DirectFB_AdjustWindowSurface(SDL_Window * window); + #endif /* _SDL_directfb_window_h */ /* vi: set ts=4 sw=4 expandtab: */