rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Foundation Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvLinearGradientGeometry Class Reference

Resource class. More...

#include <ilviews/base/port.h>

Inheritance diagram for IlvLinearGradientGeometry:
IlvGradientGeometry

List of all members.

Public Member Functions

 IlvLinearGradientGeometry (IlvPoint startPoint, IlvPoint endPoint, IlvGradientTransformMode mode=IlvGradientTransformGraphic, IlvGradientAspectRatio aspectRatio=IlvGradientAspectRatioInside)
 Constructor.
IlvPoint getEndPoint () const
 Gets the end point of this gradient geometry.
IlvPoint getStartPoint () const
 Gets the start point of this gradient geometry.
void setEndPoint (IlvPoint end)
 Sets the end point of this gradient geometry.
void setStartPoint (IlvPoint start)
 Sets the start point of this gradient geometry.

Detailed Description

Resource class.

Library: display

The IlvLinearGradientPattern class enables you specify geometrical properties dedicated to linear gradients. A linear gradient geometry is defined by a start and an end point. The coordinates of the 2 points must be contained within the IlvGradientPattern area defined by its width and height. The abscissas of these points must be set between 0 and IlvPattern::width. The ordinates of these points must be set between 0 and IlvPattern::height.

See also:
IlvGradientGeometry, IlvRadialGradientGeometry, IlvGradientPattern::setGeometry IlvPattern::width, IlvGradientPattern::setWidth, IlvPattern::height and IlvGradientPattern::setHeight.

Constructor & Destructor Documentation

IlvLinearGradientGeometry::IlvLinearGradientGeometry ( IlvPoint  startPoint,
IlvPoint  endPoint,
IlvGradientTransformMode  mode = IlvGradientTransformGraphic,
IlvGradientAspectRatio  aspectRatio = IlvGradientAspectRatioInside 
)

Constructor.

This constructor initializes a new IlvLinearGradientGeometry instance.

Parameters:
startPoint The start point.
endPoint The end point.
mode The gradient transform mode.
aspectRatio The gradient aspect ratio.

Member Function Documentation

IlvPoint IlvLinearGradientGeometry::getEndPoint (  )  const

Gets the end point of this gradient geometry.

Returns:
The end point of the gradient geometry.
IlvPoint IlvLinearGradientGeometry::getStartPoint (  )  const

Gets the start point of this gradient geometry.

Returns:
The start point of the gradient geometry.
void IlvLinearGradientGeometry::setEndPoint ( IlvPoint  end  ) 

Sets the end point of this gradient geometry.

Parameters:
end The new end point.
void IlvLinearGradientGeometry::setStartPoint ( IlvPoint  start  ) 

Sets the start point of this gradient geometry.

Parameters:
start The new start point.
 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.