class
PortablePoint
: public
PortableFlattenable
(Return to index)
A portable version of Be's BPoint class.
Type:
Instantiable
Superclasses:
public
PortableFlattenable
Include file:
../../support/PortablePoint.h
Synopsis:
Public:
void
ConstrainTo
(
PortablePoint
topLeft,
PortablePoint
bottomRight) ;
virtual void
Flatten
(uint8 * buffer) const ;
virtual size_t
FlattenedSize
() const ;
virtual bool
IsFixedSize
() const ;
PortablePoint
() ;
PortablePoint
(const
PortablePoint
& rhs) ;
PortablePoint
(float X, float Y) ;
void
PrintToStream
() const ;
void
Set
(float X, float Y) ;
virtual type_code
TypeCode
() const ;
virtual status_t
Unflatten
(const uint8 * buffer, size_t size) ;
bool
operator!=
(const
PortablePoint
&p) const ;
PortablePoint
operator+
(const
PortablePoint
&p) const ;
PortablePoint
&
operator+=
(const
PortablePoint
&p) ;
PortablePoint
operator-
(const
PortablePoint
&p) const ;
PortablePoint
&
operator-=
(const
PortablePoint
&p) ;
bool
operator==
(const
PortablePoint
&p) const ;
float
x
;
float
y
;
virtual
~PortablePoint
() ;
Public methods:
public void
ConstrainTo
(
PortablePoint
topLeft,
PortablePoint
bottomRight)
public virtual void
Flatten
(uint8 * buffer) const
public virtual size_t
FlattenedSize
() const
public virtual bool
IsFixedSize
() const
public
PortablePoint
()
public
PortablePoint
(const
PortablePoint
& rhs)
public
PortablePoint
(float X, float Y)
public void
PrintToStream
() const
public void
Set
(float X, float Y)
public virtual type_code
TypeCode
() const
public virtual status_t
Unflatten
(const uint8 * buffer, size_t size)
public bool
operator!=
(const
PortablePoint
&p) const
public
PortablePoint
operator+
(const
PortablePoint
&p) const
public
PortablePoint
&
operator+=
(const
PortablePoint
&p)
public
PortablePoint
operator-
(const
PortablePoint
&p) const
public
PortablePoint
&
operator-=
(const
PortablePoint
&p)
public bool
operator==
(const
PortablePoint
&p) const
public float
x
public float
y
public virtual
~PortablePoint
()