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