SharpVectors.Dom.Svg.SvgPaint._setPaintType C# (CSharp) Method

_setPaintType() private method

private _setPaintType ( bool hasUri, bool hasRgb, bool hasIcc, bool hasNone, bool hasCurrentColor ) : void
hasUri bool
hasRgb bool
hasIcc bool
hasNone bool
hasCurrentColor bool
return void
        private void _setPaintType(bool hasUri, bool hasRgb, bool hasIcc, bool hasNone, bool hasCurrentColor)
        {
            if(hasUri)
            {
                if(hasRgb)
                {
                    if(hasIcc)
                    {
                        _paintType = SvgPaintType.UriRgbColorIccColor;
                        }
                    else
                    {
                        _paintType = SvgPaintType.UriRgbColor;
                    }
                }
                else if(hasNone)
                {
                    _paintType = SvgPaintType.UriNone;
                }
                else if(hasCurrentColor)
                {
                    _paintType = SvgPaintType.UriCurrentColor;
                }
                else
                {
                    _paintType = SvgPaintType.Uri;
                }
            }
            else
            {
                if(hasRgb)
                {
                    if(hasIcc)
                    {
                        _paintType = SvgPaintType.RgbColorIccColor;
                        }
                    else
                    {
                        _paintType = SvgPaintType.RgbColor;
                    }
                }
                else if(hasNone)
                {
                    _paintType = SvgPaintType.None;
                }
                else if(hasCurrentColor)
                {
                    _paintType = SvgPaintType.CurrentColor;
                }
                else
                {
                    _paintType = SvgPaintType.Unknown;
                }
            }
        }