neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neogfx::basic_box_areas< DimensionType > Class Template Reference

#include <geometrical.hpp>

Public Types

typedef self_type abstract_type
 
typedef DimensionType dimension_type
 
typedef dimension_type coordinate_type
 
typedef basic_point< coordinate_typepoint_type
 
typedef basic_size< dimension_typesize_type
 

Public Member Functions

 basic_box_areas ()
 
 basic_box_areas (dimension_type all)
 
 basic_box_areas (dimension_type left, dimension_type top, dimension_type right, dimension_type bottom)
 
 basic_box_areas (dimension_type leftRight, dimension_type topBottom)
 
 basic_box_areas (const size_type &aDimensions)
 
 basic_box_areas (const point_type &aTopLeft, const point_type &aBottomRight)
 
template<typename DimensionType2 >
 basic_box_areas (const basic_box_areas< DimensionType2 > &other)
 
auto operator<=> (const self_type &) const =default
 
self_type operator- () const
 
self_type & operator+= (const self_type &other)
 
self_type & operator+= (dimension_type amount)
 
self_type & operator-= (const self_type &other)
 
self_type & operator-= (dimension_type amount)
 
self_type & operator*= (const self_type &other)
 
self_type & operator*= (dimension_type amount)
 
self_type & operator/= (const self_type &other)
 
self_type & operator/= (dimension_type amount)
 
self_type with_left (dimension_type d) const
 
self_type with_top (dimension_type d) const
 
self_type with_right (dimension_type d) const
 
self_type with_bottom (dimension_type d) const
 
point_type top_left () const
 
point_type bottom_right () const
 
size_type size () const
 
self_type ceil () const
 
self_type floor () const
 
self_type round () const
 

Public Attributes

dimension_type left
 
dimension_type top
 
dimension_type right
 
dimension_type bottom
 

Detailed Description

template<typename DimensionType>
class neogfx::basic_box_areas< DimensionType >

Definition at line 636 of file geometrical.hpp.

Member Typedef Documentation

◆ abstract_type

template<typename DimensionType >
typedef self_type neogfx::basic_box_areas< DimensionType >::abstract_type

Definition at line 641 of file geometrical.hpp.

◆ coordinate_type

template<typename DimensionType >
typedef dimension_type neogfx::basic_box_areas< DimensionType >::coordinate_type

Definition at line 643 of file geometrical.hpp.

◆ dimension_type

template<typename DimensionType >
typedef DimensionType neogfx::basic_box_areas< DimensionType >::dimension_type

Definition at line 642 of file geometrical.hpp.

◆ point_type

template<typename DimensionType >
typedef basic_point<coordinate_type> neogfx::basic_box_areas< DimensionType >::point_type

Definition at line 644 of file geometrical.hpp.

◆ size_type

template<typename DimensionType >
typedef basic_size<dimension_type> neogfx::basic_box_areas< DimensionType >::size_type

Definition at line 645 of file geometrical.hpp.

Constructor & Destructor Documentation

◆ basic_box_areas() [1/7]

template<typename DimensionType >
neogfx::basic_box_areas< DimensionType >::basic_box_areas ( )
inline

Definition at line 648 of file geometrical.hpp.

◆ basic_box_areas() [2/7]

template<typename DimensionType >
neogfx::basic_box_areas< DimensionType >::basic_box_areas ( dimension_type  all)
inline

Definition at line 649 of file geometrical.hpp.

◆ basic_box_areas() [3/7]

template<typename DimensionType >
neogfx::basic_box_areas< DimensionType >::basic_box_areas ( dimension_type  left,
dimension_type  top,
dimension_type  right,
dimension_type  bottom 
)
inline

Definition at line 650 of file geometrical.hpp.

◆ basic_box_areas() [4/7]

template<typename DimensionType >
neogfx::basic_box_areas< DimensionType >::basic_box_areas ( dimension_type  leftRight,
dimension_type  topBottom 
)
inline

Definition at line 651 of file geometrical.hpp.

◆ basic_box_areas() [5/7]

template<typename DimensionType >
neogfx::basic_box_areas< DimensionType >::basic_box_areas ( const size_type aDimensions)
inline

Definition at line 652 of file geometrical.hpp.

◆ basic_box_areas() [6/7]

template<typename DimensionType >
neogfx::basic_box_areas< DimensionType >::basic_box_areas ( const point_type aTopLeft,
const point_type aBottomRight 
)
inline

Definition at line 653 of file geometrical.hpp.

◆ basic_box_areas() [7/7]

template<typename DimensionType >
template<typename DimensionType2 >
neogfx::basic_box_areas< DimensionType >::basic_box_areas ( const basic_box_areas< DimensionType2 > &  other)
inline

Definition at line 655 of file geometrical.hpp.

