class MASKING_DLL_DECLSPEC ColorSelect

The standard color selector dialog.

Inheritance:

ColorSelect - Window - Dialog - Widget - Rect


Public Methods

[more] ColorSelect(const char* title = "Select color", Color c = 0)
Color selector constructor.
[more]virtual Color Popup(Dialog* p, int x = MAXINT, int y = MAXINT)
Pops up a colour selector at the given position.
[more]void HandleEvent(Widget &obj, int msg, int arg1=0, int arg2=0)
Handles events such as slider moves

Protected Methods

[more]void MsgInitSkin()
Initializes the colour preview and the slider labels with the proper values


Documentation

The standard color selector dialog. ColorSelect is a simple dialog for selecting a color either by defining it with three RGB sliders or three HSV sliders. This dialog isn't exactly pretty so if you have a better one for the same purpose, contributions are always welcome :)
ovoid MsgInitSkin()
Initializes the colour preview and the slider labels with the proper values

o ColorSelect(const char* title = "Select color", Color c = 0)
Color selector constructor. You can pass the dialog's title and initial colour.

ovirtual Color Popup(Dialog* p, int x = MAXINT, int y = MAXINT)
Pops up a colour selector at the given position. Returns the selected colour or -1 if the dialog was canceled or escaped.

ovoid HandleEvent(Widget &obj, int msg, int arg1=0, int arg2=0)
Handles events such as slider moves


This class has no child classes.

Alphabetic index Hierarchy of classes


Back to front page   |   page generated with DOC++