MMSCanvasWidget Class Reference

With this class you get a canvas that can be the base for custom widgets that can integrate into the gui. More...

#include <mmscanvaswidget.h>

Inheritance diagram for MMSCanvasWidget:

List of all members.


Public Member Functions

 MMSCanvasWidget (MMSWindow *root, string className, MMSTheme *theme=NULL)
virtual ~MMSCanvasWidget ()
virtual bool drawingFunc (MMSFBSurface *surf, MMSFBRectangle surfaceGeom, bool *backgroundFilled=NULL)=0
virtual bool createFunc ()
virtual bool initFunc ()
virtual bool releaseFunc ()
virtual bool copyFunc (MMSWidget *wid)
virtual bool handleInputFunc (MMSInputEvent *inputevent)
MMSWidgetcopyWidget ()
void add (MMSWidget *widget)
void setAttributes (string &attr)
void setAttributes (string attr)
void updateFromThemeClass (MMSCanvasWidgetClass *themeClass)

Protected Types

typedef map< string, string > ATTRIBUTE_MAP

Protected Member Functions

bool enableRefresh (bool enable=true)
 Internal method: (re-)enable refresh status.
bool checkRefreshStatus ()
 Internal method: check drawn background against new background and (re-)enable refresh status if needed.
MMSFontManagergetFontManager ()
MMSImageManagergetImageManager ()
void checkInit ()

Protected Attributes

string attributes
ATTRIBUTE_MAP attributemap
MMSFBSurfacecanvasSurface
string factoryname
MMSThemecanvastheme

Private Member Functions

bool create (MMSWindow *root, string className, MMSTheme *theme)
bool init ()
bool release ()
bool draw (bool *backgroundFilled=NULL)
void handleInput (MMSInputEvent *inputevent)

Private Attributes

string className
MMSCanvasWidgetClasscanvasWidgetClass
MMSCanvasWidgetClass myCanvasWidgetClass
bool current_fgset

Friends

class MMSThemeManager
class MMSDialogManager

Detailed Description

With this class you get a canvas that can be the base for custom widgets that can integrate into the gui.

Author:
Stefan Schwarzer

Definition at line 42 of file mmscanvaswidget.h.


Member Typedef Documentation

typedef map<string, string> MMSCanvasWidget::ATTRIBUTE_MAP [protected]

Definition at line 56 of file mmscanvaswidget.h.


Constructor & Destructor Documentation

MMSCanvasWidget::MMSCanvasWidget ( MMSWindow root,
string  className,
MMSTheme theme = NULL 
)

Definition at line 14 of file mmscanvaswidget.cpp.

MMSCanvasWidget::~MMSCanvasWidget (  )  [virtual]

Definition at line 19 of file mmscanvaswidget.cpp.


Member Function Documentation

bool MMSCanvasWidget::create ( MMSWindow root,
string  className,
MMSTheme theme 
) [private]

Definition at line 59 of file mmscanvaswidget.cpp.

bool MMSCanvasWidget::init (  )  [private, virtual]

Reimplemented from MMSWidget.

Definition at line 79 of file mmscanvaswidget.cpp.

bool MMSCanvasWidget::release (  )  [private, virtual]

Reimplemented from MMSWidget.

Definition at line 89 of file mmscanvaswidget.cpp.

bool MMSCanvasWidget::draw ( bool *  backgroundFilled = NULL  )  [private, virtual]

Reimplemented from MMSWidget.

Definition at line 97 of file mmscanvaswidget.cpp.

void MMSCanvasWidget::handleInput ( MMSInputEvent inputevent  )  [private, virtual]

Reimplemented from MMSWidget.

Definition at line 137 of file mmscanvaswidget.cpp.

bool MMSCanvasWidget::enableRefresh ( bool  enable = true  )  [protected, virtual]

Internal method: (re-)enable refresh status.

Reimplemented from MMSWidget.

Definition at line 114 of file mmscanvaswidget.cpp.

bool MMSCanvasWidget::checkRefreshStatus (  )  [protected, virtual]

Internal method: check drawn background against new background and (re-)enable refresh status if needed.

Reimplemented from MMSWidget.

Definition at line 123 of file mmscanvaswidget.cpp.

MMSFontManager * MMSCanvasWidget::getFontManager (  )  [protected]

Definition at line 163 of file mmscanvaswidget.cpp.

MMSImageManager * MMSCanvasWidget::getImageManager (  )  [protected]

Definition at line 172 of file mmscanvaswidget.cpp.

void MMSCanvasWidget::checkInit (  )  [protected]

Definition at line 167 of file mmscanvaswidget.cpp.

virtual bool MMSCanvasWidget::drawingFunc ( MMSFBSurface surf,
MMSFBRectangle  surfaceGeom,
bool *  backgroundFilled = NULL 
) [pure virtual]

virtual bool MMSCanvasWidget::createFunc (  )  [inline, virtual]

Definition at line 74 of file mmscanvaswidget.h.

virtual bool MMSCanvasWidget::initFunc (  )  [inline, virtual]

Definition at line 75 of file mmscanvaswidget.h.

virtual bool MMSCanvasWidget::releaseFunc (  )  [inline, virtual]

Definition at line 76 of file mmscanvaswidget.h.

virtual bool MMSCanvasWidget::copyFunc ( MMSWidget wid  )  [inline, virtual]

Definition at line 77 of file mmscanvaswidget.h.

virtual bool MMSCanvasWidget::handleInputFunc ( MMSInputEvent inputevent  )  [inline, virtual]

Definition at line 78 of file mmscanvaswidget.h.

MMSWidget * MMSCanvasWidget::copyWidget (  )  [virtual]

Implements MMSWidget.

Definition at line 23 of file mmscanvaswidget.cpp.

void MMSCanvasWidget::add ( MMSWidget widget  )  [virtual]

Reimplemented from MMSWidget.

Definition at line 176 of file mmscanvaswidget.cpp.

void MMSCanvasWidget::setAttributes ( string &  attr  ) 

void MMSCanvasWidget::setAttributes ( string  attr  ) 

Definition at line 142 of file mmscanvaswidget.cpp.

void MMSCanvasWidget::updateFromThemeClass ( MMSCanvasWidgetClass themeClass  ) 

Definition at line 45 of file mmscanvaswidget.cpp.


Friends And Related Function Documentation

friend class MMSThemeManager [friend]

Definition at line 94 of file mmscanvaswidget.h.

friend class MMSDialogManager [friend]

Reimplemented from MMSWidget.

Definition at line 95 of file mmscanvaswidget.h.


Member Data Documentation

string MMSCanvasWidget::className [private]

Definition at line 44 of file mmscanvaswidget.h.

Definition at line 47 of file mmscanvaswidget.h.

string MMSCanvasWidget::attributes [protected]

Definition at line 57 of file mmscanvaswidget.h.

Definition at line 58 of file mmscanvaswidget.h.

Definition at line 63 of file mmscanvaswidget.h.

string MMSCanvasWidget::factoryname [protected]

Definition at line 64 of file mmscanvaswidget.h.

Definition at line 65 of file mmscanvaswidget.h.


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