* Updated indentation style
* Added warning about this being experimental API. +alphabranch git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32695 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
d913595783
commit
2d6e435398
@ -1,15 +1,11 @@
|
||||
/*
|
||||
* Copyright 2006-2009, Haiku.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*
|
||||
* Authors:
|
||||
* Stephan Aßmus <superstippi@gmx.de>
|
||||
* Artur Wyszynski <harakash@gmail.com>
|
||||
* Copyright 2006-2009, Haiku Inc. All rights reserved.
|
||||
* Distributed under the terms of the MIT license.
|
||||
*/
|
||||
|
||||
#ifndef _GRADIENT_H
|
||||
#define _GRADIENT_H
|
||||
|
||||
|
||||
#include <Archivable.h>
|
||||
#include <GraphicsDefs.h>
|
||||
#include <List.h>
|
||||
@ -19,6 +15,14 @@ class BMessage;
|
||||
class BRect;
|
||||
|
||||
|
||||
// WARNING! This is experimental API and may change! Be prepared to
|
||||
// recompile your software in a next version of haiku. In particular,
|
||||
// the offsets are currently specified on [0..255], but may be changed
|
||||
// to the interval [0..1]. This class also does not have any FBC padding,
|
||||
// So your software will definitely break when this class gets new
|
||||
// virtuals. And the object size may change too...
|
||||
|
||||
|
||||
class BGradient : public BArchivable {
|
||||
public:
|
||||
enum Type {
|
||||
@ -47,22 +51,27 @@ public:
|
||||
BGradient(BMessage* archive);
|
||||
virtual ~BGradient();
|
||||
|
||||
status_t Archive(BMessage* into, bool deep = true) const;
|
||||
status_t Archive(BMessage* into,
|
||||
bool deep = true) const;
|
||||
|
||||
BGradient& operator=(const BGradient& other);
|
||||
|
||||
bool operator==(const BGradient& other) const;
|
||||
bool operator!=(const BGradient& other) const;
|
||||
bool ColorStopsAreEqual(const BGradient& other) const;
|
||||
bool ColorStopsAreEqual(
|
||||
const BGradient& other) const;
|
||||
|
||||
void SetColorStops(const BGradient& other);
|
||||
|
||||
int32 AddColor(const rgb_color& color, float offset);
|
||||
bool AddColorStop(const ColorStop& colorStop, int32 index);
|
||||
int32 AddColor(const rgb_color& color,
|
||||
float offset);
|
||||
bool AddColorStop(const ColorStop& colorStop,
|
||||
int32 index);
|
||||
|
||||
bool RemoveColor(int32 index);
|
||||
|
||||
bool SetColorStop(int32 index, const ColorStop& colorStop);
|
||||
bool SetColorStop(int32 index,
|
||||
const ColorStop& colorStop);
|
||||
bool SetColor(int32 index, const rgb_color& color);
|
||||
bool SetOffset(int32 index, float offset);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user