react-native-windows 0.0.0-canary.708 → 0.0.0-canary.709
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Microsoft.ReactNative/CompositionContext.idl +31 -8
- package/Microsoft.ReactNative/Fabric/Composition/CompositionContextHelper.cpp +494 -182
- package/Microsoft.ReactNative/Fabric/Composition/CompositionContextHelper.h +37 -5
- package/Microsoft.ReactNative/Fabric/Composition/CompositionContextHelper_emptyimpl.cpp +48 -9
- package/Microsoft.ReactNative/Fabric/Composition/CompositionHelpers.h +34 -8
- package/Microsoft.ReactNative/Fabric/Composition/CompositionHwndHost.cpp +3 -2
- package/Microsoft.ReactNative/Fabric/Composition/CompositionViewComponentView.cpp +16 -17
- package/Microsoft.ReactNative/Modules/Animated/NativeAnimatedNodeManager.cpp +1 -2
- package/Microsoft.ReactNative/Modules/Animated/PropsAnimatedNode.cpp +3 -4
- package/Microsoft.ReactNative/Modules/DeviceInfoModule.cpp +2 -0
- package/Mso/src/dispatchQueue/uiScheduler_winrt.cpp +121 -44
- package/PropertySheets/External/Microsoft.ReactNative.Composition.Common.props +12 -0
- package/PropertySheets/External/Microsoft.ReactNative.Composition.CppApp.props +24 -0
- package/PropertySheets/External/Microsoft.ReactNative.Composition.CppApp.targets +20 -0
- package/PropertySheets/External/Microsoft.ReactNative.Composition.Package.props +14 -0
- package/PropertySheets/External/Microsoft.ReactNative.Composition.Package.targets +18 -0
- package/PropertySheets/External/Microsoft.ReactNative.WindowsSdk.Default.props +1 -1
- package/PropertySheets/Generated/PackageVersion.g.props +2 -2
- package/package.json +2 -2
- package/templates/cpp-app/metro.config.js +51 -0
- package/templates/cpp-app/template.config.js +118 -0
- package/templates/cpp-app/windows/ExperimentalFeatures.props +12 -0
- package/templates/cpp-app/windows/MyApp/MyApp.cpp +284 -0
- package/templates/cpp-app/windows/MyApp/MyApp.h +3 -0
- package/templates/cpp-app/windows/MyApp/MyApp.ico +0 -0
- package/templates/cpp-app/windows/MyApp/MyApp.rc +0 -0
- package/templates/cpp-app/windows/MyApp/MyApp.vcxproj +142 -0
- package/templates/cpp-app/windows/MyApp/MyApp.vcxproj.filters +55 -0
- package/templates/cpp-app/windows/MyApp/_gitignore +1 -0
- package/templates/cpp-app/windows/MyApp/pch.cpp +1 -0
- package/templates/cpp-app/windows/MyApp/pch.h +35 -0
- package/templates/cpp-app/windows/MyApp/resource.h +18 -0
- package/templates/cpp-app/windows/MyApp/small.ico +0 -0
- package/templates/cpp-app/windows/MyApp/targetver.h +8 -0
- package/templates/cpp-app/windows/MyApp.Package/Images/LockScreenLogo.scale-200.png +0 -0
- package/templates/cpp-app/windows/MyApp.Package/Images/SplashScreen.scale-200.png +0 -0
- package/templates/cpp-app/windows/MyApp.Package/Images/Square150x150Logo.scale-200.png +0 -0
- package/templates/cpp-app/windows/MyApp.Package/Images/Square44x44Logo.scale-200.png +0 -0
- package/templates/cpp-app/windows/MyApp.Package/Images/Square44x44Logo.targetsize-24_altform-unplated.png +0 -0
- package/templates/cpp-app/windows/MyApp.Package/Images/StoreLogo.png +0 -0
- package/templates/cpp-app/windows/MyApp.Package/Images/Wide310x150Logo.scale-200.png +0 -0
- package/templates/cpp-app/windows/MyApp.Package/MyApp.Package.wapproj +78 -0
- package/templates/cpp-app/windows/MyApp.Package/Package.appxmanifest +49 -0
- package/templates/cpp-app/windows/MyApp.sln +176 -0
- package/templates/cpp-app/windows/_gitignore +41 -0
|
@@ -11,21 +11,44 @@ namespace Microsoft.ReactNative.Composition
|
|
|
11
11
|
[default_interface]
|
|
12
12
|
[experimental]
|
|
13
13
|
DOC_STRING("A helper static class for to create a @ICompositionContext based on Windows.Composition Visuals. And to access the underlying Windows.Composition objects from the abstraction.")
|
|
14
|
-
static runtimeclass
|
|
14
|
+
static runtimeclass WindowsCompositionContextHelper
|
|
15
15
|
{
|
|
16
16
|
DOC_STRING(
|
|
17
17
|
"Creates a @ICompositionContext from a Compositor")
|
|
18
|
-
static ICompositionContext CreateContext(
|
|
18
|
+
static ICompositionContext CreateContext(Windows.UI.Composition.Compositor compositor);
|
|
19
19
|
|
|
20
20
|
DOC_STRING(
|
|
21
21
|
"Creates a @IVisual from a Visual")
|
|
22
|
-
static IVisual CreateVisual(
|
|
22
|
+
static IVisual CreateVisual(Windows.UI.Composition.Visual visual);
|
|
23
23
|
|
|
24
|
-
static
|
|
25
|
-
static
|
|
26
|
-
static
|
|
27
|
-
static
|
|
28
|
-
static
|
|
24
|
+
static Windows.UI.Composition.Compositor InnerCompositor(ICompositionContext context);
|
|
25
|
+
static Windows.UI.Composition.Visual InnerVisual(IVisual visual);
|
|
26
|
+
static Windows.UI.Composition.DropShadow InnerDropShadow(IDropShadow shadow);
|
|
27
|
+
static Windows.UI.Composition.CompositionBrush InnerBrush(IBrush brush);
|
|
28
|
+
static Windows.UI.Composition.ICompositionSurface InnerSurface(IDrawingSurfaceBrush surface);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
#ifdef USE_WINUI3
|
|
32
|
+
[webhosthidden]
|
|
33
|
+
[default_interface]
|
|
34
|
+
[experimental]
|
|
35
|
+
DOC_STRING("A helper static class for to create a @ICompositionContext based on Microsoft.Composition Visuals. And to access the underlying Microsoft.Composition objects from the abstraction.")
|
|
36
|
+
static runtimeclass MicrosoftCompositionContextHelper
|
|
37
|
+
{
|
|
38
|
+
DOC_STRING(
|
|
39
|
+
"Creates a @ICompositionContext from a Compositor")
|
|
40
|
+
static ICompositionContext CreateContext(Microsoft.UI.Composition.Compositor compositor);
|
|
41
|
+
|
|
42
|
+
DOC_STRING(
|
|
43
|
+
"Creates a @IVisual from a Visual")
|
|
44
|
+
static IVisual CreateVisual(Microsoft.UI.Composition.Visual visual);
|
|
45
|
+
|
|
46
|
+
static Microsoft.UI.Composition.Compositor InnerCompositor(ICompositionContext context);
|
|
47
|
+
static Microsoft.UI.Composition.Visual InnerVisual(IVisual visual);
|
|
48
|
+
static Microsoft.UI.Composition.DropShadow InnerDropShadow(IDropShadow shadow);
|
|
49
|
+
static Microsoft.UI.Composition.CompositionBrush InnerBrush(IBrush brush);
|
|
50
|
+
static Microsoft.UI.Composition.ICompositionSurface InnerSurface(IDrawingSurfaceBrush surface);
|
|
51
|
+
}
|
|
52
|
+
#endif
|
|
53
|
+
|
|
31
54
|
} // namespace Microsoft.ReactNative.Composition
|