20 #ifndef __DIRECTFB_DEVICE_H__
21 #define __DIRECTFB_DEVICE_H__ 1
27 #include <boost/scoped_array.hpp>
28 #include <boost/scoped_ptr.hpp>
30 #ifdef HAVE_DIRECTFB_H
31 # include <directfb/directfb.h>
33 # error "This file needs DirectFB"
76 DFBSurfacePixelFormat format;
96 DFBSurfaceCapabilities caps;
98 if (caps & DSCAPS_DOUBLE) {
116 DFBDisplayLayerID id;
118 return static_cast<int>(id);
127 int getDepth(DFBSurfacePixelFormat format);
132 surface->GetSize(surface, &x, &y);
133 return static_cast<size_t>(
x);
140 surface->GetSize(surface, &x, &y);
141 return static_cast<size_t>(
y);
147 DFBSurfaceCapabilities caps;
149 if (caps & DSCAPS_DOUBLE) {
158 DFBDisplayLayerID id;
160 return static_cast<int>(id);
167 DFBDisplayLayerConfig
config;
169 if (config.buffermode & DLBM_FRONTONLY) {
178 DFBDisplayLayerConfig
config;
180 if (config.buffermode & DLBM_FRONTONLY) {
198 screen->GetSize(screen, &x, &y);
199 return static_cast<size_t>(
x);
209 screen->GetSize(screen, &x, &y);
210 return static_cast<size_t>(
y);
287 #endif // end of __DIRECTFB_DEVICE_H__
IDirectFBFont * _font
Definition: DirectFBDevice.h:278
void printDisplayLayerTypeFlags(DFBDisplayLayerTypeFlags flags)
Definition: DirectFBDevice.cpp:558
void printDisplayLayerConfig(DFBDisplayLayerConfig *config)
Definition: DirectFBDevice.cpp:201
void printFBInputDevice()
print the data in a DirectFBInputDevice
Definition: DirectFBDevice.h:251
Definition: GnashDevice.h:48
void printGrapbicsDriverIndo(DFBGraphicsDriverInfo *driver)
Definition: DirectFBDevice.cpp:855
size_t getVerticalRes()
Definition: DirectFBDevice.h:192
int getID()
Get the window ID handle.
Definition: DirectFBDevice.h:105
void printColor(DFBColor color)
Definition: DirectFBDevice.cpp:1195
size_t getHorzRes()
Definition: DirectFBDevice.h:203
bool isBufferDestroyed()
Are buffers destroyed ?
Definition: DirectFBDevice.h:109
Definition: DirectFBDevice.h:44
size_t getVerticalRes(IDirectFBScreen *screen)
Definition: DirectFBDevice.h:195
void printDisplayLayerCapabilities(DFBDisplayLayerCapabilities caps)
Definition: DirectFBDevice.cpp:404
long native_window_t
Definition: GnashDevice.h:43
void printFBFont()
print the data in a DirectFBFont
Definition: DirectFBDevice.h:228
void printSurfaceCapabilities(DFBSurfaceCapabilities caps)
Definition: DirectFBDevice.cpp:984
Definition: GnashDevice.h:39
dtype_t
The list of supported device types.
Definition: GnashDevice.h:48
IDirectFBScreen * _screen
Definition: DirectFBDevice.h:280
void printFBDisplay()
print the data in a DirectFBDisplay
Definition: DirectFBDevice.h:234
void printSurfaceDrawingFlags(DFBSurfaceDrawingFlags flags)
Definition: DirectFBDevice.cpp:823
virtual bool supportsRenderer(rtype_t)
Is the specified renderer supported by this hardware ?
Definition: DirectFBDevice.h:123
const VGfloat color[4]
Definition: testr_gtk.cpp:82
void printFBSurface()
print the data in a DirectFBSurface
Definition: DirectFBDevice.h:222
int getGreenSize()
Get the size of the Green pixel.
Definition: DirectFBDevice.h:87
IDirectFBEventBuffer * _keybuffer
Definition: DirectFBDevice.h:276
IDirectFB * _dfb
Definition: DirectFBDevice.h:273
bool initDevice(int argc, char *argv[])
Definition: DirectFBDevice.cpp:107
void printSurfaceBlittingFlags(DFBSurfaceBlittingFlags flags)
Definition: DirectFBDevice.cpp:759
void printFBLayer()
Definition: DirectFBDevice.h:239
struct lirc_config * config
Definition: lirc_ext.cpp:43
rtype_t
The list of supported renders that use devices.
Definition: GnashDevice.h:46
void printDirectFB()
print the data in a DirectFB
Definition: DirectFBDevice.h:216
DirectFBDevice()
Definition: DirectFBDevice.cpp:52
int getDepth()
Get the depth of the device.
Definition: DirectFBDevice.h:75
~DirectFBDevice()
Definition: DirectFBDevice.cpp:82
dtype_t getType()
Definition: DirectFBDevice.h:52
void printSurfaceDescriptionFlags(DFBSurfaceDescriptionFlags flags)
Definition: DirectFBDevice.cpp:942
boost::int32_t x
Definition: BitmapData_as.cpp:434
int getRedSize()
Get the size of the Red pixel.
Definition: DirectFBDevice.h:84
bool isSurfaceBackBuffered()
Definition: DirectFBDevice.h:145
void printDisplayLayerBufferMode(DFBDisplayLayerBufferMode mode)
Definition: DirectFBDevice.cpp:218
int getBlueSize()
Get the size of the Blue pixel.
Definition: DirectFBDevice.h:90
size_t getWidth()
Get the width of the device.
Definition: DirectFBDevice.h:67
IDirectFBImageProvider * _provider
Definition: DirectFBDevice.h:277
IDirectFBSurface * _surface
Definition: DirectFBDevice.h:274
bool isContextSingleBuffered()
Definition: DirectFBDevice.h:165
void printAccelerationMask(DFBAccelerationMask mask)
Definition: DirectFBDevice.cpp:715
boost::int32_t y
Definition: BitmapData_as.cpp:435
bool attachWindow(GnashDevice::native_window_t window)
Definition: DirectFBDevice.cpp:193
IDirectFBInputDevice * _keyboard
Definition: DirectFBDevice.h:275
size_t getHorzRes(IDirectFBScreen *screen)
Definition: DirectFBDevice.h:206
bool isNativeRender()
Is this renderering natively.
Definition: DirectFBDevice.h:188
size_t getHeight()
Get the Height of the device.
Definition: DirectFBDevice.h:71
size_t getHeight(IDirectFBSurface *surface)
Definition: DirectFBDevice.h:137
bool isSingleBuffered()
Is this device single buffered.
Definition: DirectFBDevice.h:94
void printFBScreen()
print the data in a DirectFBFont
Definition: DirectFBDevice.h:245
void printFBDisplayLayer(IDirectFBDisplayLayer *layer)
bool isContextBackBuffered()
Definition: DirectFBDevice.h:176
size_t getWidth(IDirectFBSurface *surface)
Definition: DirectFBDevice.h:129
void printSurfacePixelFormat(DFBSurfacePixelFormat format)
Definition: DirectFBDevice.cpp:1056
const char * getErrorString(int error)
Return a string with the error code as text, instead of a numeric value.
Definition: DirectFBDevice.cpp:586
void printfScreenCapabilities(DFBScreenCapabilities caos)
Definition: DirectFBDevice.cpp:529
IDirectFBDisplayLayer * _layer
Definition: DirectFBDevice.h:279
int getSurfaceID()
Definition: DirectFBDevice.h:114
int getContextID()
Definition: DirectFBDevice.h:156