Rogue Wave Views 5.5.1 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Dialog class. More...
#include <ilviews/gadgets/colorch.h>
Public Member Functions | |
IlvColorSelector (IlvDisplay *display, IlvSystemView transientFor=0) | |
Constructor. | |
IlvColor * | get (IlBoolean grab=IlFalse, IlvCursor *cursor=0) |
Displays the color selector as a modal dialog. | |
IlvColor * | getResult () const |
Returns the current selected color. | |
void | set (IlvColor *color) |
Sets the color displayed by the color selector. |
Dialog class.
Library: ilvadvgdt
The IlvColorSelector
class lets you select a color. A predefined set of colors is available, but you can choose any color by modifying the slider values. The names of the graphic objects are displayed to let you change the default look of the dialog.
A color selector in RGB mode or HSV mode with color names and with color disk
IlvColorSelector::IlvColorSelector | ( | IlvDisplay * | display, | |
IlvSystemView | transientFor = 0 | |||
) |
Constructor.
Initializes a new instance of the IlvColorSelector
class.
display | The connection to the display. | |
transientFor | The view for which the color selector is transient. See the IlvView constructors for more information about transient windows. |
Displays the color selector as a modal dialog.
grab | A Boolean value specifying whether the dialog should be system modal, that is, grabs input events on the whole system so that, until the function returns, other applications will not be able to get any keyboard or mouse event. In this case, you can specify the cursor to be displayed in the parameter cursor. If grab is set to IlFalse (the default), the dialog is application modal, that is, the application does not receive input events in other windows. | |
cursor | The cursor used to choose the color when the dialog is system modal. |
IlvColor* IlvColorSelector::getResult | ( | ) | const |
© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.