LibreOffice Module basegfx (master) 1
Public Member Functions | List of all members
basegfx::Size2D< TYPE > Class Template Reference

#include <Size2D.hxx>

Inheritance diagram for basegfx::Size2D< TYPE >:
[legend]
Collaboration diagram for basegfx::Size2D< TYPE >:
[legend]

Public Member Functions

 Size2D (TYPE width, TYPE height)
 
 Size2D (Tuple2D< TYPE > const &rTuple)
 
TYPE getWidth () const
 
TYPE getHeight () const
 
void setWidth (TYPE const &rWidth)
 
void setHeight (TYPE const &rHeight)
 
bool operator== (Size2D< TYPE > const &rSize) const
 
bool operator!= (Size2D< TYPE > const &rSize) const
 
Size2D< TYPE > & operator-= (Size2D< TYPE > const &rSize)
 
Size2D< TYPE > & operator+= (Size2D< TYPE > const &rSize)
 
Size2D< TYPE > & operator/= (Size2D< TYPE > const &rSize)
 
Size2D< TYPE > & operator*= (Size2D< TYPE > const &rSize)
 
Size2D< TYPE > & operator*= (TYPE value)
 
Size2D< TYPE > & operator/= (TYPE value)
 
Size2D< TYPE > operator- (void) const
 

Additional Inherited Members

- Protected Member Functions inherited from basegfx::Tuple2D< TYPE >
 Tuple2D (TYPE x, TYPE y)
 Create a 2D Tuple. More...
 
double get (Axis2D eAxis)
 
void set (Axis2D eAxis, TYPE fValue)
 
TYPE getX () const
 Get X-Coordinate of 2D Tuple. More...
 
TYPE getY () const
 Get Y-Coordinate of 2D Tuple. More...
 
void setX (TYPE fX)
 Set X-Coordinate of 2D Tuple. More...
 
void setY (TYPE fY)
 Set Y-Coordinate of 2D Tuple. More...
 
void adjustX (TYPE fX)
 Adjust X-Coordinate of 2D Tuple. More...
 
void adjustY (TYPE fY)
 Adjust Y-Coordinate of 2D Tuple. More...
 
template<typename T = TYPE, std::enable_if_t< std::is_integral_v< T >, int > = 0>
bool equal (const Tuple2D< TYPE > &rTup) const
 
template<typename T = TYPE, std::enable_if_t< std::is_floating_point_v< T >, int > = 0>
bool equal (const Tuple2D< TYPE > &rTup) const
 
template<typename T = TYPE, std::enable_if_t< std::is_integral_v< T >, int > = 0>
bool equalZero () const
 
template<typename T = TYPE, std::enable_if_t< std::is_floating_point_v< T >, int > = 0>
bool equalZero () const
 
Tuple2D< TYPE > & operator+= (const Tuple2D< TYPE > &rTup)
 
Tuple2D< TYPE > & operator-= (const Tuple2D< TYPE > &rTup)
 
Tuple2D< TYPE > & operator/= (const Tuple2D< TYPE > &rTup)
 
Tuple2D< TYPE > & operator*= (const Tuple2D< TYPE > &rTup)
 
Tuple2D< TYPE > & operator*= (TYPE t)
 
Tuple2D< TYPE > & operator/= (TYPE t)
 
Tuple2D< TYPE > operator- (void) const
 
bool operator== (const Tuple2D< TYPE > &rTup) const
 
bool operator!= (const Tuple2D< TYPE > &rTup) const
 
- Protected Attributes inherited from basegfx::Tuple2D< TYPE >
union {
   struct {
      TYPE   mnX
 
      TYPE   mnY
 
   } 
 
   struct {
      TYPE   mfX
 
      TYPE   mfY
 
   } 
 
}; 
 

Detailed Description

template<typename TYPE>
class basegfx::Size2D< TYPE >

Definition at line 17 of file Size2D.hxx.

Constructor & Destructor Documentation

◆ Size2D() [1/2]

template<typename TYPE >
basegfx::Size2D< TYPE >::Size2D ( TYPE  width,
TYPE  height 
)
inline

