using System; using System.Drawing; using TerraFX.Interop; namespace ComputeSharp.SwapChain.Backend { /// /// A class representing a simple Win32 application. /// internal abstract class Win32Application { /// /// Gets the title of the current application. /// public abstract string Title { get; } /// /// Initializes the current application. /// /// The window size. /// The handle for the window. public abstract void OnInitialize(Size size, HWND hwnd); /// /// Resizes the current application. /// /// The new window size. public abstract void OnResize(Size size); /// /// Updates the current application. /// /// The current time since the start of the application. public abstract void OnUpdate(TimeSpan time); } }