From b87283e76166f4c9f8ca0a140decc2b42aba56fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Wed, 26 Aug 2009 11:16:49 +0000 Subject: [PATCH] * 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 --- headers/os/interface/GradientConic.h | 33 ++++++++++-------- headers/os/interface/GradientDiamond.h | 27 ++++++++------- headers/os/interface/GradientLinear.h | 35 +++++++++++-------- headers/os/interface/GradientRadial.h | 33 ++++++++++-------- headers/os/interface/GradientRadialFocus.h | 40 ++++++++++++---------- 5 files changed, 95 insertions(+), 73 deletions(-) diff --git a/headers/os/interface/GradientConic.h b/headers/os/interface/GradientConic.h index 704869494f..2ed6fb3ede 100644 --- a/headers/os/interface/GradientConic.h +++ b/headers/os/interface/GradientConic.h @@ -1,30 +1,35 @@ /* - * Copyright 2006-2008, Haiku. - * Distributed under the terms of the MIT License. - * - * Authors: - * Artur Wyszynski + * Copyright 2006-2009, Haiku Inc. All rights reserved. + * Distributed under the terms of the MIT license. */ - #ifndef _GRADIENT_CONIC_H #define _GRADIENT_CONIC_H + #include + 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 { public: - BGradientConic(); - BGradientConic(const BPoint& center, float angle); - BGradientConic(float cx, float cy, float angle); + BGradientConic(); + BGradientConic(const BPoint& center, + float angle); + BGradientConic(float cx, float cy, + float angle); - BPoint Center() const; - void SetCenter(const BPoint& center); - void SetCenter(float cx, float cy); + BPoint Center() const; + void SetCenter(const BPoint& center); + void SetCenter(float cx, float cy); - float Angle() const; - void SetAngle(float angle); + float Angle() const; + void SetAngle(float angle); }; #endif // _GRADIENT_CONIC_H diff --git a/headers/os/interface/GradientDiamond.h b/headers/os/interface/GradientDiamond.h index c9fa618d49..294a753fe1 100644 --- a/headers/os/interface/GradientDiamond.h +++ b/headers/os/interface/GradientDiamond.h @@ -1,27 +1,30 @@ /* - * Copyright 2006-2008, Haiku. - * Distributed under the terms of the MIT License. - * - * Authors: - * Artur Wyszynski + * Copyright 2006-2009, Haiku Inc. All rights reserved. + * Distributed under the terms of the MIT license. */ - #ifndef _GRADIENT_DIAMOND_H #define _GRADIENT_DIAMOND_H + #include + 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 { public: - BGradientDiamond(); - BGradientDiamond(const BPoint& center); - BGradientDiamond(float cx, float cy); + BGradientDiamond(); + BGradientDiamond(const BPoint& center); + BGradientDiamond(float cx, float cy); - BPoint Center() const; - void SetCenter(const BPoint& center); - void SetCenter(float cx, float cy); + BPoint Center() const; + void SetCenter(const BPoint& center); + void SetCenter(float cx, float cy); }; #endif // _GRADIENT_DIAMOND_H diff --git a/headers/os/interface/GradientLinear.h b/headers/os/interface/GradientLinear.h index 126fc43f0b..b6317a1237 100644 --- a/headers/os/interface/GradientLinear.h +++ b/headers/os/interface/GradientLinear.h @@ -1,31 +1,36 @@ /* - * Copyright 2006-2008, Haiku. - * Distributed under the terms of the MIT License. - * - * Authors: - * Artur Wyszynski + * 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 + 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); + 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 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); + BPoint End() const; + void SetEnd(const BPoint& end); + void SetEnd(float x2, float y2); }; #endif // _GRADIENT_LINEAR_H diff --git a/headers/os/interface/GradientRadial.h b/headers/os/interface/GradientRadial.h index 73a0c8bc29..d13a7890ac 100644 --- a/headers/os/interface/GradientRadial.h +++ b/headers/os/interface/GradientRadial.h @@ -1,30 +1,35 @@ /* - * Copyright 2006-2008, Haiku. - * Distributed under the terms of the MIT License. - * - * Authors: - * Artur Wyszynski + * Copyright 2006-2009, Haiku Inc. All rights reserved. + * Distributed under the terms of the MIT license. */ - #ifndef _GRADIENT_RADIAL_H #define _GRADIENT_RADIAL_H + #include + 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 { public: - BGradientRadial(); - BGradientRadial(const BPoint& center, float radius); - BGradientRadial(float cx, float cy, float radius); + BGradientRadial(); + BGradientRadial(const BPoint& center, + float radius); + BGradientRadial(float cx, float cy, + float radius); - BPoint Center() const; - void SetCenter(const BPoint& center); - void SetCenter(float cx, float cy); + BPoint Center() const; + void SetCenter(const BPoint& center); + void SetCenter(float cx, float cy); - float Radius() const; - void SetRadius(float radius); + float Radius() const; + void SetRadius(float radius); }; #endif // _GRADIENT_RADIAL_H diff --git a/headers/os/interface/GradientRadialFocus.h b/headers/os/interface/GradientRadialFocus.h index 0862060dc3..5c50ac2dd5 100644 --- a/headers/os/interface/GradientRadialFocus.h +++ b/headers/os/interface/GradientRadialFocus.h @@ -1,35 +1,39 @@ /* - * Copyright 2006-2008, Haiku. - * Distributed under the terms of the MIT License. - * - * Authors: - * Artur Wyszynski + * Copyright 2006-2009, Haiku Inc. All rights reserved. + * Distributed under the terms of the MIT license. */ - #ifndef _GRADIENT_RADIAL_FOCUS_H #define _GRADIENT_RADIAL_FOCUS_H + #include + 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 { public: - BGradientRadialFocus(); - BGradientRadialFocus(const BPoint& center, float radius, - const BPoint& focal); - BGradientRadialFocus(float cx, float cy, float radius, float fx, float fy); + 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 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); + BPoint Focal() const; + void SetFocal(const BPoint& focal); + void SetFocal(float fx, float fy); - float Radius() const; - void SetRadius(float radius); + float Radius() const; + void SetRadius(float radius); }; #endif // _GRADIENT_RADIAL_FOCUS_H