2008-10-15 01:27:42 +04:00
|
|
|
/*
|
|
|
|
* Copyright 2006-2008, Haiku.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*
|
|
|
|
* Authors:
|
|
|
|
* Artur Wyszynski <harakash@gmail.com>
|
|
|
|
*/
|
|
|
|
|
2008-11-08 15:00:57 +03:00
|
|
|
#ifndef _GRADIENT_RADIAL_H
|
|
|
|
#define _GRADIENT_RADIAL_H
|
2008-10-15 01:27:42 +04:00
|
|
|
|
|
|
|
#include <Gradient.h>
|
|
|
|
|
|
|
|
class BPoint;
|
|
|
|
|
|
|
|
class BGradientRadial : public BGradient {
|
|
|
|
public:
|
|
|
|
BGradientRadial();
|
|
|
|
BGradientRadial(const BPoint& center, float radius);
|
|
|
|
BGradientRadial(float cx, float cy, float radius);
|
|
|
|
|
|
|
|
BPoint Center() const;
|
|
|
|
void SetCenter(const BPoint& center);
|
|
|
|
void SetCenter(float cx, float cy);
|
|
|
|
|
|
|
|
float Radius() const;
|
|
|
|
void SetRadius(float radius);
|
|
|
|
};
|
|
|
|
|
2008-11-08 15:00:57 +03:00
|
|
|
#endif // _GRADIENT_RADIAL_H
|