File: diageometry.defs

package info (click to toggle)
diacanvas2 0.14.4-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 9,640 kB
  • ctags: 2,553
  • sloc: sh: 157,554; ansic: 21,714; xml: 8,167; python: 668; makefile: 427
file content (100 lines) | stat: -rw-r--r-- 2,210 bytes parent folder | download | duplicates (2)
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
;; -*- scheme -*-
; vim:syntax=scheme:sw=2

(define-function dia_point_get_type
  (in-module "DiaGeometry")
  (c-name "dia_point_get_type")
  (return-type "GType")
)

(define-function dia_rectangle_get_type
  (in-module "DiaGeometry")
  (c-name "dia_rectangle_get_type")
  (return-type "GType")
)

(define-function rectangle_add_point
  (in-module "DiaGeometry")
  (c-name "dia_rectangle_add_point")
  (return-type "DiaRectangle*")
  (parameters
    '("DiaRectangle*" "rect")
    '("DiaPoint*" "p")
  )
)

(define-function distance_point_point
  (in-module "DiaGeometry")
  (c-name "dia_distance_point_point")
  (return-type "gdouble")
  (parameters
    '("DiaPoint*" "p1")
    '("DiaPoint*" "p2")
  )
)

(define-function distance_point_point_manhattan
  (in-module "DiaGeometry")
  (c-name "dia_distance_point_point_manhattan")
  (return-type "gdouble")
  (parameters
    '("DiaPoint*" "p1")
    '("DiaPoint*" "p2")
  )
)

(define-function distance_rectangle_point
  (in-module "DiaGeometry")
  (c-name "dia_distance_rectangle_point")
  (return-type "gdouble")
  (parameters
    '("DiaRectangle*" "rect")
    '("DiaPoint*" "point")
  )
)

(define-function distance_line_point
  (in-module "DiaGeometry")
  (c-name "dia_distance_line_point")
  (return-type ("gdouble" "DiaPoint*"))
  (parameters
    '("DiaPoint*" "line_start")
    '("DiaPoint*" "line_end")
    '("DiaPoint*" "point")
    '("gdouble" "line_width")
    '("DiaCapStyle" "style")
  )
)

(define-function intersection_line_line
  (in-module "DiaGeometry")
  (c-name "dia_intersection_line_line")
  (return-type "DiaPoint*")
  (parameters
    '("DiaPoint*" "start1")
    '("DiaPoint*" "end1")
    '("DiaPoint*" "start2")
    '("DiaPoint*" "end2")
  )
)

(define-function intersection_line_rectangle
  (in-module "DiaGeometry")
  (c-name "dia_intersection_line_rectangle")
  (return-type ("DiaPoint*" "DiaPoint*"))
  (parameters
    '("DiaPoint*" "start")
    '("DiaPoint*" "end")
    '("DiaRectangle*" "rect")
  )
)

(define-function intersection_rectangle_rectangle
  (in-module "DiaGeometry")
  (c-name "dia_intersection_rectangle_rectangle")
  (return-type "gboolean")
  (parameters
    '("DiaRectangle*" "r1")
    '("DiaRectangle*" "r2")
  )
)