コード例 #1
0
ファイル: Colors.cs プロジェクト: AnotherEpigone/SadConsole
        /// <summary>
        /// Copies the colors to another color object.
        /// </summary>
        /// <param name="colors">The color object to copy to.</param>
        public void CopyTo(Colors colors)
        {
            colors.White    = White;
            colors.Black    = Black;
            colors.Gray     = Gray;
            colors.GrayDark = GrayDark;

            colors.Red    = Red;
            colors.Green  = Green;
            colors.Blue   = Blue;
            colors.Purple = Purple;
            colors.Yellow = Yellow;
            colors.Orange = Orange;
            colors.Cyan   = Cyan;
            colors.Brown  = Brown;

            colors.RedDark    = RedDark;
            colors.GreenDark  = GreenDark;
            colors.BlueDark   = BlueDark;
            colors.PurpleDark = PurpleDark;
            colors.YellowDark = YellowDark;
            colors.OrangeDark = OrangeDark;
            colors.CyanDark   = CyanDark;
            colors.BrownDark  = BrownDark;

            colors.Gold       = Gold;
            colors.GoldDark   = GoldDark;
            colors.Silver     = Silver;
            colors.SilverDark = SilverDark;
            colors.Bronze     = Bronze;
            colors.BronzeDark = BronzeDark;

            colors.ModalBackground = ModalBackground;

            colors.IsLightTheme = IsLightTheme;

            colors.Title = Title.Clone();
            colors.Lines = Lines.Clone();
            colors.ControlForegroundNormal    = ControlForegroundNormal.Clone();
            colors.ControlForegroundDisabled  = ControlForegroundDisabled.Clone();
            colors.ControlForegroundMouseOver = ControlForegroundMouseOver.Clone();
            colors.ControlForegroundMouseDown = ControlForegroundMouseDown.Clone();
            colors.ControlForegroundSelected  = ControlForegroundSelected.Clone();
            colors.ControlForegroundFocused   = ControlForegroundFocused.Clone();
            colors.ControlBackgroundNormal    = ControlBackgroundNormal.Clone();
            colors.ControlBackgroundDisabled  = ControlBackgroundDisabled.Clone();
            colors.ControlBackgroundMouseOver = ControlBackgroundMouseOver.Clone();
            colors.ControlBackgroundMouseDown = ControlBackgroundMouseDown.Clone();
            colors.ControlBackgroundSelected  = ControlBackgroundSelected.Clone();
            colors.ControlBackgroundFocused   = ControlBackgroundFocused.Clone();
            colors.ControlHostForeground      = ControlHostForeground.Clone();
            colors.ControlHostBackground      = ControlHostBackground.Clone();

            colors.Appearance_ControlNormal.CopyAppearanceFrom(Appearance_ControlNormal);
            colors.Appearance_ControlDisabled.CopyAppearanceFrom(Appearance_ControlDisabled);
            colors.Appearance_ControlOver.CopyAppearanceFrom(Appearance_ControlOver);
            colors.Appearance_ControlSelected.CopyAppearanceFrom(Appearance_ControlSelected);
            colors.Appearance_ControlMouseDown.CopyAppearanceFrom(Appearance_ControlMouseDown);
            colors.Appearance_ControlFocused.CopyAppearanceFrom(Appearance_ControlFocused);
        }
コード例 #2
0
ファイル: DebugInfo.cs プロジェクト: ngoffee/ela
        internal DebugInfo Clone()
        {
            var di = new DebugInfo();

            di.Scopes    = Scopes.Clone();
            di.Lines     = Lines.Clone();
            di.Vars      = Vars.Clone();
            di.Functions = Functions.Clone();
            di.File      = File;
            return(di);
        }