Finished unifying the Interface Kit headers:
* 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
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2006-2007, Haiku, Inc. All Rights Reserved.
|
||||
* Copyright 2006-2007, Haiku, Inc. All rights reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef _SHAPE_H
|
||||
@@ -21,70 +21,80 @@ namespace BPrivate {
|
||||
|
||||
class BShapeIterator {
|
||||
public:
|
||||
BShapeIterator();
|
||||
virtual ~BShapeIterator();
|
||||
BShapeIterator();
|
||||
virtual ~BShapeIterator();
|
||||
|
||||
virtual status_t IterateMoveTo(BPoint *point);
|
||||
virtual status_t IterateLineTo(int32 lineCount, BPoint *linePts);
|
||||
virtual status_t IterateBezierTo(int32 bezierCount, BPoint *bezierPts);
|
||||
virtual status_t IterateClose();
|
||||
virtual status_t IterateMoveTo(BPoint* point);
|
||||
virtual status_t IterateLineTo(int32 lineCount,
|
||||
BPoint* linePts);
|
||||
virtual status_t IterateBezierTo(int32 bezierCount,
|
||||
BPoint* bezierPts);
|
||||
virtual status_t IterateClose();
|
||||
|
||||
status_t Iterate(BShape *shape);
|
||||
status_t Iterate(BShape* shape);
|
||||
|
||||
private:
|
||||
virtual void _ReservedShapeIterator1();
|
||||
virtual void _ReservedShapeIterator2();
|
||||
virtual void _ReservedShapeIterator3();
|
||||
virtual void _ReservedShapeIterator4();
|
||||
virtual void _ReservedShapeIterator1();
|
||||
virtual void _ReservedShapeIterator2();
|
||||
virtual void _ReservedShapeIterator3();
|
||||
virtual void _ReservedShapeIterator4();
|
||||
|
||||
uint32 reserved[4];
|
||||
uint32 reserved[4];
|
||||
};
|
||||
|
||||
|
||||
class BShape : public BArchivable {
|
||||
public:
|
||||
BShape();
|
||||
BShape(const BShape ©From);
|
||||
BShape(BMessage *data);
|
||||
virtual ~BShape();
|
||||
BShape();
|
||||
BShape(const BShape& other);
|
||||
BShape(BMessage* archive);
|
||||
virtual ~BShape();
|
||||
|
||||
virtual status_t Archive(BMessage *into, bool deep = true) const;
|
||||
static BArchivable *Instantiate(BMessage *data);
|
||||
static BArchivable* Instantiate(BMessage* archive);
|
||||
virtual status_t Archive(BMessage* archive,
|
||||
bool deep = true) const;
|
||||
|
||||
void Clear();
|
||||
BRect Bounds() const;
|
||||
void Clear();
|
||||
BRect Bounds() const;
|
||||
|
||||
status_t AddShape(const BShape *other);
|
||||
status_t AddShape(const BShape* other);
|
||||
|
||||
status_t MoveTo(BPoint point);
|
||||
status_t LineTo(BPoint linePoint);
|
||||
status_t BezierTo(BPoint controlPoints[3]);
|
||||
status_t Close();
|
||||
status_t MoveTo(BPoint point);
|
||||
status_t LineTo(BPoint linePoint);
|
||||
status_t BezierTo(BPoint controlPoints[3]);
|
||||
status_t Close();
|
||||
|
||||
private:
|
||||
virtual status_t Perform(perform_code d, void *arg);
|
||||
// FBC padding
|
||||
virtual status_t Perform(perform_code code, void* data);
|
||||
|
||||
virtual void _ReservedShape1();
|
||||
virtual void _ReservedShape2();
|
||||
virtual void _ReservedShape3();
|
||||
virtual void _ReservedShape4();
|
||||
virtual void _ReservedShape1();
|
||||
virtual void _ReservedShape2();
|
||||
virtual void _ReservedShape3();
|
||||
virtual void _ReservedShape4();
|
||||
|
||||
private:
|
||||
friend class BShapeIterator;
|
||||
friend class BView;
|
||||
friend class BFont;
|
||||
friend class BPrivate::PicturePlayer;
|
||||
friend class BPrivate::ServerLink;
|
||||
|
||||
void GetData(int32 *opCount, int32 *ptCount, uint32 **opList, BPoint **ptList);
|
||||
void SetData(int32 opCount, int32 ptCount, const uint32 *opList, const BPoint *ptList);
|
||||
void InitData();
|
||||
bool AllocatePts(int32 count);
|
||||
bool AllocateOps(int32 count);
|
||||
void GetData(int32* opCount, int32* ptCount,
|
||||
uint32** opList, BPoint** ptList);
|
||||
void SetData(int32 opCount, int32 ptCount,
|
||||
const uint32* opList,
|
||||
const BPoint* ptList);
|
||||
void InitData();
|
||||
bool AllocatePts(int32 count);
|
||||
bool AllocateOps(int32 count);
|
||||
|
||||
uint32 fState;
|
||||
uint32 fBuildingOp;
|
||||
void* fPrivateData;
|
||||
uint32 reserved[4];
|
||||
private:
|
||||
uint32 fState;
|
||||
uint32 fBuildingOp;
|
||||
void* fPrivateData;
|
||||
|
||||
uint32 reserved[4];
|
||||
};
|
||||
|
||||
#endif // _SHAPE_H
|
||||
#endif // _SHAPE_H
|
||||
|
||||
Reference in New Issue
Block a user