Added BSize::Set(). BPoint and BRect feature a similar method.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21354 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
dd5ac13b5f
commit
ea2dcf71dc
@ -28,6 +28,7 @@ public:
|
|||||||
inline float Width() const;
|
inline float Width() const;
|
||||||
inline float Height() const;
|
inline float Height() const;
|
||||||
|
|
||||||
|
inline void Set(float width, float height);
|
||||||
inline void SetWidth(float width);
|
inline void SetWidth(float width);
|
||||||
inline void SetHeight(float height);
|
inline void SetHeight(float height);
|
||||||
|
|
||||||
@ -87,6 +88,15 @@ BSize::Height() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Set
|
||||||
|
inline void
|
||||||
|
BSize::Set(float width, float height)
|
||||||
|
{
|
||||||
|
this->width = width;
|
||||||
|
this->height = height;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// SetWidth
|
// SetWidth
|
||||||
inline void
|
inline void
|
||||||
BSize::SetWidth(float width)
|
BSize::SetWidth(float width)
|
||||||
|
Loading…
Reference in New Issue
Block a user