示例#1
0
 public StyleState(StyleState parent)
 {
     m_IsUnderlined = parent.m_IsUnderlined;
     IsBold = parent.IsBold;
     IsItalic = parent.IsItalic;
     IsOutlined = parent.IsOutlined;
     Font = parent.Font;
     Color = parent.Color;
     ColorHue = parent.ColorHue;
     ActiveColorHue = parent.ActiveColorHue;
     HoverColorHue = parent.HoverColorHue;
     HREF = parent.HREF;
 }
示例#2
0
 /// <summary>
 /// Creates a new atom.
 /// </summary>
 /// <param name="openTags">This atom will copy the styles from this parameter.</param>
 public AElement(StyleState style)
 {
     Style = new StyleState(style);
 }
示例#3
0
 public ImageElement(StyleState style, ImageTypes imageType = ImageTypes.UI)
     : base(style)
 {
     ImageType = imageType;
 }
示例#4
0
 public CharacterElement(StyleState style, char c)
     : base(style)
 {
     Character = c;
 }
        public InternalHyphenBreakElement(StyleState style) : base(style, '-')
        {

        }
示例#6
0
 private void RecalculateStyle()
 {
     Style = new StyleState(m_Provider);
     for (int i = 0; i < m_OpenTags.Count; i++)
     {
         ParseTag(m_OpenTags[i]);
     }
 }
示例#7
0
 public BlockElement(string tag, StyleState style)
     : base(style)
 {
     Tag = tag;
 }
        public InternalLineBreakElement(StyleState style) : base(style, '\n')
        {

        }