Sourceforge.net - The VCF's Project Host
   The VCF Website Home   |   Online Discussion Forums   |   Sourceforge.net Project Page   

VCF::X11GraphicsToolkit Class Reference

Class X11GraphicsToolkit documentation. More...

#include <X11GraphicsToolkit.h>

Inheritance diagram for VCF::X11GraphicsToolkit:

VCF::GraphicsToolkit VCF::Object List of all members.

Public Member Functions

 X11GraphicsToolkit ()
virtual ~X11GraphicsToolkit ()
virtual ContextPeercreateContextPeer (const uint32 &width, const uint32 &height)
virtual ContextPeercreateContextPeer (const int32 &contextID)
virtual FontPeercreateFontPeer (const String &fontName)
virtual FontPeercreateFontPeer (const String &fontName, const double &pointSize)
virtual OpenGLPeercreateOpenGLPeer (GraphicsContext *glContext)
virtual ImagecreateImage (const uint32 &width, const uint32 &height)
virtual ImagecreateImage (GraphicsContext *context, Rect *rect)
virtual FontgetDefaultSystemFont ()
double getDPI ()
Display * getX11Display ()
int getX11ScreenID ()
uint32 getPixelForColor (Color *color)
String getSharedFontsPath ()
 this should return a path that represents the common font directory available to all users.
String getUserFontsPath ()
 this will return a path to the users font directory.

Protected Member Functions

void initSystemFont ()
void loadSystemColors ()
virtual void initSystemFontNames ()
 this method should be overridden by implementers of the graphics toolkit and should initialize the availableSystemFonts_ vector with a series of FontInfo instances.

Protected Attributes

FontsystemFont_
Display * X11Display_
int X11ScreenID_
std::map< uint32, uint32colorLookupMap_

Detailed Description

Class X11GraphicsToolkit documentation.


Constructor & Destructor Documentation

VCF::X11GraphicsToolkit::X11GraphicsToolkit  ) 
 

virtual VCF::X11GraphicsToolkit::~X11GraphicsToolkit  )  [virtual]
 


Member Function Documentation

virtual ContextPeer* VCF::X11GraphicsToolkit::createContextPeer const int32 contextID  )  [virtual]
 

virtual ContextPeer* VCF::X11GraphicsToolkit::createContextPeer const uint32 width,
const uint32 height
[virtual]
 

Reimplemented from VCF::GraphicsToolkit.

virtual FontPeer* VCF::X11GraphicsToolkit::createFontPeer const String fontName,
const double &  pointSize
[virtual]
 

Reimplemented from VCF::GraphicsToolkit.

virtual FontPeer* VCF::X11GraphicsToolkit::createFontPeer const String fontName  )  [virtual]
 

Reimplemented from VCF::GraphicsToolkit.

virtual Image* VCF::X11GraphicsToolkit::createImage GraphicsContext context,
Rect rect
[virtual]
 

virtual Image* VCF::X11GraphicsToolkit::createImage const uint32 width,
const uint32 height
[virtual]
 

virtual OpenGLPeer* VCF::X11GraphicsToolkit::createOpenGLPeer GraphicsContext glContext  )  [virtual]
 

virtual Font* VCF::X11GraphicsToolkit::getDefaultSystemFont  )  [inline, virtual]
 

Reimplemented from VCF::GraphicsToolkit.

double VCF::X11GraphicsToolkit::getDPI  ) 
 

uint32 VCF::X11GraphicsToolkit::getPixelForColor Color color  ) 
 

String VCF::X11GraphicsToolkit::getSharedFontsPath  ) 
 

this should return a path that represents the common font directory available to all users.

By default this will be in /usr/local/share/fonts unless changed by the X11GraphicsToolkit implementation

String VCF::X11GraphicsToolkit::getUserFontsPath  ) 
 

this will return a path to the users font directory.

Typically this is $HOME/fonts

Display* VCF::X11GraphicsToolkit::getX11Display  )  [inline]
 

int VCF::X11GraphicsToolkit::getX11ScreenID  )  [inline]
 

void VCF::X11GraphicsToolkit::initSystemFont  )  [protected]
 

virtual void VCF::X11GraphicsToolkit::initSystemFontNames  )  [protected, virtual]
 

this method should be overridden by implementers of the graphics toolkit and should initialize the availableSystemFonts_ vector with a series of FontInfo instances.

Reimplemented from VCF::GraphicsToolkit.

void VCF::X11GraphicsToolkit::loadSystemColors  )  [protected]
 


Member Data Documentation

std::map<uint32,uint32> VCF::X11GraphicsToolkit::colorLookupMap_ [protected]
 

Font* VCF::X11GraphicsToolkit::systemFont_ [protected]
 

Display* VCF::X11GraphicsToolkit::X11Display_ [protected]
 

int VCF::X11GraphicsToolkit::X11ScreenID_ [protected]
 


The documentation for this class was generated from the following file:
   Comments or Suggestions?    License Information