BRegion: add move construction and assignment support
GCC 2 support is also provided with `MoveFrom` method. Change-Id: Ibd062f501fdeb5538ade6c84dcafb61cff70cc32 Reviewed-on: https://review.haiku-os.org/c/haiku/+/8529 Tested-by: Commit checker robot <[email protected]> Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
@@ -29,13 +29,20 @@ public:
|
||||
BRegion();
|
||||
BRegion(const BRegion& other);
|
||||
BRegion(const BRect rect);
|
||||
#if defined(__cplusplus) && __cplusplus >= 201103L
|
||||
BRegion(BRegion&& other);
|
||||
#endif
|
||||
virtual ~BRegion();
|
||||
|
||||
BRegion& operator=(const BRegion& other);
|
||||
#if defined(__cplusplus) && __cplusplus >= 201103L
|
||||
BRegion& operator=(BRegion&& other);
|
||||
#endif
|
||||
bool operator==(const BRegion& other) const;
|
||||
|
||||
void Set(BRect rect);
|
||||
void Set(clipping_rect clipping);
|
||||
void MoveFrom(BRegion& other);
|
||||
|
||||
BRect Frame() const;
|
||||
clipping_rect FrameInt() const;
|
||||
|
||||
Reference in New Issue
Block a user