-
Notifications
You must be signed in to change notification settings - Fork 1
/
haru_struct.tcl
86 lines (73 loc) · 1.33 KB
/
haru_struct.tcl
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
# Copyright (c) 2022-2023 Nicolas ROBERT.
# Distributed under MIT license. Please see LICENSE for details.
# haru - Tcl binding for libharu (http://libharu.org/) PDF library.
cffi::Struct create error_handler {
error_no ulong
detail_no ulong
user_data {pointer unsafe}
}
cffi::Struct create hpdfpoint {
x float
y float
}
cffi::Struct create hpdf3Dpoint {
x float
y float
z float
}
cffi::Struct create hpdfbox {
left float
bottom float
right float
top float
}
cffi::Struct create hpdfrect {
left float
bottom float
right float
top float
}
cffi::Struct create hpdftextwidth {
numchars uint
numwords uint
width uint
numspace uint
}
cffi::Struct create hpdfdate {
year int
month int
day int
hour int
minutes int
seconds int
ind {pointer unsafe}
off_hour int
off_minutes int
}
cffi::Struct create hpdftransmatrix {
a float
b float
c float
d float
x float
y float
}
cffi::Struct create hpdfdashmode {
ptn0 ushort
num_ptn int
phase int
}
cffi::Struct create hpdfrgbcolor {
r float
g float
b float
}
cffi::Struct create hpdfcmykcolor {
c float
y float
m float
k float
}
cffi::Struct create rectlen {
len int
}