MMSFB Class Reference

The lowest layer to the backends like DFB, X11(XSHM/XVSHM) or FBDEV. More...

#include <mmsfb.h>

List of all members.

Public Member Functions

virtual ~MMSFB ()
bool init (int argc, char **argv, MMSFBBackend backend, MMSFBRectangle x11_win_rect, bool extendedaccel, MMSFBFullScreenMode fullscreen, MMSFBPointerMode pointer, string appl_name="Disko Application", string appl_icon_name="Disko Application", bool hidden=false)
bool release ()
bool isInitialized ()
MMSFBBackend getBackend ()
bool lock ()
bool unlock ()
bool getLayer (int id, MMSFBLayer **layer, MMSFBOutputType outputtype, bool virtual_console)
bool getLayer (int id, MMSFBLayer **layer)
void * getX11Window ()
void * getX11Display ()
bool refresh ()
bool createSurface (MMSFBSurface **surface, int w, int h, MMSFBSurfacePixelFormat pixelformat, int backbuffer=0, bool systemonly=false)
bool createImageProvider (IDirectFBImageProvider **provider, string filename)
bool createFont (MMSFBFont **font, string filename, int width=0, int height=0)
void realignLayer ()

Private Member Functions

bool resizeWindow ()

Private Attributes

int argc
char ** argv
string applname
string appliconname
bool hidden
MMSFBPointerMode pointer
string bin
 name of binary
bool initialized
 is initialized?
MMSFBFullScreenMode fullscreen
IDirectFB * dfb
Display * x_display
 connection to the x-server
int x_screen
Window x_window
Window input_window
GC x_gc
Visual * x_visual
int x_depth
MMSMutex xlock
int display_w
int display_h
int target_window_w
int target_window_h
bool resized
Window x_windows [MMSFBLAYER_MAXNUM]
XImage * rootimage
MMSFBBackend backend
MMSFBRectangle x11_win_rect
MMSMutex Lock
 to make it thread-safe


class MMSFBLayer
class MMSFBSurface
class MMSFBFont
class MMSInputX11Handler
class MMSInputLISHandler
class MMSFBBuffer

Detailed Description

The lowest layer to the backends like DFB, X11(XSHM/XVSHM) or FBDEV.

Jens Schneider

Definition at line 60 of file mmsfb.h.

Constructor & Destructor Documentation


Definition at line 59 of file mmsfb.cpp.

MMSFB::~MMSFB (  )  [virtual]

Definition at line 87 of file mmsfb.cpp.

Member Function Documentation

bool MMSFB::resizeWindow (  )  [private]

Definition at line 572 of file mmsfb.cpp.

