1/*
2 * Copyright 2006-2009, Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
5#ifndef _GRADIENT_LINEAR_H
6#define _GRADIENT_LINEAR_H
7
8
9#include <Gradient.h>
10
11
12class BPoint;
13
14
15// WARNING! This is experimental API and may change! Be prepared to
16// recompile your software in a next version of haiku.
17
18
19class BGradientLinear : public BGradient {
20public:
21								BGradientLinear();
22								BGradientLinear(const BPoint& start,
23									const BPoint& end);
24								BGradientLinear(float x1, float y1,
25									float x2, float y2);
26
27			BPoint				Start() const;
28			void				SetStart(const BPoint& start);
29			void				SetStart(float x1, float y1);
30
31			BPoint				End() const;
32			void				SetEnd(const BPoint& end);
33			void				SetEnd(float x2, float y2);
34};
35
36#endif // _GRADIENT_LINEAR_H
37