Avalonia/Gtk/Perspex.Gtk/GtkExtensions.cs

19 строки
562 B
C#

// -----------------------------------------------------------------------
// <copyright file="GtkExtensions.cs" company="Steven Kirk">
// Copyright 2014 MIT Licence. See licence.md for more information.
// </copyright>
// -----------------------------------------------------------------------
namespace Perspex.Gtk
{
using Gtk = global::Gtk;
public static class GtkExtensions
{
public static Rect ToPerspex(this Gdk.Rectangle rect)
{
return new Rect(rect.Left, rect.Top, rect.Right, rect.Bottom);
}
}
}