-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathshadow_win.h
More file actions
41 lines (32 loc) · 782 Bytes
/
shadow_win.h
File metadata and controls
41 lines (32 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* 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 <pm_window.h>
#include <pm_container.h>
namespace Persimmon
{
class ShadowWin : public Window
{
public:
ShadowWin(const Rect &rect);
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;
};
}