shadow_win.h 815 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * File : shadow_win.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_window.h>
  11. #include <pm_container.h>
  12. namespace Persimmon
  13. {
  14. class ShadowWin : public Window
  15. {
  16. public:
  17. ShadowWin(const Rect &rect, const char *title = "ShadowWin");
  18. virtual ~ShadowWin();
  19. virtual void addChild(Widget* widget);
  20. virtual void removeChild(Widget* widget);
  21. virtual int show(rt_bool_t isModal = RT_FALSE);
  22. void setBackground(rtgui_color_t color);
  23. void setBackground(Image *image);
  24. void setShadowColor(rtgui_color_t color)
  25. {
  26. shadowColor = color;
  27. }
  28. protected:
  29. Container *panel;
  30. rtgui_color_t shadowColor;
  31. };
  32. }