Exemple #1
0
 // /////////////////////////////////////////////////////////////////////////////////
 /// <summary>
 /// Default constructor, sets data to defaults
 /// </summary>
 public ApplicationInfo()
 {
     Fullscreen = false;
     ScreenSize = new Size(80, 60);
     Title      = "";
     Font       = null;
     FontFlags  = TCODFontFlags.LayoutAsciiInColumn;
     Pigments   = new PigmentAlternatives();
 }
Exemple #2
0
        /// <summary>
        /// Performs a copy of this instance.  Since the Pigment class is
        /// immutable, this is conceptually a deep copy.
        /// </summary>
        /// <returns></returns>
        public PigmentAlternatives Copy()
        {
            PigmentAlternatives ret = new PigmentAlternatives();

            foreach (var itm in this)
            {
                ret.Add(itm.Key, itm.Value);
            }

            return(ret);
        }
Exemple #3
0
 // /////////////////////////////////////////////////////////////////////////////////
 /// <summary>
 /// Default constructor initializes properties to their defaults.
 /// </summary>
 protected WidgetTemplate()
 {
     OwnerDraw = false;
     Pigments  = new PigmentAlternatives();
 }