89208c77f1
* Fixed copyrights (puncuation and capitalization, removed authors from headers) * Updated indentation style * Unified pointer/reference style * Re-ordered some methods for better grouping where it could be done (abd adopted source accordingly) * Small coding style fixes here and there No functional change intended. +alphabranch git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32745 a95241bf-73f2-0310-859d-f6bbb57e9c96
37 lines
813 B
C++
37 lines
813 B
C++
/*
|
|
* Copyright 2006-2009, Haiku, Inc. All rights reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _GRADIENT_LINEAR_H
|
|
#define _GRADIENT_LINEAR_H
|
|
|
|
|
|
#include <Gradient.h>
|
|
|
|
|
|
class BPoint;
|
|
|
|
|
|
// WARNING! This is experimental API and may change! Be prepared to
|
|
// recompile your software in a next version of haiku.
|
|
|
|
|
|
class BGradientLinear : public BGradient {
|
|
public:
|
|
BGradientLinear();
|
|
BGradientLinear(const BPoint& start,
|
|
const BPoint& end);
|
|
BGradientLinear(float x1, float y1,
|
|
float x2, float y2);
|
|
|
|
BPoint Start() const;
|
|
void SetStart(const BPoint& start);
|
|
void SetStart(float x1, float y1);
|
|
|
|
BPoint End() const;
|
|
void SetEnd(const BPoint& end);
|
|
void SetEnd(float x2, float y2);
|
|
};
|
|
|
|
#endif // _GRADIENT_LINEAR_H
|