コード例 #1
0
 public override object Clone() => new ListBoxItemColorTheme()
 {
     Normal    = Normal.Clone(),
     Disabled  = Disabled.Clone(),
     MouseOver = MouseOver.Clone(),
     MouseDown = MouseDown.Clone(),
     Selected  = Selected.Clone(),
     Focused   = Focused.Clone(),
 };
コード例 #2
0
        public JwSilderBarThemeStatus Clone()
        {
            var r = new JwSilderBarThemeStatus();

            r.Normal  = Normal.Clone();
            r.Active  = Active.Clone();
            r.Disable = Disable.Clone();
            return(r);
        }
コード例 #3
0
ファイル: ThemeStates.cs プロジェクト: zxsean/SadConsole
 /// <summary>
 /// Performs a deep copy of this theme.
 /// </summary>
 /// <returns>A new instance of the theme.</returns>
 public ThemeStates Clone() => new ThemeStates()
 {
     Normal    = Normal.Clone(),
     Disabled  = Disabled.Clone(),
     MouseOver = MouseOver.Clone(),
     MouseDown = MouseDown.Clone(),
     Selected  = Selected.Clone(),
     Focused   = Focused.Clone(),
 };
コード例 #4
0
 public virtual object Clone() => new ListBoxItemTheme()
 {
     Normal    = Normal.Clone(),
     Disabled  = Disabled.Clone(),
     MouseOver = MouseOver.Clone(),
     MouseDown = MouseDown.Clone(),
     Selected  = Selected.Clone(),
     Focused   = Focused.Clone(),
 };
コード例 #5
0
 /// <inheritdoc />
 public override ThemeBase Clone() => new DrawingSurfaceTheme()
 {
     Normal             = Normal.Clone(),
     Disabled           = Disabled.Clone(),
     MouseOver          = MouseOver.Clone(),
     MouseDown          = MouseDown.Clone(),
     Selected           = Selected.Clone(),
     Focused            = Focused.Clone(),
     UseNormalStateOnly = UseNormalStateOnly
 };
コード例 #6
0
 /// <inheritdoc />
 public override ThemeBase Clone() => new ProgressBarTheme()
 {
     Normal     = Normal.Clone(),
     Disabled   = Disabled.Clone(),
     MouseOver  = MouseOver.Clone(),
     MouseDown  = MouseDown.Clone(),
     Selected   = Selected.Clone(),
     Focused    = Focused.Clone(),
     Foreground = Foreground?.Clone(),
     Background = Background?.Clone()
 };
コード例 #7
0
ファイル: ButtonTheme.cs プロジェクト: zxsean/SadConsole
 /// <inheritdoc />
 public override ThemeBase Clone() => new ButtonTheme()
 {
     Normal            = Normal.Clone(),
     Disabled          = Disabled.Clone(),
     MouseOver         = MouseOver.Clone(),
     MouseDown         = MouseDown.Clone(),
     Selected          = Selected.Clone(),
     Focused           = Focused.Clone(),
     ShowEnds          = ShowEnds,
     EndCharacterLeft  = EndCharacterLeft,
     EndCharacterRight = EndCharacterRight
 };
コード例 #8
0
 /// <inheritdoc />
 public override ThemeBase Clone() => new ListBoxTheme((ScrollBarTheme)ScrollBarTheme.Clone())
 {
     Normal          = Normal.Clone(),
     Disabled        = Disabled.Clone(),
     MouseOver       = MouseOver.Clone(),
     MouseDown       = MouseDown.Clone(),
     Selected        = Selected.Clone(),
     Focused         = Focused.Clone(),
     BorderTheme     = BorderTheme?.Clone(),
     BorderLineStyle = (int[])BorderLineStyle?.Clone(),
     DrawBorder      = DrawBorder,
 };
コード例 #9
0
 /// <inheritdoc />
 public override ThemeBase Clone()
 {
     return(new DrawingSurfaceTheme()
     {
         Normal = Normal.Clone(),
         Disabled = Disabled.Clone(),
         MouseOver = MouseOver.Clone(),
         MouseDown = MouseDown.Clone(),
         Selected = Selected.Clone(),
         Focused = Focused.Clone(),
     });
 }