Definition at line 20 of file Size2D.hxx.

References TYPE.

◆ Size2D() [2/2]

template<typename TYPE >
basegfx::Size2D< TYPE >::Size2D ( Tuple2D< TYPE > const &  rTuple)
inline

Definition at line 25 of file Size2D.hxx.

References TYPE.

Member Function Documentation

◆ getHeight()

template<typename TYPE >
TYPE basegfx::Size2D< TYPE >::getHeight ( ) const
inline

Definition at line 32 of file Size2D.hxx.

References basegfx::Tuple2D< TYPE >::getY(), and TYPE.

◆ getWidth()

template<typename TYPE >
TYPE basegfx::Size2D< TYPE >::getWidth ( ) const
inline

Definition at line 30 of file Size2D.hxx.

References basegfx::Tuple2D< TYPE >::getX(), and TYPE.

◆ operator!=()

template<typename TYPE >
bool basegfx::Size2D< TYPE >::operator!= ( Size2D< TYPE > const &  rSize) const
inline

Definition at line 40 of file Size2D.hxx.

References basegfx::Tuple2D< TYPE >::operator!=().

◆ operator*=() [1/2]

template<typename TYPE >
Size2D< TYPE > & basegfx::Size2D< TYPE >::operator*= ( Size2D< TYPE > const &  rSize)
inline

Definition at line 60 of file Size2D.hxx.

References basegfx::Tuple2D< TYPE >::operator*=().

◆ operator*=() [2/2]

template<typename TYPE >
Size2D< TYPE > & basegfx::Size2D< TYPE >::operator*= ( TYPE  value)
inline

Definition at line 66 of file Size2D.hxx.

References basegfx::Tuple2D< TYPE >::operator*=(), and value.

◆ operator+=()

template<typename TYPE >
Size2D< TYPE > & basegfx::Size2D< TYPE >::operator+= ( Size2D< TYPE > const &  rSize)
inline

Definition at line 48 of file Size2D.hxx.

References basegfx::Tuple2D< TYPE >::operator+=().

◆ operator-()

template<typename TYPE >
Size2D< TYPE > basegfx::Size2D< TYPE >::operator- ( void  ) const
inline

Definition at line 78 of file Size2D.hxx.

References basegfx::Tuple2D< TYPE >::operator-().

◆ operator-=()

template<typename TYPE >
Size2D< TYPE > & basegfx::Size2D< TYPE >::operator-= ( Size2D< TYPE > const &  rSize)
inline

Definition at line 42 of file Size2D.hxx.

References basegfx::Tuple2D< TYPE >::operator-=().

◆ operator/=() [1/2]

template<typename TYPE >
Size2D< TYPE > & basegfx::Size2D< TYPE >::operator/= ( Size2D< TYPE > const &  rSize)
inline

Definition at line 54 of file Size2D.hxx.

References basegfx::Tuple2D< TYPE >::operator/=().

◆ operator/=() [2/2]

template<typename TYPE >
Size2D< TYPE > & basegfx::Size2D< TYPE >::operator/= ( TYPE  value)
inline

Definition at line 72 of file Size2D.hxx.

References basegfx::Tuple2D< TYPE >::operator/=(), and value.

◆ operator==()

template<typename TYPE >
bool basegfx::Size2D< TYPE >::operator== ( Size2D< TYPE > const &  rSize) const
inline

Definition at line 38 of file Size2D.hxx.

References basegfx::Tuple2D< TYPE >::operator==().

◆ setHeight()

template<typename TYPE >
void basegfx::Size2D< TYPE >::setHeight ( TYPE const &  rHeight)
inline

Definition at line 36 of file Size2D.hxx.

References basegfx::Tuple2D< TYPE >::setY().

◆ setWidth()

template<typename TYPE >
void basegfx::Size2D< TYPE >::setWidth ( TYPE const &  rWidth)
inline

Definition at line 34 of file Size2D.hxx.

References basegfx::Tuple2D< TYPE >::setX().


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