Gnash  0.8.10
Public Member Functions | Protected Member Functions | Protected Attributes
gnash::renderer::directfb::DirectFBDevice Class Reference

#include <DirectFBDevice.h>

Inheritance diagram for gnash::renderer::directfb::DirectFBDevice:
gnash::renderer::GnashDevice

List of all members.

Public Member Functions

 DirectFBDevice ()
 DirectFBDevice (int argc, char *argv[])
 ~DirectFBDevice ()
dtype_t getType ()
bool initDevice (int argc, char *argv[])
bool attachWindow (GnashDevice::native_window_t window)
const char * getErrorString (int error)
 Return a string with the error code as text, instead of a numeric value.
size_t getWidth ()
 Get the width of the device.
size_t getHeight ()
 Get the Height of the device.
int getDepth ()
 Get the depth of the device.
int getRedSize ()
 Get the size of the Red pixel.
int getGreenSize ()
 Get the size of the Green pixel.
int getBlueSize ()
 Get the size of the Blue pixel.
bool isSingleBuffered ()
 Is this device single buffered.
int getID ()
 Get the window ID handle.
bool isBufferDestroyed ()
 Are buffers destroyed ?
int getSurfaceID ()
virtual bool supportsRenderer (rtype_t)
 Is the specified renderer supported by this hardware ?
int getDepth (DFBSurfacePixelFormat format)
size_t getWidth (IDirectFBSurface *surface)
size_t getHeight (IDirectFBSurface *surface)
bool isSurfaceBackBuffered ()
int getContextID ()
bool isContextSingleBuffered ()
bool isContextBackBuffered ()
bool isNativeRender ()
 Is this renderering natively.
size_t getVerticalRes ()
size_t getVerticalRes (IDirectFBScreen *screen)
size_t getHorzRes ()
size_t getHorzRes (IDirectFBScreen *screen)
void printDirectFB ()
 print the data in a DirectFB
void printDirectFB (IDirectFB *fb)
 print the data in a DirectFB
void printFBSurface ()
 print the data in a DirectFBSurface
void printFBSurface (IDirectFBSurface *surface)
 print the data in a DirectFBSurface
void printFBFont ()
 print the data in a DirectFBFont
void printFBFont (IDirectFBFont *font)
 print the data in a DirectFBFont
void printFBDisplay ()
 print the data in a DirectFBDisplay
void printFBDisplay (IDirectFBDisplayLayer *display)
void printFBLayer ()
void printFBDisplayLayer (IDirectFBDisplayLayer *layer)
void printFBScreen ()
 print the data in a DirectFBFont
void printFBScreen (IDirectFBScreen *screen)
void printFBInputDevice ()
 print the data in a DirectFBInputDevice
void printFBInputDevice (IDirectFBInputDevice *input)
 print the data in a DirectFBInputDevice

Protected Member Functions

void printAccelerationMask (DFBAccelerationMask mask)
void printSurfaceBlittingFlags (DFBSurfaceBlittingFlags flags)
void printSurfaceDrawingFlags (DFBSurfaceDrawingFlags flags)
void printGrapbicsDriverIndo (DFBGraphicsDriverInfo *driver)
void printSurfaceDescriptionFlags (DFBSurfaceDescriptionFlags flags)
void printSurfaceCapabilities (DFBSurfaceCapabilities caps)
void printSurfacePixelFormat (DFBSurfacePixelFormat format)
void printDisplayLayerTypeFlags (DFBDisplayLayerTypeFlags flags)
void printDisplayLayerCapabilities (DFBDisplayLayerCapabilities caps)
void printfScreenCapabilities (DFBScreenCapabilities caos)
void printDisplayLayerConfig (DFBDisplayLayerConfig *config)
void printDisplayLayerBufferMode (DFBDisplayLayerBufferMode mode)
void printColor (DFBColor color)

Protected Attributes

IDirectFB * _dfb
IDirectFBSurface * _surface
IDirectFBInputDevice * _keyboard
IDirectFBEventBuffer * _keybuffer
IDirectFBImageProvider * _provider
IDirectFBFont * _font
IDirectFBDisplayLayer * _layer
IDirectFBScreen * _screen

Constructor & Destructor Documentation

gnash::renderer::directfb::DirectFBDevice::DirectFBDevice ( )

References GNASH_REPORT_FUNCTION.

gnash::renderer::directfb::DirectFBDevice::DirectFBDevice ( int  argc,
char *  argv[] 
)
gnash::renderer::directfb::DirectFBDevice::~DirectFBDevice ( )

References _keybuffer, _surface, _provider, _font, _layer, and _dfb.


Member Function Documentation

bool gnash::renderer::directfb::DirectFBDevice::attachWindow ( GnashDevice::native_window_t  window) [virtual]

Attach Native Window to device. This connects a Native Window to the device so surfaces can be created.

Implements gnash::renderer::GnashDevice.

