CAImageHueSelector Class Reference

An Image with text above and below it. More...

#include <caimagehueselector.h>

Inheritance diagram for CAImageHueSelector:

CAImageView CAWidget List of all members.

Public Member Functions

 CAImageHueSelector (Direction vertical=Horizontal)
 Constructor for an empty image hue selector.
 CAImageHueSelector (const char *upperText, const char *lowerText, CL_Surface *image, bool autoResize=true, Direction vertical=Horizontal)
 Constructor for an image hue selector with an image.
 ~CAImageHueSelector ()
 Destructor.
void setImageSize (int w, int h)
 Sets the size of the image view (without top/bottom button).
void changeImageHue (bool forward)
 Changes the images hue (only for hue selectors with one image).
int getHue ()
 Gets the currently selected hue of the image (0-360).
virtual void display (bool active=true)
 Displays the image view with its current image/ texts.
virtual void handleKey (const CL_Key &key)
 Handles key events for this view / selector.

Detailed Description

An Image with text above and below it.

This widget is an interactive hue selector for an image.

Author:
Andrew Mustun


Constructor & Destructor Documentation

CAImageHueSelector::CAImageHueSelector ( Direction  direction = Horizontal  ) 

Constructor for an empty image hue selector.

Parameters:
direction Vertical selector? (Use Up/Down arrows to control)

CAImageHueSelector::CAImageHueSelector ( const char *  upperText,
const char *  lowerText,
CL_Surface *  image,
bool  autoResize = true,
Direction  direction = Horizontal 
)

Constructor for an image hue selector with an image.

Parameters:
upperText Text above image
lowerText Text under image
image The image itself
type Selector type (Image, Selector, HueSelector)
direction Vertical selector? (Use Up/Down arrows to control)


Member Function Documentation

void CAImageHueSelector::setImageSize ( int  w,
int  h 
) [virtual]

Sets the size of the image view (without top/bottom button).

Bigger images get cropped (top left part shown).

Parameters:
w Width of image view
h Height of image view

Reimplemented from CAImageView.

void CAImageHueSelector::changeImageHue ( bool  forward  ) 

Changes the images hue (only for hue selectors with one image).

The old image gets deleted.


The documentation for this class was generated from the following files:
Generated on Tue Nov 28 06:48:28 2006 by  doxygen 1.5.0