Xui.Runtime.Browser.Actual

Assembly: Xui.Runtime.Browser · C# declarations · Assembly overview

Types

class BrowserDrawingContext

Records Canvas operations for one synchronous bulk replay in JavaScript.

public partial class BrowserDrawingContext
{
    public bool GpuSurface(scoped in GroupOptions options);
    public bool GpuSurface(scoped in GroupOptions options, out GpuSurfaceFailure failure);
}
public partial class BrowserDrawingContext : IContext
{
    public CompositionGroup Group(scoped in GroupOptions options);
    public void EndGroup();
    public void SetFilter();
    public void SetFilter(Brightness brightness);
    public NFloat GlobalAlpha { set; }
    public NFloat LineWidth { set; }
    public NFloat MiterLimit { set; }
    public NFloat LineDashOffset { set; }
    public LineCap LineCap { set; }
    public LineJoin LineJoin { set; }
    public TextAlign TextAlign { set; }
    public TextBaseline TextBaseline { set; }

    public void Save();
    public void Restore();
    public void BeginPath();
    public void ClosePath();
    public void MoveTo(Point p);
    public void LineTo(Point p);
    public void CurveTo(Point cp, Point to);
    public void CurveTo(Point cp1, Point cp2, Point to);
    public void Arc(Point center, NFloat radius, NFloat startAngle, NFloat endAngle, Winding winding = Winding.ClockWise);
    public void ArcTo(Point cp1, Point cp2, NFloat radius);
    public void Ellipse(Point center, NFloat radiusX, NFloat radiusY, NFloat rotation, NFloat startAngle, NFloat endAngle, Winding winding = Winding.ClockWise);
    public void Rect(Rect r);
    public void RoundRect(Rect r, NFloat radius);
    public void RoundRect(Rect r, CornerRadius radius);
    public void Clip();
    public void Fill(FillRule rule = FillRule.NonZero);
    public void Stroke();
    public void FillRect(Rect r);
    public void StrokeRect(Rect r);
    public void Translate(Vector v);
    public void Scale(Vector v);
    public void Rotate(NFloat angle);
    public void Transform(AffineTransform m);
    public void SetTransform(AffineTransform m);
    public void SetFill(Color color);
    public void SetStroke(Color color);
    public void SetFill(LinearGradient g);
    public void SetStroke(LinearGradient g);
    public void SetFill(RadialGradient g);
    public void SetStroke(RadialGradient g);
    public void SetLineDash(ReadOnlySpan<NFloat> segments);
    public void SetFont(Font value);
    public void FillText(string text, Point pos);
    public TextMetrics MeasureText(string text);
    public void SetFill(ImagePattern pattern);
    public void SetStroke(ImagePattern pattern);
    public void DrawImage(IImage image, Rect dest);
    public void DrawImage(IImage image, Rect dest, NFloat opacity);
    public void DrawImage(IImage image, Rect source, Rect dest, NFloat opacity);
    public void Dispose();
}
public unsafe partial class BrowserDrawingContext
{
}
public unsafe partial class BrowserDrawingContext
{
}
public unsafe partial class BrowserDrawingContext
{
}

void BrowserDrawingContext.Arc(Point center, NFloat radius, NFloat startAngle, NFloat endAngle, Winding winding = Winding.ClockWise)

public void Arc(Point center, NFloat radius, NFloat startAngle, NFloat endAngle, Winding winding = Winding.ClockWise);

void BrowserDrawingContext.ArcTo(Point cp1, Point cp2, NFloat radius)

public void ArcTo(Point cp1, Point cp2, NFloat radius);

void BrowserDrawingContext.BeginPath()

public void BeginPath();

void BrowserDrawingContext.Clip()

public void Clip();

void BrowserDrawingContext.ClosePath()

public void ClosePath();

void BrowserDrawingContext.CurveTo(Point cp, Point to)

public void CurveTo(Point cp, Point to);

void BrowserDrawingContext.CurveTo(Point cp1, Point cp2, Point to)

public void CurveTo(Point cp1, Point cp2, Point to);

void BrowserDrawingContext.Dispose()

public void Dispose();