References GNASH_REPORT_FUNCTION.

int gnash::renderer::directfb::DirectFBDevice::getBlueSize ( ) [inline, virtual]

Get the size of the Blue pixel.

Implements gnash::renderer::GnashDevice.

int gnash::renderer::directfb::DirectFBDevice::getContextID ( ) [inline]

References _layer.

int gnash::renderer::directfb::DirectFBDevice::getDepth ( ) [inline, virtual]

Get the depth of the device.

Implements gnash::renderer::GnashDevice.

References _surface.

int gnash::renderer::directfb::DirectFBDevice::getDepth ( DFBSurfacePixelFormat  format)
const char * gnash::renderer::directfb::DirectFBDevice::getErrorString ( int  error) [virtual]

Return a string with the error code as text, instead of a numeric value.

Implements gnash::renderer::GnashDevice.

Referenced by initDevice(), and printFBScreen().

int gnash::renderer::directfb::DirectFBDevice::getGreenSize ( ) [inline, virtual]

Get the size of the Green pixel.

Implements gnash::renderer::GnashDevice.

size_t gnash::renderer::directfb::DirectFBDevice::getHeight ( ) [inline, virtual]

Get the Height of the device.

Implements gnash::renderer::GnashDevice.

References _surface.

size_t gnash::renderer::directfb::DirectFBDevice::getHeight ( IDirectFBSurface *  surface) [inline]

References x, and y.

size_t gnash::renderer::directfb::DirectFBDevice::getHorzRes ( ) [inline]

References _screen.

size_t gnash::renderer::directfb::DirectFBDevice::getHorzRes ( IDirectFBScreen *  screen) [inline]

References x, and y.

int gnash::renderer::directfb::DirectFBDevice::getID ( ) [inline, virtual]

Get the window ID handle.

Implements gnash::renderer::GnashDevice.

References getSurfaceID().

int gnash::renderer::directfb::DirectFBDevice::getRedSize ( ) [inline, virtual]

Get the size of the Red pixel.

Implements gnash::renderer::GnashDevice.

int gnash::renderer::directfb::DirectFBDevice::getSurfaceID ( ) [inline]

References _layer, and _screen.

Referenced by getID().

dtype_t gnash::renderer::directfb::DirectFBDevice::getType ( ) [inline, virtual]

Get the type of the instatiated device. Since the renderer has a single value for the supported device, this is used to see which device has been loaded.

Implements gnash::renderer::GnashDevice.

References gnash::renderer::GnashDevice::DIRECTFB.

size_t gnash::renderer::directfb::DirectFBDevice::getVerticalRes ( ) [inline]

References _screen.

size_t gnash::renderer::directfb::DirectFBDevice::getVerticalRes ( IDirectFBScreen *  screen) [inline]

References x, and y.

size_t gnash::renderer::directfb::DirectFBDevice::getWidth ( ) [inline, virtual]

Get the width of the device.

Implements gnash::renderer::GnashDevice.

References _surface.

size_t gnash::renderer::directfb::DirectFBDevice::getWidth ( IDirectFBSurface *  surface) [inline]

References x, and y.

bool gnash::renderer::directfb::DirectFBDevice::initDevice ( int  argc,
char *  argv[] 
) [virtual]

Initialize GNASH Device layer. This mostly just initializes all the private data.

Implements gnash::renderer::GnashDevice.

References GNASH_REPORT_FUNCTION, _, getErrorString(), _dfb, _keyboard, _keybuffer, _surface, x, y, gnash::renderer::directfb::FONT, _font, _provider, _layer, and _screen.

Referenced by DirectFBDevice().

bool gnash::renderer::directfb::DirectFBDevice::isBufferDestroyed ( ) [inline, virtual]

Are buffers destroyed ?

Implements gnash::renderer::GnashDevice.

bool gnash::renderer::directfb::DirectFBDevice::isContextBackBuffered ( ) [inline]

References _layer, and gnash::config.

bool gnash::renderer::directfb::DirectFBDevice::isContextSingleBuffered ( ) [inline]

References _layer, and gnash::config.

bool gnash::renderer::directfb::DirectFBDevice::isNativeRender ( ) [inline, virtual]

Is this renderering natively.

Implements gnash::renderer::GnashDevice.

bool gnash::renderer::directfb::DirectFBDevice::isSingleBuffered ( ) [inline, virtual]

Is this device single buffered.

Implements gnash::renderer::GnashDevice.

References _surface.

bool gnash::renderer::directfb::DirectFBDevice::isSurfaceBackBuffered ( ) [inline]

References _surface.

void gnash::renderer::directfb::DirectFBDevice::printAccelerationMask ( DFBAccelerationMask  mask) [protected]

Referenced by printDirectFB(), and printFBSurface().

void gnash::renderer::directfb::DirectFBDevice::printColor ( DFBColor  color) [protected]
void gnash::renderer::directfb::DirectFBDevice::printDirectFB ( ) [inline]

