1 /* 2 * Copyright 2006-2009, Haiku, Inc. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef _GRADIENT_DIAMOND_H 6 #define _GRADIENT_DIAMOND_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 BGradientDiamond : public BGradient { 20 public: 21 BGradientDiamond(); 22 BGradientDiamond(const BPoint& center); 23 BGradientDiamond(float cx, float cy); 24 25 BPoint Center() const; 26 void SetCenter(const BPoint& center); 27 void SetCenter(float cx, float cy); 28 }; 29 30 #endif // _GRADIENT_DIAMOND_H 31