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; }
/// <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); }
public ImageElement(StyleState style, ImageTypes imageType = ImageTypes.UI) : base(style) { ImageType = imageType; }
public CharacterElement(StyleState style, char c) : base(style) { Character = c; }
public InternalHyphenBreakElement(StyleState style) : base(style, '-') { }
private void RecalculateStyle() { Style = new StyleState(m_Provider); for (int i = 0; i < m_OpenTags.Count; i++) { ParseTag(m_OpenTags[i]); } }
public BlockElement(string tag, StyleState style) : base(style) { Tag = tag; }
public InternalLineBreakElement(StyleState style) : base(style, '\n') { }