| 1 |
/* |
| 2 |
* This library is free software; you can redistribute it and/or |
| 3 |
* modify it under the terms of the GNU Library General Public |
| 4 |
* License as published by the Free Software Foundation; either |
| 5 |
* version 2 of the License, or (at your option) any later version. |
| 6 |
* |
| 7 |
* This library is distributed in the hope that it will be useful, |
| 8 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 10 |
* Library General Public License for more details. |
| 11 |
* |
| 12 |
* You should have received a copy of the GNU Library General Public |
| 13 |
* License along with this library; if not, write to the |
| 14 |
* Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
| 15 |
* Boston, MA 02111-1307, USA. |
| 16 |
*/ |
| 17 |
|
| 18 |
#ifndef GDK_DISPLAY_DFB_H |
| 19 |
#define GDK_DISPLAY_DFB_H |
| 20 |
|
| 21 |
#include <directfb.h> |
| 22 |
#include <gdk/gdkdisplay.h> |
| 23 |
#include <gdk/gdkkeys.h> |
| 24 |
|
| 25 |
G_BEGIN_DECLS |
| 26 |
|
| 27 |
typedef struct _GdkDisplayDFB GdkDisplayDFB; |
| 28 |
typedef struct _GdkDisplayDFBClass GdkDisplayDFBClass; |
| 29 |
|
| 30 |
|
| 31 |
#define GDK_TYPE_DISPLAY_DFB (gdk_display_dfb_get_type()) |
| 32 |
#define GDK_DISPLAY_DFB(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_DISPLAY_DFB, GdkDisplayDFB)) |
| 33 |
#define GDK_DISPLAY_DFB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_DISPLAY_DFB, GdkDisplayDFBClass)) |
| 34 |
#define GDK_IS_DISPLAY_DFB(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_DISPLAY_DFB)) |
| 35 |
#define GDK_IS_DISPLAY_DFB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_DISPLAY_DFB)) |
| 36 |
#define GDK_DISPLAY_DFB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_DISPLAY_DFB, GdkDisplayDFBClass)) |
| 37 |
|
| 38 |
struct _GdkDisplayDFB |
| 39 |
{ |
| 40 |
GdkDisplay parent; |
| 41 |
IDirectFB *directfb; |
| 42 |
IDirectFBDisplayLayer *layer; |
| 43 |
IDirectFBEventBuffer *buffer; |
| 44 |
IDirectFBInputDevice *keyboard; |
| 45 |
GdkKeymap *keymap; |
| 46 |
}; |
| 47 |
|
| 48 |
struct _GdkDisplayDFBClass |
| 49 |
{ |
| 50 |
GdkDisplayClass parent; |
| 51 |
}; |
| 52 |
|
| 53 |
GType gdk_display_dfb_get_type (void); |
| 54 |
|
| 55 |
IDirectFBSurface *gdk_display_dfb_create_surface (GdkDisplayDFB *display, |
| 56 |
int format, |
| 57 |
int width, int height); |
| 58 |
|
| 59 |
G_END_DECLS |
| 60 |
|
| 61 |
#endif /* GDK_DISPLAY_DFB_H */ |