void BrowserDrawingContext.DrawImage(IImage image, Rect dest)

public void DrawImage(IImage image, Rect dest);

void BrowserDrawingContext.DrawImage(IImage image, Rect dest, NFloat opacity)

public void DrawImage(IImage image, Rect dest, NFloat opacity);

void BrowserDrawingContext.DrawImage(IImage image, Rect source, Rect dest, NFloat opacity)

public void DrawImage(IImage image, Rect source, Rect dest, NFloat opacity);

void BrowserDrawingContext.Ellipse(Point center, NFloat radiusX, NFloat radiusY, NFloat rotation, NFloat startAngle, NFloat endAngle, Winding winding = Winding.ClockWise)

public void Ellipse(Point center, NFloat radiusX, NFloat radiusY, NFloat rotation, NFloat startAngle, NFloat endAngle, Winding winding = Winding.ClockWise);

void BrowserDrawingContext.EndGroup()

public void EndGroup();

void BrowserDrawingContext.Fill(FillRule rule = FillRule.NonZero)

public void Fill(FillRule rule = FillRule.NonZero);

void BrowserDrawingContext.FillRect(Rect r)

public void FillRect(Rect r);

void BrowserDrawingContext.FillText(string text, Point pos)

public void FillText(string text, Point pos);

NFloat BrowserDrawingContext.GlobalAlpha

public NFloat GlobalAlpha { set; }

bool BrowserDrawingContext.GpuSurface(scoped in GroupOptions options)

public bool GpuSurface(scoped in GroupOptions options);

bool BrowserDrawingContext.GpuSurface(scoped in GroupOptions options, out GpuSurfaceFailure failure)

public bool GpuSurface(scoped in GroupOptions options, out GpuSurfaceFailure failure);

CompositionGroup BrowserDrawingContext.Group(scoped in GroupOptions options)

public CompositionGroup Group(scoped in GroupOptions options);

LineCap BrowserDrawingContext.LineCap

public LineCap LineCap { set; }

NFloat BrowserDrawingContext.LineDashOffset

public NFloat LineDashOffset { set; }

LineJoin BrowserDrawingContext.LineJoin

public LineJoin LineJoin { set; }

void BrowserDrawingContext.LineTo(Point p)

public void LineTo(Point p);

NFloat BrowserDrawingContext.LineWidth

public NFloat LineWidth { set; }

TextMetrics BrowserDrawingContext.MeasureText(string text)

public TextMetrics MeasureText(string text);

NFloat BrowserDrawingContext.MiterLimit

public NFloat MiterLimit { set; }

void BrowserDrawingContext.MoveTo(Point p)

public void MoveTo(Point p);

void BrowserDrawingContext.Rect(Rect r)

public void Rect(Rect r);

void BrowserDrawingContext.Restore()

public void Restore();

void BrowserDrawingContext.Rotate(NFloat angle)

public void Rotate(NFloat angle);

void BrowserDrawingContext.RoundRect(Rect r, NFloat radius)

public void RoundRect(Rect r, NFloat radius);

void BrowserDrawingContext.RoundRect(Rect r, CornerRadius radius)

public void RoundRect(Rect r, CornerRadius radius);

void BrowserDrawingContext.Save()

public void Save();

void BrowserDrawingContext.Scale(Vector v)

public void Scale(Vector v);

void BrowserDrawingContext.SetFill(Color color)

public void SetFill(Color color);

void BrowserDrawingContext.SetFill(ImagePattern pattern)

public void SetFill(ImagePattern pattern);

void BrowserDrawingContext.SetFill(LinearGradient g)

public void SetFill(LinearGradient g);

void BrowserDrawingContext.SetFill(RadialGradient g)

public void SetFill(RadialGradient g);

void BrowserDrawingContext.SetFilter()

public void SetFilter();

void BrowserDrawingContext.SetFilter(Brightness brightness)

public void SetFilter(Brightness brightness);

void BrowserDrawingContext.SetFont(Font value)

public void SetFont(Font value);

void BrowserDrawingContext.SetLineDash(ReadOnlySpan<NFloat> segments)

public void SetLineDash(ReadOnlySpan<NFloat> segments);

