csharpc-sharpdotnetxamlavaloniauicross-platformcross-platform-xamlavaloniaguimulti-platformuser-interfacedotnetcore
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.
40 lines
994 B
40 lines
994 B
// -----------------------------------------------------------------------
|
|
// <copyright file="ITopLevelImpl.cs" company="Steven Kirk">
|
|
// Copyright 2014 MIT Licence. See licence.md for more information.
|
|
// </copyright>
|
|
// -----------------------------------------------------------------------
|
|
|
|
namespace Perspex.Platform
|
|
{
|
|
using System;
|
|
using Perspex.Controls;
|
|
using Perspex.Input;
|
|
using Perspex.Input.Raw;
|
|
|
|
public interface ITopLevelImpl : IDisposable
|
|
{
|
|
Size ClientSize { get; set; }
|
|
|
|
IPlatformHandle Handle { get; }
|
|
|
|
Action Activated { get; set; }
|
|
|
|
Action Closed { get; set; }
|
|
|
|
Action Deactivated { get; set; }
|
|
|
|
Action<RawInputEventArgs> Input { get; set; }
|
|
|
|
Action<Rect, IPlatformHandle> Paint { get; set; }
|
|
|
|
Action<Size> Resized { get; set; }
|
|
|
|
void Activate();
|
|
|
|
void Invalidate(Rect rect);
|
|
|
|
void SetOwner(TopLevel owner);
|
|
|
|
Point PointToScreen(Point point);
|
|
}
|
|
}
|
|
|