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_CONIC_H 10 #define _GRADIENT_CONIC_H 11 12 #include <Gradient.h> 13 14 class BPoint; 15 16 class BGradientConic : public BGradient { 17 public: 18 BGradientConic(); 19 BGradientConic(const BPoint& center, float angle); 20 BGradientConic(float cx, float cy, float angle); 21 22 BPoint Center() const; 23 void SetCenter(const BPoint& center); 24 void SetCenter(float cx, float cy); 25 26 float Angle() const; 27 void SetAngle(float angle); 28 }; 29 30 #endif // _GRADIENT_CONIC_H 31