1 /*$
2  Copyright (C) 2016-2020 Azel.
3 
4  This file is part of AzPainterB.
5 
6  AzPainterB is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  AzPainterB is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program.  If not, see <http://www.gnu.org/licenses/>.
18 $*/
19 
20 /**********************************
21  * DrawData 定規関連
22  **********************************/
23 
24 #ifndef DRAW_RULE_H
25 #define DRAW_RULE_H
26 
27 enum
28 {
29 	RULE_TYPE_OFF,
30 	RULE_TYPE_PARALLEL_LINE,
31 	RULE_TYPE_GRID_LINE,
32 	RULE_TYPE_CONC_LINE,
33 	RULE_TYPE_CIRCLE,
34 	RULE_TYPE_ELLIPSE,
35 
36 	RULE_TYPE_NUM
37 };
38 
39 
40 void drawRule_setType(DrawData *p,int type);
41 void drawRule_onPress(DrawData *p,mBool dotpen);
42 mBool drawRule_onPress_setting(DrawData *p);
43 
44 void drawRule_setting_line(DrawData *p);
45 void drawRule_setting_ellipse(DrawData *p);
46 
47 void drawRule_setRecord(DrawData *p,int no);
48 void drawRule_callRecord(DrawData *p,int no);
49 
50 #endif
51