提交 781aff17 编写于 作者: G guyuanzhang

IssueNo: https://gitee.com/openharmony/graphic_ui/issues/I47IMP

Description:fix analog_clock
Sig:graphic
Feature or Bugfix:Feature
Binary Source:No
Signed-off-by: Nguyuanzhang <zhangguyuan@huawei.com>
上级 62c84084
......@@ -212,6 +212,7 @@ void UIAnalogClock::OnDraw(BufferInfo& gfxDstBuffer, const Rect& invalidatedArea
void UIAnalogClock::OnPostDraw(BufferInfo& gfxDstBuffer, const Rect& invalidatedArea)
{
UpdateClock(true);
Rect current = GetOrigRect();
DrawHand(gfxDstBuffer, current, invalidatedArea, hourHand_);
DrawHand(gfxDstBuffer, current, invalidatedArea, minuteHand_);
......@@ -221,18 +222,6 @@ void UIAnalogClock::OnPostDraw(BufferInfo& gfxDstBuffer, const Rect& invalidated
UIView::OnPostDraw(gfxDstBuffer, invalidatedArea);
}
void UIAnalogClock::SetPosition(int16_t x, int16_t y)
{
UIViewGroup::SetPosition(x, y);
UpdateClock(true);
}
void UIAnalogClock::SetPosition(int16_t x, int16_t y, int16_t width, int16_t height)
{
UIViewGroup::SetPosition(x, y, width, height);
UpdateClock(true);
}
void UIAnalogClock::CalculateRedrawArea(const Rect& current, Hand& hand, bool clockInit)
{
/*
......
......@@ -317,28 +317,6 @@ public:
*/
virtual void OnPostDraw(BufferInfo& gfxDstBuffer, const Rect& invalidatedArea) override;
/**
* @brief Sets the position for this analog clock.
*
* @param x Indicates the x-coordinate to set.
* @param y Indicates the y-coordinate to set.
* @since 1.0
* @version 1.0
*/
void SetPosition(int16_t x, int16_t y) override;
/**
* @brief Sets the position and size for this analog clock.
*
* @param x Indicates the x-coordinate to set.
* @param y Indicates the y-coordinate to set.
* @param width Indicates the width to set.
* @param height Indicates the height to set.
* @since 1.0
* @version 1.0
*/
void SetPosition(int16_t x, int16_t y, int16_t width, int16_t height) override;
/**
* @brief Sets the working mode for this analog clock.
*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册