rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Gadgets Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvGradientSelector Class Reference

Dialog class. More...

#include <ilviews/edit/grdselpn.h>

Inheritance diagram for IlvGradientSelector:
IlvDialog IlvGadgetContainer IlvContainer IlvDrawingView IlvView IlvAbstractView IlvSystemPort IlvPort

List of all members.

Public Member Functions

 IlvGradientSelector (IlvDisplay *display, IlvSystemView transientFor=0)
 Constructor.
IlvGradientPatternget (IlBoolean grab=IlFalse, IlvCursor *cursor=0)
 Displays the gradient selector as a modal dialog.
IlvGradientPatterngetGradientPattern ()
 Returns the current selected gradient.
void set (IlvGradientPattern *gradient)
 Sets the gradient pattern displayed by the gradient selector.

Detailed Description

Dialog class.

Library: ilvedit

The IlvGradientSelector class enables you to create and modify gradient patterns.

See also:
IlvGradientPattern

Constructor & Destructor Documentation

IlvGradientSelector::IlvGradientSelector ( IlvDisplay display,
IlvSystemView  transientFor = 0 
)

Constructor.

Initializes a new instance of the IlvGradientSelector class.

Parameters:
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.

Member Function Documentation

IlvGradientPattern* IlvGradientSelector::get ( IlBoolean  grab = IlFalse,
IlvCursor cursor = 0 
)

Displays the gradient selector as a modal dialog.

Parameters:
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.
Warning:
[note] Some operating systems, such as Windows NT and Windows 95, do not allow system modal dialogs. On these operating systems dialogs are always application modal.
See also:
getResult
IlvGradientPattern* IlvGradientSelector::getGradientPattern (  ) 

Returns the current selected gradient.

Returns:
The current selected gradient.
See also:
get
void IlvGradientSelector::set ( IlvGradientPattern gradient  ) 

Sets the gradient pattern displayed by the gradient selector.

The sliders, text fields and preview are updated.

Parameters:
gradient The gradient pattern displayed by the gradient selector.
See also:
IlvGradientPattern
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

© 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.