Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CandlestickGeometry"/> class.
 /// </summary>
 public CandlestickGeometry()
 {
     _wProperty = RegisterMotionProperty(new FloatMotionProperty(nameof(Width), 0f));
     _oProperty = RegisterMotionProperty(new FloatMotionProperty(nameof(Open), 0f));
     _cProperty = RegisterMotionProperty(new FloatMotionProperty(nameof(Close), 0f));
     _lProperty = RegisterMotionProperty(new FloatMotionProperty(nameof(Low), 0f));
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SolidColorPaintTask"/> class.
 /// </summary>
 /// <param name="color">The color.</param>
 /// <param name="strokeWidth">Width of the stroke.</param>
 public SolidColorPaintTask(SKColor color, float strokeWidth)
     : base(color)
 {
     strokeWidthTransition  = RegisterMotionProperty(new FloatMotionProperty(nameof(StrokeThickness), strokeWidth));
     _strokeMiterTransition = RegisterMotionProperty(new FloatMotionProperty(nameof(StrokeMiter), 0f));
     Color = color;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="StepLineSegment"/> class.
 /// </summary>
 public StepLineSegment()
 {
     _x0Property = RegisterMotionProperty(new FloatMotionProperty(nameof(X0), 0f));
     _y0Property = RegisterMotionProperty(new FloatMotionProperty(nameof(Y0), 0f));
     _x1Property = RegisterMotionProperty(new FloatMotionProperty(nameof(X1), 0f));
     _y1Property = RegisterMotionProperty(new FloatMotionProperty(nameof(Y1), 0f));
 }
Example #4
0
 public SolidColorPaintTask()
 {
     colorTransition       = RegisterMotionProperty(new ColorMotionProperty(nameof(Color), new SKColor()));
     strokeMiterTransition = RegisterMotionProperty(new FloatMotionProperty(nameof(StrokeMiter), 0f));
     pathEffectTransition  = RegisterMotionProperty(new PathEffectMotionProperty(nameof(PathEffect)));
     shaderTransition      = RegisterMotionProperty(new ShaderMotionProperty(nameof(Shader)));
 }
Example #5
0
 public Geometry()
 {
     x         = RegisterMotionProperty(new FloatMotionProperty(nameof(X), 0));
     y         = RegisterMotionProperty(new FloatMotionProperty(nameof(Y), 0));
     transform = RegisterMotionProperty(new MatrixMotionProperty(nameof(Transform)));
     rotation  = RegisterMotionProperty(new FloatMotionProperty(nameof(Rotation), 0));
 }
Example #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LabelGeometry"/> class.
 /// </summary>
 public LabelGeometry()
     : base(true)
 {
     _textSizeProperty   = RegisterMotionProperty(new FloatMotionProperty(nameof(TextSize), 11));
     _backgroundProperty = RegisterMotionProperty(new ColorMotionProperty(nameof(Background), LvcColor.Empty));
     TransformOrigin     = new LvcPoint(0f, 0f);
 }
Example #7
0
 public SolidColorPaintTask(SKColor color)
     : base(color)
 {
     strokeMiterTransition = RegisterMotionProperty(new FloatMotionProperty(nameof(StrokeMiter), 0f));
     pathEffectTransition  = RegisterMotionProperty(new PathEffectMotionProperty(nameof(PathEffect)));
     shaderTransition      = RegisterMotionProperty(new ShaderMotionProperty(nameof(Shader)));
 }
Example #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Geometry"/> class.
 /// </summary>
 public Geometry(bool hasCustomTransform = false)
 {
     xProperty               = RegisterMotionProperty(new FloatMotionProperty(nameof(X), 0));
     yProperty               = RegisterMotionProperty(new FloatMotionProperty(nameof(Y), 0));
     rotationProperty        = RegisterMotionProperty(new FloatMotionProperty(nameof(Rotation), 0));
     opacityProperty         = RegisterMotionProperty(new FloatMotionProperty(nameof(Opacity), 1));
     this.hasCustomTransform = hasCustomTransform;
 }
Example #9
0
 public SolidColorPaintTask(SKColor color)
 {
     colorTransition = RegisterMotionProperty(
         new ColorMotionProperty(nameof(Color), new SKColor(color.Red, color.Green, color.Blue, color.Alpha)));
     strokeMiterTransition = RegisterMotionProperty(new FloatMotionProperty(nameof(StrokeMiter), 0f));
     pathEffectTransition  = RegisterMotionProperty(new PathEffectMotionProperty(nameof(PathEffect)));
     shaderTransition      = RegisterMotionProperty(new ShaderMotionProperty(nameof(Shader)));
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SolidColorPaintTask"/> class.
 /// </summary>
 /// <param name="color">The color.</param>
 /// <param name="strokeWidth">Width of the stroke.</param>
 public SolidColorPaintTask(SKColor color, float strokeWidth)
     : base(color)
 {
     strokeWidthTransition  = RegisterMotionProperty(new FloatMotionProperty(nameof(StrokeThickness), strokeWidth));
     _strokeMiterTransition = RegisterMotionProperty(new FloatMotionProperty(nameof(StrokeMiter), 0f));
     _pathEffectTransition  = RegisterMotionProperty(new PathEffectMotionProperty(nameof(PathEffect)));
     _shaderTransition      = RegisterMotionProperty(new ShaderMotionProperty(nameof(Shader)));
 }
Example #11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CubicBezierSegment"/> class.
 /// </summary>
 public CubicBezierSegment()
 {
     _x0Property = RegisterMotionProperty(new FloatMotionProperty(nameof(X0), 0f));
     _y0Property = RegisterMotionProperty(new FloatMotionProperty(nameof(Y0), 0f));
     _x1Property = RegisterMotionProperty(new FloatMotionProperty(nameof(X1), 0f));
     _y1Property = RegisterMotionProperty(new FloatMotionProperty(nameof(Y1), 0f));
     _x2Property = RegisterMotionProperty(new FloatMotionProperty(nameof(X2), 0f));
     _y2Property = RegisterMotionProperty(new FloatMotionProperty(nameof(Y2), 0f));
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="Geometry"/> class.
 /// </summary>
 public Geometry(bool hasCustomTransform = false)
 {
     x                       = RegisterMotionProperty(new FloatMotionProperty(nameof(X), 0));
     y                       = RegisterMotionProperty(new FloatMotionProperty(nameof(Y), 0));
     transform               = RegisterMotionProperty(new MatrixMotionProperty(nameof(Transform), SKMatrix.Identity));
     rotation                = RegisterMotionProperty(new FloatMotionProperty(nameof(Rotation), 0));
     opacityProperty         = RegisterMotionProperty(new FloatMotionProperty(nameof(Opacity), 1));
     this.hasCustomTransform = hasCustomTransform;
 }
 public CubicBezierSegment()
 {
     x0Transition = RegisterMotionProperty(new FloatMotionProperty(nameof(X0), 0f));
     y0Transition = RegisterMotionProperty(new FloatMotionProperty(nameof(Y0), 0f));
     x1Transition = RegisterMotionProperty(new FloatMotionProperty(nameof(X1), 0f));
     y1Transition = RegisterMotionProperty(new FloatMotionProperty(nameof(Y1), 0f));
     x2Transition = RegisterMotionProperty(new FloatMotionProperty(nameof(X2), 0f));
     y2Transition = RegisterMotionProperty(new FloatMotionProperty(nameof(Y2), 0f));
 }
 public DoughnutGeometry()
 {
     cxProperty          = RegisterMotionProperty(new FloatMotionProperty(nameof(CenterX)));
     cyProperty          = RegisterMotionProperty(new FloatMotionProperty(nameof(CenterY)));
     wProperty           = RegisterMotionProperty(new FloatMotionProperty(nameof(Width)));
     hProperty           = RegisterMotionProperty(new FloatMotionProperty(nameof(Height)));
     startProperty       = RegisterMotionProperty(new FloatMotionProperty(nameof(StartAngle)));
     sweepProperty       = RegisterMotionProperty(new FloatMotionProperty(nameof(SweepAngle)));
     pushoutProperty     = RegisterMotionProperty(new FloatMotionProperty(nameof(PushOut)));
     innerRadiusProperty = RegisterMotionProperty(new FloatMotionProperty(nameof(InnerRadius)));
 }
Example #15
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DoughnutGeometry"/> class.
 /// </summary>
 public DoughnutGeometry()
 {
     _cxProperty           = RegisterMotionProperty(new FloatMotionProperty(nameof(CenterX)));
     _cyProperty           = RegisterMotionProperty(new FloatMotionProperty(nameof(CenterY)));
     _wProperty            = RegisterMotionProperty(new FloatMotionProperty(nameof(Width)));
     _hProperty            = RegisterMotionProperty(new FloatMotionProperty(nameof(Height)));
     _startProperty        = RegisterMotionProperty(new FloatMotionProperty(nameof(StartAngle)));
     _sweepProperty        = RegisterMotionProperty(new FloatMotionProperty(nameof(SweepAngle)));
     _pushoutProperty      = RegisterMotionProperty(new FloatMotionProperty(nameof(PushOut)));
     _innerRadiusProperty  = RegisterMotionProperty(new FloatMotionProperty(nameof(InnerRadius)));
     _cornerRadiusProperty = RegisterMotionProperty(new FloatMotionProperty(nameof(CornerRadius)));
 }
Example #16
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Geometry"/> class.
 /// </summary>
 protected Geometry(bool hasGeometryTransform = false)
 {
     _hasGeometryTransform    = hasGeometryTransform;
     _xProperty               = RegisterMotionProperty(new FloatMotionProperty(nameof(X), 0));
     _yProperty               = RegisterMotionProperty(new FloatMotionProperty(nameof(Y), 0));
     _opacityProperty         = RegisterMotionProperty(new FloatMotionProperty(nameof(Opacity), 1));
     _transformOriginProperty = RegisterMotionProperty(
         new PointMotionProperty(nameof(TransformOrigin), new LvcPoint(0.5f, 0.5f)));
     _translateProperty = RegisterMotionProperty(
         new PointMotionProperty(nameof(TranslateTransform), new LvcPoint(0, 0)));
     _rotationProperty = RegisterMotionProperty(
         new FloatMotionProperty(nameof(RotateTransform), 0));
     _scaleProperty = RegisterMotionProperty(
         new PointMotionProperty(nameof(ScaleTransform), new LvcPoint(1, 1)));
     _skewProperty = RegisterMotionProperty(
         new PointMotionProperty(nameof(SkewTransform), new LvcPoint(1, 1)));
     _transformProperty = RegisterMotionProperty(
         new SKMatrixMotionProperty(nameof(Transform), SKMatrix.Identity));
 }
Example #17
0
 public PaintTask()
 {
     strokeWidthTransition = RegisterMotionProperty(new FloatMotionProperty(nameof(StrokeWidth), 0f));
     colorTransition       = RegisterMotionProperty(new ColorMotionProperty(nameof(Color), new SKColor()));
 }
Example #18
0
 public TextPaintTask(SKColor color, float fontSize)
 {
     colorTransition    = RegisterMotionProperty(new ColorMotionProperty(nameof(Color), color));
     textSizeTransition = RegisterMotionProperty(new FloatMotionProperty(nameof(TextSize), fontSize));
 }
Example #19
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RoundedRectangleGeometry"/> class.
 /// </summary>
 public RoundedRectangleGeometry()
 {
     _rx = RegisterMotionProperty(new FloatMotionProperty(nameof(Rx), 8f));
     _ry = RegisterMotionProperty(new FloatMotionProperty(nameof(Ry), 8f));
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SolidColorPaintTask"/> class.
 /// </summary>
 public SolidColorPaintTask()
 {
     _strokeMiterTransition = RegisterMotionProperty(new FloatMotionProperty(nameof(StrokeMiter), 0f));
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SolidColorPaintTask"/> class.
 /// </summary>
 /// <param name="color">The color.</param>
 public SolidColorPaintTask(SKColor color)
     : base(color)
 {
     _strokeMiterTransition = RegisterMotionProperty(new FloatMotionProperty(nameof(StrokeMiter), 0f));
     Color = color;
 }
Example #22
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LineSegment"/> class.
 /// </summary>
 public LineSegment()
 {
     _xProperty = RegisterMotionProperty(new FloatMotionProperty(nameof(X), 0f));
     _yProperty = RegisterMotionProperty(new FloatMotionProperty(nameof(Y), 0f));
 }
Example #23
0
 public LineGeometry()
 {
     x1 = RegisterMotionProperty(new FloatMotionProperty(nameof(X1), 0f));
     y1 = RegisterMotionProperty(new FloatMotionProperty(nameof(Y1), 0f));
 }
Example #24
0
 public LineSegment()
 {
     xTransition = RegisterMotionProperty(new FloatMotionProperty(nameof(X), 0f));
     yTransition = RegisterMotionProperty(new FloatMotionProperty(nameof(Y), 0f));
 }
 public MoveToPathCommand()
 {
     xTransition = RegisterMotionProperty(new FloatMotionProperty(nameof(X), 0f));
     yTransition = RegisterMotionProperty(new FloatMotionProperty(nameof(Y), 0f));
 }
Example #26
0
 public PaintTask()
 {
     strokeWidthTransition = RegisterMotionProperty(new FloatMotionProperty(nameof(StrokeWidth), 0f));
 }
Example #27
0
 public SizedGeometry() : base()
 {
     width  = RegisterMotionProperty(new FloatMotionProperty(nameof(Width), 0));
     height = RegisterMotionProperty(new FloatMotionProperty(nameof(Height), 0));
 }
Example #28
0
 public PaintTask(SKColor color)
 {
     strokeWidthTransition = RegisterMotionProperty(new FloatMotionProperty(nameof(StrokeWidth), 0f));
     colorTransition       = RegisterMotionProperty(
         new ColorMotionProperty(nameof(Color), new SKColor(color.Red, color.Green, color.Blue, color.Alpha)));
 }
Example #29
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SizedGeometry"/> class.
 /// </summary>
 protected SizedGeometry() : base()
 {
     widthProperty  = RegisterMotionProperty(new FloatMotionProperty(nameof(Width), 0));
     heightProperty = RegisterMotionProperty(new FloatMotionProperty(nameof(Height), 0));
 }
Example #30
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PathShape"/> class.
 /// </summary>
 public PathShape() : base()
 {
     _strokeProperty = RegisterMotionProperty(new ColorMotionProperty(nameof(StrokeColor), Color.FromArgb(0, 255, 255, 255)));
     _stProperty     = RegisterMotionProperty(new FloatMotionProperty(nameof(StrokeThickness)));
     _fillProperty   = RegisterMotionProperty(new ColorMotionProperty(nameof(StrokeColor), Color.FromArgb(0, 255, 255, 255)));
 }