DraggingResizerStrategy Class Reference

#include <DraggingResizerStrategy.h>

Inherited by ResizerButtonStrategy, and ResizerHandleStrategy.

Inheritance diagram for DraggingResizerStrategy:

Inheritance graph
[legend]
List of all members.

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

Detailed Description

This strategy implements resizing by dragging a component. It is important to notice that the actual dimensions of the component are changed by this resizing, instead of only its scale factor.

Author:
Fabricio Anastacio - fabriciocfa@yahoo.com
Since:
August 9, 2007


Constructor & Destructor Documentation

DraggingResizerStrategy::DraggingResizerStrategy ( void   ) 

Creates a dragging resizer strategy.

DraggingResizerStrategy::~DraggingResizerStrategy ( void   ) 

Destroys this strategy.


Member Function Documentation

unsigned int DraggingResizerStrategy::getMinWidth (  )  [inline]

Returns the value of the minimum width to be set to a component.

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.

Parameters:
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.

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.

Parameters:
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.

Parameters:
evt the event to be handled.

Reimplemented in ResizerButtonStrategy, and ResizerHandleStrategy.


Member Data Documentation

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.


The documentation for this class was generated from the following files:
Generated on Fri Dec 21 17:46:07 2007 for LargeDisplayFrameworkToolkit by  doxygen 1.5.2