public void Custom(ICustomDrawOperation custom)
 {
     var next = NextDrawAs<CustomDrawOperation>();
     if (next == null || !next.Item.Equals(Transform, custom))
         Add(new CustomDrawOperation(custom, Transform));
     else
         ++_drawOperationindex;
 }
Example #2
0
        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);
Example #5
0
 public bool Equals([AllowNull] ICustomDrawOperation other) => false;
 public bool Equals(ICustomDrawOperation other) => false;
Example #7
0
 /// <summary>
 /// Draws a custom drawing operation
 /// </summary>
 /// <param name="custom">custom operation</param>
 public void Custom(ICustomDrawOperation custom) => PlatformImpl.Custom(custom);
Example #8
0
 public bool Equals(Matrix transform, ICustomDrawOperation custom) =>
 Transform == transform && Custom?.Equals(custom) == true;
Example #9
0
 public CustomDrawOperation(ICustomDrawOperation custom, Matrix transform)
     : base(custom.Bounds, transform)
 {
     Transform = transform;
     Custom    = custom;
 }
Example #10
0
 public bool Equals(ICustomDrawOperation other)
 {
     return(other is GlDrawOperation operation && Equals(this, operation) && operation.Bounds == Bounds);
 }
Example #11
0
 public void Custom(ICustomDrawOperation custom)
 {
     CheckLease();
     custom.Render(this);
 }
Example #12
0
 public bool Equals([AllowNull] ICustomDrawOperation other)
 {
     return(this == other);
 }
 public bool Equals(ICustomDrawOperation other) => this == other;