Some more spacing.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21119 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
253599a20b
commit
7f4c0ffe9c
@ -10,11 +10,13 @@
|
||||
#include <Rect.h>
|
||||
#include <SupportDefs.h>
|
||||
|
||||
|
||||
enum {
|
||||
B_SIZE_UNSET = -1,
|
||||
B_SIZE_UNLIMITED = 1024 * 1024 * 1024,
|
||||
};
|
||||
|
||||
|
||||
class BSize {
|
||||
public:
|
||||
float width;
|
||||
@ -52,6 +54,7 @@ BSize::BSize()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
// copy constructor
|
||||
inline
|
||||
BSize::BSize(const BSize& other)
|
||||
@ -60,6 +63,7 @@ BSize::BSize(const BSize& other)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
// constructor
|
||||
inline
|
||||
BSize::BSize(float width, float height)
|
||||
@ -68,6 +72,7 @@ BSize::BSize(float width, float height)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
// constructor
|
||||
inline
|
||||
BSize::BSize(const BRect& rect)
|
||||
@ -76,6 +81,7 @@ BSize::BSize(const BRect& rect)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
// Width
|
||||
inline float
|
||||
BSize::Width() const
|
||||
@ -83,6 +89,7 @@ BSize::Width() const
|
||||
return width;
|
||||
}
|
||||
|
||||
|
||||
// Height
|
||||
inline float
|
||||
BSize::Height() const
|
||||
@ -90,6 +97,7 @@ BSize::Height() const
|
||||
return height;
|
||||
}
|
||||
|
||||
|
||||
// SetWidth
|
||||
inline void
|
||||
BSize::SetWidth(float width)
|
||||
@ -97,6 +105,7 @@ BSize::SetWidth(float width)
|
||||
this->width = width;
|
||||
}
|
||||
|
||||
|
||||
// SetHeight
|
||||
inline void
|
||||
BSize::SetHeight(float height)
|
||||
@ -104,6 +113,7 @@ BSize::SetHeight(float height)
|
||||
this->height = height;
|
||||
}
|
||||
|
||||
|
||||
// IntegerWidth
|
||||
inline int32
|
||||
BSize::IntegerWidth() const
|
||||
@ -111,6 +121,7 @@ BSize::IntegerWidth() const
|
||||
return (int32)width;
|
||||
}
|
||||
|
||||
|
||||
// IntegerHeight
|
||||
inline int32
|
||||
BSize::IntegerHeight() const
|
||||
@ -118,6 +129,7 @@ BSize::IntegerHeight() const
|
||||
return (int32)height;
|
||||
}
|
||||
|
||||
|
||||
// IsWidthSet
|
||||
inline bool
|
||||
BSize::IsWidthSet() const
|
||||
@ -125,6 +137,7 @@ BSize::IsWidthSet() const
|
||||
return width != B_SIZE_UNSET;
|
||||
}
|
||||
|
||||
|
||||
// IsHeightSet
|
||||
inline bool
|
||||
BSize::IsHeightSet() const
|
||||
@ -132,6 +145,7 @@ BSize::IsHeightSet() const
|
||||
return height != B_SIZE_UNSET;
|
||||
}
|
||||
|
||||
|
||||
// ==
|
||||
inline bool
|
||||
BSize::operator==(const BSize& other) const
|
||||
@ -139,6 +153,7 @@ BSize::operator==(const BSize& other) const
|
||||
return (width == other.width && height == other.height);
|
||||
}
|
||||
|
||||
|
||||
// !=
|
||||
inline bool
|
||||
BSize::operator!=(const BSize& other) const
|
||||
@ -146,6 +161,7 @@ BSize::operator!=(const BSize& other) const
|
||||
return !(*this == other);
|
||||
}
|
||||
|
||||
|
||||
// =
|
||||
inline BSize&
|
||||
BSize::operator=(const BSize& other)
|
||||
|
Loading…
Reference in New Issue
Block a user