* Updated indentation and licence.
* Added experimental API warning. +alphabranch git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32697 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,30 +1,35 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2006-2008, Haiku.
|
* Copyright 2006-2009, Haiku Inc. All rights reserved.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT license.
|
||||||
*
|
|
||||||
* Authors:
|
|
||||||
* Artur Wyszynski <[email protected]>
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _GRADIENT_CONIC_H
|
#ifndef _GRADIENT_CONIC_H
|
||||||
#define _GRADIENT_CONIC_H
|
#define _GRADIENT_CONIC_H
|
||||||
|
|
||||||
|
|
||||||
#include <Gradient.h>
|
#include <Gradient.h>
|
||||||
|
|
||||||
|
|
||||||
class BPoint;
|
class BPoint;
|
||||||
|
|
||||||
|
|
||||||
|
// WARNING! This is experimental API and may change! Be prepared to
|
||||||
|
// recompile your software in a next version of haiku.
|
||||||
|
|
||||||
|
|
||||||
class BGradientConic : public BGradient {
|
class BGradientConic : public BGradient {
|
||||||
public:
|
public:
|
||||||
BGradientConic();
|
BGradientConic();
|
||||||
BGradientConic(const BPoint& center, float angle);
|
BGradientConic(const BPoint& center,
|
||||||
BGradientConic(float cx, float cy, float angle);
|
float angle);
|
||||||
|
BGradientConic(float cx, float cy,
|
||||||
|
float angle);
|
||||||
|
|
||||||
BPoint Center() const;
|
BPoint Center() const;
|
||||||
void SetCenter(const BPoint& center);
|
void SetCenter(const BPoint& center);
|
||||||
void SetCenter(float cx, float cy);
|
void SetCenter(float cx, float cy);
|
||||||
|
|
||||||
float Angle() const;
|
float Angle() const;
|
||||||
void SetAngle(float angle);
|
void SetAngle(float angle);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // _GRADIENT_CONIC_H
|
#endif // _GRADIENT_CONIC_H
|
||||||
|
|||||||
@@ -1,27 +1,30 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2006-2008, Haiku.
|
* Copyright 2006-2009, Haiku Inc. All rights reserved.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT license.
|
||||||
*
|
|
||||||
* Authors:
|
|
||||||
* Artur Wyszynski <[email protected]>
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _GRADIENT_DIAMOND_H
|
#ifndef _GRADIENT_DIAMOND_H
|
||||||
#define _GRADIENT_DIAMOND_H
|
#define _GRADIENT_DIAMOND_H
|
||||||
|
|
||||||
|
|
||||||
#include <Gradient.h>
|
#include <Gradient.h>
|
||||||
|
|
||||||
|
|
||||||
class BPoint;
|
class BPoint;
|
||||||
|
|
||||||
|
|
||||||
|
// WARNING! This is experimental API and may change! Be prepared to
|
||||||
|
// recompile your software in a next version of haiku.
|
||||||
|
|
||||||
|
|
||||||
class BGradientDiamond : public BGradient {
|
class BGradientDiamond : public BGradient {
|
||||||
public:
|
public:
|
||||||
BGradientDiamond();
|
BGradientDiamond();
|
||||||
BGradientDiamond(const BPoint& center);
|
BGradientDiamond(const BPoint& center);
|
||||||
BGradientDiamond(float cx, float cy);
|
BGradientDiamond(float cx, float cy);
|
||||||
|
|
||||||
BPoint Center() const;
|
BPoint Center() const;
|
||||||
void SetCenter(const BPoint& center);
|
void SetCenter(const BPoint& center);
|
||||||
void SetCenter(float cx, float cy);
|
void SetCenter(float cx, float cy);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // _GRADIENT_DIAMOND_H
|
#endif // _GRADIENT_DIAMOND_H
|
||||||
|
|||||||
@@ -1,31 +1,36 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2006-2008, Haiku.
|
* Copyright 2006-2009, Haiku Inc. All rights reserved.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT license.
|
||||||
*
|
|
||||||
* Authors:
|
|
||||||
* Artur Wyszynski <[email protected]>
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _GRADIENT_LINEAR_H
|
#ifndef _GRADIENT_LINEAR_H
|
||||||
#define _GRADIENT_LINEAR_H
|
#define _GRADIENT_LINEAR_H
|
||||||
|
|
||||||
|
|
||||||
#include <Gradient.h>
|
#include <Gradient.h>
|
||||||
|
|
||||||
|
|
||||||
class BPoint;
|
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 {
|
class BGradientLinear : public BGradient {
|
||||||
public:
|
public:
|
||||||
BGradientLinear();
|
BGradientLinear();
|
||||||
BGradientLinear(const BPoint& start, const BPoint& end);
|
BGradientLinear(const BPoint& start,
|
||||||
BGradientLinear(float x1, float y1, float x2, float y2);
|
const BPoint& end);
|
||||||
|
BGradientLinear(float x1, float y1,
|
||||||
|
float x2, float y2);
|
||||||
|
|
||||||
BPoint Start() const;
|
BPoint Start() const;
|
||||||
void SetStart(const BPoint& start);
|
void SetStart(const BPoint& start);
|
||||||
void SetStart(float x1, float y1);
|
void SetStart(float x1, float y1);
|
||||||
|
|
||||||
BPoint End() const;
|
BPoint End() const;
|
||||||
void SetEnd(const BPoint& end);
|
void SetEnd(const BPoint& end);
|
||||||
void SetEnd(float x2, float y2);
|
void SetEnd(float x2, float y2);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // _GRADIENT_LINEAR_H
|
#endif // _GRADIENT_LINEAR_H
|
||||||
|
|||||||
@@ -1,30 +1,35 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2006-2008, Haiku.
|
* Copyright 2006-2009, Haiku Inc. All rights reserved.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT license.
|
||||||
*
|
|
||||||
* Authors:
|
|
||||||
* Artur Wyszynski <[email protected]>
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _GRADIENT_RADIAL_H
|
#ifndef _GRADIENT_RADIAL_H
|
||||||
#define _GRADIENT_RADIAL_H
|
#define _GRADIENT_RADIAL_H
|
||||||
|
|
||||||
|
|
||||||
#include <Gradient.h>
|
#include <Gradient.h>
|
||||||
|
|
||||||
|
|
||||||
class BPoint;
|
class BPoint;
|
||||||
|
|
||||||
|
|
||||||
|
// WARNING! This is experimental API and may change! Be prepared to
|
||||||
|
// recompile your software in a next version of haiku.
|
||||||
|
|
||||||
|
|
||||||
class BGradientRadial : public BGradient {
|
class BGradientRadial : public BGradient {
|
||||||
public:
|
public:
|
||||||
BGradientRadial();
|
BGradientRadial();
|
||||||
BGradientRadial(const BPoint& center, float radius);
|
BGradientRadial(const BPoint& center,
|
||||||
BGradientRadial(float cx, float cy, float radius);
|
float radius);
|
||||||
|
BGradientRadial(float cx, float cy,
|
||||||
|
float radius);
|
||||||
|
|
||||||
BPoint Center() const;
|
BPoint Center() const;
|
||||||
void SetCenter(const BPoint& center);
|
void SetCenter(const BPoint& center);
|
||||||
void SetCenter(float cx, float cy);
|
void SetCenter(float cx, float cy);
|
||||||
|
|
||||||
float Radius() const;
|
float Radius() const;
|
||||||
void SetRadius(float radius);
|
void SetRadius(float radius);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // _GRADIENT_RADIAL_H
|
#endif // _GRADIENT_RADIAL_H
|
||||||
|
|||||||
@@ -1,35 +1,39 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2006-2008, Haiku.
|
* Copyright 2006-2009, Haiku Inc. All rights reserved.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT license.
|
||||||
*
|
|
||||||
* Authors:
|
|
||||||
* Artur Wyszynski <[email protected]>
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _GRADIENT_RADIAL_FOCUS_H
|
#ifndef _GRADIENT_RADIAL_FOCUS_H
|
||||||
#define _GRADIENT_RADIAL_FOCUS_H
|
#define _GRADIENT_RADIAL_FOCUS_H
|
||||||
|
|
||||||
|
|
||||||
#include <Gradient.h>
|
#include <Gradient.h>
|
||||||
|
|
||||||
|
|
||||||
class BPoint;
|
class BPoint;
|
||||||
|
|
||||||
|
|
||||||
|
// WARNING! This is experimental API and may change! Be prepared to
|
||||||
|
// recompile your software in a next version of haiku.
|
||||||
|
|
||||||
|
|
||||||
class BGradientRadialFocus : public BGradient {
|
class BGradientRadialFocus : public BGradient {
|
||||||
public:
|
public:
|
||||||
BGradientRadialFocus();
|
BGradientRadialFocus();
|
||||||
BGradientRadialFocus(const BPoint& center, float radius,
|
BGradientRadialFocus(const BPoint& center,
|
||||||
const BPoint& focal);
|
float radius, const BPoint& focal);
|
||||||
BGradientRadialFocus(float cx, float cy, float radius, float fx, float fy);
|
BGradientRadialFocus(float cx, float cy,
|
||||||
|
float radius, float fx, float fy);
|
||||||
|
|
||||||
BPoint Center() const;
|
BPoint Center() const;
|
||||||
void SetCenter(const BPoint& center);
|
void SetCenter(const BPoint& center);
|
||||||
void SetCenter(float cx, float cy);
|
void SetCenter(float cx, float cy);
|
||||||
|
|
||||||
BPoint Focal() const;
|
BPoint Focal() const;
|
||||||
void SetFocal(const BPoint& focal);
|
void SetFocal(const BPoint& focal);
|
||||||
void SetFocal(float fx, float fy);
|
void SetFocal(float fx, float fy);
|
||||||
|
|
||||||
float Radius() const;
|
float Radius() const;
|
||||||
void SetRadius(float radius);
|
void SetRadius(float radius);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // _GRADIENT_RADIAL_FOCUS_H
|
#endif // _GRADIENT_RADIAL_FOCUS_H
|
||||||
|
|||||||
Reference in New Issue
Block a user