1 /* 2 * Copyright 2006-2009, Haiku, Inc. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef _GRADIENT_RADIAL_FOCUS_H 6 #define _GRADIENT_RADIAL_FOCUS_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 BGradientRadialFocus : public BGradient { 20 public: 21 BGradientRadialFocus(); 22 BGradientRadialFocus(const BPoint& center, 23 float radius, const BPoint& focal); 24 BGradientRadialFocus(float cx, float cy, 25 float radius, float fx, float fy); 26 27 BPoint Center() const; 28 void SetCenter(const BPoint& center); 29 void SetCenter(float cx, float cy); 30 31 BPoint Focal() const; 32 void SetFocal(const BPoint& focal); 33 void SetFocal(float fx, float fy); 34 35 float Radius() const; 36 void SetRadius(float radius); 37 }; 38 39 #endif // _GRADIENT_RADIAL_FOCUS_H 40