#include <TranslationStrategy.h>
Public Member Functions | |
TranslationStrategy (void) | |
~TranslationStrategy (void) | |
Protected Member Functions | |
void | onEvent (LargeDisplayEvent *evt) |
unsigned char | getButtonValue (unsigned int x, unsigned int y) |
Protected Attributes | |
bool | pressed |
int | previousX |
int | previousY |
unsigned int | buttonBufferType |
unsigned char | noButtonValue |
unsigned char | movableAreaButtonValue |
unsigned char | translationAreaButtonValue |
unsigned int | pressType |
unsigned int | dragType |
unsigned int | releaseType |
TranslationStrategy::TranslationStrategy | ( | void | ) |
Constructs a translation strategy.
TranslationStrategy::~TranslationStrategy | ( | void | ) |
Destroys a translation strategy.
void TranslationStrategy::onEvent | ( | LargeDisplayEvent * | evt | ) | [protected] |
Handles the given event.
evt | the event to be handled. |
unsigned char TranslationStrategy::getButtonValue | ( | unsigned int | x, | |
unsigned int | y | |||
) | [protected] |
Returns the value of the current active button buffer of the associated component at the given global coordinates. If there is no button buffer currently active for the associated component or the coordinates are not inside the buffer, a constant value for NO_BUTTON is returned.
x | the x global coordinate to be checked. | |
y | the y global coordinate to be checked. |
bool TranslationStrategy::pressed [protected] |
Determines when the component is being pressed.
int TranslationStrategy::previousX [protected] |
The previous x-coordinate of the cursor position.
int TranslationStrategy::previousY [protected] |
The previous y-coordinate of the cursor position.
unsigned int TranslationStrategy::buttonBufferType [protected] |
Button buffer type identifier.
unsigned char TranslationStrategy::noButtonValue [protected] |
No button value.
unsigned char TranslationStrategy::movableAreaButtonValue [protected] |
Movable area button value.
unsigned char TranslationStrategy::translationAreaButtonValue [protected] |
Translation area button value.
unsigned int TranslationStrategy::pressType [protected] |
Press event type.
unsigned int TranslationStrategy::dragType [protected] |
Drag event type.
unsigned int TranslationStrategy::releaseType [protected] |
Release event type.