ResizerButtonStrategy Class Reference

#include <ResizerButtonStrategy.h>

Inherits DraggingResizerStrategy.

Inheritance diagram for ResizerButtonStrategy:

Inheritance graph
[legend]
Collaboration diagram for ResizerButtonStrategy:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ResizerButtonStrategy (void)
 ~ResizerButtonStrategy (void)

Protected Member Functions

void initProperties ()
void onEvent (LargeDisplayEvent *evt)
void resize (unsigned int width, unsigned int height)

Protected Attributes

unsigned int buttonBufferType
unsigned char noButtonValue
unsigned char movableAreaButtonValue
unsigned char resizeButtonValue

Detailed Description

This strategy extends the DraggingResizerStrategy by adding a invisible button on the bottom right corner of the component bounds. It uses a button buffer to determine the active area of resizing. When the component is clicked over the area labeled as the resizing button in the button buffer, the component can be resized by dragging. When the component is released, the buffer dimensions are updated with the new component dimensions.

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


Constructor & Destructor Documentation

ResizerButtonStrategy::ResizerButtonStrategy ( void   ) 

Constructs a resizer button strategy.

ResizerButtonStrategy::~ResizerButtonStrategy ( void   ) 

Destroys this strategy.


Member Function Documentation

void ResizerButtonStrategy::initProperties (  )  [protected]

Initializes the properties (i. e., i-buffers) of the associated component.

void ResizerButtonStrategy::onEvent ( LargeDisplayEvent *  evt  )  [protected]

Handles the given event.

Parameters:
evt the event to be handled.

Reimplemented from DraggingResizerStrategy.

void ResizerButtonStrategy::resize ( unsigned int  width,
unsigned int  height 
) [protected]

Defines the strategy to be used when the associated component is resized.

Parameters:
width the new width of the component.
height the new height of the component.


Member Data Documentation

unsigned int ResizerButtonStrategy::buttonBufferType [protected]

Button buffer type identifier.

unsigned char ResizerButtonStrategy::noButtonValue [protected]

No button value.

unsigned char ResizerButtonStrategy::movableAreaButtonValue [protected]

Movable area button value.

unsigned char ResizerButtonStrategy::resizeButtonValue [protected]

Resize area button value.


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