/* * File : shadow_win.h * COPYRIGHT (C) 2012-2017, Shanghai Real-Thread Technology Co., Ltd * * Change Logs: * Date Author Notes * 2017-11-05 realthread the first version */ #pragma once #include #include namespace Persimmon { class ShadowWin : public Window { public: ShadowWin(const Rect &rect, const char *title = "ShadowWin"); virtual ~ShadowWin(); virtual void addChild(Widget* widget); virtual void removeChild(Widget* widget); virtual int show(rt_bool_t isModal = RT_FALSE); void setBackground(rtgui_color_t color); void setBackground(Image *image); void setShadowColor(rtgui_color_t color) { shadowColor = color; } protected: Container *panel; rtgui_color_t shadowColor; }; }