neoGFX
Cross-platform C++ app/game engine
neogfx::basic_margins< DimensionType > Class Template Reference

#include <geometrical.hpp>

Public Types

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_margins ()
 
 basic_margins (dimension_type all)
 
 basic_margins (dimension_type left, dimension_type top, dimension_type right, dimension_type bottom)
 
 basic_margins (dimension_type leftRight, dimension_type topBottom)
 
template<typename DimensionType2 >
 basic_margins (const basic_margins< DimensionType2 > &other)
 
bool operator== (const self_type &other) const
 
bool operator!= (const self_type &other) const
 
self_type operator- () const
 
self_typeoperator+= (const self_type &other)
 
self_typeoperator+= (dimension_type amount)
 
self_typeoperator-= (const self_type &other)
 
self_typeoperator-= (dimension_type amount)
 
self_typeoperator*= (const self_type &other)
 
self_typeoperator*= (dimension_type amount)
 
self_typeoperator/= (const self_type &other)
 
self_typeoperator/= (dimension_type amount)
 
point_type top_left () 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_margins< DimensionType >

Definition at line 564 of file geometrical.hpp.

Member Typedef Documentation

◆ coordinate_type

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

Definition at line 570 of file geometrical.hpp.

◆ dimension_type

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

Definition at line 569 of file geometrical.hpp.

◆ point_type

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

Definition at line 571 of file geometrical.hpp.

◆ size_type

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

Definition at line 572 of file geometrical.hpp.

Constructor & Destructor Documentation

◆ basic_margins() [1/5]

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

Definition at line 575 of file geometrical.hpp.

◆ basic_margins() [2/5]

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

Definition at line 576 of file geometrical.hpp.

◆ basic_margins() [3/5]

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

Definition at line 577 of file geometrical.hpp.

◆ basic_margins() [4/5]

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

Definition at line 578 of file geometrical.hpp.

◆ basic_margins() [5/5]

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

Definition at line 580 of file geometrical.hpp.

Member Function Documentation

◆ ceil()

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

Definition at line 599 of file geometrical.hpp.

◆ floor()

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

Definition at line 600 of file geometrical.hpp.

◆ operator!=()

template<typename DimensionType>
bool neogfx::basic_margins< DimensionType >::operator!= ( const self_type other) const
inline

Definition at line 585 of file geometrical.hpp.

◆ operator*=() [1/2]

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

Definition at line 591 of file geometrical.hpp.

◆ operator*=() [2/2]

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

Definition at line 592 of file geometrical.hpp.

◆ operator+=() [1/2]

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

Definition at line 587 of file geometrical.hpp.

◆ operator+=() [2/2]

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

Definition at line 588 of file geometrical.hpp.

◆ operator-()

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

Definition at line 586 of file geometrical.hpp.

◆ operator-=() [1/2]

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

Definition at line 589 of file geometrical.hpp.

◆ operator-=() [2/2]

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

Definition at line 590 of file geometrical.hpp.

◆ operator/=() [1/2]

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

Definition at line 593 of file geometrical.hpp.

◆ operator/=() [2/2]

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

Definition at line 594 of file geometrical.hpp.

◆ operator==()

template<typename DimensionType>
bool neogfx::basic_margins< DimensionType >::operator== ( const self_type other) const
inline

Definition at line 584 of file geometrical.hpp.

◆ round()

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

Definition at line 601 of file geometrical.hpp.

◆ size()

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

Definition at line 597 of file geometrical.hpp.

◆ top_left()

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

Definition at line 596 of file geometrical.hpp.

Member Data Documentation

◆ bottom

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

Definition at line 607 of file geometrical.hpp.

◆ left

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

Definition at line 604 of file geometrical.hpp.

◆ right

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

Definition at line 606 of file geometrical.hpp.

◆ top

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

Definition at line 605 of file geometrical.hpp.


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