void BrowserDrawingContext.SetStroke(Color color)

public void SetStroke(Color color);

void BrowserDrawingContext.SetStroke(ImagePattern pattern)

public void SetStroke(ImagePattern pattern);

void BrowserDrawingContext.SetStroke(LinearGradient g)

public void SetStroke(LinearGradient g);

void BrowserDrawingContext.SetStroke(RadialGradient g)

public void SetStroke(RadialGradient g);

void BrowserDrawingContext.SetTransform(AffineTransform m)

public void SetTransform(AffineTransform m);

void BrowserDrawingContext.Stroke()

public void Stroke();

void BrowserDrawingContext.StrokeRect(Rect r)

public void StrokeRect(Rect r);

TextAlign BrowserDrawingContext.TextAlign

public TextAlign TextAlign { set; }

TextBaseline BrowserDrawingContext.TextBaseline

public TextBaseline TextBaseline { set; }

void BrowserDrawingContext.Transform(AffineTransform m)

public void Transform(AffineTransform m);

void BrowserDrawingContext.Translate(Vector v)

public void Translate(Vector v);

class BrowserGpuDevice

WebGL 2 hardware device using the shared GLSL shader backend.

public sealed class BrowserGpuDevice : IGpuResourceDevice
{
    public string BackendName { get; }
    public bool IsDisposed { get; }

    public IGpuVertexShader CompileVertexShader(string source, string entryPoint);
    public IGpuFragmentShader CompileFragmentShader(string source, string entryPoint);
    public IGpuRenderTarget CreateRenderTarget(int width, int height);
    public IGpuCommandList CreateCommandList();
    public IGpuVertexBuffer CreateVertexBuffer(ReadOnlySpan<byte> vertices, int stride);
    public IGpuTexture CreateSampledTexture(int width, int height, IReadOnlyList<byte[]> mipLevels);
    public void Dispose();
}

string BrowserGpuDevice.BackendName

public string BackendName { get; }

IGpuFragmentShader BrowserGpuDevice.CompileFragmentShader(string source, string entryPoint)

public IGpuFragmentShader CompileFragmentShader(string source, string entryPoint);

IGpuVertexShader BrowserGpuDevice.CompileVertexShader(string source, string entryPoint)

public IGpuVertexShader CompileVertexShader(string source, string entryPoint);

IGpuCommandList BrowserGpuDevice.CreateCommandList()

public IGpuCommandList CreateCommandList();

IGpuRenderTarget BrowserGpuDevice.CreateRenderTarget(int width, int height)

public IGpuRenderTarget CreateRenderTarget(int width, int height);

IGpuTexture BrowserGpuDevice.CreateSampledTexture(int width, int height, IReadOnlyList<byte[]> mipLevels)

public IGpuTexture CreateSampledTexture(int width, int height, IReadOnlyList<byte[]> mipLevels);

IGpuVertexBuffer BrowserGpuDevice.CreateVertexBuffer(ReadOnlySpan<byte> vertices, int stride)

public IGpuVertexBuffer CreateVertexBuffer(ReadOnlySpan<byte> vertices, int stride);

void BrowserGpuDevice.Dispose()

public void Dispose();

bool BrowserGpuDevice.IsDisposed

public bool IsDisposed { get; }

class BrowserImage

A browser-decoded image; loading never blocks the browser UI thread.

public sealed partial class BrowserImage : IImage, IDisposable
{
    public Size Size { get; }

    public BrowserImage(Action invalidate);
    public void Load(string uri);
    public async Task LoadAsync(string uri);
    public void LoadPixels(int width, int height, ReadOnlySpan<byte> bgra32Data);
    public void Dispose();
}
public sealed unsafe partial class BrowserImage
{
}
public sealed unsafe partial class BrowserImage
{
}
public sealed unsafe partial class BrowserImage
{
}

BrowserImage.BrowserImage(Action invalidate)

public BrowserImage(Action invalidate);

void BrowserImage.Dispose()

public void Dispose();

void BrowserImage.Load(string uri)

public void Load(string uri);

Task BrowserImage.LoadAsync(string uri)

public async Task LoadAsync(string uri);

