Kage Studio
0.7.230612
A Simple Free and Open Source 2D Animation Software
Loading...
Searching...
No Matches
anchor.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_ANCHOR_H
23
#define GTKMM_KAGE_DATA_ANCHOR_H
24
25
#include <gdk/gdk.h>
26
#include "
point.h
"
27
28
class
AnchorData
:
public
PointData
{
29
public
:
30
enum
type
{
31
TYPE_NONE
,
32
TYPE_NORTH
,
33
TYPE_EAST
,
34
TYPE_WEST
,
35
TYPE_SOUTH
,
36
TYPE_NORTH_EAST
,
37
TYPE_NORTH_WEST
,
38
TYPE_SOUTH_EAST
,
39
TYPE_SOUTH_WEST
,
40
TYPE_MOVE
,
41
TYPE_ROTATE
42
};
43
AnchorData
();
44
AnchorData
(GdkPoint p);
45
AnchorData
(
double
p_x,
double
p_y);
46
virtual
~AnchorData
();
47
48
AnchorData
clone
();
49
//const AnchorData& operator=( const AnchorData& p_origin );
50
51
unsigned
int
rotation
;
52
protected
:
53
};
54
#endif
//GTKMM_KAGE_DATA_POINT_H
AnchorData
Definition:
anchor.h:28
AnchorData::clone
AnchorData clone()
Definition:
anchor.cpp:37
AnchorData::rotation
unsigned int rotation
Definition:
anchor.h:51
AnchorData::~AnchorData
virtual ~AnchorData()
Definition:
anchor.cpp:42
AnchorData::AnchorData
AnchorData()
Definition:
anchor.cpp:25
AnchorData::type
type
Definition:
anchor.h:30
AnchorData::TYPE_MOVE
@ TYPE_MOVE
Definition:
anchor.h:40
AnchorData::TYPE_SOUTH
@ TYPE_SOUTH
Definition:
anchor.h:35
AnchorData::TYPE_NONE
@ TYPE_NONE
Definition:
anchor.h:31
AnchorData::TYPE_NORTH
@ TYPE_NORTH
Definition:
anchor.h:32
AnchorData::TYPE_SOUTH_WEST
@ TYPE_SOUTH_WEST
Definition:
anchor.h:39
AnchorData::TYPE_EAST
@ TYPE_EAST
Definition:
anchor.h:33
AnchorData::TYPE_SOUTH_EAST
@ TYPE_SOUTH_EAST
Definition:
anchor.h:38
AnchorData::TYPE_ROTATE
@ TYPE_ROTATE
Definition:
anchor.h:41
AnchorData::TYPE_WEST
@ TYPE_WEST
Definition:
anchor.h:34
AnchorData::TYPE_NORTH_EAST
@ TYPE_NORTH_EAST
Definition:
anchor.h:36
AnchorData::TYPE_NORTH_WEST
@ TYPE_NORTH_WEST
Definition:
anchor.h:37
PointData
Definition:
point.h:27
point.h
kage
data
anchor.h
Generated by
1.9.6