print the data in a DirectFB

References _dfb.

void gnash::renderer::directfb::DirectFBDevice::printDirectFB ( IDirectFB *  fb)
void gnash::renderer::directfb::DirectFBDevice::printDisplayLayerBufferMode ( DFBDisplayLayerBufferMode  mode) [protected]

Referenced by printDisplayLayerConfig().

void gnash::renderer::directfb::DirectFBDevice::printDisplayLayerCapabilities ( DFBDisplayLayerCapabilities  caps) [protected]

Referenced by printFBDisplay().

void gnash::renderer::directfb::DirectFBDevice::printDisplayLayerConfig ( DFBDisplayLayerConfig *  config) [protected]
void gnash::renderer::directfb::DirectFBDevice::printDisplayLayerTypeFlags ( DFBDisplayLayerTypeFlags  flags) [protected]

Referenced by printFBDisplay().

void gnash::renderer::directfb::DirectFBDevice::printFBDisplay ( ) [inline]

print the data in a DirectFBDisplay

References _layer.

void gnash::renderer::directfb::DirectFBDevice::printFBDisplay ( IDirectFBDisplayLayer *  display)
void gnash::renderer::directfb::DirectFBDevice::printFBDisplayLayer ( IDirectFBDisplayLayer *  layer)

Referenced by printFBLayer().

void gnash::renderer::directfb::DirectFBDevice::printFBFont ( ) [inline]

print the data in a DirectFBFont

References _font.

void gnash::renderer::directfb::DirectFBDevice::printFBFont ( IDirectFBFont *  font)

print the data in a DirectFBFont

References _font.

void gnash::renderer::directfb::DirectFBDevice::printFBInputDevice ( ) [inline]

print the data in a DirectFBInputDevice

References _keyboard.

void gnash::renderer::directfb::DirectFBDevice::printFBInputDevice ( IDirectFBInputDevice *  input)

print the data in a DirectFBInputDevice

void gnash::renderer::directfb::DirectFBDevice::printFBLayer ( ) [inline]

References printFBDisplayLayer(), and _layer.

void gnash::renderer::directfb::DirectFBDevice::printFBScreen ( ) [inline]

print the data in a DirectFBFont

References _screen.

void gnash::renderer::directfb::DirectFBDevice::printFBScreen ( IDirectFBScreen *  screen)
void gnash::renderer::directfb::DirectFBDevice::printFBSurface ( ) [inline]

print the data in a DirectFBSurface

References _surface.

void gnash::renderer::directfb::DirectFBDevice::printFBSurface ( IDirectFBSurface *  surface)

print the data in a DirectFBSurface

References x, y, printSurfaceCapabilities(), _surface, and printAccelerationMask().

void gnash::renderer::directfb::DirectFBDevice::printfScreenCapabilities ( DFBScreenCapabilities  caos) [protected]

Referenced by printFBScreen().

void gnash::renderer::directfb::DirectFBDevice::printGrapbicsDriverIndo ( DFBGraphicsDriverInfo *  driver) [protected]

Referenced by printDirectFB().

void gnash::renderer::directfb::DirectFBDevice::printSurfaceBlittingFlags ( DFBSurfaceBlittingFlags  flags) [protected]

Referenced by printDirectFB().

void gnash::renderer::directfb::DirectFBDevice::printSurfaceCapabilities ( DFBSurfaceCapabilities  caps) [protected]
void gnash::renderer::directfb::DirectFBDevice::printSurfaceDescriptionFlags ( DFBSurfaceDescriptionFlags  flags) [protected]
void gnash::renderer::directfb::DirectFBDevice::printSurfaceDrawingFlags ( DFBSurfaceDrawingFlags  flags) [protected]

Referenced by printDirectFB().

void gnash::renderer::directfb::DirectFBDevice::printSurfacePixelFormat ( DFBSurfacePixelFormat  format) [protected]

Referenced by printDisplayLayerConfig().

virtual bool gnash::renderer::directfb::DirectFBDevice::supportsRenderer ( rtype_t  rtype) [inline, virtual]

Is the specified renderer supported by this hardware ?

Implements gnash::renderer::GnashDevice.


Member Data Documentation

IDirectFBInputDevice* gnash::renderer::directfb::DirectFBDevice::_keyboard [protected]

Referenced by initDevice(), and printFBInputDevice().

IDirectFBEventBuffer* gnash::renderer::directfb::DirectFBDevice::_keybuffer [protected]

Referenced by ~DirectFBDevice(), and initDevice().

IDirectFBDisplayLayer* gnash::renderer::directfb::DirectFBDevice::_layer [protected]
IDirectFBImageProvider* gnash::renderer::directfb::DirectFBDevice::_provider [protected]

Referenced by ~DirectFBDevice(), and initDevice().


The documentation for this class was generated from the following files: