# synfig::Context Class Reference

`#include <context.h>`

List of all members.

## Public Member Functions

| Context ()
| Context (const CanvasBase::const_iterator &x)
Context | operator= (const CanvasBase::const_iterator &x)
Color | get_color (const Point &pos) const
bool | accelerated_render (Surface *surface, int quality, const RendDesc &renddesc, ProgressCallback *cb) const
void | set_time (Time time) const
void | set_time (Time time, const Vector &pos) const
Rect | get_full_bounding_rect () const
etl::handle< Layer > | hit_check (const Point &point) const

## Detailed Description

Todo:
  writeme

See also:
  Layer, Canvas

## Constructor & Destructor Documentation

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

Referenced by accelerated_render().

synfig::Context::Context | ( | const CanvasBase::const_iterator & | x | ) | `[inline]`

## Member Function Documentation

Context synfig::Context::operator= | ( | const CanvasBase::const_iterator & | x | ) | `[inline]`

Color Context::get_color | ( | const Point & | pos | ) | const

Todo:
  write me

References synfig::Color::alpha().

Referenced by Warp::accelerated_render(), synfig::Layer_SphereDistort::accelerated_render(), CurveWarp::accelerated_render(), Zoom::get_color(), XORPattern::get_color(), Warp::get_color(), Twirl::get_color(), Translate::get_color(), Layer_TimeLoop::get_color(), synfig::Layer_Stretch::get_color(), SpiralGradient::get_color(), synfig::Layer_SphereDistort::get_color(), SimpleCircle::get_color(), Layer_Shade::get_color(), Rotate::get_color(), Rectangle::get_color(), RadialGradient::get_color(), RadialBlur::get_color(), Noise::get_color(), Metaballs::get_color(), Mandelbrot::get_color(), Layer_Freetype::get_color(), LumaKey::get_color(), LinearGradient::get_color(), synfig::Layer_SolidColor::get_color(), synfig::Layer_Shape::get_color(), synfig::Layer_PasteCanvas::get_color(), synfig::Layer_MotionBlur::get_color(), synfig::Layer_Mime::get_color(), synfig::Layer_Duplicate::get_color(), synfig::Layer_Bitmap::get_color(), synfig::Layer::get_color(), Julia::get_color(), InsideOut::get_color(), Halftone3::get_color(), Halftone2::get_color(), FilledRect::get_color(), NoiseDistort::get_color(), CurveWarp::get_color(), CurveGradient::get_color(), ConicalGradient::get_color(), synfig::Layer_ColorCorrect::get_color(), synfig::Layer_Clamp::get_color(), Circle::get_color(), CheckerBoard::get_color(), Blur_Layer::get_color(), Layer_Bevel::get_color(), synfig::parametric_render(), synfig::render(), and synfig::render_threaded().

bool Context::accelerated_render | ( | Surface * | surface,
|  | int | quality,
|  | const RendDesc & | renddesc,
|  | ProgressCallback * | cb |
| ) |  |  | const

Todo:
  write me

References accelerated_render(), synfig::Color::BLEND_STRAIGHT, synfig::Surface::blit_to(), synfig::Surface::clear(), Context(), synfig::error(), synfig::RendDesc::get_h(), synfig::RendDesc::get_rect(), synfig::RendDesc::get_w(), synfig::info(), and synfig::Color::is_straight().

Referenced by Zoom::accelerated_render(), Warp::accelerated_render(), Translate::accelerated_render(), Layer_TimeLoop::accelerated_render(), SuperSample::accelerated_render(), synfig::Layer_Stretch::accelerated_render(), SpiralGradient::accelerated_render(), synfig::Layer_SphereDistort::accelerated_render(), Layer_Shade::accelerated_render(), Rotate::accelerated_render(), Rectangle::accelerated_render(), RadialGradient::accelerated_render(), RadialBlur::accelerated_render(), Plant::accelerated_render(), Noise::accelerated_render(), Metaballs::accelerated_render(), Layer_Freetype::accelerated_render(), LumaKey::accelerated_render(), LinearGradient::accelerated_render(), synfig::Layer_SolidColor::accelerated_render(), synfig::Layer_Shape::accelerated_render(), synfig::Layer_PasteCanvas::accelerated_render(), synfig::Layer_MotionBlur::accelerated_render(), synfig::Layer_Mime::accelerated_render(), synfig::Layer_Duplicate::accelerated_render(), synfig::Layer_Composite::accelerated_render(), synfig::Layer_Bitmap::accelerated_render(), Halftone3::accelerated_render(), Halftone2::accelerated_render(), FilledRect::accelerated_render(), CurveWarp::accelerated_render(), CurveGradient::accelerated_render(), accelerated_render(), ConicalGradient::accelerated_render(), synfig::Layer_ColorCorrect::accelerated_render(), synfig::Layer_Clamp::accelerated_render(), Circle::accelerated_render(), CheckerBoard::accelerated_render(), Blur_Layer::accelerated_render(), Layer_Bevel::accelerated_render(), and synfig::Target_Scanline::render().

void Context::set_time | ( | Time | time | ) | const

Todo:
  write me

Referenced by synfig::Layer_MotionBlur::accelerated_render(), synfig::Layer_Duplicate::accelerated_render(), synfig::Layer_Duplicate::get_color(), Layer_TimeLoop::set_time(), Region::set_time(), Outline::set_time(), Noise::set_time(), synfig::Layer_PasteCanvas::set_time(), synfig::Layer_MotionBlur::set_time(), synfig::Layer_Duplicate::set_time(), synfig::Layer::set_time(), Import::set_time(), NoiseDistort::set_time(), set_time(), and synfig::Canvas::set_time().

void Context::set_time | ( | Time | time,
|  | const Vector & | pos |
| ) |  |  | const

Todo:
  This needs to be documented further.

References set_time().

Rect Context::get_full_bounding_rect | ( |  | ) | const

References synfig::Rect::zero().

Referenced by Warp::accelerated_render(), synfig::Layer_PasteCanvas::accelerated_render(), SuperSample::get_bounding_rect(), Plant::get_bounding_rect(), LumaKey::get_bounding_rect(), NoiseDistort::get_bounding_rect(), Zoom::get_full_bounding_rect(), Warp::get_full_bounding_rect(), Translate::get_full_bounding_rect(), synfig::Layer_Stretch::get_full_bounding_rect(), Layer_Shade::get_full_bounding_rect(), Rotate::get_full_bounding_rect(), Rectangle::get_full_bounding_rect(), synfig::Layer_Composite::get_full_bounding_rect(), synfig::Layer::get_full_bounding_rect(), synfig::Layer_ColorCorrect::get_full_bounding_rect(), synfig::Layer_Clamp::get_full_bounding_rect(), Circle::get_full_bounding_rect(), Blur_Layer::get_full_bounding_rect(), and Layer_Bevel::get_full_bounding_rect().

etl::handle< Layer > Context::hit_check | ( | const Point & | point | ) | const

Todo:
  This needs to be documented further.

References hit_check().

Referenced by synfig::Canvas::find_layer(), Zoom::hit_check(), XORPattern::hit_check(), Warp::hit_check(), Twirl::hit_check(), Translate::hit_check(), synfig::Layer_Stretch::hit_check(), SpiralGradient::hit_check(), synfig::Layer_SphereDistort::hit_check(), SimpleCircle::hit_check(), Rotate::hit_check(), Rectangle::hit_check(), RadialGradient::hit_check(), Noise::hit_check(), Metaballs::hit_check(), LumaKey::hit_check(), LinearGradient::hit_check(), synfig::Layer_SolidColor::hit_check(), synfig::Layer_Shape::hit_check(), synfig::Layer_PasteCanvas::hit_check(), synfig::Layer_Bitmap::hit_check(), synfig::Layer::hit_check(), InsideOut::hit_check(), FilledRect::hit_check(), NoiseDistort::hit_check(), CurveWarp::hit_check(), CurveGradient::hit_check(), hit_check(), ConicalGradient::hit_check(), Circle::hit_check(), and CheckerBoard::hit_check().

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

- context.h
- context.cpp