Nana C++ Library. Reference for users.
What we need to use nana
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
nana::size Struct Reference

Public Types

using value_type = unsigned
 

Public Member Functions

 size ()
 
 size (value_type width, value_type height)
 
bool empty () const
 true if width * height == 0 More...
 
bool is_hit (const point &) const
 Assume it is a rectangle at (0,0), and check whether a specified position is in the rectangle. More...
 
sizeshift ()
 
bool operator== (const size &rhs) const
 
bool operator!= (const size &rhs) const
 
size operator+ (const size &) const
 

Public Attributes

value_type width
 
value_type height
 

Detailed Description

Member Typedef Documentation

using nana::size::value_type = unsigned

Constructor & Destructor Documentation

nana::size::size ( )
nana::size::size ( value_type  width,
value_type  height 
)

Member Function Documentation

bool nana::size::empty ( ) const

true if width * height == 0

bool nana::size::is_hit ( const point pos) const

Assume it is a rectangle at (0,0), and check whether a specified position is in the rectangle.

bool nana::size::operator!= ( const size rhs) const
size nana::size::operator+ ( const size sz) const
bool nana::size::operator== ( const size rhs) const
size & nana::size::shift ( )

Member Data Documentation

value_type nana::size::height