-
class
PortableRect
: public PortableFlattenable
(Return to index)
-
A portable version of Be's BRect class.
Type:
Superclasses:
Include file:
../../support/PortableRect.h
Synopsis:
- Public:
- bool
Contains
(PortablePoint p) const
;
-
- bool
Contains
(PortableRect p) const
;
-
- virtual void
Flatten
(uint8 * buffer) const
;
-
- virtual size_t
FlattenedSize
() const
;
-
- float
Height
() const
;
-
- void
InsetBy
(PortablePoint p)
;
-
- void
InsetBy
(float dx, float dy)
;
-
- int32
IntegerHeight
() const
;
-
- int32
IntegerWidth
() const
;
-
- bool
Intersects
(PortableRect r) const
;
-
- virtual bool
IsFixedSize
() const
;
-
- bool
IsValid
() const
;
-
- PortablePoint
LeftBottom
() const
;
-
- PortablePoint
LeftTop
() const
;
-
- void
OffsetBy
(PortablePoint p)
;
-
- void
OffsetBy
(float dx, float dy)
;
-
- void
OffsetTo
(PortablePoint p)
;
-
- void
OffsetTo
(float x, float y)
;
-
-
PortableRect
()
;
-
-
PortableRect
(PortablePoint leftTop, PortablePoint rightBottom)
;
-
-
PortableRect
(float l, float t, float r, float b)
;
-
- void
PrintToStream
() const
;
-
- PortablePoint
RightBottom
() const
;
-
- PortablePoint
RightTop
() const
;
-
- void
Set
(float l, float t, float r, float b)
;
-
- void
SetLeftBottom
(const PortablePoint p)
;
-
- void
SetLeftTop
(const PortablePoint p)
;
-
- void
SetRightBottom
(const PortablePoint p)
;
-
- void
SetRightTop
(const PortablePoint p)
;
-
- virtual type_code
TypeCode
() const
;
-
- virtual status_t
Unflatten
(const uint8 * buffer, size_t size)
;
-
- float
Width
() const
;
-
- float
bottom
;
-
- float
left
;
-
- bool
operator!=
(PortableRect r) const
;
-
- PortableRect
operator&
(PortableRect r) const
;
-
- bool
operator==
(PortableRect r) const
;
-
- PortableRect
operator|
(PortableRect r) const
;
-
- float
right
;
-
- float
top
;
-
Public methods:
- public bool
Contains (PortablePoint p) const
- public bool
Contains (PortableRect p) const
- public virtual void
Flatten (uint8 * buffer) const
- public virtual size_t
FlattenedSize () const
- public float
Height () const
- public void
InsetBy (PortablePoint p)
- public void
InsetBy (float dx, float dy)
- public int32
IntegerHeight () const
- public int32
IntegerWidth () const
- public bool
Intersects (PortableRect r) const
- public virtual bool
IsFixedSize () const
- public bool
IsValid () const
- public PortablePoint
LeftBottom () const
- public PortablePoint
LeftTop () const
- public void
OffsetBy (PortablePoint p)
- public void
OffsetBy (float dx, float dy)
- public void
OffsetTo (PortablePoint p)
- public void
OffsetTo (float x, float y)
- public
PortableRect ()
- public
PortableRect (PortablePoint leftTop, PortablePoint rightBottom)
- public
PortableRect (float l, float t, float r, float b)
- public void
PrintToStream () const
- public PortablePoint
RightBottom () const
- public PortablePoint
RightTop () const
- public void
Set (float l, float t, float r, float b)
- public void
SetLeftBottom (const PortablePoint p)
- public void
SetLeftTop (const PortablePoint p)
- public void
SetRightBottom (const PortablePoint p)
- public void
SetRightTop (const PortablePoint p)
- public virtual type_code
TypeCode () const
- public virtual status_t
Unflatten (const uint8 * buffer, size_t size)
- public float
Width () const
- public float
bottom
- public float
left
- public bool
operator!= (PortableRect r) const
- public PortableRect
operator& (PortableRect r) const
- public bool
operator== (PortableRect r) const
- public PortableRect
operator| (PortableRect r) const
- public float
right
- public float
top