MMSArrowWidget Class Reference

With this class you can draw an arrow. More...

#include <mmsarrowwidget.h>

Inheritance diagram for MMSArrowWidget:

List of all members.


Public Member Functions

 MMSArrowWidget (MMSWindow *root, string className, MMSTheme *theme=NULL)
 ~MMSArrowWidget ()
MMSWidgetcopyWidget ()
MMSFBColor getColor ()
MMSFBColor getSelColor ()
MMSDIRECTION getDirection ()
bool getCheckSelected ()
void setColor (MMSFBColor color, bool refresh=true)
void setSelColor (MMSFBColor selcolor, bool refresh=true)
void setDirection (MMSDIRECTION direction, bool refresh=true)
void setCheckSelected (bool checkselected)
void updateFromThemeClass (MMSArrowWidgetClass *themeClass)

Private Member Functions

bool create (MMSWindow *root, string className, MMSTheme *theme)
bool init ()
bool release ()
void getForeground (MMSFBColor *color)
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.
bool draw (bool *backgroundFilled=NULL)
void handleInput (MMSInputEvent *inputevent)

Private Attributes

string className
MMSArrowWidgetClassarrowWidgetClass
MMSArrowWidgetClass myArrowWidgetClass
bool last_pressed
bool current_fgset
 current foreground values set?
MMSFBColor current_fgcolor
 current foreground color

Detailed Description

With this class you can draw an arrow.

The arrow here is nothing more than a triangle with a specified direction. The arrow widget cannot be focused. But if you click on it (e.g. mouse or touch screen), the arrow widget submits an input event (MMSKEY_CURSOR_LEFT, MMSKEY_CURSOR_RIGHT, MMSKEY_CURSOR_UP, MMSKEY_CURSOR_DOWN) to the toplevel parent window according to the direction parameter (see setDirection()).

Author:
Jens Schneider

Definition at line 47 of file mmsarrowwidget.h.


Constructor & Destructor Documentation

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

Definition at line 35 of file mmsarrowwidget.cpp.

MMSArrowWidget::~MMSArrowWidget (  ) 

Definition at line 39 of file mmsarrowwidget.cpp.


Member Function Documentation

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

Definition at line 42 of file mmsarrowwidget.cpp.

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

Reimplemented from MMSWidget.

Definition at line 76 of file mmsarrowwidget.cpp.

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

Reimplemented from MMSWidget.

Definition at line 84 of file mmsarrowwidget.cpp.

void MMSArrowWidget::getForeground ( MMSFBColor color  )  [private]

Definition at line 92 of file mmsarrowwidget.cpp.

bool MMSArrowWidget::enableRefresh ( bool  enable = true  )  [private, virtual]

Internal method: (re-)enable refresh status.

Reimplemented from MMSWidget.

Definition at line 103 of file mmsarrowwidget.cpp.

bool MMSArrowWidget::checkRefreshStatus (  )  [private, virtual]

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

Reimplemented from MMSWidget.

Definition at line 112 of file mmsarrowwidget.cpp.

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

Reimplemented from MMSWidget.

Definition at line 132 of file mmsarrowwidget.cpp.

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

Reimplemented from MMSWidget.

Definition at line 233 of file mmsarrowwidget.cpp.

MMSWidget * MMSArrowWidget::copyWidget (  )  [virtual]

Implements MMSWidget.

Definition at line 59 of file mmsarrowwidget.cpp.

MMSFBColor MMSArrowWidget::getColor (  ) 

Definition at line 291 of file mmsarrowwidget.cpp.

MMSFBColor MMSArrowWidget::getSelColor (  ) 

Definition at line 295 of file mmsarrowwidget.cpp.

MMSDIRECTION MMSArrowWidget::getDirection (  ) 

Definition at line 299 of file mmsarrowwidget.cpp.

bool MMSArrowWidget::getCheckSelected (  ) 

Definition at line 303 of file mmsarrowwidget.cpp.

void MMSArrowWidget::setColor ( MMSFBColor  color,
bool  refresh = true 
)

Definition at line 311 of file mmsarrowwidget.cpp.

void MMSArrowWidget::setSelColor ( MMSFBColor  selcolor,
bool  refresh = true 
)

Definition at line 320 of file mmsarrowwidget.cpp.

void MMSArrowWidget::setDirection ( MMSDIRECTION  direction,
bool  refresh = true 
)

Definition at line 329 of file mmsarrowwidget.cpp.

void MMSArrowWidget::setCheckSelected ( bool  checkselected  ) 

Definition at line 338 of file mmsarrowwidget.cpp.

void MMSArrowWidget::updateFromThemeClass ( MMSArrowWidgetClass themeClass  ) 

Definition at line 342 of file mmsarrowwidget.cpp.


Member Data Documentation

string MMSArrowWidget::className [private]

Definition at line 49 of file mmsarrowwidget.h.

Definition at line 53 of file mmsarrowwidget.h.

current foreground values set?

Definition at line 56 of file mmsarrowwidget.h.

current foreground color

Definition at line 59 of file mmsarrowwidget.h.


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