mmsfbsurface.cpp File Reference

#include "mmsgui/fb/mmsfbsurface.h"
#include "mmsgui/fb/mmsfb.h"
#include "mmsgui/fb/mmsfbsurfacemanager.h"
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include <ft2build.h>

Include dependency graph for mmsfbsurface.cpp:

Go to the source code of this file.


Defines

#define INITCHECK   if((!mmsfb->isInitialized())||(!this->initialized)){MMSFB_SetError(0,"MMSFBSurface is not initialized");return false;}
#define CLIPSUBSURFACE
#define UNCLIPSUBSURFACE   clipSubSurface(NULL, false, &tmp, &tmpset); }
#define SETSUBSURFACE_DRAWINGFLAGS
#define RESETSUBSURFACE_DRAWINGFLAGS
#define SETSUBSURFACE_BLITTINGFLAGS
#define RESETSUBSURFACE_BLITTINGFLAGS
#define D2FCB_ADDSTR1(f)   {int l=sprintf(ob,f);if(!fcb(ob,l,argp,argi)){this->unlock();return false;}}
#define D2FCB_ADDSTR2(f, v)   {int l=sprintf(ob,f,v);if(!fcb(ob,l,argp,argi)){this->unlock();return false;}}

Functions

 D_DEBUG_DOMAIN (MMS_Surface,"MMS/Surface","MMS FB Surface")
bool dump2buffer_fcb (char *buf, int len, void *argp, int *argi)
bool dump2file_fcb (char *buf, int len, void *argp, int *argi)
bool dump_fcb (char *buf, int len, void *argp, int *argi)
bool mmsfb_create_cached_surface (MMSFBSurface **cs, int width, int height, MMSFBSurfacePixelFormat pixelformat)

Define Documentation

#define CLIPSUBSURFACE

Value:

MMSFBRegion reg, tmp; \
    bool tmpset; \
    if (clipSubSurface(&reg, false, &tmp, &tmpset)) {

Definition at line 66 of file mmsfbsurface.cpp.

#define D2FCB_ADDSTR1 (  )     {int l=sprintf(ob,f);if(!fcb(ob,l,argp,argi)){this->unlock();return false;}}

#define D2FCB_ADDSTR2 ( f,
 )     {int l=sprintf(ob,f,v);if(!fcb(ob,l,argp,argi)){this->unlock();return false;}}

#define INITCHECK   if((!mmsfb->isInitialized())||(!this->initialized)){MMSFB_SetError(0,"MMSFBSurface is not initialized");return false;}

Definition at line 64 of file mmsfbsurface.cpp.

#define RESETSUBSURFACE_BLITTINGFLAGS

Value:

ccc = this->root_parent->config.color; \
    this->dfb_surface->SetColor(this->dfb_surface, ccc.r, ccc.g, ccc.b, ccc.a); \
    this->dfb_surface->SetBlittingFlags(this->dfb_surface, getDFBSurfaceBlittingFlagsFromMMSFBBlittingFlags(this->root_parent->config.blittingflags));

Definition at line 89 of file mmsfbsurface.cpp.

#define RESETSUBSURFACE_DRAWINGFLAGS

Value:

ccc = this->root_parent->config.color; \
    this->dfb_surface->SetColor(this->dfb_surface, ccc.r, ccc.g, ccc.b, ccc.a); \
    this->dfb_surface->SetDrawingFlags(this->dfb_surface, getDFBSurfaceDrawingFlagsFromMMSFBDrawingFlags(this->root_parent->config.drawingflags));

Definition at line 79 of file mmsfbsurface.cpp.

#define SETSUBSURFACE_BLITTINGFLAGS

Value:

MMSFBColor ccc = this->config.color; \
    this->dfb_surface->SetColor(this->dfb_surface, ccc.r, ccc.g, ccc.b, ccc.a); \
    this->dfb_surface->SetBlittingFlags(this->dfb_surface, getDFBSurfaceBlittingFlagsFromMMSFBBlittingFlags(this->config.blittingflags));

Definition at line 84 of file mmsfbsurface.cpp.

#define SETSUBSURFACE_DRAWINGFLAGS

Value:

MMSFBColor ccc = this->config.color; \
    this->dfb_surface->SetColor(this->dfb_surface, ccc.r, ccc.g, ccc.b, ccc.a); \
    this->dfb_surface->SetDrawingFlags(this->dfb_surface, getDFBSurfaceDrawingFlagsFromMMSFBDrawingFlags(this->config.drawingflags));

Definition at line 74 of file mmsfbsurface.cpp.

#define UNCLIPSUBSURFACE   clipSubSurface(NULL, false, &tmp, &tmpset); }

Definition at line 71 of file mmsfbsurface.cpp.


Function Documentation

D_DEBUG_DOMAIN ( MMS_Surface  ,
"MMS/Surface"  ,
"MMS FB Surface"   
)

bool dump2buffer_fcb ( char *  buf,
int  len,
void *  argp,
int *  argi 
)

Definition at line 7359 of file mmsfbsurface.cpp.

bool dump2file_fcb ( char *  buf,
int  len,
void *  argp,
int *  argi 
)

Definition at line 7379 of file mmsfbsurface.cpp.

bool dump_fcb ( char *  buf,
int  len,
void *  argp,
int *  argi 
)

Definition at line 7402 of file mmsfbsurface.cpp.

bool mmsfb_create_cached_surface ( MMSFBSurface **  cs,
int  width,
int  height,
MMSFBSurfacePixelFormat  pixelformat 
)

Definition at line 7421 of file mmsfbsurface.cpp.