1 /*$
2  Copyright (C) 2013-2020 Azel.
3 
4  This file is part of AzPainter.
5 
6  AzPainter 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  AzPainter 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  * アプリケーション用カーソル
22  ********************************/
23 
24 #ifndef APP_CURSOR_H
25 #define APP_CURSOR_H
26 
27 enum APP_CURSOR
28 {
29 	APP_CURSOR_DRAW,	//fix
30 	APP_CURSOR_WAIT,	//fix
31 
32 	APP_CURSOR_HAND,
33 	APP_CURSOR_HAND_DRAG,
34 	APP_CURSOR_ROTATE,
35 	APP_CURSOR_ITEM_MOVE,
36 	APP_CURSOR_MOVE,
37 	APP_CURSOR_SPOIT,
38 	APP_CURSOR_SELECT,
39 	APP_CURSOR_SEL_MOVE,
40 	APP_CURSOR_STAMP,
41 	APP_CURSOR_TEXT,
42 	APP_CURSOR_ZOOM_DRAG,
43 
44 	APP_CURSOR_LEFT_TOP,
45 	APP_CURSOR_RIGHT_TOP,
46 	APP_CURSOR_RESIZE_HORZ,
47 	APP_CURSOR_RESIZE_VERT
48 };
49 
50 void AppCursor_init(uint8_t *drawcursor);
51 void AppCursor_free();
52 
53 void AppCursor_setDrawCursor(uint8_t *buf);
54 
55 mCursor AppCursor_getWaitCursor();
56 mCursor AppCursor_getForCanvas(int no);
57 mCursor AppCursor_getForDrag(int no);
58 mCursor AppCursor_getForDialog(int no);
59 
60 #endif
61