xref: /haiku/src/tests/servers/app/newClipping/WinBorder.h (revision a4aff61d76253ff2252743e427cffac008d5de54)
1 #include <Region.h>
2 #include "Layer.h"
3 
4 class WinBorder : public Layer
5 {
6 public:
7 							WinBorder(BRect frame, const char* name,
8 								uint32 rm, uint32 flags, rgb_color c);
9 							~WinBorder();
10 
11 	virtual	void			MovedByHook(float dx, float dy);
12 	virtual	void			ResizedByHook(float dx, float dy, bool automatic);
13 
14 private:
15 			void			set_decorator_region(BRect frame);
16 	virtual	bool			alter_visible_for_children(BRegion &region);
17 	virtual	void			get_user_regions(BRegion &reg);
18 
19 			BRegion			fDecRegion;
20 			bool			fRebuildDecRegion;
21 };
22