void BrowserImage.LoadPixels(int width, int height, ReadOnlySpan<byte> bgra32Data)

public void LoadPixels(int width, int height, ReadOnlySpan<byte> bgra32Data);

Size BrowserImage.Size

public Size Size { get; }

class BrowserPlatform

The .NET WebAssembly runtime adapter for a browser Canvas surface.

public partial class BrowserPlatform : IRuntime
{
    public IDispatcher MainDispatcher { get; }

    public static async Task InitializeAsync(string mode = ".NET WebAssembly");
    public IRunLoop CreateRunloop(Application applicationAbstract);
    public Core.Actual.IWindow CreateWindow(Core.Abstract.IWindow windowAbstract, IServiceProvider applicationServices);
}
public unsafe partial class BrowserPlatform
{
}
public unsafe partial class BrowserPlatform
{
}
public unsafe partial class BrowserPlatform
{
}

IRunLoop BrowserPlatform.CreateRunloop(Application applicationAbstract)

public IRunLoop CreateRunloop(Application applicationAbstract);

IWindow BrowserPlatform.CreateWindow(IWindow windowAbstract, IServiceProvider applicationServices)

public Core.Actual.IWindow CreateWindow(Core.Abstract.IWindow windowAbstract, IServiceProvider applicationServices);

Task BrowserPlatform.InitializeAsync(string mode = ".NET WebAssembly")

public static async Task InitializeAsync(string mode = ".NET WebAssembly");

IDispatcher BrowserPlatform.MainDispatcher

public IDispatcher MainDispatcher { get; }

class BrowserRunLoop

public partial class BrowserRunLoop : Xui.Core.Actual.IRunLoop
{
    public Application Abstract { get; }

    public BrowserRunLoop(Application applicationAbstract);
    public int Run();
    public void Quit();
}

BrowserRunLoop.BrowserRunLoop(Application applicationAbstract)

public BrowserRunLoop(Application applicationAbstract);

Application BrowserRunLoop.Abstract

public Application Abstract { get; }

void BrowserRunLoop.Quit()

public void Quit();

int BrowserRunLoop.Run()

public int Run();

class BrowserWindow

public partial class BrowserWindow : Xui.Core.Actual.IWindow
{
    public static BrowserWindow? Instance { get; }
    public Core.Abstract.IWindow Abstract { get; }
    public IServiceProvider NextServiceProvider { get; }
    public ITextMeasureContext TextMeasureContext { get; }

    public BrowserWindow(Core.Abstract.IWindow windowAbstract, IServiceProvider nextServiceProvider);
    public string Title { get; set; }
    public bool RequireKeyboard { get; set; }

    public void Invalidate();
    public void Show();
    public void Close();
    public object? GetService(Type serviceType);
}
public unsafe partial class BrowserWindow
{
}
public unsafe partial class BrowserWindow
{
}
public unsafe partial class BrowserWindow
{
}
public unsafe partial class BrowserWindow
{
}
public unsafe partial class BrowserWindow
{
}
public unsafe partial class BrowserWindow
{
}
public unsafe partial class BrowserWindow
{
}
public unsafe partial class BrowserWindow
{
}

BrowserWindow.BrowserWindow(IWindow windowAbstract, IServiceProvider nextServiceProvider)

public BrowserWindow(Core.Abstract.IWindow windowAbstract, IServiceProvider nextServiceProvider);

IWindow BrowserWindow.Abstract

public Core.Abstract.IWindow Abstract { get; }

void BrowserWindow.Close()

public void Close();

object? BrowserWindow.GetService(Type serviceType)

public object? GetService(Type serviceType);

BrowserWindow? BrowserWindow.Instance

public static BrowserWindow? Instance { get; }

void BrowserWindow.Invalidate()

public void Invalidate();

IServiceProvider BrowserWindow.NextServiceProvider

public IServiceProvider NextServiceProvider { get; }

bool BrowserWindow.RequireKeyboard

public bool RequireKeyboard { get; set; }

void BrowserWindow.Show()

public void Show();

ITextMeasureContext BrowserWindow.TextMeasureContext

public ITextMeasureContext TextMeasureContext { get; }

string BrowserWindow.Title

public string Title { get; set; }