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.
106 lines
2.2 KiB
106 lines
2.2 KiB
using System;
|
|
using Avalonia.Media;
|
|
using Avalonia.Platform;
|
|
using Avalonia.Rendering.SceneGraph;
|
|
using Avalonia.Utilities;
|
|
using Avalonia.Media.Imaging;
|
|
|
|
namespace Avalonia.Benchmarks
|
|
{
|
|
internal class NullDrawingContextImpl : IDrawingContextImpl
|
|
{
|
|
public void Dispose()
|
|
{
|
|
}
|
|
|
|
public Matrix Transform { get; set; }
|
|
|
|
public void Clear(Color color)
|
|
{
|
|
}
|
|
|
|
public void DrawBitmap(IRef<IBitmapImpl> source, double opacity, Rect sourceRect, Rect destRect,
|
|
BitmapInterpolationMode bitmapInterpolationMode = BitmapInterpolationMode.Default)
|
|
{
|
|
}
|
|
|
|
public void DrawBitmap(IRef<IBitmapImpl> source, IBrush opacityMask, Rect opacityMaskRect, Rect destRect)
|
|
{
|
|
}
|
|
|
|
public void DrawLine(IPen pen, Point p1, Point p2)
|
|
{
|
|
}
|
|
|
|
public void DrawGeometry(IBrush brush, IPen pen, IGeometryImpl geometry)
|
|
{
|
|
}
|
|
|
|
public void DrawRectangle(IBrush brush, IPen pen, RoundedRect rect, BoxShadows boxShadows = default)
|
|
{
|
|
}
|
|
|
|
public void DrawEllipse(IBrush brush, IPen pen, Rect rect)
|
|
{
|
|
}
|
|
|
|
public void DrawGlyphRun(IBrush foreground, IRef<IGlyphRunImpl> glyphRun)
|
|
{
|
|
}
|
|
|
|
public IDrawingContextLayerImpl CreateLayer(Size size)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
public void PushClip(Rect clip)
|
|
{
|
|
}
|
|
|
|
public void PushClip(RoundedRect clip)
|
|
{
|
|
}
|
|
|
|
public void PopClip()
|
|
{
|
|
}
|
|
|
|
public void PushOpacity(double opacity, Rect bounds)
|
|
{
|
|
}
|
|
|
|
public void PopOpacity()
|
|
{
|
|
}
|
|
|
|
public void PushOpacityMask(IBrush mask, Rect bounds)
|
|
{
|
|
}
|
|
|
|
public void PopOpacityMask()
|
|
{
|
|
}
|
|
|
|
public void PushGeometryClip(IGeometryImpl clip)
|
|
{
|
|
}
|
|
|
|
public void PopGeometryClip()
|
|
{
|
|
}
|
|
|
|
public void PushBitmapBlendMode(BitmapBlendingMode blendingMode)
|
|
{
|
|
}
|
|
|
|
public void PopBitmapBlendMode()
|
|
{
|
|
}
|
|
|
|
public void Custom(ICustomDrawOperation custom)
|
|
{
|
|
}
|
|
|
|
public object GetFeature(Type t) => null;
|
|
}
|
|
}
|
|
|