xref: /haiku/src/apps/gradients/GradientsView.h (revision 1deede7388b04dbeec5af85cae7164735ea9e70d)
1 /*
2  * Copyright (c) 2008-2009, Haiku, Inc.
3  * Distributed under the terms of the MIT license.
4  *
5  * Authors:
6  *		Artur Wyszynski <harakash@gmail.com>
7  */
8 
9 
10 #include <View.h>
11 #include <Gradient.h>
12 
13 
14 class GradientsView : public BView {
15 public:
16 							GradientsView(const BRect &r);
17 	virtual					~GradientsView(void);
18 
19 	virtual void			Draw(BRect update);
20 			void			DrawLinear(BRect update);
21 			void			DrawRadial(BRect update);
22 			void			DrawRadialFocus(BRect update);
23 			void			DrawDiamond(BRect update);
24 			void			DrawConic(BRect update);
25 			void			SetType(BGradient::Type type);
26 
27 private:
28 			BGradient::Type	fType;
29 };
30