xref: /haiku/headers/os/interface/GradientRadialFocus.h (revision adb0d19d561947362090081e81d90dde59142026)
1 /*
2  * Copyright 2006-2008, Haiku.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Artur Wyszynski <harakash@gmail.com>
7  */
8 
9 #ifndef _GRADIENT_RADIAL_FOCUS_H
10 #define _GRADIENT_RADIAL_FOCUS_H
11 
12 #include <Gradient.h>
13 
14 class BPoint;
15 
16 class BGradientRadialFocus : public BGradient {
17 public:
18 	BGradientRadialFocus();
19 	BGradientRadialFocus(const BPoint& center, float radius,
20 		const BPoint& focal);
21 	BGradientRadialFocus(float cx, float cy, float radius, float fx, float fy);
22 
23 	BPoint Center() const;
24 	void SetCenter(const BPoint& center);
25 	void SetCenter(float cx, float cy);
26 
27 	BPoint Focal() const;
28 	void SetFocal(const BPoint& focal);
29 	void SetFocal(float fx, float fy);
30 
31 	float Radius() const;
32 	void SetRadius(float radius);
33 };
34 
35 #endif // _GRADIENT_RADIAL_FOCUS_H
36