/// <summary> /// /// </summary> public FrameComponent() { LeftEdgeFormatting = new FormattingSetting <VerticalFormatting>(VerticalFormatting.Stretched); RightEdgeFormatting = new FormattingSetting <VerticalFormatting>(VerticalFormatting.Stretched); TopEdgeFormatting = new FormattingSetting <HorizontalFormatting>(HorizontalFormatting.Stretched); BottomEdgeFormatting = new FormattingSetting <HorizontalFormatting>(HorizontalFormatting.Stretched); BackgroundVertFormatting = new FormattingSetting <VerticalFormatting>(VerticalFormatting.Stretched); BackgroundHorzFormatting = new FormattingSetting <HorizontalFormatting>(HorizontalFormatting.Stretched); }
public bool Equals(FormattingSetting <T> other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Equals(other.Value, Value) && Equals(other.PropertySource, PropertySource)); }
public TextComponent() { #if CEGUI_BIDI_SUPPORT _bidiVisualMapping = new NBidiVisualMapping(); #else _bidiVisualMapping = null; #endif _bidiDataValid = false; _formattedRenderedString = new LeftAlignedRenderedString(_renderedString); _lastHorizontalFormatting = HorizontalTextFormatting.LeftAligned; _vertFormatting = new FormattingSetting <VerticalTextFormatting>(VerticalTextFormatting.TopAligned); _horzFormatting = new FormattingSetting <HorizontalTextFormatting>(HorizontalTextFormatting.LeftAligned); }
/// <summary> /// Constructor /// </summary> public ImageryComponent() { Image = null; VerticalFormatting = new FormattingSetting <VerticalFormatting>(Base.VerticalFormatting.TopAligned); HorizontalFormatting = new FormattingSetting <HorizontalFormatting>(Base.HorizontalFormatting.LeftAligned); }