Files
haiku-beta6/headers/os/interface/GradientRadialFocus.h
T

40 lines
960 B
C++
Raw Normal View History

2008-10-14 21:27:42 +00:00
/*
* Copyright 2006-2009, Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
2008-10-14 21:27:42 +00:00
*/
2008-11-08 12:00:57 +00:00
#ifndef _GRADIENT_RADIAL_FOCUS_H
#define _GRADIENT_RADIAL_FOCUS_H
2008-10-14 21:27:42 +00:00
2009-08-26 11:16:49 +00:00
2008-10-14 21:27:42 +00:00
#include <Gradient.h>
2009-08-26 11:16:49 +00:00
2008-10-14 21:27:42 +00:00
class BPoint;
2009-08-26 11:16:49 +00:00
// WARNING! This is experimental API and may change! Be prepared to
// recompile your software in a next version of haiku.
2008-10-14 21:27:42 +00:00
class BGradientRadialFocus : public BGradient {
public:
2009-08-26 11:16:49 +00:00
BGradientRadialFocus();
BGradientRadialFocus(const BPoint& center,
float radius, const BPoint& focal);
BGradientRadialFocus(float cx, float cy,
float radius, float fx, float fy);
2008-10-14 21:27:42 +00:00
2009-08-26 11:16:49 +00:00
BPoint Center() const;
void SetCenter(const BPoint& center);
void SetCenter(float cx, float cy);
2008-10-14 21:27:42 +00:00
2009-08-26 11:16:49 +00:00
BPoint Focal() const;
void SetFocal(const BPoint& focal);
void SetFocal(float fx, float fy);
2008-10-14 21:27:42 +00:00
2009-08-26 11:16:49 +00:00
float Radius() const;
void SetRadius(float radius);
2008-10-14 21:27:42 +00:00
};
2008-11-08 12:00:57 +00:00
#endif // _GRADIENT_RADIAL_FOCUS_H