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

37 lines
813 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_LINEAR_H
#define _GRADIENT_LINEAR_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 BGradientLinear : public BGradient {
public:
2009-08-26 11:16:49 +00:00
BGradientLinear();
BGradientLinear(const BPoint& start,
const BPoint& end);
BGradientLinear(float x1, float y1,
float x2, float y2);
2008-10-14 21:27:42 +00:00
2009-08-26 11:16:49 +00:00
BPoint Start() const;
void SetStart(const BPoint& start);
void SetStart(float x1, float y1);
2008-10-14 21:27:42 +00:00
2009-08-26 11:16:49 +00:00
BPoint End() const;
void SetEnd(const BPoint& end);
void SetEnd(float x2, float y2);
2008-10-14 21:27:42 +00:00
};
2008-11-08 12:00:57 +00:00
#endif // _GRADIENT_LINEAR_H