Member Function Documentation

◆ bottom_right()

template<typename DimensionType >
point_type neogfx::basic_box_areas< DimensionType >::bottom_right ( ) const
inline

Definition at line 676 of file geometrical.hpp.

◆ ceil()

template<typename DimensionType >
self_type neogfx::basic_box_areas< DimensionType >::ceil ( ) const
inline

Definition at line 679 of file geometrical.hpp.

◆ floor()

template<typename DimensionType >
self_type neogfx::basic_box_areas< DimensionType >::floor ( ) const
inline

Definition at line 680 of file geometrical.hpp.

◆ operator*=() [1/2]

template<typename DimensionType >
self_type & neogfx::basic_box_areas< DimensionType >::operator*= ( const self_type &  other)
inline

Definition at line 665 of file geometrical.hpp.

◆ operator*=() [2/2]

template<typename DimensionType >
self_type & neogfx::basic_box_areas< DimensionType >::operator*= ( dimension_type  amount)
inline

Definition at line 666 of file geometrical.hpp.

◆ operator+=() [1/2]

template<typename DimensionType >
self_type & neogfx::basic_box_areas< DimensionType >::operator+= ( const self_type &  other)
inline

Definition at line 661 of file geometrical.hpp.

◆ operator+=() [2/2]

template<typename DimensionType >
self_type & neogfx::basic_box_areas< DimensionType >::operator+= ( dimension_type  amount)
inline

Definition at line 662 of file geometrical.hpp.

◆ operator-()

template<typename DimensionType >
self_type neogfx::basic_box_areas< DimensionType >::operator- ( ) const
inline

Definition at line 660 of file geometrical.hpp.

◆ operator-=() [1/2]

template<typename DimensionType >
self_type & neogfx::basic_box_areas< DimensionType >::operator-= ( const self_type &  other)
inline

Definition at line 663 of file geometrical.hpp.

◆ operator-=() [2/2]

template<typename DimensionType >
self_type & neogfx::basic_box_areas< DimensionType >::operator-= ( dimension_type  amount)
inline

Definition at line 664 of file geometrical.hpp.

◆ operator/=() [1/2]

template<typename DimensionType >
self_type & neogfx::basic_box_areas< DimensionType >::operator/= ( const self_type &  other)
inline

Definition at line 667 of file geometrical.hpp.

◆ operator/=() [2/2]

template<typename DimensionType >
self_type & neogfx::basic_box_areas< DimensionType >::operator/= ( dimension_type  amount)
inline

Definition at line 668 of file geometrical.hpp.

◆ operator<=>()

template<typename DimensionType >
auto neogfx::basic_box_areas< DimensionType >::operator<=> ( const self_type &  ) const
default

◆ round()

template<typename DimensionType >
self_type neogfx::basic_box_areas< DimensionType >::round ( ) const
inline

Definition at line 681 of file geometrical.hpp.

◆ size()

template<typename DimensionType >
size_type neogfx::basic_box_areas< DimensionType >::size ( ) const
inline

Definition at line 677 of file geometrical.hpp.

◆ top_left()

template<typename DimensionType >
point_type neogfx::basic_box_areas< DimensionType >::top_left ( ) const
inline

Definition at line 675 of file geometrical.hpp.

◆ with_bottom()

template<typename DimensionType >
self_type neogfx::basic_box_areas< DimensionType >::with_bottom ( dimension_type  d) const
inline

Definition at line 673 of file geometrical.hpp.

◆ with_left()

template<typename DimensionType >
self_type neogfx::basic_box_areas< DimensionType >::with_left ( dimension_type  d) const
inline

Definition at line 670 of file geometrical.hpp.

◆ with_right()

template<typename DimensionType >
self_type neogfx::basic_box_areas< DimensionType >::with_right ( dimension_type  d) const
inline

Definition at line 672 of file geometrical.hpp.

◆ with_top()

template<typename DimensionType >
self_type neogfx::basic_box_areas< DimensionType >::with_top ( dimension_type  d) const
inline

Definition at line 671 of file geometrical.hpp.

Member Data Documentation

◆ bottom

template<typename DimensionType >
dimension_type neogfx::basic_box_areas< DimensionType >::bottom

Definition at line 687 of file geometrical.hpp.

◆ left

template<typename DimensionType >
dimension_type neogfx::basic_box_areas< DimensionType >::left

Definition at line 684 of file geometrical.hpp.

◆ right

template<typename DimensionType >
dimension_type neogfx::basic_box_areas< DimensionType >::right

Definition at line 686 of file geometrical.hpp.

◆ top

template<typename DimensionType >
dimension_type neogfx::basic_box_areas< DimensionType >::top

Definition at line 685 of file geometrical.hpp.


The documentation for this class was generated from the following file: