1 /* === S I N F G =========================================================== */
3 ** \brief Template Header
5 ** $Id: context.h,v 1.2 2005/01/24 03:08:17 darco Exp $
8 ** Copyright (c) 2002 Robert B. Quattlebaum Jr.
10 ** This software and associated documentation
11 ** are CONFIDENTIAL and PROPRIETARY property of
12 ** the above-mentioned copyright holder.
14 ** You may not copy, print, publish, or in any
15 ** other way distribute this software without
16 ** a prior written agreement with
17 ** the copyright holder.
20 /* ========================================================================= */
22 /* === S T A R T =========================================================== */
24 #ifndef __SINFG_CONTEXT_H
25 #define __SINFG_CONTEXT_H
27 /* === H E A D E R S ======================================================= */
29 #include "canvasbase.h"
32 /* === M A C R O S ========================================================= */
34 /* === T Y P E D E F S ===================================================== */
36 /* === C L A S S E S & S T R U C T S ======================================= */
45 class ProgressCallback;
52 ** \see Layer, Canvas */
53 class Context : public CanvasBase::const_iterator
58 Context(const CanvasBase::const_iterator &x):CanvasBase::const_iterator(x) { }
60 Context operator=(const CanvasBase::const_iterator &x)
61 { return CanvasBase::const_iterator::operator=(x); }
64 Color get_color(const Point &pos)const;
67 bool accelerated_render(Surface *surface,int quality, const RendDesc &renddesc, ProgressCallback *cb) const;
70 void set_time(Time time)const;
73 void set_time(Time time,const Vector &pos)const;
75 Rect get_full_bounding_rect()const;
78 virtual etl::handle<Layer> hit_check(const Point &point)const;
80 }; // END of class Context
82 }; // END of namespace sinfg
84 /* === E N D =============================================================== */