wxPdfDocument  1.4.0
Library for generating PDF documents from wxWidgets applications
Loading...
Searching...
No Matches
wxPdfAxialGradient Class Reference

Class representing axial gradients. (For internal use only). More...

#include <pdfgradient.h>

Inheritance diagram for wxPdfAxialGradient:
wxPdfGradient wxPdfMidAxialGradient wxPdfRadialGradient

Public Member Functions

 wxPdfAxialGradient (const wxPdfColour &colour1, const wxPdfColour &colour2, double x1, double y1, double x2, double y2, double intexp)
 Constructor.
virtual ~wxPdfAxialGradient ()
 Destructor.
const wxPdfColourGetColour1 () const
 Get the gradient colour 1.
const wxPdfColourGetColour2 () const
 Get the gradient colour 2.
double GetX1 () const
 Get x coordinate of start point.
double GetY1 () const
 Get y coordinate of start point.
double GetX2 () const
 Get x coordinate of end point.
double GetY2 () const
 Get y coordinate of end point.
double GetIntExp () const
 Get the interpolation exponent.
Public Member Functions inherited from wxPdfGradient
 wxPdfGradient (wxPdfGradientType type)
 Constructor.
virtual ~wxPdfGradient ()
 Destructor.
void SetObjIndex (int n)
 Set gradient object index.
int GetObjIndex ()
 Get gradient object index.
wxPdfGradientType GetType () const
 Get the gradient type.

Additional Inherited Members

Protected Attributes inherited from wxPdfGradient
wxPdfGradientType m_type
 Gradient type.

Detailed Description

Class representing axial gradients. (For internal use only).

Constructor & Destructor Documentation

◆ wxPdfAxialGradient()

wxPdfAxialGradient::wxPdfAxialGradient ( const wxPdfColour & colour1,
const wxPdfColour & colour2,
double x1,
double y1,
double x2,
double y2,
double intexp )

Constructor.

Parameters
colour1first colour
colour2second colour
x1x coordinate of the start point
y1y coordinate of the start point
x2x coordinate of the end point
y2y coordinate of the end point
intexpinterpolation exponent

◆ ~wxPdfAxialGradient()

virtual wxPdfAxialGradient::~wxPdfAxialGradient ( )
virtual

Destructor.

Member Function Documentation

◆ GetColour1()

const wxPdfColour & wxPdfAxialGradient::GetColour1 ( ) const
inline

Get the gradient colour 1.

Returns
The first colour

◆ GetColour2()

const wxPdfColour & wxPdfAxialGradient::GetColour2 ( ) const
inline

Get the gradient colour 2.

Returns
The second colour

◆ GetIntExp()

double wxPdfAxialGradient::GetIntExp ( ) const
inline

Get the interpolation exponent.

Returns
The interpolation exponent

◆ GetX1()

double wxPdfAxialGradient::GetX1 ( ) const
inline

Get x coordinate of start point.

Returns
The X coordinate of the start point

◆ GetX2()

double wxPdfAxialGradient::GetX2 ( ) const
inline

Get x coordinate of end point.

Returns
The X coordinate of the end point

◆ GetY1()

double wxPdfAxialGradient::GetY1 ( ) const
inline

Get y coordinate of start point.

Returns
The Y coordinate of the start point

◆ GetY2()

double wxPdfAxialGradient::GetY2 ( ) const
inline

Get y coordinate of end point.

Returns
The Y coordinate of the end point

The documentation for this class was generated from the following file: