2008-10-15 01:27:42 +04:00
|
|
|
/*
|
2009-08-27 15:12:41 +04:00
|
|
|
* Copyright 2006-2009, Haiku, Inc. All rights reserved.
|
|
|
|
* Distributed under the terms of the MIT License.
|
2008-10-15 01:27:42 +04:00
|
|
|
*/
|
2008-11-08 15:00:57 +03:00
|
|
|
#ifndef _GRADIENT_CONIC_H
|
|
|
|
#define _GRADIENT_CONIC_H
|
2008-10-15 01:27:42 +04:00
|
|
|
|
2009-08-26 15:16:49 +04:00
|
|
|
|
2008-10-15 01:27:42 +04:00
|
|
|
#include <Gradient.h>
|
|
|
|
|
2009-08-26 15:16:49 +04:00
|
|
|
|
2008-10-15 01:27:42 +04:00
|
|
|
class BPoint;
|
|
|
|
|
2009-08-26 15:16:49 +04:00
|
|
|
|
|
|
|
// WARNING! This is experimental API and may change! Be prepared to
|
|
|
|
// recompile your software in a next version of haiku.
|
|
|
|
|
|
|
|
|
2008-10-15 01:27:42 +04:00
|
|
|
class BGradientConic : public BGradient {
|
|
|
|
public:
|
2009-08-26 15:16:49 +04:00
|
|
|
BGradientConic();
|
|
|
|
BGradientConic(const BPoint& center,
|
|
|
|
float angle);
|
|
|
|
BGradientConic(float cx, float cy,
|
|
|
|
float angle);
|
2008-10-15 01:27:42 +04:00
|
|
|
|
2009-08-26 15:16:49 +04:00
|
|
|
BPoint Center() const;
|
|
|
|
void SetCenter(const BPoint& center);
|
|
|
|
void SetCenter(float cx, float cy);
|
2008-10-15 01:27:42 +04:00
|
|
|
|
2009-08-26 15:16:49 +04:00
|
|
|
float Angle() const;
|
|
|
|
void SetAngle(float angle);
|
2008-10-15 01:27:42 +04:00
|
|
|
};
|
|
|
|
|
2008-11-08 15:00:57 +03:00
|
|
|
#endif // _GRADIENT_CONIC_H
|