18 changed files with 134 additions and 23 deletions
@ -0,0 +1,27 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace Avalonia.Platform |
|||
{ |
|||
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] |
|||
public class ExportWindowingSubsystemAttribute : Attribute |
|||
{ |
|||
public ExportWindowingSubsystemAttribute(OperatingSystemType requiredRuntimePlatform, int priority, string name, Type initializationType, string initializationMethod) |
|||
{ |
|||
Name = name; |
|||
InitializationType = initializationType; |
|||
InitializationMethod = initializationMethod; |
|||
RequiredOS = requiredRuntimePlatform; |
|||
Priority = priority; |
|||
} |
|||
|
|||
public string InitializationMethod { get; private set; } |
|||
public Type InitializationType { get; private set; } |
|||
public string Name { get; private set; } |
|||
public int Priority { get; private set; } |
|||
public OperatingSystemType RequiredOS { get; private set; } |
|||
} |
|||
} |
|||
@ -0,0 +1,28 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace Avalonia.Platform |
|||
{ |
|||
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] |
|||
public class ExportRenderingSubsystemAttribute : Attribute |
|||
{ |
|||
public ExportRenderingSubsystemAttribute(OperatingSystemType requiredOS, int priority, string name, Type initializationType, string initializationMethod) |
|||
{ |
|||
Name = name; |
|||
InitializationType = initializationType; |
|||
InitializationMethod = initializationMethod; |
|||
RequiredOS = requiredOS; |
|||
Priority = priority; |
|||
} |
|||
|
|||
public string InitializationMethod { get; private set; } |
|||
public Type InitializationType { get; private set; } |
|||
public string Name { get; private set; } |
|||
public int Priority { get; private set; } |
|||
public OperatingSystemType RequiredOS { get; private set; } |
|||
public string RequiresWindowingSubsystem { get; set; } |
|||
} |
|||
} |
|||
@ -1,6 +1,9 @@ |
|||
// Copyright (c) The Avalonia Project. All rights reserved.
|
|||
// Licensed under the MIT license. See licence.md file in the project root for full license information.
|
|||
|
|||
using Avalonia.Platform; |
|||
using Avalonia.Win32; |
|||
using System.Reflection; |
|||
|
|||
[assembly: AssemblyTitle("Avalonia.Win32")] |
|||
[assembly: ExportWindowingSubsystem(OperatingSystemType.WinNT, 1, "Win32", typeof(Win32Platform), nameof(Win32Platform.Initialize))] |
|||
|
|||
Loading…
Reference in new issue