#include <DraggingResizerStrategy.h>
Inherited by ResizerButtonStrategy, and ResizerHandleStrategy.
Inheritance diagram for DraggingResizerStrategy:
Public Member Functions | |
DraggingResizerStrategy (void) | |
~DraggingResizerStrategy (void) | |
unsigned int | getMinWidth () |
void | setMinWidth (unsigned int w) |
unsigned int | getMinHeight () |
void | setMinHeight (unsigned int h) |
Protected Member Functions | |
void | onEvent (LargeDisplayEvent *evt) |
Protected Attributes | |
bool | pressed |
int | previousX |
int | previousY |
unsigned int | minWidth |
unsigned int | minHeight |
DraggingResizerStrategy::DraggingResizerStrategy | ( | void | ) |
Creates a dragging resizer strategy.
DraggingResizerStrategy::~DraggingResizerStrategy | ( | void | ) |
Destroys this strategy.
unsigned int DraggingResizerStrategy::getMinWidth | ( | ) | [inline] |
Returns the value of the minimum width to be set to a component.
void DraggingResizerStrategy::setMinWidth | ( | unsigned int | w | ) | [inline] |
Sets the value of the minimum width to be set to a component.
f | the value to be used as the minimum width to be set to a component. |
unsigned int DraggingResizerStrategy::getMinHeight | ( | ) | [inline] |
Returns the value of the minimum height to be set to a component.
void DraggingResizerStrategy::setMinHeight | ( | unsigned int | h | ) | [inline] |
Sets the value of the minimum height to be set to a component.
f | the value to be used as the minimum height to be set to a component. |
void DraggingResizerStrategy::onEvent | ( | LargeDisplayEvent * | evt | ) | [protected] |
Handles the given event.
evt | the event to be handled. |
Reimplemented in ResizerButtonStrategy, and ResizerHandleStrategy.
bool DraggingResizerStrategy::pressed [protected] |
Determines when the resize button is being pressed.
int DraggingResizerStrategy::previousX [protected] |
The previous x-coordinate of the cursor position.
int DraggingResizerStrategy::previousY [protected] |
The previous y-coordinate of the cursor position.
unsigned int DraggingResizerStrategy::minWidth [protected] |
Minimum width to be set for a component.
unsigned int DraggingResizerStrategy::minHeight [protected] |
Minimum height to be set for a component.