-
Notifications
You must be signed in to change notification settings - Fork 385
/
mypaintlib.i
57 lines (43 loc) · 1001 Bytes
/
mypaintlib.i
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
%module mypaintlib
%{
#include "mypaintlib.hpp"
%}
%begin %{
#define SWIG_PYTHON_2_UNICODE
%}
%include "common.hpp"
%include "std_vector.i"
namespace std {
%template(IntVector) vector<int>;
%template(RectVector) vector<vector<int>>;
%template(DoubleVector) vector<double>;
}
typedef struct { int x, y, w, h; } Rect;
%include "surface.hpp"
%include "brush.hpp"
%include "mapping.hpp"
%include "python_brush.hpp"
%include "tiledsurface.hpp"
%include "pixops.hpp"
%include "colorring.hpp"
%include "colorchanger_wash.hpp"
%include "colorchanger_crossed_bowl.hpp"
%include "fastpng.hpp"
%include "fill/fill_constants.hpp"
%include "fill/floodfill.hpp"
%include "fill/gap_detection.hpp"
class Controller {
public:
Controller();
void stop();
void inc_processed(int incr);
int num_processed();
void reset();
};
%include "fill/morphology_swig.hpp"
%include "fill/blur_swig.hpp"
%include "brushsettings.hpp"
%include "gdkpixbuf2numpy.hpp"
%init %{
import_array();
%}