// Generated API outline. Implementation bodies omitted.
#nullable enable
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Threading.Tasks;
using System.Threading;
using System;
namespace Xui.Runtime.Test.Actual
{
using Xui.Core.DI;
using nfloat = System.Runtime.InteropServices.NFloat;
/// A deterministic desktop identity, independent of the test host OS.
public sealed class TestDeviceInfo : IDeviceInfo
{
/// Raised on the UI thread when a device or system preference exposed by this service changes.
public event Action? Changed { add; remove; }
/// Gets the operating system the app is running on.
public DevicePlatform Platform { get; init; }
/// Gets the form factor of the current device.
public DeviceFormFactor FormFactor { get; }
/// Gets the primary pointing device available to the user.
public PointerModel PointerModel { get; }
/// Accessibility font scale multiplier (1.0 = default).
public nfloat AccessibilityFontScale { get; }
/// True if the user has requested reduced motion.
public bool PrefersReducedMotion { get; }
/// True if the user has requested high-contrast mode.
public bool PrefersHighContrast { get; }
/// Light or dark appearance preference.
public ColorScheme ColorScheme { get; }
}
}
namespace Xui.Runtime.Test.Actual
{
using Xui.Core.Actual;
using Xui.Core.Canvas;
public class TestPlatform : IRuntime, IDispatcher
{
public IDispatcher MainDispatcher { get; }
public IRunLoop CreateRunloop(Xui.Core.Abstract.Application applicationAbstract);
public IWindow CreateWindow(Xui.Core.Abstract.IWindow windowAbstract, IServiceProvider applicationServices);
public void Post(Action callback);
}
}
namespace Xui.Runtime.Test.Actual
{
using Xui.Core.Actual;
public class TestRunLoop : IRunLoop
{
public TestRunLoop(TestPlatform platform, Xui.Core.Abstract.Application application);
public int Run();
public void Quit();
}
}
namespace Xui.Runtime.Test.Actual
{
using Xui.Core.Canvas;
public class TestWindow : Xui.Core.Actual.IWindow
{
public Xui.Core.Abstract.IWindow Abstract { get; }
public TestWindow(TestPlatform platform, Xui.Core.Abstract.IWindow abstractWindow, IServiceProvider nextServiceProvider);
public string Title { get; set; }
public bool RequireKeyboard { get; set; }
public ITextMeasureContext? TextMeasureContext { get; set; }
public IServiceProvider NextServiceProvider { get; }
public void Show();
public void Invalidate();
public object? GetService(Type serviceType);
}
}