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_LINEAR_H 10 #define _GRADIENT_LINEAR_H 11 12 #include <Gradient.h> 13 14 class BPoint; 15 16 class BGradientLinear : public BGradient { 17 public: 18 BGradientLinear(); 19 BGradientLinear(const BPoint& start, const BPoint& end); 20 BGradientLinear(float x1, float y1, float x2, float y2); 21 22 BPoint Start() const; 23 void SetStart(const BPoint& start); 24 void SetStart(float x1, float y1); 25 26 BPoint End() const; 27 void SetEnd(const BPoint& end); 28 void SetEnd(float x2, float y2); 29 }; 30 31 #endif // _GRADIENT_LINEAR_H 32