Ejemplo n.º 1
0
 public ImageAndColor(
     UnsettableColor color, UnsettableSprite image, UnsettableImageType type)
 {
     _color = color ?? new UnsettableColor();
     _image = image ?? new UnsettableSprite();
     _type  = type ?? new UnsettableImageType();
 }
Ejemplo n.º 2
0
        public ImageAndColor(ImageAndColor source)
        {
            Assert.IsNotNull(source);

            _color = source.Color;
            _image = source.Image;
            _type  = source.Type;
        }
Ejemplo n.º 3
0
 public TextStyle()
 {
     _fontSize           = new UnsettableInt();
     _fontStyle          = new UnsettableFontStyle();
     _alignment          = new UnsettableTextAnchor();
     _horizontalOverflow = new UnsettableHorizontalWrapMode();
     _verticalOverflow   = new UnsettableVerticalWrapMode();
     _lineSpacing        = new UnsettableFloat();
     _color = new UnsettableColor();
 }
Ejemplo n.º 4
0
 public TextStyle WithColor(UnsettableColor color) =>
 new TextStyle(
     Font,
     FontSize,
     FontStyle,
     Alignment,
     HorizontalOverflow,
     VerticalOverflow,
     LineSpacing,
     color);
Ejemplo n.º 5
0
        public TextStyle(TextStyle source)
        {
            Assert.IsNotNull(source, "source != null");

            _font               = source.Font;
            _fontSize           = source.FontSize;
            _fontStyle          = source.FontStyle;
            _alignment          = source.Alignment;
            _horizontalOverflow = source.HorizontalOverflow;
            _verticalOverflow   = source.VerticalOverflow;
            _lineSpacing        = source.LineSpacing;
            _color              = source.Color;
        }
Ejemplo n.º 6
0
 public TextStyle(
     UnsettableFont font,
     UnsettableInt fontSize,
     UnsettableFontStyle fontStyle,
     UnsettableTextAnchor alignment,
     UnsettableHorizontalWrapMode horizontalOverflow,
     UnsettableVerticalWrapMode verticalOverflow,
     UnsettableFloat lineSpacing,
     UnsettableColor color)
 {
     _font               = font ?? new UnsettableFont();
     _fontSize           = fontSize ?? new UnsettableInt();
     _fontStyle          = fontStyle ?? new UnsettableFontStyle();
     _alignment          = alignment ?? new UnsettableTextAnchor();
     _horizontalOverflow = horizontalOverflow ?? new UnsettableHorizontalWrapMode();
     _verticalOverflow   = verticalOverflow ?? new UnsettableVerticalWrapMode();
     _lineSpacing        = lineSpacing ?? new UnsettableFloat();
     _color              = color ?? new UnsettableColor();
 }
Ejemplo n.º 7
0
 public ImageAndColor WithColor(UnsettableColor color) => new ImageAndColor(color, Image, Type);
Ejemplo n.º 8
0
 public ImageAndColor()
 {
     _color = new UnsettableColor();
     _image = new UnsettableSprite();
     _type  = new UnsettableImageType();
 }