Limbo 3.5.4
Loading...
Searching...
No Matches
Rectangle Struct Reference

a custom rectangle class More...

Public Types

typedef int value_type
 coordinate type
typedef uint64_t value_type
 coordinate type

Public Member Functions

value_type const & xl () const
 access left coordinate
value_type const & yl () const
 access bottom coordinate
value_type const & xh () const
 access right coordinate
value_type const & yh () const
 access top coordinate
void xl (value_type v)
 set left coordinate
void yl (value_type v)
 set bottom coordinate
void xh (value_type v)
 set right coordinate
void yh (value_type v)
 set top coordinate
value_type const & xl () const
 access left coordinate
value_type const & yl () const
 access bottom coordinate
value_type const & xh () const
 access right coordinate
value_type const & yh () const
 access top coordinate
void xl (value_type v)
 set left coordinate
void yl (value_type v)
 set bottom coordinate
void xh (value_type v)
 set right coordinate
void yh (value_type v)
 set top coordinate

Public Attributes

value_type m_xl
 left
value_type m_yl
 bottom
value_type m_xh
 right
value_type m_yh
 top

Detailed Description

a custom rectangle class

Definition at line 110 of file test_p2r.cpp.

Member Typedef Documentation

◆ value_type [1/2]

typedef int Rectangle::value_type

coordinate type

Definition at line 113 of file test_p2r.cpp.

◆ value_type [2/2]

typedef uint64_t Rectangle::value_type

coordinate type

Definition at line 113 of file test_uint64.cpp.

Member Function Documentation

◆ xh() [1/4]

value_type const & Rectangle::xh ( ) const
inline

access right coordinate

Returns
right coordinate

Definition at line 138 of file test_p2r.cpp.

◆ xh() [2/4]

value_type const & Rectangle::xh ( ) const
inline

access right coordinate

Returns
right coordinate

Definition at line 138 of file test_uint64.cpp.

◆ xh() [3/4]

void Rectangle::xh ( value_type v)
inline

set right coordinate

Parameters
vcoordinate value

Definition at line 158 of file test_p2r.cpp.

◆ xh() [4/4]

void Rectangle::xh ( value_type v)
inline

set right coordinate

Parameters
vcoordinate value

Definition at line 158 of file test_uint64.cpp.

◆ xl() [1/4]

value_type const & Rectangle::xl ( ) const
inline

access left coordinate

Returns
left coordinate

Definition at line 128 of file test_p2r.cpp.

◆ xl() [2/4]

value_type const & Rectangle::xl ( ) const
inline

access left coordinate

Returns
left coordinate

Definition at line 128 of file test_uint64.cpp.

◆ xl() [3/4]

void Rectangle::xl ( value_type v)
inline

set left coordinate

Parameters
vcoordinate value

Definition at line 148 of file test_p2r.cpp.

◆ xl() [4/4]

void Rectangle::xl ( value_type v)
inline

set left coordinate

Parameters
vcoordinate value

Definition at line 148 of file test_uint64.cpp.

◆ yh() [1/4]

value_type const & Rectangle::yh ( ) const
inline

access top coordinate

Returns
top coordinate

Definition at line 143 of file test_p2r.cpp.

◆ yh() [2/4]

value_type const & Rectangle::yh ( ) const
inline

access top coordinate

Returns
top coordinate

Definition at line 143 of file test_uint64.cpp.

◆ yh() [3/4]

void Rectangle::yh ( value_type v)
inline

set top coordinate

Parameters
vcoordinate value

Definition at line 163 of file test_p2r.cpp.

◆ yh() [4/4]

void Rectangle::yh ( value_type v)
inline

set top coordinate

Parameters
vcoordinate value

Definition at line 163 of file test_uint64.cpp.

◆ yl() [1/4]

value_type const & Rectangle::yl ( ) const
inline

access bottom coordinate

Returns
bottom coordinate

Definition at line 133 of file test_p2r.cpp.

◆ yl() [2/4]

value_type const & Rectangle::yl ( ) const
inline

access bottom coordinate

Returns
bottom coordinate

Definition at line 133 of file test_uint64.cpp.

◆ yl() [3/4]

void Rectangle::yl ( value_type v)
inline

set bottom coordinate

Parameters
vcoordinate value

Definition at line 153 of file test_p2r.cpp.

◆ yl() [4/4]

void Rectangle::yl ( value_type v)
inline

set bottom coordinate

Parameters
vcoordinate value

Definition at line 153 of file test_uint64.cpp.

Member Data Documentation

◆ m_xh

value_type Rectangle::m_xh

right

Definition at line 120 of file test_p2r.cpp.

◆ m_xl

value_type Rectangle::m_xl

left

Definition at line 116 of file test_p2r.cpp.

◆ m_yh

value_type Rectangle::m_yh

top

Definition at line 122 of file test_p2r.cpp.

◆ m_yl

value_type Rectangle::m_yl

bottom

Definition at line 118 of file test_p2r.cpp.


The documentation for this struct was generated from the following files: