#include <caimagehueselector.h>
Inheritance diagram for CAImageHueSelector:

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. | |
This widget is an interactive hue selector for an image.
| CAImageHueSelector::CAImageHueSelector | ( | Direction | direction = Horizontal |
) |
Constructor for an empty image hue selector.
| 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.
| 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) |
| 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).
| 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.
1.5.0