soui 5.0.0.1
Soui5 Doc
 
Loading...
Searching...
No Matches
SGradientDesc Class Reference

Gradient Descriptor. More...

#include <SSkin.h>

Inheritance diagram for SGradientDesc:
SSkinGradation2

Public Member Functions

 SGradientDesc ()
 Constructor for SGradientDesc.
 
GradientInfo GetGradientInfo (int nScale, int wid, int hei) const
 Gets the gradient information.
 
IGradient * GetGradient ()
 Gets the gradient object.
 

Protected Member Functions

virtual HRESULT SetAttribute (const SNS::SStringW &amp;amp;amp;amp;strAttribName, const SNS::SStringW &amp;amp;amp;amp;strValue, BOOL bLoading=FALSE)
 

Protected Attributes

SAutoRefPtr< IGradient > m_gradient
 
SLayoutSize m_radius
 
float m_ratio_radius
 
GradientType m_type
 
float m_angle
 
float m_centerX
 
float m_centerY
 
BOOL m_bFullArc
 

Detailed Description

Gradient Descriptor.

Description: Describes a gradient for use in skins.

Definition at line 482 of file SSkin.h.

Constructor & Destructor Documentation

◆ SGradientDesc()

SGradientDesc::SGradientDesc ( )

Constructor for SGradientDesc.

Definition at line 358 of file SSkin.cpp.

Member Function Documentation

◆ GetGradient()

IGradient * SGradientDesc::GetGradient ( )
inline

Gets the gradient object.

Returns
Pointer to the gradient object.

Definition at line 513 of file SSkin.h.

◆ GetGradientInfo()

GradientInfo SGradientDesc::GetGradientInfo ( int nScale,
int wid,
int hei ) const

Gets the gradient information.

Parameters
nScaleScale factor.
widWidth of the drawing area.
heiHeight of the drawing area.
Returns
Gradient information.

Definition at line 370 of file SSkin.cpp.

◆ SetAttribute()

virtual HRESULT SGradientDesc::SetAttribute ( const SNS::SStringW &amp;amp;amp;amp; strAttribName,
const SNS::SStringW &amp;amp;amp;amp; strValue,
BOOL bLoading = FALSE )
inlineprotectedvirtual

Definition at line 519 of file SSkin.h.

Member Data Documentation

◆ m_angle

float SGradientDesc::m_angle
protected

Definition at line 494 of file SSkin.h.

◆ m_bFullArc

BOOL SGradientDesc::m_bFullArc
protected

Definition at line 497 of file SSkin.h.

◆ m_centerX

float SGradientDesc::m_centerX
protected

Definition at line 495 of file SSkin.h.

◆ m_centerY

float SGradientDesc::m_centerY
protected

Definition at line 496 of file SSkin.h.

◆ m_gradient

SAutoRefPtr<IGradient> SGradientDesc::m_gradient
protected

Definition at line 490 of file SSkin.h.

◆ m_radius

SLayoutSize SGradientDesc::m_radius
protected

Definition at line 491 of file SSkin.h.

◆ m_ratio_radius

float SGradientDesc::m_ratio_radius
protected

Definition at line 492 of file SSkin.h.

◆ m_type

GradientType SGradientDesc::m_type
protected

Definition at line 493 of file SSkin.h.


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