Modified the Terminology of the CircleProgress

Signed-off-by: jiajia_deng <2894220@gmail.com>
This commit is contained in:
jiajia_deng 2019-09-10 10:42:05 +08:00
parent 6e359091b4
commit addfe386a1

View File

@ -1,5 +1,5 @@
/** @file CircleProgress.h
* @brief 85%
* @brief 85%
* @copyright (c) 2019-2022, NetEase Inc. All rights reserved
* @author Xuhuajie
* @date 2019/8/14
@ -24,41 +24,47 @@ public:
virtual void ClearImageCache() override;
/**
* @brief
* @param[in] bCircular true false true
* @brief
* @param[in] bCircular true false true
* @return
*/
void SetCircular(bool bCircular = true);
/**
* @brief
* @param[in] bClockwise true false true
* @return
*/
void SetClockwiseRotation(bool bClockwise = true);
/**
* @brief
* @param[in] nCircleWidth
* @return
*/
void SetCircleWidth(int nCircleWidth);
/**
* @brief
* @param[in] strColor要设置的背景颜色字符串 global.xml
* @return
*/
void SetBackgroudColor(const std::wstring& strColor);
/**
* @brief
* @param[in] strColor要设置的前景颜色字符串 global.xml
* @return
*/
void SetForegroudColor(const std::wstring& strColor);
/**
* @brief SetForegroudColor 使,
* @param[in] strColor要设置的前景渐变颜色字符串 global.xml
* @return
*/
void SetCircleGradientColor(const std::wstring& strColor);
/**
* @brief
* @param[in] sIndicatorImage
@ -67,15 +73,14 @@ public:
void SetIndicator(const std::wstring& sIndicatorImage);
protected:
bool m_bCircular;
bool m_bClockwise;
int m_nCircleWidth;
DWORD m_dwBackgroundColor;
DWORD m_dwForegroundColor;
DWORD m_dwGradientColor;
//Image m_IndicatorImage; //使用image对象无法满足需求需要设置矩阵变换
Gdiplus::Image* m_pIndicator; //此类目前维护资源管理
std::wstring m_sIndicatorImage;
bool m_bCircular;
bool m_bClockwise;
int m_nCircleWidth;
DWORD m_dwBackgroundColor;
DWORD m_dwForegroundColor;
DWORD m_dwGradientColor;
Gdiplus::Image* m_pIndicator; //此类目前维护资源管理
std::wstring m_sIndicatorImage;
};