代码
#ifndef TOUCHGFX_ABSTRACTPROGRESSINDICATOR_HPP
#define TOUCHGFX_ABSTRACTPROGRESSINDICATOR_HPP
#include <touchgfx/Bitmap.hpp>
#include <touchgfx/Callback.hpp>
#include <touchgfx/EasingEquations.hpp>
#include <touchgfx/containers/Container.hpp>
#include <touchgfx/hal/Types.hpp>
#include <touchgfx/widgets/Image.hpp>
namespace touchgfx
{
class AbstractProgressIndicator : public Container
{
public:
AbstractProgressIndicator();
/* 设置背景位图 */
virtual void setBackground(const Bitmap& bitmapBackground);
/* 设置指示器相对于背景图位置和尺寸 */
virtual void setProgressIndicatorPosition(int16_t x, int16_t y, int16_t width, int16_t height);
/* 获取指示器X坐标 */
virtual int16_t getProgressIndicatorX() const;
/* 获取指示器Y坐标 */
virtual int16_t getProgressIndicatorY() const;
/* 获取指示器宽度 */
virtual int16_t getProgressIndicatorWidth() const;
/* 获取指示器高度 */
virtual int16_t getProgressIndicatorHeight() const;
/* 设置范围 */
virtual