diff --git a/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz.xcodeproj/project.pbxproj b/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz.xcodeproj/project.pbxproj
new file mode 100644
index 0000000..529e95e
--- /dev/null
+++ b/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz.xcodeproj/project.pbxproj
@@ -0,0 +1,400 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 56;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 2A5416C72B038F6100E42968 /* libc3_window_cairo_quartzApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2A5416C62B038F6100E42968 /* libc3_window_cairo_quartzApp.swift */; };
+ 2A5416CB2B038F6200E42968 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 2A5416CA2B038F6200E42968 /* Assets.xcassets */; };
+ 2A5416CF2B038F6200E42968 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 2A5416CE2B038F6200E42968 /* Preview Assets.xcassets */; };
+ 2A5416D72B03900E00E42968 /* custom_cairo_view.m in Sources */ = {isa = PBXBuildFile; fileRef = 2A5416D62B03900E00E42968 /* custom_cairo_view.m */; };
+ 2A5416DA2B039BAE00E42968 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2A5416D92B039BAE00E42968 /* ContentView.swift */; };
+ 2A5416DC2B039C0000E42968 /* custom_cairo_swiftui_view.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2A5416DB2B039C0000E42968 /* custom_cairo_swiftui_view.swift */; };
+ 2A5416DF2B03B3C900E42968 /* libcairo.2.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 2A5416DE2B03B3C900E42968 /* libcairo.2.dylib */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXFileReference section */
+ 2A5416C32B038F6100E42968 /* libc3_window_cairo_quartz.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = libc3_window_cairo_quartz.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 2A5416C62B038F6100E42968 /* libc3_window_cairo_quartzApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = libc3_window_cairo_quartzApp.swift; sourceTree = "<group>"; };
+ 2A5416CA2B038F6200E42968 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
+ 2A5416CC2B038F6200E42968 /* libc3_window_cairo_quartz.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = libc3_window_cairo_quartz.entitlements; sourceTree = "<group>"; };
+ 2A5416CE2B038F6200E42968 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
+ 2A5416D52B03900E00E42968 /* libc3_window_cairo_quartz-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "libc3_window_cairo_quartz-Bridging-Header.h"; sourceTree = "<group>"; };
+ 2A5416D62B03900E00E42968 /* custom_cairo_view.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = custom_cairo_view.m; sourceTree = "<group>"; };
+ 2A5416D82B03907E00E42968 /* custom_cairo_view.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = custom_cairo_view.h; sourceTree = "<group>"; };
+ 2A5416D92B039BAE00E42968 /* ContentView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
+ 2A5416DB2B039C0000E42968 /* custom_cairo_swiftui_view.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = custom_cairo_swiftui_view.swift; sourceTree = "<group>"; };
+ 2A5416DE2B03B3C900E42968 /* libcairo.2.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libcairo.2.dylib; path = ../../../../../../../../../../../opt/homebrew/Cellar/cairo/1.18.0/lib/libcairo.2.dylib; sourceTree = "<group>"; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 2A5416C02B038F6100E42968 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 2A5416DF2B03B3C900E42968 /* libcairo.2.dylib in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 2A5416BA2B038F6100E42968 = {
+ isa = PBXGroup;
+ children = (
+ 2A5416C52B038F6100E42968 /* libc3_window_cairo_quartz */,
+ 2A5416C42B038F6100E42968 /* Products */,
+ 2A5416DD2B03B3C900E42968 /* Frameworks */,
+ );
+ sourceTree = "<group>";
+ };
+ 2A5416C42B038F6100E42968 /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 2A5416C32B038F6100E42968 /* libc3_window_cairo_quartz.app */,
+ );
+ name = Products;
+ sourceTree = "<group>";
+ };
+ 2A5416C52B038F6100E42968 /* libc3_window_cairo_quartz */ = {
+ isa = PBXGroup;
+ children = (
+ 2A5416C62B038F6100E42968 /* libc3_window_cairo_quartzApp.swift */,
+ 2A5416D92B039BAE00E42968 /* ContentView.swift */,
+ 2A5416DB2B039C0000E42968 /* custom_cairo_swiftui_view.swift */,
+ 2A5416CA2B038F6200E42968 /* Assets.xcassets */,
+ 2A5416CC2B038F6200E42968 /* libc3_window_cairo_quartz.entitlements */,
+ 2A5416CD2B038F6200E42968 /* Preview Content */,
+ 2A5416D62B03900E00E42968 /* custom_cairo_view.m */,
+ 2A5416D82B03907E00E42968 /* custom_cairo_view.h */,
+ 2A5416D52B03900E00E42968 /* libc3_window_cairo_quartz-Bridging-Header.h */,
+ );
+ path = libc3_window_cairo_quartz;
+ sourceTree = "<group>";
+ };
+ 2A5416CD2B038F6200E42968 /* Preview Content */ = {
+ isa = PBXGroup;
+ children = (
+ 2A5416CE2B038F6200E42968 /* Preview Assets.xcassets */,
+ );
+ path = "Preview Content";
+ sourceTree = "<group>";
+ };
+ 2A5416DD2B03B3C900E42968 /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ 2A5416DE2B03B3C900E42968 /* libcairo.2.dylib */,
+ );
+ name = Frameworks;
+ sourceTree = "<group>";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 2A5416C22B038F6100E42968 /* libc3_window_cairo_quartz */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 2A5416D22B038F6200E42968 /* Build configuration list for PBXNativeTarget "libc3_window_cairo_quartz" */;
+ buildPhases = (
+ 2A5416BF2B038F6100E42968 /* Sources */,
+ 2A5416C02B038F6100E42968 /* Frameworks */,
+ 2A5416C12B038F6100E42968 /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = libc3_window_cairo_quartz;
+ productName = libc3_window_cairo_quartz;
+ productReference = 2A5416C32B038F6100E42968 /* libc3_window_cairo_quartz.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 2A5416BB2B038F6100E42968 /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ BuildIndependentTargetsInParallel = 1;
+ LastSwiftUpdateCheck = 1500;
+ LastUpgradeCheck = 1500;
+ TargetAttributes = {
+ 2A5416C22B038F6100E42968 = {
+ CreatedOnToolsVersion = 15.0.1;
+ LastSwiftMigration = 1500;
+ };
+ };
+ };
+ buildConfigurationList = 2A5416BE2B038F6100E42968 /* Build configuration list for PBXProject "libc3_window_cairo_quartz" */;
+ compatibilityVersion = "Xcode 14.0";
+ developmentRegion = en;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ Base,
+ );
+ mainGroup = 2A5416BA2B038F6100E42968;
+ productRefGroup = 2A5416C42B038F6100E42968 /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ 2A5416C22B038F6100E42968 /* libc3_window_cairo_quartz */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 2A5416C12B038F6100E42968 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 2A5416CF2B038F6200E42968 /* Preview Assets.xcassets in Resources */,
+ 2A5416CB2B038F6200E42968 /* Assets.xcassets in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 2A5416BF2B038F6100E42968 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 2A5416D72B03900E00E42968 /* custom_cairo_view.m in Sources */,
+ 2A5416C72B038F6100E42968 /* libc3_window_cairo_quartzApp.swift in Sources */,
+ 2A5416DC2B039C0000E42968 /* custom_cairo_swiftui_view.swift in Sources */,
+ 2A5416DA2B039BAE00E42968 /* ContentView.swift in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin XCBuildConfiguration section */
+ 2A5416D02B038F6200E42968 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_ENABLE_OBJC_WEAK = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = dwarf;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_TESTABILITY = YES;
+ ENABLE_USER_SCRIPT_SANDBOXING = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu17;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
+ MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
+ MTL_FAST_MATH = YES;
+ ONLY_ACTIVE_ARCH = YES;
+ SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)";
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ };
+ name = Debug;
+ };
+ 2A5416D12B038F6200E42968 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_ENABLE_OBJC_WEAK = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_USER_SCRIPT_SANDBOXING = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu17;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ MTL_FAST_MATH = YES;
+ SWIFT_COMPILATION_MODE = wholemodule;
+ };
+ name = Release;
+ };
+ 2A5416D32B038F6200E42968 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
+ CLANG_ENABLE_MODULES = YES;
+ CODE_SIGN_ENTITLEMENTS = libc3_window_cairo_quartz/libc3_window_cairo_quartz.entitlements;
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ DEVELOPMENT_ASSET_PATHS = "\"libc3_window_cairo_quartz/Preview Content\"";
+ ENABLE_PREVIEWS = YES;
+ GENERATE_INFOPLIST_FILE = YES;
+ HEADER_SEARCH_PATHS = /opt/homebrew/include;
+ "INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES;
+ "INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphonesimulator*]" = YES;
+ "INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphoneos*]" = YES;
+ "INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphonesimulator*]" = YES;
+ "INFOPLIST_KEY_UILaunchScreen_Generation[sdk=iphoneos*]" = YES;
+ "INFOPLIST_KEY_UILaunchScreen_Generation[sdk=iphonesimulator*]" = YES;
+ "INFOPLIST_KEY_UIStatusBarStyle[sdk=iphoneos*]" = UIStatusBarStyleDefault;
+ "INFOPLIST_KEY_UIStatusBarStyle[sdk=iphonesimulator*]" = UIStatusBarStyleDefault;
+ INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
+ INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
+ IPHONEOS_DEPLOYMENT_TARGET = 17.0;
+ LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks";
+ "LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks";
+ LIBRARY_SEARCH_PATHS = (
+ /opt/homebrew/lib,
+ /opt/homebrew/Cellar/cairo/1.18.0/lib,
+ );
+ MACOSX_DEPLOYMENT_TARGET = 14.0;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = "kmx.io.libc3-window-cairo-quartz";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SDKROOT = auto;
+ SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx";
+ SWIFT_EMIT_LOC_STRINGS = YES;
+ SWIFT_OBJC_BRIDGING_HEADER = "libc3_window_cairo_quartz/libc3_window_cairo_quartz-Bridging-Header.h";
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ SWIFT_VERSION = 5.0;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ };
+ name = Debug;
+ };
+ 2A5416D42B038F6200E42968 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
+ CLANG_ENABLE_MODULES = YES;
+ CODE_SIGN_ENTITLEMENTS = libc3_window_cairo_quartz/libc3_window_cairo_quartz.entitlements;
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ DEVELOPMENT_ASSET_PATHS = "\"libc3_window_cairo_quartz/Preview Content\"";
+ ENABLE_PREVIEWS = YES;
+ GENERATE_INFOPLIST_FILE = YES;
+ HEADER_SEARCH_PATHS = /opt/homebrew/include;
+ "INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES;
+ "INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphonesimulator*]" = YES;
+ "INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphoneos*]" = YES;
+ "INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphonesimulator*]" = YES;
+ "INFOPLIST_KEY_UILaunchScreen_Generation[sdk=iphoneos*]" = YES;
+ "INFOPLIST_KEY_UILaunchScreen_Generation[sdk=iphonesimulator*]" = YES;
+ "INFOPLIST_KEY_UIStatusBarStyle[sdk=iphoneos*]" = UIStatusBarStyleDefault;
+ "INFOPLIST_KEY_UIStatusBarStyle[sdk=iphonesimulator*]" = UIStatusBarStyleDefault;
+ INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
+ INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
+ IPHONEOS_DEPLOYMENT_TARGET = 17.0;
+ LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks";
+ "LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks";
+ LIBRARY_SEARCH_PATHS = (
+ /opt/homebrew/lib,
+ /opt/homebrew/Cellar/cairo/1.18.0/lib,
+ );
+ MACOSX_DEPLOYMENT_TARGET = 14.0;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = "kmx.io.libc3-window-cairo-quartz";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SDKROOT = auto;
+ SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx";
+ SWIFT_EMIT_LOC_STRINGS = YES;
+ SWIFT_OBJC_BRIDGING_HEADER = "libc3_window_cairo_quartz/libc3_window_cairo_quartz-Bridging-Header.h";
+ SWIFT_VERSION = 5.0;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ 2A5416BE2B038F6100E42968 /* Build configuration list for PBXProject "libc3_window_cairo_quartz" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 2A5416D02B038F6200E42968 /* Debug */,
+ 2A5416D12B038F6200E42968 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 2A5416D22B038F6200E42968 /* Build configuration list for PBXNativeTarget "libc3_window_cairo_quartz" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 2A5416D32B038F6200E42968 /* Debug */,
+ 2A5416D42B038F6200E42968 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 2A5416BB2B038F6100E42968 /* Project object */;
+}
diff --git a/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz.xcodeproj/project.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000..919434a
--- /dev/null
+++ b/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Workspace
+ version = "1.0">
+ <FileRef
+ location = "self:">
+ </FileRef>
+</Workspace>
diff --git a/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 0000000..18d9810
--- /dev/null
+++ b/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>IDEDidComputeMac32BitWarning</key>
+ <true/>
+</dict>
+</plist>
diff --git a/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz.xcodeproj/project.xcworkspace/xcuserdata/thodg.xcuserdatad/UserInterfaceState.xcuserstate b/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz.xcodeproj/project.xcworkspace/xcuserdata/thodg.xcuserdatad/UserInterfaceState.xcuserstate
new file mode 100644
index 0000000..8f05f69
Binary files /dev/null and b/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz.xcodeproj/project.xcworkspace/xcuserdata/thodg.xcuserdatad/UserInterfaceState.xcuserstate differ
diff --git a/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz.xcodeproj/xcuserdata/thodg.xcuserdatad/xcschemes/xcschememanagement.plist b/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz.xcodeproj/xcuserdata/thodg.xcuserdatad/xcschemes/xcschememanagement.plist
new file mode 100644
index 0000000..df532c7
--- /dev/null
+++ b/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz.xcodeproj/xcuserdata/thodg.xcuserdatad/xcschemes/xcschememanagement.plist
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>SchemeUserState</key>
+ <dict>
+ <key>libc3_window_cairo_quartz.xcscheme_^#shared#^_</key>
+ <dict>
+ <key>orderHint</key>
+ <integer>0</integer>
+ </dict>
+ </dict>
+</dict>
+</plist>
diff --git a/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz/Assets.xcassets/AccentColor.colorset/Contents.json b/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz/Assets.xcassets/AccentColor.colorset/Contents.json
new file mode 100644
index 0000000..eb87897
--- /dev/null
+++ b/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz/Assets.xcassets/AccentColor.colorset/Contents.json
@@ -0,0 +1,11 @@
+{
+ "colors" : [
+ {
+ "idiom" : "universal"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz/Assets.xcassets/AppIcon.appiconset/Contents.json b/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz/Assets.xcassets/AppIcon.appiconset/Contents.json
new file mode 100644
index 0000000..532cd72
--- /dev/null
+++ b/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz/Assets.xcassets/AppIcon.appiconset/Contents.json
@@ -0,0 +1,63 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "platform" : "ios",
+ "size" : "1024x1024"
+ },
+ {
+ "idiom" : "mac",
+ "scale" : "1x",
+ "size" : "16x16"
+ },
+ {
+ "idiom" : "mac",
+ "scale" : "2x",
+ "size" : "16x16"
+ },
+ {
+ "idiom" : "mac",
+ "scale" : "1x",
+ "size" : "32x32"
+ },
+ {
+ "idiom" : "mac",
+ "scale" : "2x",
+ "size" : "32x32"
+ },
+ {
+ "idiom" : "mac",
+ "scale" : "1x",
+ "size" : "128x128"
+ },
+ {
+ "idiom" : "mac",
+ "scale" : "2x",
+ "size" : "128x128"
+ },
+ {
+ "idiom" : "mac",
+ "scale" : "1x",
+ "size" : "256x256"
+ },
+ {
+ "idiom" : "mac",
+ "scale" : "2x",
+ "size" : "256x256"
+ },
+ {
+ "idiom" : "mac",
+ "scale" : "1x",
+ "size" : "512x512"
+ },
+ {
+ "idiom" : "mac",
+ "scale" : "2x",
+ "size" : "512x512"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz/Assets.xcassets/Contents.json b/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz/Assets.xcassets/Contents.json
new file mode 100644
index 0000000..73c0059
--- /dev/null
+++ b/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz/Assets.xcassets/Contents.json
@@ -0,0 +1,6 @@
+{
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz/ContentView.swift b/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz/ContentView.swift
new file mode 100644
index 0000000..0b85d7f
--- /dev/null
+++ b/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz/ContentView.swift
@@ -0,0 +1,19 @@
+//
+// ContentView.swift
+// libc3_window_cairo_quartz
+//
+// Created by Thomas de Grivel on 14/11/2023.
+//
+
+import SwiftUI
+
+struct ContentView: View {
+ var body: some View {
+ CustomCairoSwiftUIView()
+ .frame(maxWidth: .infinity, maxHeight: .infinity)
+ }
+}
+
+#Preview {
+ ContentView()
+}
diff --git a/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz/Preview Content/Preview Assets.xcassets/Contents.json b/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz/Preview Content/Preview Assets.xcassets/Contents.json
new file mode 100644
index 0000000..73c0059
--- /dev/null
+++ b/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz/Preview Content/Preview Assets.xcassets/Contents.json
@@ -0,0 +1,6 @@
+{
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz/custom_cairo_swiftui_view.swift b/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz/custom_cairo_swiftui_view.swift
new file mode 100644
index 0000000..223ffc3
--- /dev/null
+++ b/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz/custom_cairo_swiftui_view.swift
@@ -0,0 +1,19 @@
+//
+// custom_cairo_swiftui_view.swift
+// libc3_window_cairo_quartz
+//
+// Created by Thomas de Grivel on 14/11/2023.
+//
+
+import SwiftUI
+
+struct CustomCairoSwiftUIView : NSViewRepresentable {
+
+ func makeNSView(context: Context) -> CustomCairoView {
+ return CustomCairoView();
+ }
+
+ func updateNSView(_ nsView: CustomCairoView, context: Context) {
+ puts("updateNSView");
+ }
+}
diff --git a/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz/custom_cairo_view.h b/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz/custom_cairo_view.h
new file mode 100644
index 0000000..cb22840
--- /dev/null
+++ b/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz/custom_cairo_view.h
@@ -0,0 +1,17 @@
+//
+// custom_cairo_view.h
+// libc3_window_cairo_quartz
+//
+// Created by Thomas de Grivel on 14/11/2023.
+//
+
+#ifndef custom_cairo_view_h
+#define custom_cairo_view_h
+
+#import <Cocoa/Cocoa.h>
+
+@interface CustomCairoView : NSView
+
+@end
+
+#endif /* custom_cairo_view_h */
diff --git a/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz/custom_cairo_view.m b/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz/custom_cairo_view.m
new file mode 100644
index 0000000..a12f957
--- /dev/null
+++ b/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz/custom_cairo_view.m
@@ -0,0 +1,25 @@
+//
+// custom_cairo_view.m
+// libc3_window_cairo_quartz
+//
+// Created by Thomas de Grivel on 14/11/2023.
+//
+
+#import <Foundation/Foundation.h>
+#import "custom_cairo_view.h"
+#import <cairo/cairo-quartz.h>
+
+@implementation CustomCairoView
+
+- (void) drawRect:(NSRect)dirtyRect {
+ [super drawRect:dirtyRect];
+ cairo_surface_t *surface =
+ cairo_quartz_surface_create_for_cg_context([[NSGraphicsContext currentContext] CGContext], self.bounds.size.width, self.bounds.size.height);
+ cairo_t *cr = cairo_create(surface);
+
+ cairo_destroy(cr);
+ cairo_surface_destroy(surface);
+}
+
+@end
+
diff --git a/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz-Bridging-Header.h b/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz-Bridging-Header.h
new file mode 100644
index 0000000..60ee9bd
--- /dev/null
+++ b/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz-Bridging-Header.h
@@ -0,0 +1,5 @@
+//
+// Use this file to import your target's public headers that you would like to expose to Swift.
+//
+
+#import "custom_cairo_view.h"
diff --git a/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz.entitlements b/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz.entitlements
new file mode 100644
index 0000000..f2ef3ae
--- /dev/null
+++ b/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz.entitlements
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>com.apple.security.app-sandbox</key>
+ <true/>
+ <key>com.apple.security.files.user-selected.read-only</key>
+ <true/>
+</dict>
+</plist>
diff --git a/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartzApp.swift b/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartzApp.swift
new file mode 100644
index 0000000..08491c8
--- /dev/null
+++ b/libc3/window/cairo/quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartz/libc3_window_cairo_quartzApp.swift
@@ -0,0 +1,17 @@
+//
+// libc3_window_cairo_quartzApp.swift
+// libc3_window_cairo_quartz
+//
+// Created by Thomas de Grivel on 14/11/2023.
+//
+
+import SwiftUI
+
+@main
+struct libc3_window_cairo_quartzApp: App {
+ var body: some Scene {
+ WindowGroup {
+ ContentView()
+ }
+ }
+}