1 /* === S Y N F I G ========================================================= */ 2 /*! \file synfig/rendering/common/task/taskblur.h 3 ** \brief TaskBlur Header 4 ** 5 ** $Id$ 6 ** 7 ** \legal 8 ** ......... ... 2015 Ivan Mahonin 9 ** 10 ** This package is free software; you can redistribute it and/or 11 ** modify it under the terms of the GNU General Public License as 12 ** published by the Free Software Foundation; either version 2 of 13 ** the License, or (at your option) any later version. 14 ** 15 ** This package is distributed in the hope that it will be useful, 16 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 17 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 ** General Public License for more details. 19 ** \endlegal 20 */ 21 /* ========================================================================= */ 22 23 /* === S T A R T =========================================================== */ 24 25 #ifndef __SYNFIG_RENDERING_TASKBLUR_H 26 #define __SYNFIG_RENDERING_TASKBLUR_H 27 28 /* === H E A D E R S ======================================================= */ 29 30 #include "../../task.h" 31 #include "../../primitive/blur.h" 32 33 /* === M A C R O S ========================================================= */ 34 35 /* === T Y P E D E F S ===================================================== */ 36 37 /* === C L A S S E S & S T R U C T S ======================================= */ 38 39 namespace synfig 40 { 41 namespace rendering 42 { 43 44 class TaskBlur: public Task 45 { 46 public: 47 typedef etl::handle<TaskBlur> Handle; 48 49 Blur blur; 50 TaskBlur()51 TaskBlur() { } clone()52 Task::Handle clone() const { return clone_pointer(this); } 53 sub_task()54 const Task::Handle& sub_task() const { return Task::sub_task(0); } sub_task()55 Task::Handle& sub_task() { return Task::sub_task(0); } 56 57 virtual Rect calc_bounds() const; 58 }; 59 60 } /* end namespace rendering */ 61 } /* end namespace synfig */ 62 63 /* -- E N D ----------------------------------------------------------------- */ 64 65 #endif 66