A cross-platform UI framework for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

39 lines
1.3 KiB

// -----------------------------------------------------------------------
// <copyright file="PlatformHandle.cs" company="Steven Kirk">
// Copyright 2014 MIT Licence. See licence.md for more information.
// </copyright>
// -----------------------------------------------------------------------
namespace Perspex.Platform
{
using System;
/// <summary>
/// Represents a platform-specific handle.
/// </summary>
public class PlatformHandle : IPlatformHandle
{
/// <summary>
/// Initializes a new instance of the <see cref="PlatformHandle"/> class.
/// </summary>
/// <param name="handle">The handle.</param>
/// <param name="descriptor">
/// An optional string that describes what <paramref name="handle"/> represents.
/// </param>
public PlatformHandle(IntPtr handle, string descriptor)
{
this.Handle = handle;
this.HandleDescriptor = descriptor;
}
/// <summary>
/// Gets the handle.
/// </summary>
public IntPtr Handle { get; }
/// <summary>
/// Gets an optional string that describes what <see cref="Handle"/> represents.
/// </summary>
public string HandleDescriptor { get; }
}
}