From e3a586148d084b7eea974bae4fa00a19fc547c28 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bruyère Date: Wed, 31 Jan 2018 14:27:38 +0100 Subject: :memo: --- src/GraphicObjects/Border.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/GraphicObjects/Border.cs') diff --git a/src/GraphicObjects/Border.cs b/src/GraphicObjects/Border.cs index 6ac97d7f..a7c039c3 100644 --- a/src/GraphicObjects/Border.cs +++ b/src/GraphicObjects/Border.cs @@ -31,12 +31,18 @@ using System.Diagnostics; namespace Crow { + /// + /// provide an easy way to get 3d border for buttons + /// public enum BorderStyle { Normal, Raised, Sunken }; + /// + /// simple container with border + /// public class Border : Container { #region CTOR @@ -52,6 +58,9 @@ namespace Crow #endregion #region public properties + /// + /// use to define the colors of the 3d border + /// [XmlAttributeAttribute] public virtual Fill RaisedColor { get { return raisedColor; } @@ -63,6 +72,9 @@ namespace Crow RegisterForRedraw (); } } + /// + /// use to define the colors of the 3d border + /// [XmlAttributeAttribute] public virtual Fill SunkenColor { get { return sunkenColor; } @@ -74,6 +86,9 @@ namespace Crow RegisterForRedraw (); } } + /// + /// border width in pixels + /// [XmlAttributeAttribute()][DefaultValue(1)] public virtual int BorderWidth { get { return _borderWidth; } @@ -82,6 +97,9 @@ namespace Crow RegisterForGraphicUpdate (); } } + /// + /// allow 3d border effects + /// [XmlAttributeAttribute][DefaultValue(BorderStyle.Normal)] public virtual BorderStyle BorderStyle { get { return _borderStyle; } -- cgit v1.3.1-4-g156e