pm_colorblock.h 615 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * File : pm_colorblock.h
  3. * COPYRIGHT (C) 2012-2017, Shanghai Real-Thread Technology Co., Ltd
  4. *
  5. * Change Logs:
  6. * Date Author Notes
  7. * 2017-11-05 realthread the first version
  8. */
  9. #pragma once
  10. #include <pm_widget.h>
  11. #include <pm_image.h>
  12. namespace Persimmon
  13. {
  14. class ColorBlock : public Widget
  15. {
  16. public:
  17. ColorBlock(const Rect &rect, rtgui_color_t color);
  18. virtual ~ColorBlock();
  19. virtual void render(struct rtgui_dc* dc, const Point &dcPoint = Point(),
  20. const Rect &srcRect = Rect(),
  21. RenderFlag flags = DrawNormal);
  22. };
  23. }