Kage Studio 0.7.230612
A Simple Free and Open Source 2D Animation Software
Loading...
Searching...
No Matches
strokecolor.h
Go to the documentation of this file.
1/*
2 * Kage Studio - a simple free and open source vector-based 2D animation software
3 * Copyright (C) 2011~2022 Mj Mendoza IV
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18 * MA 02110-1301, USA. Or, see <https://www.gnu.org/licenses/>.
19 *
20 */
21
22#ifndef GTKMM_KAGE_DATA_STROKECOLOR_H
23 #define GTKMM_KAGE_DATA_STROKECOLOR_H
24
25 #include "color.h"
26
27 class StrokeColorData: public ColorData {
28 public:
30 StrokeColorData(unsigned int p_r, unsigned int p_g, unsigned int p_b);
31 StrokeColorData(unsigned int p_r, unsigned int p_g, unsigned int p_b, unsigned int p_a);
32 StrokeColorData(double p_thickness);
33 virtual ~StrokeColorData();
34
35 //ColorData color;
36 void setThickness(double p_thickness);
37 double getThickness() const;
39 std::string toString() const;
40 protected:
41 double thickness;
42 };
43#endif //GTKMM_KAGE_DATA_STROKECOLOR_H
Definition: color.h:28
Definition: strokecolor.h:27
virtual ~StrokeColorData()
Definition: strokecolor.cpp:46
void setThickness(double p_thickness)
Definition: strokecolor.cpp:50
double getThickness() const
Definition: strokecolor.cpp:57
std::string toString() const
Definition: strokecolor.cpp:61
double thickness
Definition: strokecolor.h:41
StrokeColorData()
Definition: strokecolor.cpp:24
StrokeColorData clone()
Definition: strokecolor.cpp:36