bWidgets
Core widget toolkit designed for Blender
bWidgets::bwRectangle< T > Class Template Reference

#include <bwRectangle.h>

Public Member Functions

 bwRectangle (const T xmin=0, const T xmax=0, const T ymin=0, const T ymax=0)
 
template<typename U >
 bwRectangle (const bwRectangle< U > &rect)
 
template<typename U >
 bwRectangle (bwRectangle< U > &&rect)
 
void set (const T _xmin, const T width, const T _ymin, const T height)
 
void resize (const T pixel)
 
template<typename U >
bool isCoordinateInside (const U x, const U y) const
 
bool isEmpty () const
 
width () const
 
height () const
 
centerX () const
 
centerY () const
 
void scale (float scale)
 
void clamp (const bwRectangle< T > boundary)
 

Public Attributes

xmin
 
xmax
 
ymin
 
ymax
 

Constructor & Destructor Documentation

◆ bwRectangle() [1/3]

template<typename T >
bWidgets::bwRectangle< T >::bwRectangle ( const T  xmin = 0,
const T  xmax = 0,
const T  ymin = 0,
const T  ymax = 0 
)
inline

◆ bwRectangle() [2/3]

template<typename T >
template<typename U >
bWidgets::bwRectangle< T >::bwRectangle ( const bwRectangle< U > &  rect)
inline

◆ bwRectangle() [3/3]

template<typename T >
template<typename U >
bWidgets::bwRectangle< T >::bwRectangle ( bwRectangle< U > &&  rect)
inline

Member Function Documentation

◆ centerX()

template<typename T >
T bWidgets::bwRectangle< T >::centerX ( ) const
inline

◆ centerY()

template<typename T >
T bWidgets::bwRectangle< T >::centerY ( ) const
inline

◆ clamp()

template<typename T >
void bWidgets::bwRectangle< T >::clamp ( const bwRectangle< T >  boundary)
inline

◆ height()

template<typename T >
T bWidgets::bwRectangle< T >::height ( ) const
inline

◆ isCoordinateInside()

template<typename T >
template<typename U >
bool bWidgets::bwRectangle< T >::isCoordinateInside ( const U  x,
const U  y 
) const
inline

◆ isEmpty()

template<typename T >
bool bWidgets::bwRectangle< T >::isEmpty ( ) const
inline

◆ resize()

template<typename T >
void bWidgets::bwRectangle< T >::resize ( const T  pixel)
inline

Resize the rectangle by adding pixel to each side.

◆ scale()

template<typename T >
void bWidgets::bwRectangle< T >::scale ( float  scale)
inline

◆ set()

template<typename T >
void bWidgets::bwRectangle< T >::set ( const T  _xmin,
const T  width,
const T  _ymin,
const T  height 
)
inline

◆ width()

template<typename T >
T bWidgets::bwRectangle< T >::width ( ) const
inline

Member Data Documentation

◆ xmax

template<typename T >
T bWidgets::bwRectangle< T >::xmax

◆ xmin

template<typename T >
T bWidgets::bwRectangle< T >::xmin

◆ ymax

template<typename T >
T bWidgets::bwRectangle< T >::ymax

◆ ymin

template<typename T >
T bWidgets::bwRectangle< T >::ymin

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