1 /* 2 * Copyright 2006-2009, Haiku, Inc. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef _GRADIENT_RADIAL_H 6 #define _GRADIENT_RADIAL_H 7 8 9 #include <Gradient.h> 10 11 12 class 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 19 class BGradientRadial : public BGradient { 20 public: 21 BGradientRadial(); 22 BGradientRadial(const BPoint& center, 23 float radius); 24 BGradientRadial(float cx, float cy, 25 float radius); 26 27 BPoint Center() const; 28 void SetCenter(const BPoint& center); 29 void SetCenter(float cx, float cy); 30 31 float Radius() const; 32 void SetRadius(float radius); 33 }; 34 35 #endif // _GRADIENT_RADIAL_H 36