xref: /haiku/src/tests/servers/app/newClipping/WinBorder.h (revision a4aff61d76253ff2252743e427cffac008d5de54)
167c26792SAdi Oanca #include <Region.h>
267c26792SAdi Oanca #include "Layer.h"
367c26792SAdi Oanca 
467c26792SAdi Oanca class WinBorder : public Layer
567c26792SAdi Oanca {
667c26792SAdi Oanca public:
767c26792SAdi Oanca 							WinBorder(BRect frame, const char* name,
867c26792SAdi Oanca 								uint32 rm, uint32 flags, rgb_color c);
967c26792SAdi Oanca 							~WinBorder();
106e795cfeSAdi Oanca 
116e795cfeSAdi Oanca 	virtual	void			MovedByHook(float dx, float dy);
126e795cfeSAdi Oanca 	virtual	void			ResizedByHook(float dx, float dy, bool automatic);
136e795cfeSAdi Oanca 
1467c26792SAdi Oanca private:
1567c26792SAdi Oanca 			void			set_decorator_region(BRect frame);
166e795cfeSAdi Oanca 	virtual	bool			alter_visible_for_children(BRegion &region);
17*a4aff61dSAdi Oanca 	virtual	void			get_user_regions(BRegion &reg);
1867c26792SAdi Oanca 
1967c26792SAdi Oanca 			BRegion			fDecRegion;
206e795cfeSAdi Oanca 			bool			fRebuildDecRegion;
2167c26792SAdi Oanca };
22