-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcbindgen.toml
83 lines (75 loc) · 2.5 KB
/
cbindgen.toml
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
language = "C"
header = """/**
* Copyright 2023 The AccessKit Authors. All rights reserved.
* Licensed under the Apache License, Version 2.0 (found in
* the LICENSE-APACHE file) or the MIT license (found in
* the LICENSE-MIT file), at your option.
*/"""
include_guard = "ACCESSKIT_H"
cpp_compat = true
after_includes = """#ifdef _WIN32
#include <windows.h>
#endif"""
usize_is_size_t = true
[export]
include = ["Size", "Vec2"]
prefix = "accesskit_"
renaming_overrides_prefixing = true
[defines]
"target_os = linux" = "__linux__"
"target_os = dragonfly" = "__DragonFly__"
"target_os = freebsd" = "__FreeBSD__"
"target_os = netbsd" = "__NetBSD__"
"target_os = openbsd" = "__OpenBSD__"
"target_os = macos" = "__APPLE__"
"target_os = windows" = "_WIN32"
[export.rename]
"Action" = "accesskit_action"
"ActionHandlerCallback" = "accesskit_action_handler_callback"
"ActivationHandlerCallback" = "accesskit_activation_handler_callback"
"Affine" = "accesskit_affine"
"AriaCurrent" = "accesskit_aria_current"
"AutoComplete" = "accesskit_auto_complete"
"DeactivationHandlerCallback" = "accesskit_deactivation_handler_callback"
"HWND" = "HWND"
"HasPopup" = "accesskit_has_popup"
"Invalid" = "accesskit_invalid"
"LPARAM" = "LPARAM"
"LRESULT" = "LRESULT"
"ListStyle" = "accesskit_list_style"
"Live" = "accesskit_live"
"Orientation" = "accesskit_orientation"
"Point" = "accesskit_point"
"Rect" = "accesskit_rect"
"Role" = "accesskit_role"
"Size" = "accesskit_size"
"SortDirection" = "accesskit_sort_direction"
"TextAlign" = "accesskit_text_align"
"TextDecoration" = "accesskit_text_decoration"
"TextDirection" = "accesskit_text_direction"
"Toggled" = "accesskit_toggled"
"Vec2" = "accesskit_vec2"
"VerticalOffset" = "accesskit_vertical_offset"
"WPARAM" = "WPARAM"
"opt_AriaCurrent" = "accesskit_opt_aria_current"
"opt_AutoComplete" = "accesskit_opt_auto_complete"
"opt_HasPopup" = "accesskit_opt_has_popup"
"opt_Invalid" = "accesskit_opt_invalid"
"opt_ListStyle" = "accesskit_opt_list_style"
"opt_Live" = "accesskit_opt_live"
"opt_Orientation" = "accesskit_opt_orientation"
"opt_SortDirection" = "accesskit_opt_sort_direction"
"opt_TextAlign" = "accesskit_opt_text_align"
"opt_TextDecoration" = "accesskit_opt_text_decoration"
"opt_TextDirection" = "accesskit_opt_text_direction"
"opt_Toggled" = "accesskit_opt_toggled"
"opt_VerticalOffset" = "accesskit_opt_vertical_offset"
[enum]
rename_variants = "ScreamingSnakeCase"
prefix_with_name = true
[parse]
parse_deps = true
include = ["accesskit"]
[parse.expand]
crates = ["accesskit-c"]
features = ["cbindgen"]