synfig-core  1.0.3
Public Member Functions | Static Public Member Functions | List of all members
synfig::Rect Class Reference

#include <rect.h>

Public Member Functions

 Rect ()
 Rect (const Point &x)
 Rect (const Point &min, const Point &max)
 Rect (const value_type &x1, const value_type &y1)
 Rect (const value_type &x1, const value_type &y1, const value_type &x2, const value_type &y2)
void set_point (const Point &max)
Rectexpand (const Point &max)
Rectexpand (const Real &r)
Rectexpand_x (const Real &r)
Rectexpand_y (const Real &r)
Rectset (const Point &min, const Point &max)
Point get_min () const
Point get_max () const
bool is_inside (const Point &x)
Real area () const
Rectoperator+= (const Vector &rhs)
Rectoperator-= (const Vector &rhs)
Rectoperator*= (const Real &rhs)
Rectoperator/= (Real rhs)
Rectoperator&= (const Rect &rhs)
Rectoperator|= (const Rect &rhs)
Rect operator+ (const Vector &rhs) const
Rect operator- (const Vector &rhs) const
Rect operator* (const Real &rhs) const
Rect operator/ (const Real &rhs) const
Rect operator& (const Rect &rhs) const
Rect operator| (const Rect &rhs) const
bool operator&& (const Rect &rhs) const
bool operator== (const Rect &rhs) const
bool operator!= (const Rect &rhs) const
bool is_valid () const
Rect multiply_coords (const Vector &rhs) const
Rect divide_coords (const Vector &rhs) const

Static Public Member Functions

static Rect full_plane ()
static Rect horizontal_strip (const value_type &y1, const value_type &y2)
static Rect vertical_strip (const value_type &x1, const value_type &x2)
static Rect zero ()
static Rect infinite ()

Constructor & Destructor Documentation

synfig::Rect::Rect ( )
inline
synfig::Rect::Rect ( const Point x)
inline

References set_point().

synfig::Rect::Rect ( const Point min,
const Point max 
)
inline

References expand(), and set_point().

synfig::Rect::Rect ( const value_type &  x1,
const value_type &  y1 
)
inline

References set_point().

synfig::Rect::Rect ( const value_type &  x1,
const value_type &  y1,
const value_type &  x2,
const value_type &  y2 
)
inline

References expand(), and set_point().

Member Function Documentation

Rect Rect::full_plane ( )
static
Rect Rect::horizontal_strip ( const value_type &  y1,
const value_type &  y2 
)
static
Rect Rect::vertical_strip ( const value_type &  x1,
const value_type &  x2 
)
static
static Rect synfig::Rect::zero ( )
inlinestatic

References Rect().

Referenced by operator&=().

static Rect synfig::Rect::infinite ( )
inlinestatic
void synfig::Rect::set_point ( const Point max)
inline
Rect& synfig::Rect::expand ( const Point max)
inline
Rect& synfig::Rect::expand ( const Real r)
inline
Rect& synfig::Rect::expand_x ( const Real r)
inline
Rect& synfig::Rect::expand_y ( const Real r)
inline
Rect& synfig::Rect::set ( const Point min,
const Point max 
)
inline
Point synfig::Rect::get_min ( ) const
inline
Point synfig::Rect::get_max ( ) const
inline
bool synfig::Rect::is_inside ( const Point x)
inline
Real synfig::Rect::area ( ) const
inline
Rect& synfig::Rect::operator+= ( const Vector rhs)
inline
Rect& synfig::Rect::operator-= ( const Vector rhs)
inline
Rect& synfig::Rect::operator*= ( const Real rhs)
inline
Rect& synfig::Rect::operator/= ( Real  rhs)
inline
Rect& synfig::Rect::operator&= ( const Rect rhs)
inline

References area(), and zero().

Rect& synfig::Rect::operator|= ( const Rect rhs)
inline

References area().

Rect synfig::Rect::operator+ ( const Vector rhs) const
inline

References Rect().

Rect synfig::Rect::operator- ( const Vector rhs) const
inline

References Rect().

Rect synfig::Rect::operator* ( const Real rhs) const
inline

References Rect().

Rect synfig::Rect::operator/ ( const Real rhs) const
inline

References Rect().

Rect synfig::Rect::operator& ( const Rect rhs) const
inline

References Rect().

Rect synfig::Rect::operator| ( const Rect rhs) const
inline

References Rect().

bool synfig::Rect::operator&& ( const Rect rhs) const
inline

References synfig::intersect().

bool synfig::Rect::operator== ( const Rect rhs) const
inline

References get_max(), and get_min().

bool synfig::Rect::operator!= ( const Rect rhs) const
inline

References get_max(), and get_min().

bool synfig::Rect::is_valid ( ) const
inline
Rect synfig::Rect::multiply_coords ( const Vector rhs) const
inline

References Rect().

Rect synfig::Rect::divide_coords ( const Vector rhs) const
inline

References Rect().


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