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