Ejemplo n.º 1
0
        public BoxStyle(Rdl.Engine.Style style, Rdl.Runtime.Context context)
        {
            if (style == null)
            {
                style = Rdl.Engine.Style.DefaultStyle;
            }
            BorderColor                = new BorderColor(style.BorderColor, context);
            BorderStyle                = new BorderStyle(style.BorderStyle, context);
            BorderWidth                = new BorderWidth(style.BorderWidth, context);
            BackgroundColor            = style.BackgroundColor(context);
            BackgroundGradientType     = style.BackgroundGradientType(context);
            BackgroundGradientEndColor = style.BackgroundGradientEndColor(context);
            Color         = style.Color(context);
            PaddingLeft   = style.PaddingLeft(context);
            PaddingRight  = style.PaddingRight(context);
            PaddingTop    = style.PaddingTop(context);
            PaddingBottom = style.PaddingBottom(context);

            Rdl.Engine.BackgroundImage bi = style.BackgroundImage;
            if (bi != null)
            {
                BackgroundImage             = new ImageData();
                BackgroundImage.imageData   = bi.GetImage(context);
                BackgroundImage.Sizing      = bi.Sizing;
                BackgroundImage.ImageRepeat = bi.ImageRepeat(context);
            }
        }
Ejemplo n.º 2
0
 public BorderWidth(Rdl.Engine.BorderWidth b, Rdl.Runtime.Context context)
 {
     Left   = b.Left(context);
     Right  = b.Right(context);
     Top    = b.Top(context);
     Bottom = b.Bottom(context);
 }
Ejemplo n.º 3
0
 public TextStyle(Rdl.Engine.Style style, Rdl.Runtime.Context context)
     : base(style, context)
 {
     if (style == null)
     {
         style = Rdl.Engine.Style.DefaultStyle;
     }
     FontStyle       = style.FontStyle(context);
     FontFamily      = style.FontFamily(context);
     FontSize        = style.FontSize(context);
     FontWeight      = style.FontWeight(context);
     Format          = style.Format(context);
     TextDecoration  = style.TextDecoration(context);
     TextAlign       = style.TextAlign(context);
     VerticalAlign   = style.VerticalAlign(context);
     LineHeight      = style.LineHeight(context);
     Direction       = style.Direction(context);
     WritingMode     = style.WritingMode(context);
     Language        = style.Language(context);
     UnicodeBiDi     = style.UnicodeBiDi(context);
     Calendar        = style.Calendar(context);
     NumeralLanguage = style.NumeralLanguage(context);
     NumeralVariant  = style.NumeralVariant(context);
 }