summaryrefslogtreecommitdiff
path: root/bindings/python/pygmathview/gmathview.defs
blob: 946b5172b35854988ecddcf216750c90d9c623b5 (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
;; -*- 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")
  )
)