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