BRect's OffsetBy takes a BPoint. Add a similar BRegion method to be more consistent. This one takes a const reference instead a complete BPoint object.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42476 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -56,6 +56,7 @@ public:
|
|||||||
|
|
||||||
void PrintToStream() const;
|
void PrintToStream() const;
|
||||||
|
|
||||||
|
void OffsetBy(const BPoint& point);
|
||||||
void OffsetBy(int32 x, int32 y);
|
void OffsetBy(int32 x, int32 y);
|
||||||
|
|
||||||
void MakeEmpty();
|
void MakeEmpty();
|
||||||
|
|||||||
@@ -342,6 +342,14 @@ BRegion::PrintToStream() const
|
|||||||
// #pragma mark -
|
// #pragma mark -
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
BRegion::OffsetBy(const BPoint& point)
|
||||||
|
{
|
||||||
|
OffsetBy(point.x, point.y);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*! \brief Offsets all region's rects, and bounds by the given values.
|
/*! \brief Offsets all region's rects, and bounds by the given values.
|
||||||
\param dh The horizontal offset.
|
\param dh The horizontal offset.
|
||||||
\param dv The vertical offset.
|
\param dv The vertical offset.
|
||||||
|
|||||||
Reference in New Issue
Block a user