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