#include <mmsarrowwidget.h>
Public Member Functions | |
MMSArrowWidget (MMSWindow *root, string className, MMSTheme *theme=NULL) | |
~MMSArrowWidget () | |
MMSWidget * | copyWidget () |
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 |
MMSArrowWidgetClass * | arrowWidgetClass |
MMSArrowWidgetClass | myArrowWidgetClass |
bool | last_pressed |
bool | current_fgset |
current foreground values set? | |
MMSFBColor | current_fgcolor |
current foreground color |
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()).
Definition at line 47 of file mmsarrowwidget.h.
Definition at line 35 of file mmsarrowwidget.cpp.
MMSArrowWidget::~MMSArrowWidget | ( | ) |
Definition at line 39 of file mmsarrowwidget.cpp.
Definition at line 42 of file mmsarrowwidget.cpp.
bool MMSArrowWidget::init | ( | ) | [private, virtual] |
bool MMSArrowWidget::release | ( | ) | [private, virtual] |
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] |
void MMSArrowWidget::handleInput | ( | MMSInputEvent * | inputevent | ) | [private, virtual] |
MMSWidget * MMSArrowWidget::copyWidget | ( | ) | [virtual] |
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.
string MMSArrowWidget::className [private] |
Definition at line 49 of file mmsarrowwidget.h.
Definition at line 50 of file mmsarrowwidget.h.
Definition at line 51 of file mmsarrowwidget.h.
bool MMSArrowWidget::last_pressed [private] |
Definition at line 53 of file mmsarrowwidget.h.
bool MMSArrowWidget::current_fgset [private] |
MMSFBColor MMSArrowWidget::current_fgcolor [private] |