コード例 #10
0
 /// <inheritdoc />
 public override ThemeBase Clone() => new LabelTheme()
 {
     Normal                 = Normal.Clone(),
     Disabled               = Disabled.Clone(),
     MouseOver              = MouseOver.Clone(),
     MouseDown              = MouseDown.Clone(),
     Selected               = Selected.Clone(),
     Focused                = Focused.Clone(),
     UseNormalStateOnly     = UseNormalStateOnly,
     DecoratorStrikethrough = DecoratorStrikethrough,
     DecoratorUnderline     = DecoratorUnderline
 };
コード例 #11
0
 public override object Clone()
 {
     return(new TextBoxTheme()
     {
         Normal = Normal.Clone(),
         Disabled = Disabled.Clone(),
         MouseOver = MouseOver.Clone(),
         MouseDown = MouseDown.Clone(),
         Selected = Selected.Clone(),
         Focused = Focused.Clone(),
         CaretEffect = CaretEffect.Clone()
     });
 }
コード例 #12
0
 /// <inheritdoc />
 public override object Clone()
 {
     return(new Button3dTheme()
     {
         Normal = Normal.Clone(),
         Disabled = Disabled.Clone(),
         MouseOver = MouseOver.Clone(),
         MouseDown = MouseDown.Clone(),
         Selected = Selected.Clone(),
         Focused = Focused.Clone(),
         Shade = Shade.Clone()
     });
 }
コード例 #13
0
ファイル: RadioButtonTheme.cs プロジェクト: zxsean/SadConsole
 /// <inheritdoc />
 public override ThemeBase Clone() => new RadioButtonTheme()
 {
     Normal        = Normal.Clone(),
     Disabled      = Disabled.Clone(),
     MouseOver     = MouseOver.Clone(),
     MouseDown     = MouseDown.Clone(),
     Selected      = Selected.Clone(),
     Focused       = Focused.Clone(),
     CheckedIcon   = CheckedIcon?.Clone(),
     UncheckedIcon = UncheckedIcon?.Clone(),
     LeftBracket   = LeftBracket?.Clone(),
     RightBracket  = RightBracket?.Clone(),
 };
コード例 #14
0
 /// <inheritdoc />
 public override ThemeBase Clone() => new CheckBoxTheme()
 {
     Colors        = Colors?.Clone(),
     Normal        = Normal.Clone(),
     Disabled      = Disabled.Clone(),
     MouseOver     = MouseOver.Clone(),
     MouseDown     = MouseDown.Clone(),
     Selected      = Selected.Clone(),
     Focused       = Focused.Clone(),
     CheckedIcon   = CheckedIcon.Clone(),
     UncheckedIcon = UncheckedIcon.Clone(),
     LeftBracket   = LeftBracket.Clone(),
     RightBracket  = RightBracket.Clone(),
 };
コード例 #15
0
ファイル: ButtonTheme.cs プロジェクト: snjatdw/SadConsole
 /// <inheritdoc />
 public override ThemeBase Clone()
 {
     return(new ButtonLinesTheme()
     {
         Normal = Normal.Clone(),
         Disabled = Disabled.Clone(),
         MouseOver = MouseOver.Clone(),
         MouseDown = MouseDown.Clone(),
         Selected = Selected.Clone(),
         Focused = Focused.Clone(),
         TopLeftLineColors = TopLeftLineColors.Clone(),
         BottomRightLineColors = BottomRightLineColors.Clone()
     });
 }
コード例 #16
0
 /// <summary>
 ///     Copies this instance. Does not include reference lists.
 /// </summary>
 /// <returns>PolygonalFace.</returns>
 public PolygonalFace Copy()
 {
     return(new PolygonalFace
     {
         Area = Area,
         Center = (double[])Center.Clone(),
         Curvature = Curvature,
         Color = Color,
         PartOfConvexHull = PartOfConvexHull,
         Edges = new List <Edge>(),
         Normal = (double[])Normal.Clone(),
         Vertices = new List <Vertex>()
     });
 }
コード例 #17
0
ファイル: ButtonTheme.cs プロジェクト: snjatdw/SadConsole
 /// <inheritdoc />
 public override ThemeBase Clone()
 {
     return(new Button3dTheme()
     {
         Colors = Colors.Clone(),
         Normal = Normal.Clone(),
         Disabled = Disabled.Clone(),
         MouseOver = MouseOver.Clone(),
         MouseDown = MouseDown.Clone(),
         Selected = Selected.Clone(),
         Focused = Focused.Clone(),
         Shade = Shade.Clone()
     });
 }
