# synfig::Rect Class Reference

`#include <rect.h>`

List of all members.

## 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)
Rect & | expand (const Point &max)
Rect & | expand (const Real &r)
Rect & | expand_x (const Real &r)
Rect & | expand_y (const Real &r)
Rect & | set (const Point &min, const Point &max)
Point | get_min () const
Point | get_max () const
bool | is_inside (const Point &x)
Real | area () const
Rect & | operator+= (const Vector &rhs)
Rect & | operator-= (const Vector &rhs)
Rect & | operator*= (const Real &rhs)
Rect & | operator/= (Real rhs)
Rect & | operator &= (const Rect &rhs)
Rect & | operator|= (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

## 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 ()

## Constructor & Destructor Documentation

synfig::Rect::Rect | ( |  | ) | `[inline]`

Referenced by full_plane(), horizontal_strip(), operator &(), operator*(), operator+(), operator-(), operator/(), operator|(), vertical_strip(), and zero().

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]`

References Rect().

Referenced by synfig::Layer_SphereDistort::get_bounding_rect(), Layer_Freetype::get_bounding_rect(), synfig::Layer_Shape::get_bounding_rect(), synfig::Layer::get_bounding_rect(), synfig::Transform::perform(), and synfig::Transform::unperform().

Rect Rect::horizontal_strip | ( | const value_type & | y1,
|  | const value_type & | y2 |
| ) |  |  | `[static]`

References Rect().

Referenced by synfig::Layer_SphereDistort::get_bounding_rect().

Rect Rect::vertical_strip | ( | const value_type & | x1,
|  | const value_type & | x2 |
| ) |  |  | `[static]`

References Rect().

Referenced by synfig::Layer_SphereDistort::get_bounding_rect().

static Rect synfig::Rect::zero | ( |  | ) | `[inline, static]`

References Rect().

Referenced by synfig::Context::get_full_bounding_rect(), and operator &=().

void synfig::Rect::set_point | ( | const Point & | max | ) | `[inline]`

Referenced by synfig::Layer_SphereDistort::accelerated_render(), synfig::Layer_Shape::accelerated_render(), intersect_scurve(), and Rect().

Rect& synfig::Rect::expand | ( | const Point & | max | ) | `[inline]`

Referenced by Warp::accelerated_render(), synfig::Layer_SphereDistort::accelerated_render(), synfig::Layer_Shape::accelerated_render(), Plant::calc_bounding_rect(), synfig::Layer_Shape::get_bounding_rect(), intersect_scurve(), and Rect().

Rect& synfig::Rect::expand | ( | const Real & | r | ) | `[inline]`

Rect& synfig::Rect::expand_x | ( | const Real & | r | ) | `[inline]`

Referenced by Plant::calc_bounding_rect(), NoiseDistort::get_bounding_rect(), Blur_Layer::get_full_bounding_rect(), and Layer_Bevel::get_full_bounding_rect().

Rect& synfig::Rect::expand_y | ( | const Real & | r | ) | `[inline]`

Referenced by Plant::calc_bounding_rect(), NoiseDistort::get_bounding_rect(), Blur_Layer::get_full_bounding_rect(), and Layer_Bevel::get_full_bounding_rect().

Rect& synfig::Rect::set | ( | const Point & | min,
|  | const Point & | max |
| ) |  |  | `[inline]`

Point synfig::Rect::get_min | ( |  | ) | const`[inline]`

Referenced by Warp::accelerated_render(), synfig::Layer_Shape::get_bounding_rect(), operator!=(), operator==(), synfig::Transform::perform(), synfig::TransformStack::perform(), synfig::Transform::unperform(), and synfig::TransformStack::unperform().

Point synfig::Rect::get_max | ( |  | ) | const`[inline]`

Referenced by Warp::accelerated_render(), synfig::Layer_Shape::get_bounding_rect(), operator!=(), operator==(), synfig::Transform::perform(), synfig::TransformStack::perform(), synfig::Transform::unperform(), and synfig::TransformStack::unperform().

bool synfig::Rect::is_inside | ( | const Point & | x | ) | `[inline]`

Referenced by Warp::accelerated_render(), Warp::get_color(), and Warp::hit_check().

Real synfig::Rect::area | ( |  | ) | const`[inline]`

Referenced by operator &=(), operator|=(), synfig::Transform::perform(), and synfig::Transform::unperform().

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 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]`

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

- rect.h
- rect.cpp