summaryrefslogtreecommitdiff
path: root/bindings/python/pygmathview/gmathview.defs
blob: b14f70afd1a287c954b87873ae0bd2111b8252ca (plain)
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
;; -*- scheme -*-
; boxed definitions ...

; interface definitions ...

; object definitions ...
(define-object MathView
  (in-module "GMathView")
  (parent "GtkDrawingArea")
  (c-name "GMathView")
  (gtype-id "G_TYPE_MATH_VIEW")
)

; pointer definitions ...

;; Enumerations and Flags ...


;; From gmathview.h

(define-function new
  (c-name "g_math_view_new")
  (is-constructor-of "GMathView")
  (return-type "GtkWidget*")
)

(define-method update
  (of-object "GMathView")
  (c-name "g_math_view_update")
  (return-type "none")
)

(define-method get_context
  (of-object "GMathView")
  (c-name "g_math_view_get_context")
  (return-type "GMathContext*")
)

(define-method get_formula
  (of-object "GMathView")
  (c-name "g_math_view_get_formula")
  (return-type "GMathFormula*")
)

(define-method set_formula
  (of-object "GMathView")
  (c-name "g_math_view_set_formula")
  (return-type "none")
  (parameters
    '("GMathFormula*" "formula")
  )
)

(define-method get_editor_mode
  (of-object "GMathView")
  (c-name "g_math_view_get_editor_mode")
  (return-type "gboolean")
)

(define-method set_editor_mode
  (of-object "GMathView")
  (c-name "g_math_view_set_editor_mode")
  (return-type "none")
  (parameters
    '("gboolean" "mode")
  )
)

(define-method undo
  (of-object "GMathView")
  (c-name "g_math_view_undo")
  (return-type "none")
)

(define-method redo
  (of-object "GMathView")
  (c-name "g_math_view_redo")
  (return-type "none")
)

(define-method can_undo
  (of-object "GMathView")
  (c-name "g_math_view_can_undo")
  (return-type "gboolean")
)

(define-method can_redo
  (of-object "GMathView")
  (c-name "g_math_view_can_redo")
  (return-type "gboolean")
)

(define-method update_parent
  (of-object "GMathView")
  (c-name "g_math_view_update_parent")
  (return-type "none")
  (parameters
    '("GMathSymbol*" "symbol")
    '("GMathSymbol*" "new_parent")
  )
)

(define-method update_value
  (of-object "GMathView")
  (c-name "g_math_view_update_value")
  (return-type "none")
  (parameters
    '("GMathSymbol*" "symbol")
    '("gpointer" "new_value")
  )
)

(define-method update_root
  (of-object "GMathView")
  (c-name "g_math_view_update_value")
  (return-type "none")
  (parameters
    '("GMathSymbol*" "new_root")
  )
)