public void Custom(ICustomDrawOperation custom) { var next = NextDrawAs<CustomDrawOperation>(); if (next == null || !next.Item.Equals(Transform, custom)) Add(new CustomDrawOperation(custom, Transform)); else ++_drawOperationindex; }
protected void Resized(Rect rect) { SizeChanged?.Invoke(this, rect.Size); if (!rect.IsEmpty) { RenderSize = rect.Size * VisualRoot.RenderScaling; DrawOperation = CreateDrawOperation(); } }
public void Custom(ICustomDrawOperation custom) { }
public void Custom(ICustomDrawOperation custom) => custom.Render(this);
public bool Equals([AllowNull] ICustomDrawOperation other) => false;
public bool Equals(ICustomDrawOperation other) => false;
/// <summary> /// Draws a custom drawing operation /// </summary> /// <param name="custom">custom operation</param> public void Custom(ICustomDrawOperation custom) => PlatformImpl.Custom(custom);
public bool Equals(Matrix transform, ICustomDrawOperation custom) => Transform == transform && Custom?.Equals(custom) == true;
public CustomDrawOperation(ICustomDrawOperation custom, Matrix transform) : base(custom.Bounds, transform) { Transform = transform; Custom = custom; }
public bool Equals(ICustomDrawOperation other) { return(other is GlDrawOperation operation && Equals(this, operation) && operation.Bounds == Bounds); }
public void Custom(ICustomDrawOperation custom) { CheckLease(); custom.Render(this); }
public bool Equals([AllowNull] ICustomDrawOperation other) { return(this == other); }
public bool Equals(ICustomDrawOperation other) => this == other;