Rogue Wave Views 5.5.1 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Dialog class. More...
#include <ilviews/edit/grdselpn.h>
Public Member Functions | |
IlvGradientSelector (IlvDisplay *display, IlvSystemView transientFor=0) | |
Constructor. | |
IlvGradientPattern * | get (IlBoolean grab=IlFalse, IlvCursor *cursor=0) |
Displays the gradient selector as a modal dialog. | |
IlvGradientPattern * | getGradientPattern () |
Returns the current selected gradient. | |
void | set (IlvGradientPattern *gradient) |
Sets the gradient pattern displayed by the gradient selector. |
Dialog class.
Library: ilvedit
The IlvGradientSelector
class enables you to create and modify gradient patterns.
IlvGradientSelector::IlvGradientSelector | ( | IlvDisplay * | display, | |
IlvSystemView | transientFor = 0 | |||
) |
Constructor.
Initializes a new instance of the IlvGradientSelector
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. |
IlvGradientPattern* IlvGradientSelector::get | ( | IlBoolean | grab = IlFalse , |
|
IlvCursor * | cursor = 0 | |||
) |
Displays the gradient selector as a modal dialog.
grab | A Boolean value specifying whether the dialog should be system modal. In this case, input events on the whole system are grabbed so that, until the function returns, other applications will not be able to get any keyboard or mouse event. You can specify the cursor to be displayed in the cursor parameter. If grab is set to IlFalse , the dialog is application modal. In this case, the application does not receive input events in other windows. This is the default value. | |
cursor | The cursor used to choose the gradient when the dialog is system modal. |
IlvGradientPattern* IlvGradientSelector::getGradientPattern | ( | ) |
void IlvGradientSelector::set | ( | IlvGradientPattern * | gradient | ) |
Sets the gradient pattern displayed by the gradient selector.
The sliders, text fields and preview are updated.
gradient | The gradient pattern displayed by the gradient selector. |
IlvGradientPattern
© 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.