MMSFBLayer Class Reference

This class describes a display layer. More...

#include <mmsfblayer.h>

List of all members.

Public Member Functions

 MMSFBLayer (int id, MMSFBBackend backend, MMSFBOutputType outputtype)
virtual ~MMSFBLayer ()
bool isInitialized ()
bool getID (int *id)
bool setExclusiveAccess ()
bool getConfiguration (MMSFBLayerConfig *config=NULL)
bool getResolution (int *w, int *h)
bool getPixelFormat (MMSFBSurfacePixelFormat *pixelformat)
bool setConfiguration (int w=0, int h=0, MMSFBSurfacePixelFormat pixelformat=MMSFB_PF_NONE, string buffermode="", string options="", MMSFBSurfacePixelFormat window_pixelformat=MMSFB_PF_NONE, MMSFBSurfacePixelFormat surface_pixelformat=MMSFB_PF_NONE)
bool setOpacity (unsigned char opacity)
bool setLevel (int level)
bool getSurface (MMSFBSurface **surface, bool clear=false)
bool setFlipFlags (MMSFBFlipFlags flags)
bool releaseLayer ()
bool restoreLayer ()
bool createSurface (MMSFBSurface **surface, int w, int h, MMSFBSurfacePixelFormat pixelformat=MMSFB_PF_NONE, int backbuffer=0)
bool createWindow (MMSFBWindow **window, int x, int y, int w, int h, MMSFBSurfacePixelFormat pixelformat=MMSFB_PF_NONE, bool usealpha=true, int backbuffer=1)
void * getImplementation ()

Private Attributes

bool initialized
 is initialized?
IDirectFBDisplayLayer * dfblayer
 interface to the dfb layer
XImage * x_image1
XShmSegmentInfo x_shminfo1
XImage * x_image2
XShmSegmentInfo x_shminfo2
XImage * x_image_scaler
XShmSegmentInfo x_shminfo_scaler
Visual * x_visual
Window x_window
Pixmap pixmap
XRenderPictFormat * pict_format
Picture x_pixmap_pict
Picture x_window_pict
GC x_gc
int x_window_h
int x_window_w
X11_IMPL impl
MMSFBLayerConfig config
MMSFBFlipFlags flipflags

Static Private Attributes

static bool firsttime_createsurface = true
static bool firsttime_createwindow_usealpha = true
static bool firsttime_createwindow_noalpha = true


class MMSFBManager
class MMSFBSurface

Detailed Description

This class describes a display layer.

Jens Schneider

Definition at line 90 of file mmsfblayer.h.

Constructor & Destructor Documentation

