Пример #1
0
 /// <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);
 }
Пример #2
0
 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));
 }
Пример #3
0
        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);
        }
Пример #4
0
 /// <summary>
 /// Constructor
 /// </summary>
 public ImageryComponent()
 {
     Image = null;
     VerticalFormatting   = new FormattingSetting <VerticalFormatting>(Base.VerticalFormatting.TopAligned);
     HorizontalFormatting = new FormattingSetting <HorizontalFormatting>(Base.HorizontalFormatting.LeftAligned);
 }