|
| 1 | +clang_flags: |
| 2 | + - -x |
| 3 | + - c++ |
| 4 | + - -std=c++17 |
| 5 | + |
| 6 | +entry_headers: |
| 7 | + - Sources/CNativeAPI/src/accessibility_manager.h |
| 8 | + - Sources/CNativeAPI/src/application.h |
| 9 | + - Sources/CNativeAPI/src/application_event.h |
| 10 | + - Sources/CNativeAPI/src/autostart.h |
| 11 | + - Sources/CNativeAPI/src/dialog.h |
| 12 | + - Sources/CNativeAPI/src/display.h |
| 13 | + - Sources/CNativeAPI/src/display_event.h |
| 14 | + - Sources/CNativeAPI/src/display_manager.h |
| 15 | + - Sources/CNativeAPI/src/foundation/color.h |
| 16 | + - Sources/CNativeAPI/src/foundation/event.h |
| 17 | + - Sources/CNativeAPI/src/foundation/event_emitter.h |
| 18 | + - Sources/CNativeAPI/src/foundation/geometry.h |
| 19 | + - Sources/CNativeAPI/src/foundation/id_allocator.h |
| 20 | + - Sources/CNativeAPI/src/foundation/keyboard.h |
| 21 | + - Sources/CNativeAPI/src/foundation/native_object_provider.h |
| 22 | + - Sources/CNativeAPI/src/foundation/object_registry.h |
| 23 | + - Sources/CNativeAPI/src/image.h |
| 24 | + - Sources/CNativeAPI/src/keyboard_event.h |
| 25 | + - Sources/CNativeAPI/src/keyboard_monitor.h |
| 26 | + - Sources/CNativeAPI/src/menu.h |
| 27 | + - Sources/CNativeAPI/src/menu_event.h |
| 28 | + - Sources/CNativeAPI/src/message_dialog.h |
| 29 | + - Sources/CNativeAPI/src/placement.h |
| 30 | + - Sources/CNativeAPI/src/positioning_strategy.h |
| 31 | + - Sources/CNativeAPI/src/preferences.h |
| 32 | + - Sources/CNativeAPI/src/secure_storage.h |
| 33 | + - Sources/CNativeAPI/src/shortcut.h |
| 34 | + - Sources/CNativeAPI/src/shortcut_event.h |
| 35 | + - Sources/CNativeAPI/src/shortcut_manager.h |
| 36 | + - Sources/CNativeAPI/src/storage.h |
| 37 | + - Sources/CNativeAPI/src/tray_icon.h |
| 38 | + - Sources/CNativeAPI/src/tray_icon_event.h |
| 39 | + - Sources/CNativeAPI/src/tray_manager.h |
| 40 | + - Sources/CNativeAPI/src/url_opener.h |
| 41 | + - Sources/CNativeAPI/src/window.h |
| 42 | + - Sources/CNativeAPI/src/window_event.h |
| 43 | + - Sources/CNativeAPI/src/window_manager.h |
| 44 | + - Sources/CNativeAPI/src/window_registry.h |
| 45 | + |
| 46 | +include_paths: |
| 47 | + - Sources/CNativeAPI/src |
| 48 | + - Sources/CNativeAPI/include |
| 49 | + |
| 50 | +mapping: |
| 51 | + language: swift |
| 52 | + output_note: Generated wrapper from C++ API. Calls existing C API bindings from CNativeAPI. |
| 53 | + |
| 54 | + naming: |
| 55 | + file_name: pascal_case |
| 56 | + type_name: pascal_case |
| 57 | + enum_name: pascal_case |
| 58 | + enum_value_name: camel_case |
| 59 | + function_name: camel_case |
| 60 | + method_name: camel_case |
| 61 | + class_name: pascal_case |
| 62 | + field_name: camel_case |
| 63 | + param_name: camel_case |
| 64 | + constant_name: camel_case |
| 65 | + alias_name: pascal_case |
| 66 | + strip_prefixes: |
| 67 | + - na_ |
| 68 | + - NA_ |
| 69 | + - nativeapi_ |
| 70 | + - NATIVEAPI_ |
| 71 | + strip_suffixes: |
| 72 | + - _t |
| 73 | + - _T |
| 74 | + add_prefix: "" |
| 75 | + add_suffix: "" |
| 76 | + |
| 77 | + types: |
| 78 | + void: Void |
| 79 | + bool: Bool |
| 80 | + _Bool: Bool |
| 81 | + char: Int8 |
| 82 | + short: Int16 |
| 83 | + int: Int32 |
| 84 | + long: Int64 |
| 85 | + "long long": Int64 |
| 86 | + int8_t: Int8 |
| 87 | + int16_t: Int16 |
| 88 | + int32_t: Int32 |
| 89 | + int64_t: Int64 |
| 90 | + int8: Int8 |
| 91 | + int16: Int16 |
| 92 | + int32: Int32 |
| 93 | + int64: Int64 |
| 94 | + ssize_t: Int |
| 95 | + intptr_t: Int |
| 96 | + ptrdiff_t: Int |
| 97 | + "unsigned char": UInt8 |
| 98 | + "unsigned short": UInt16 |
| 99 | + "unsigned int": UInt32 |
| 100 | + "unsigned long": UInt64 |
| 101 | + "unsigned long long": UInt64 |
| 102 | + uint8_t: UInt8 |
| 103 | + uint16_t: UInt16 |
| 104 | + uint32_t: UInt32 |
| 105 | + uint64_t: UInt64 |
| 106 | + uint8: UInt8 |
| 107 | + uint16: UInt16 |
| 108 | + uint32: UInt32 |
| 109 | + uint64: UInt64 |
| 110 | + size_t: UInt |
| 111 | + uintptr_t: UInt |
| 112 | + float: Float |
| 113 | + double: Double |
| 114 | + float32: Float |
| 115 | + float64: Double |
| 116 | + "long double": Double |
| 117 | + "char*": UnsafeMutablePointer<CChar> |
| 118 | + "const char*": UnsafePointer<CChar> |
| 119 | + "void*": UnsafeMutableRawPointer |
| 120 | + "const void*": UnsafeRawPointer |
| 121 | + cstring: UnsafePointer<CChar> |
| 122 | + nativeapi::Point: Point |
| 123 | + nativeapi::Size: Size |
| 124 | + nativeapi::Rectangle: Rect |
| 125 | + "const nativeapi::Point": Point |
| 126 | + "const nativeapi::Size": Size |
| 127 | + "const nativeapi::Rectangle": Rect |
| 128 | + nativeapi::Window: Window |
| 129 | + nativeapi::Display: Display |
| 130 | + nativeapi::Menu: Menu |
| 131 | + nativeapi::TrayIcon: TrayIcon |
| 132 | + function_pointer: "@convention(c) () -> Void" |
| 133 | + |
| 134 | + default_type: Any |
| 135 | + passthrough_unknown: false |
| 136 | + |
| 137 | + options: |
| 138 | + singleton_classes: |
| 139 | + - AccessibilityManager |
| 140 | + - Application |
| 141 | + - DisplayManager |
| 142 | + - TrayManager |
| 143 | + - WindowManager |
| 144 | + api_type_rules: |
| 145 | + exact: |
| 146 | + dynamic: Any |
| 147 | + contains: |
| 148 | + - match: Pointer<CChar> |
| 149 | + type: String |
| 150 | + - match: "&" |
| 151 | + type: UnsafeMutableRawPointer |
| 152 | + - match: "::" |
| 153 | + type: Any |
| 154 | + return_bridge_map: |
| 155 | + String: string |
| 156 | + Point: point |
| 157 | + Size: size |
| 158 | + Rect: rect |
| 159 | + cstring_free_symbols: |
| 160 | + default: free_c_str |
| 161 | + window: native_window_free_string |
| 162 | + bridge_types: |
| 163 | + point: Point |
| 164 | + size: Size |
| 165 | + rect: Rect |
| 166 | + param_bridges: |
| 167 | + - type_key: point |
| 168 | + symbol_suffixes: |
| 169 | + - _set_position |
| 170 | + args: |
| 171 | + - "{name}.x" |
| 172 | + - "{name}.y" |
| 173 | + - type_key: size |
| 174 | + symbol_suffixes: |
| 175 | + - _set_size |
| 176 | + - _set_content_size |
| 177 | + - _set_minimum_size |
| 178 | + - _set_maximum_size |
| 179 | + args: |
| 180 | + - "{name}.width" |
| 181 | + - "{name}.height" |
| 182 | + - type_key: rect |
| 183 | + symbol_suffixes: |
| 184 | + - _set_bounds |
| 185 | + - _set_content_bounds |
| 186 | + args: |
| 187 | + - "{name}.cStruct" |
| 188 | + symbol_overrides: |
| 189 | + nativeapi::RunApp: native_run_app |
| 190 | + nativeapi::Application::GetInstance: native_application_get_instance |
| 191 | + nativeapi::Window::Window: native_window_create |
| 192 | + formatters: |
| 193 | + - name: swiftformat-generated |
| 194 | + cmd: |
| 195 | + - swiftformat |
| 196 | + - "{out_dir}/src" |
| 197 | + continue_on_error: true |
| 198 | + |
| 199 | +filters: |
| 200 | + allowlist_regex: [] |
| 201 | + denylist_regex: [] |
| 202 | + exclude_dirs: |
| 203 | + - capi |
| 204 | + - platform |
0 commit comments