MMSFBLayer::MMSFBLayer ( int  id,
MMSFBBackend  backend,
MMSFBOutputType  outputtype 

Definition at line 64 of file mmsfblayer.cpp.

MMSFBLayer::~MMSFBLayer (  )  [virtual]

Definition at line 208 of file mmsfblayer.cpp.

Member Function Documentation

bool MMSFBLayer::isInitialized (  ) 

Definition at line 244 of file mmsfblayer.cpp.

bool MMSFBLayer::getID ( int *  id  ) 

Definition at line 257 of file mmsfblayer.cpp.

bool MMSFBLayer::setExclusiveAccess (  ) 

Definition at line 273 of file mmsfblayer.cpp.

bool MMSFBLayer::getConfiguration ( MMSFBLayerConfig config = NULL  ) 

Definition at line 298 of file mmsfblayer.cpp.

bool MMSFBLayer::getResolution ( int *  w,
int *  h 

Definition at line 390 of file mmsfblayer.cpp.

bool MMSFBLayer::getPixelFormat ( MMSFBSurfacePixelFormat pixelformat  ) 

Definition at line 407 of file mmsfblayer.cpp.

bool MMSFBLayer::setConfiguration ( int  w = 0,
int  h = 0,
MMSFBSurfacePixelFormat  pixelformat = MMSFB_PF_NONE,
string  buffermode = "",
string  options = "",
MMSFBSurfacePixelFormat  window_pixelformat = MMSFB_PF_NONE,
MMSFBSurfacePixelFormat  surface_pixelformat = MMSFB_PF_NONE 

Definition at line 423 of file mmsfblayer.cpp.

bool MMSFBLayer::setOpacity ( unsigned char  opacity  ) 

Definition at line 1359 of file mmsfblayer.cpp.

bool MMSFBLayer::setLevel ( int  level  ) 

Definition at line 1386 of file mmsfblayer.cpp.

bool MMSFBLayer::getSurface ( MMSFBSurface **  surface,
bool  clear = false 

Definition at line 1411 of file mmsfblayer.cpp.

bool MMSFBLayer::setFlipFlags ( MMSFBFlipFlags  flags  ) 

Definition at line 1644 of file mmsfblayer.cpp.

bool MMSFBLayer::releaseLayer (  ) 

Definition at line 1657 of file mmsfblayer.cpp.

bool MMSFBLayer::restoreLayer (  ) 

Definition at line 1679 of file mmsfblayer.cpp.

bool MMSFBLayer::createSurface ( MMSFBSurface **  surface,
int  w,
int  h,
MMSFBSurfacePixelFormat  pixelformat = MMSFB_PF_NONE,
int  backbuffer = 0 

Definition at line 1701 of file mmsfblayer.cpp.

bool MMSFBLayer::createWindow ( MMSFBWindow **  window,
int  x,
int  y,
int  w,
int  h,
MMSFBSurfacePixelFormat  pixelformat = MMSFB_PF_NONE,
bool  usealpha = true,
int  backbuffer = 1 

Definition at line 1749 of file mmsfblayer.cpp.

void * MMSFBLayer::getImplementation (  ) 

Definition at line 1872 of file mmsfblayer.cpp.

Friends And Related Function Documentation

friend class MMSFBManager [friend]

Definition at line 177 of file mmsfblayer.h.

friend class MMSFBSurface [friend]

Definition at line 178 of file mmsfblayer.h.

Member Data Documentation

bool MMSFBLayer::initialized [private]

is initialized?

Definition at line 93 of file mmsfblayer.h.

IDirectFBDisplayLayer* MMSFBLayer::dfblayer [private]

interface to the dfb layer

Definition at line 97 of file mmsfblayer.h.

Definition at line 101 of file mmsfblayer.h.

XImage* MMSFBLayer::x_image1 [private]

Definition at line 105 of file mmsfblayer.h.

XShmSegmentInfo MMSFBLayer::x_shminfo1 [private]

Definition at line 106 of file mmsfblayer.h.

XImage* MMSFBLayer::x_image2 [private]

Definition at line 107 of file mmsfblayer.h.

XShmSegmentInfo MMSFBLayer::x_shminfo2 [private]

Definition at line 108 of file mmsfblayer.h.

XImage* MMSFBLayer::x_image_scaler [private]

Definition at line 109 of file mmsfblayer.h.

XShmSegmentInfo MMSFBLayer::x_shminfo_scaler [private]

Definition at line 110 of file mmsfblayer.h.

Definition at line 111 of file mmsfblayer.h.

Visual* MMSFBLayer::x_visual [private]

Definition at line 112 of file mmsfblayer.h.

Window MMSFBLayer::x_window [private]

Definition at line 113 of file mmsfblayer.h.

Pixmap MMSFBLayer::pixmap [private]

Definition at line 114 of file mmsfblayer.h.

XRenderPictFormat* MMSFBLayer::pict_format [private]

Definition at line 115 of file mmsfblayer.h.

Picture MMSFBLayer::x_pixmap_pict [private]

Definition at line 116 of file mmsfblayer.h.

Picture MMSFBLayer::x_window_pict [private]

Definition at line 117 of file mmsfblayer.h.

GC MMSFBLayer::x_gc [private]

Definition at line 118 of file mmsfblayer.h.

int MMSFBLayer::x_window_h [private]

Definition at line 119 of file mmsfblayer.h.

int MMSFBLayer::x_window_w [private]

Definition at line 120 of file mmsfblayer.h.

Definition at line 121 of file mmsfblayer.h.

Definition at line 132 of file mmsfblayer.h.

Definition at line 135 of file mmsfblayer.h.

Definition at line 138 of file mmsfblayer.h.

bool MMSFBLayer::firsttime_createsurface = true [static, private]

Definition at line 141 of file mmsfblayer.h.

bool MMSFBLayer::firsttime_createwindow_usealpha = true [static, private]

Definition at line 144 of file mmsfblayer.h.

bool MMSFBLayer::firsttime_createwindow_noalpha = true [static, private]

Definition at line 145 of file mmsfblayer.h.

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