bool MMSFB::init ( int  argc,
char **  argv,
MMSFBBackend  backend,
MMSFBRectangle  x11_win_rect,
bool  extendedaccel,
MMSFBFullScreenMode  fullscreen,
MMSFBPointerMode  pointer,
string  appl_name = "Disko Application",
string  appl_icon_name = "Disko Application",
bool  hidden = false 

Definition at line 96 of file mmsfb.cpp.

bool MMSFB::release (  ) 

Definition at line 210 of file mmsfb.cpp.

bool MMSFB::isInitialized (  ) 

Definition at line 252 of file mmsfb.cpp.

MMSFBBackend MMSFB::getBackend (  ) 

Definition at line 256 of file mmsfb.cpp.

bool MMSFB::lock (  ) 

Definition at line 260 of file mmsfb.cpp.

bool MMSFB::unlock (  ) 

Definition at line 266 of file mmsfb.cpp.

bool MMSFB::getLayer ( int  id,
MMSFBLayer **  layer,
MMSFBOutputType  outputtype,
bool  virtual_console 

Definition at line 275 of file mmsfb.cpp.

bool MMSFB::getLayer ( int  id,
MMSFBLayer **  layer 

Definition at line 416 of file mmsfb.cpp.

void * MMSFB::getX11Window (  ) 

Definition at line 432 of file mmsfb.cpp.

void * MMSFB::getX11Display (  ) 

Definition at line 456 of file mmsfb.cpp.

bool MMSFB::refresh (  ) 

Definition at line 479 of file mmsfb.cpp.

bool MMSFB::createSurface ( MMSFBSurface **  surface,
int  w,
int  h,
MMSFBSurfacePixelFormat  pixelformat,
int  backbuffer = 0,
bool  systemonly = false 

Definition at line 508 of file mmsfb.cpp.

bool MMSFB::createImageProvider ( IDirectFBImageProvider **  provider,
string  filename 

Definition at line 522 of file mmsfb.cpp.

bool MMSFB::createFont ( MMSFBFont **  font,
string  filename,
int  width = 0,
int  height = 0 

Definition at line 552 of file mmsfb.cpp.

void MMSFB::realignLayer (  ) 

Definition at line 583 of file mmsfb.cpp.

Friends And Related Function Documentation

friend class MMSFBLayer [friend]

Definition at line 166 of file mmsfb.h.

friend class MMSFBSurface [friend]

Definition at line 167 of file mmsfb.h.

friend class MMSFBFont [friend]

Definition at line 168 of file mmsfb.h.

friend class MMSInputX11Handler [friend]

Definition at line 169 of file mmsfb.h.

friend class MMSInputLISHandler [friend]

Definition at line 170 of file mmsfb.h.

friend class MMSFBBuffer [friend]

Definition at line 171 of file mmsfb.h.

Member Data Documentation

int MMSFB::argc [private]

Definition at line 62 of file mmsfb.h.

char** MMSFB::argv [private]

Definition at line 63 of file mmsfb.h.

string MMSFB::applname [private]

Definition at line 64 of file mmsfb.h.

string MMSFB::appliconname [private]

Definition at line 65 of file mmsfb.h.

bool MMSFB::hidden [private]

Definition at line 66 of file mmsfb.h.

Definition at line 67 of file mmsfb.h.

string MMSFB::bin [private]

name of binary

Definition at line 70 of file mmsfb.h.

bool MMSFB::initialized [private]

is initialized?

Definition at line 73 of file mmsfb.h.

Definition at line 75 of file mmsfb.h.

IDirectFB* MMSFB::dfb [private]

Definition at line 79 of file mmsfb.h.

Definition at line 84 of file mmsfb.h.

Display* MMSFB::x_display [private]

connection to the x-server

Definition at line 94 of file mmsfb.h.

int MMSFB::x_screen [private]

Definition at line 95 of file mmsfb.h.

Window MMSFB::x_window [private]

Definition at line 96 of file mmsfb.h.

Window MMSFB::input_window [private]

Definition at line 97 of file mmsfb.h.

GC MMSFB::x_gc [private]

Definition at line 98 of file mmsfb.h.

Visual* MMSFB::x_visual [private]

Definition at line 99 of file mmsfb.h.

int MMSFB::x_depth [private]

Definition at line 100 of file mmsfb.h.

Definition at line 101 of file mmsfb.h.

int MMSFB::display_w [private]

Definition at line 102 of file mmsfb.h.

int MMSFB::display_h [private]

Definition at line 103 of file mmsfb.h.

int MMSFB::target_window_w [private]

Definition at line 104 of file mmsfb.h.

int MMSFB::target_window_h [private]

Definition at line 105 of file mmsfb.h.

bool MMSFB::resized [private]

Definition at line 106 of file mmsfb.h.

Window MMSFB::x_windows[MMSFBLAYER_MAXNUM] [private]

Definition at line 108 of file mmsfb.h.

XImage* MMSFB::rootimage [private]

Definition at line 109 of file mmsfb.h.

Definition at line 118 of file mmsfb.h.


Definition at line 121 of file mmsfb.h.

Definition at line 123 of file mmsfb.h.

Definition at line 124 of file mmsfb.h.

MMSMutex MMSFB::Lock [private]

to make it thread-safe

Definition at line 127 of file mmsfb.h.

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