-
Notifications
You must be signed in to change notification settings - Fork 0
/
lasem.override
91 lines (81 loc) · 2.26 KB
/
lasem.override
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
%%
headers
#include <Python.h>
#include <pygobject.h>
#include <pycairo.h>
extern Pycairo_CAPI_t *Pycairo_CAPI;
#include <lsmenumtypes.h>
#include <lsmmathmlactionelement.h>
#include <lsmmathmlaligngroupelement.h>
#include <lsmmathmlalignmarkelement.h>
#include <lsmmathmlattributes.h>
#include <lsmmathmldocument.h>
#include <lsmmathmlelement.h>
#include <lsmmathmlentitydictionary.h>
#include <lsmmathmlenums.h>
#include <lsmmathmlerrorelement.h>
#include <lsmmathmlfencedelement.h>
#include <lsmmathmlfractionelement.h>
#include <lsmmathmlglyphtableams.h>
#include <lsmmathml.h>
#include <lsmmathmllayoututils.h>
#include <lsmmathmlmathelement.h>
#include <lsmmathmloperatordictionary.h>
#include <lsmmathmloperatorelement.h>
#include <lsmmathmlpaddedelement.h>
#include <lsmmathmlphantomelement.h>
#include <lsmmathmlpresentationcontainer.h>
#include <lsmmathmlpresentationtoken.h>
#include <lsmmathmlradicalelement.h>
#include <lsmmathmlrowelement.h>
#include <lsmmathmlscriptelement.h>
#include <lsmmathmlspaceelement.h>
#include <lsmmathmlstringelement.h>
#include <lsmmathmlstyleelement.h>
#include <lsmmathmlstyle.h>
#include <lsmmathmltablecellelement.h>
#include <lsmmathmltableelement.h>
#include <lsmmathmltablerowelement.h>
#include <lsmmathmlunderoverelement.h>
#include <lsmmathmlutils.h>
#include <lsmmathmlview.h>
%%
modulename lasem
%%
import gobject.GObject as PyGObject_Type
%%
ignore-glob
*_get_type
%%
override lsm_dom_view_get_size noargs
static PyObject *
_wrap_lsm_dom_view_get_size(PyGObject *self)
{
PyObject *list;
double width, height;
lsm_dom_view_get_size(LSM_DOM_VIEW(self->obj), &width, &height);
list = PyTuple_New(2);
if (list == NULL) {
return NULL;
}
PyTuple_SetItem(list, 0, PyFloat_FromDouble(width));
PyTuple_SetItem(list, 1, PyFloat_FromDouble(height));
return list;
}
%%
override lsm_dom_view_get_size_pixels noargs
static PyObject *
_wrap_lsm_dom_view_get_size_pixels(PyGObject *self)
{
PyObject *list;
int width, height;
lsm_dom_view_get_size_pixels(LSM_DOM_VIEW(self->obj), &width, &height);
list = PyTuple_New(2);
if (list == NULL) {
return NULL;
}
PyTuple_SetItem(list, 0, PyInt_FromLong(width));
PyTuple_SetItem(list, 1, PyInt_FromLong(height));
return list;
}
%%