Gnash  0.8.11dev
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
gnash::renderer::directfb::DirectFBDevice Class Reference

#include <DirectFBDevice.h>

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

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. More...
 
size_t getWidth ()
 Get the width of the device. More...
 
size_t getHeight ()
 Get the Height of the device. More...
 
int getDepth ()
 Get the depth of the device. More...
 
int getRedSize ()
 Get the size of the Red pixel. More...
 
int getGreenSize ()
 Get the size of the Green pixel. More...
 
int getBlueSize ()
 Get the size of the Blue pixel. More...
 
bool isSingleBuffered ()
 Is this device single buffered. More...
 
int getID ()
 Get the window ID handle. More...
 
bool isBufferDestroyed ()
 Are buffers destroyed ? More...
 
int getSurfaceID ()
 
virtual bool supportsRenderer (rtype_t)
 Is the specified renderer supported by this hardware ? More...
 
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. More...
 
size_t getVerticalRes ()
 
size_t getVerticalRes (IDirectFBScreen *screen)
 
size_t getHorzRes ()
 
size_t getHorzRes (IDirectFBScreen *screen)
 
void printDirectFB ()
 print the data in a DirectFB More...
 
void printDirectFB (IDirectFB *fb)
 print the data in a DirectFB More...
 
void printFBSurface ()
 print the data in a DirectFBSurface More...
 
void printFBSurface (IDirectFBSurface *surface)
 print the data in a DirectFBSurface More...
 
void printFBFont ()
 print the data in a DirectFBFont More...
 
void printFBFont (IDirectFBFont *font)
 print the data in a DirectFBFont More...
 
void printFBDisplay ()
 print the data in a DirectFBDisplay More...
 
void printFBDisplay (IDirectFBDisplayLayer *display)
 
void printFBLayer ()
 
void printFBDisplayLayer (IDirectFBDisplayLayer *layer)
 
void printFBScreen ()
 print the data in a DirectFBFont More...
 
void printFBScreen (IDirectFBScreen *screen)
 
void printFBInputDevice ()
 print the data in a DirectFBInputDevice More...
 
void printFBInputDevice (IDirectFBInputDevice *input)
 print the data in a DirectFBInputDevice More...
 
- Public Member Functions inherited from gnash::renderer::GnashDevice
 GnashDevice (int argc, char *argv[])
 
 GnashDevice ()
 
virtual ~GnashDevice ()
 
virtual size_t getStride ()=0
 Query the system for all supported configs. More...
 
virtual std::uint8_t * getFBMemory ()
 Get the memory from the real framebuffer. More...
 
virtual std::uint8_t * getOffscreenBuffer ()
 Get the memory from an offscreen buffer to support Double Buffering. More...
 
virtual size_t getFBMemSize ()
 
virtual bool bindClient (GnashDevice::rtype_t)
 
virtual bool swapBuffers ()
 

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
 

Additional Inherited Members

- Public Types inherited from gnash::renderer::GnashDevice
enum  rtype_t {
  OPENVG, OPENGL, OPENGLES1, OPENGLES2,
  XORG, VAAPI
}
 The list of supported renders that use devices. More...
 
enum  dtype_t {
  GNASH_NODEV, EGL, DIRECTFB, X11,
  RAWFB
}
 The list of supported device types. More...
 
typedef long native_window_t
 

Constructor & Destructor Documentation

§ DirectFBDevice() [1/2]

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

§ DirectFBDevice() [2/2]

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

§ ~DirectFBDevice()

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

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

Member Function Documentation

§ attachWindow()

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.

Referenced by getType().

§ getBlueSize()

int gnash::renderer::directfb::DirectFBDevice::getBlueSize ( )
inlinevirtual

Get the size of the Blue pixel.

Implements gnash::renderer::GnashDevice.

§ getContextID()

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

References _layer.

§ getDepth() [1/2]

int gnash::renderer::directfb::DirectFBDevice::getDepth ( )
inlinevirtual

Get the depth of the device.

Implements gnash::renderer::GnashDevice.

References _surface.

Referenced by supportsRenderer().

§ getDepth() [2/2]

int gnash::renderer::directfb::DirectFBDevice::getDepth ( DFBSurfacePixelFormat  format)

§ getErrorString()

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 getType(), initDevice(), and printFBScreen().

§ getGreenSize()

int gnash::renderer::directfb::DirectFBDevice::getGreenSize ( )
inlinevirtual

Get the size of the Green pixel.

Implements gnash::renderer::GnashDevice.

§ getHeight() [1/2]

size_t gnash::renderer::directfb::DirectFBDevice::getHeight ( )
inlinevirtual

Get the Height of the device.

Implements gnash::renderer::GnashDevice.

References _surface.

§ getHeight() [2/2]

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

References x, and y.

§ getHorzRes() [1/2]

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

References _screen.

§ getHorzRes() [2/2]

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

References x, and y.

§ getID()

int gnash::renderer::directfb::DirectFBDevice::getID ( )
inlinevirtual

Get the window ID handle.

Implements gnash::renderer::GnashDevice.

References getSurfaceID().

§ getRedSize()

int gnash::renderer::directfb::DirectFBDevice::getRedSize ( )
inlinevirtual

Get the size of the Red pixel.

Implements gnash::renderer::GnashDevice.

§ getSurfaceID()

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

References _layer, and _screen.

Referenced by getID().

§ getType()

dtype_t gnash::renderer::directfb::DirectFBDevice::getType ( )
inlinevirtual

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 attachWindow(), gnash::renderer::GnashDevice::DIRECTFB, getErrorString(), and initDevice().

