1 // Modern effects for a modern Streamer
2 // Copyright (C) 2019 Michael Fabian Dirks
3 //
4 // This program is free software; you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation; either version 2 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program; if not, write to the Free Software
16 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
17 
18 #include "gfx-blur-base.hpp"
19 #include <stdexcept>
20 
set_step_scale_x(double_t v)21 void gfx::blur::base::set_step_scale_x(double_t v)
22 {
23 	this->set_step_scale(v, this->get_step_scale_y());
24 }
25 
set_step_scale_y(double_t v)26 void gfx::blur::base::set_step_scale_y(double_t v)
27 {
28 	this->set_step_scale(this->get_step_scale_x(), v);
29 }
30 
get_step_scale_x()31 double_t gfx::blur::base::get_step_scale_x()
32 {
33 	double_t x, y;
34 	this->get_step_scale(x, y);
35 	return x;
36 }
37 
get_step_scale_y()38 double_t gfx::blur::base::get_step_scale_y()
39 {
40 	double_t x, y;
41 	this->get_step_scale(x, y);
42 	return y;
43 }
44 
set_center_x(double_t v)45 void gfx::blur::base_center::set_center_x(double_t v)
46 {
47 	this->set_center(v, this->get_center_y());
48 }
49 
set_center_y(double_t v)50 void gfx::blur::base_center::set_center_y(double_t v)
51 {
52 	this->set_center(this->get_center_x(), v);
53 }
54 
get_center_x()55 double_t gfx::blur::base_center::get_center_x()
56 {
57 	double_t x, y;
58 	this->get_center(x, y);
59 	return x;
60 }
61 
get_center_y()62 double_t gfx::blur::base_center::get_center_y()
63 {
64 	double_t x, y;
65 	this->get_center(x, y);
66 	return y;
67 }
68