mirror of
https://review.haiku-os.org/haiku
synced 2025-02-11 16:19:28 +01:00
36 lines
783 B
C
36 lines
783 B
C
|
/*
|
||
|
* Copyright 2006-2008, Haiku.
|
||
|
* Distributed under the terms of the MIT License.
|
||
|
*
|
||
|
* Authors:
|
||
|
* Artur Wyszynski <harakash@gmail.com>
|
||
|
*/
|
||
|
|
||
|
#ifndef GRADIENT_RADIAL_FOCUS_H
|
||
|
#define GRADIENT_RADIAL_FOCUS_H
|
||
|
|
||
|
#include <Gradient.h>
|
||
|
|
||
|
class BPoint;
|
||
|
|
||
|
class BGradientRadialFocus : public BGradient {
|
||
|
public:
|
||
|
BGradientRadialFocus();
|
||
|
BGradientRadialFocus(const BPoint& center, float radius,
|
||
|
const BPoint& focal);
|
||
|
BGradientRadialFocus(float cx, float cy, float radius, float fx, float fy);
|
||
|
|
||
|
BPoint Center() const;
|
||
|
void SetCenter(const BPoint& center);
|
||
|
void SetCenter(float cx, float cy);
|
||
|
|
||
|
BPoint Focal() const;
|
||
|
void SetFocal(const BPoint& focal);
|
||
|
void SetFocal(float fx, float fy);
|
||
|
|
||
|
float Radius() const;
|
||
|
void SetRadius(float radius);
|
||
|
};
|
||
|
|
||
|
#endif // GRADIENT_RADIAL_FOCUS_H
|