コード例 #18
0
 /// <summary>
 /// Returns a clone of this object.
 /// </summary>
 /// <returns>The cloned object.</returns>
 public override object Clone()
 {
     return(new ProgressBarTheme()
     {
         Normal = Normal.Clone(),
         Disabled = Disabled.Clone(),
         MouseOver = MouseOver.Clone(),
         MouseDown = MouseDown.Clone(),
         Selected = Selected.Clone(),
         Focused = Focused.Clone(),
         Foreground = Foreground.Clone(),
         Background = Background.Clone()
     });
 }
コード例 #19
0
ファイル: ButtonTheme.cs プロジェクト: zxsean/SadConsole
 /// <inheritdoc />
 public override ThemeBase Clone() => new ButtonLinesTheme()
 {
     Normal                = Normal.Clone(),
     Disabled              = Disabled.Clone(),
     MouseOver             = MouseOver.Clone(),
     MouseDown             = MouseDown.Clone(),
     Selected              = Selected.Clone(),
     Focused               = Focused.Clone(),
     TopLeftLineColors     = TopLeftLineColors.Clone(),
     BottomRightLineColors = BottomRightLineColors.Clone(),
     ShowEnds              = ShowEnds,
     EndCharacterLeft      = EndCharacterLeft,
     EndCharacterRight     = EndCharacterRight,
     UseExtended           = UseExtended
 };
コード例 #20
0
        /// <summary>
        ///     Create a deep clone for this object.
        /// </summary>
        /// <returns>A clone of this object.</returns>
        public PagerItemOptionsSet Clone()
        {
            var result = (PagerItemOptionsSet)MemberwiseClone();

            result.Default            = Default.Clone();
            result.Current            = Current.Clone();
            result.Normal             = Normal.Clone();
            result.Omitted            = Omitted.Clone();
            result.FirstPageButton    = FirstPageButton.Clone();
            result.LastPageButton     = LastPageButton.Clone();
            result.PreviousPageButton = PreviousPageButton.Clone();
            result.NextPageButton     = NextPageButton.Clone();

            return(result);
        }
コード例 #21
0
 /// <inheritdoc />
 public override ThemeBase Clone() => new ScrollBarTheme()
 {
     Normal    = Normal.Clone(),
     Disabled  = Disabled.Clone(),
     MouseOver = MouseOver.Clone(),
     MouseDown = MouseDown.Clone(),
     Selected  = Selected.Clone(),
     Focused   = Focused.Clone(),
     StartButtonVerticalGlyph   = StartButtonVerticalGlyph,
     EndButtonVerticalGlyph     = EndButtonVerticalGlyph,
     StartButtonHorizontalGlyph = StartButtonHorizontalGlyph,
     EndButtonHorizontalGlyph   = EndButtonHorizontalGlyph,
     BarGlyph    = BarGlyph,
     SliderGlyph = SliderGlyph
 };
コード例 #22
0
 /// <summary>
 /// Returns a clone of this object.
 /// </summary>
 /// <returns>The cloned object.</returns>
 public override object Clone()
 {
     return(new RadioButtonTheme()
     {
         Normal = Normal.Clone(),
         Disabled = Disabled.Clone(),
         MouseOver = MouseOver.Clone(),
         MouseDown = MouseDown.Clone(),
         Selected = Selected.Clone(),
         Focused = Focused.Clone(),
         CheckedIcon = CheckedIcon.Clone(),
         UncheckedIcon = UncheckedIcon.Clone(),
         LeftBracket = LeftBracket.Clone(),
         RightBracket = RightBracket.Clone(),
     });
 }
コード例 #23
0
 /// <summary>
 /// Returns a clone of this object.
 /// </summary>
 /// <returns>The cloned object.</returns>
 public override object Clone()
 {
     return(new ListBoxTheme()
     {
         Normal = Normal.Clone(),
         Disabled = Disabled.Clone(),
         MouseOver = MouseOver.Clone(),
         MouseDown = MouseDown.Clone(),
         Selected = Selected.Clone(),
         Focused = Focused.Clone(),
         BorderTheme = BorderTheme.Clone(),
         BorderLineStyle = (int[])BorderLineStyle.Clone(),
         DrawBorder = DrawBorder,
         ItemTheme = (ListBoxItemTheme)ItemTheme.Clone(),
         ScrollBarTheme = (ScrollBarTheme)ScrollBarTheme.Clone()
     });
 }