§ getVerticalRes() [1/2]

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

References _screen.

§ getVerticalRes() [2/2]

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

References x, and y.

§ getWidth() [1/2]

size_t gnash::renderer::directfb::DirectFBDevice::getWidth ( )
inlinevirtual

Get the width of the device.

Implements gnash::renderer::GnashDevice.

References _surface.

§ getWidth() [2/2]

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

References x, and y.

§ initDevice()

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 _, _dfb, _font, _keyboard, _keybuffer, _layer, _provider, _screen, _surface, getErrorString(), GNASH_REPORT_FUNCTION, gnash::log_error(), x, and y.

Referenced by DirectFBDevice(), and getType().

§ isBufferDestroyed()

bool gnash::renderer::directfb::DirectFBDevice::isBufferDestroyed ( )
inlinevirtual

Are buffers destroyed ?

Implements gnash::renderer::GnashDevice.

§ isContextBackBuffered()

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

References _layer, and gnash::config.

§ isContextSingleBuffered()

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

References _layer, and gnash::config.

§ isNativeRender()

bool gnash::renderer::directfb::DirectFBDevice::isNativeRender ( )
inlinevirtual

Is this renderering natively.

Implements gnash::renderer::GnashDevice.

§ isSingleBuffered()

bool gnash::renderer::directfb::DirectFBDevice::isSingleBuffered ( )
inlinevirtual

Is this device single buffered.

Implements gnash::renderer::GnashDevice.

References _surface.

§ isSurfaceBackBuffered()

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

References _surface.

§ printAccelerationMask()

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

§ printColor()

void gnash::renderer::directfb::DirectFBDevice::printColor ( DFBColor  color)
protected

Referenced by printFBInputDevice().

§ printDirectFB() [1/2]

void gnash::renderer::directfb::DirectFBDevice::printDirectFB ( )
inline

print the data in a DirectFB

References _dfb.

§ printDirectFB() [2/2]

void gnash::renderer::directfb::DirectFBDevice::printDirectFB ( IDirectFB *  fb)

§ printDisplayLayerBufferMode()

void gnash::renderer::directfb::DirectFBDevice::printDisplayLayerBufferMode ( DFBDisplayLayerBufferMode  mode)
protected

§ printDisplayLayerCapabilities()

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

§ printDisplayLayerConfig()

void gnash::renderer::directfb::DirectFBDevice::printDisplayLayerConfig ( DFBDisplayLayerConfig *  config)
protected

§ printDisplayLayerTypeFlags()

void gnash::renderer::directfb::DirectFBDevice::printDisplayLayerTypeFlags ( DFBDisplayLayerTypeFlags  flags)
protected

§ printFBDisplay() [1/2]

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

print the data in a DirectFBDisplay

References _layer.

§ printFBDisplay() [2/2]

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

§ printFBDisplayLayer()

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

Referenced by printFBLayer().

§ printFBFont() [1/2]

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

print the data in a DirectFBFont

References _font.

§ printFBFont() [2/2]

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

print the data in a DirectFBFont

References _font.

§ printFBInputDevice() [1/2]

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

§ printFBInputDevice() [2/2]

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

print the data in a DirectFBInputDevice

§ printFBLayer()

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

References _layer, and printFBDisplayLayer().

§ printFBScreen() [1/2]

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

print the data in a DirectFBFont

References _screen.

§ printFBScreen() [2/2]

void gnash::renderer::directfb::DirectFBDevice::printFBScreen ( IDirectFBScreen *  screen)

§ printFBSurface() [1/2]

void gnash::renderer::directfb::DirectFBDevice::printFBSurface ( )
inline

print the data in a DirectFBSurface

References _surface.

§ printFBSurface() [2/2]

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

print the data in a DirectFBSurface

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

§ printfScreenCapabilities()

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

§ printGrapbicsDriverIndo()

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

§ printSurfaceBlittingFlags()

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

§ printSurfaceCapabilities()

void gnash::renderer::directfb::DirectFBDevice::printSurfaceCapabilities ( DFBSurfaceCapabilities  caps)
protected

§ printSurfaceDescriptionFlags()

void gnash::renderer::directfb::DirectFBDevice::printSurfaceDescriptionFlags ( DFBSurfaceDescriptionFlags  flags)
protected

Referenced by printFBInputDevice().

§ printSurfaceDrawingFlags()

void gnash::renderer::directfb::DirectFBDevice::printSurfaceDrawingFlags ( DFBSurfaceDrawingFlags  flags)
protected

§ printSurfacePixelFormat()

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

§ supportsRenderer()

virtual bool gnash::renderer::directfb::DirectFBDevice::supportsRenderer ( rtype_t  rtype)
inlinevirtual

Is the specified renderer supported by this hardware ?

Implements gnash::renderer::GnashDevice.

References getDepth().

Member Data Documentation

§ _dfb

IDirectFB* gnash::renderer::directfb::DirectFBDevice::_dfb
protected

§ _font

IDirectFBFont* gnash::renderer::directfb::DirectFBDevice::_font
protected

§ _keyboard

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

Referenced by initDevice(), and printFBInputDevice().

§ _keybuffer

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

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

§ _layer

IDirectFBDisplayLayer* gnash::renderer::directfb::DirectFBDevice::_layer
protected

§ _provider

IDirectFBImageProvider* gnash::renderer::directfb::DirectFBDevice::_provider
protected

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

§ _screen

IDirectFBScreen* gnash::renderer::directfb::DirectFBDevice::_screen
protected

§ _surface

IDirectFBSurface* gnash::renderer::directfb::DirectFBDevice::_surface
protected

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