ClarisDrawStyleManagerInternal::Gradient Struct Reference

Public Member Functions

 Gradient (int type=0, int nColor=0, int angle=0, float decal=0)
 construtor More...
 
bool ok () const
 check if the gradient is valid More...
 
bool update (MWAWGraphicStyle &style) const
 update the style More...
 

Public Attributes

int m_type
 the type More...
 
int m_numColors
 the number of color More...
 
MWAWColor m_colors [4]
 the color More...
 
int m_angle
 the angle More...
 
float m_decal
 the decal More...
 
MWAWBox2i m_box
 the center bdbox More...
 

Friends

std::ostream & operator<< (std::ostream &o, Gradient const &gr)
 operator<< More...
 

Constructor & Destructor Documentation

ClarisDrawStyleManagerInternal::Gradient::Gradient ( int  type = 0,
int  nColor = 0,
int  angle = 0,
float  decal = 0 
)
inline

construtor

Member Function Documentation

bool ClarisDrawStyleManagerInternal::Gradient::ok ( ) const
inline

check if the gradient is valid

Referenced by update().

bool ClarisDrawStyleManagerInternal::Gradient::update ( MWAWGraphicStyle style) const

update the style

Referenced by ClarisDrawStyleManager::updateGradient().

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
Gradient const &  gr 
)
friend

operator<<

Member Data Documentation

int ClarisDrawStyleManagerInternal::Gradient::m_angle
MWAWBox2i ClarisDrawStyleManagerInternal::Gradient::m_box
MWAWColor ClarisDrawStyleManagerInternal::Gradient::m_colors[4]
float ClarisDrawStyleManagerInternal::Gradient::m_decal
int ClarisDrawStyleManagerInternal::Gradient::m_numColors

the number of color

Referenced by ok(), ClarisDrawStyleManager::readGradientList(), and update().

int ClarisDrawStyleManagerInternal::Gradient::m_type

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

Generated on Thu Jul 9 2015 20:26:40 for libmwaw by doxygen 1.8.8