Files
mono/mcs/class/System.Drawing/System.Drawing.Drawing2D/CustomLineCap.cs
T
Andreas N 21a5a4133c 2003-11-13 Andreas Nahr <[email protected]>
* QualityMode.cs: Fixed typo
	* InterpolationMode.cs: Fixed typo
	* RegionData.cs: Fixed signatures, partially implemented
	* PathGradientBrush.cs: Fixed signatures
	* PathData.cs: Fixed signature, implemented
	* LinearGradientBrush.cs: Added missing MonoTODOs, fixed typo
	* GraphicsContainer.cs: Added private constructor
	* CustomLineCap.cs: Fixed typos, fixed inheritance, removed unneeded member

svn path=/trunk/mcs/; revision=19970
2003-11-13 22:36:20 +00:00

92 lines
1.9 KiB
C#

//
// System.Drawing.Drawing2D.CustomLineCap.cs
//
// Authors:
// Dennis Hayes ([email protected])
// Andreas Nahr ([email protected])
//
// (C) 2002/3 Ximian, Inc
//
using System;
namespace System.Drawing.Drawing2D {
/// <summary>
/// Summary description for CustomLineCap.
/// </summary>
public class CustomLineCap : MarshalByRefObject, ICloneable, IDisposable {
private LineCap baseCap;
private float baseInset;
private LineJoin strokeJoin;
private float widthScale;
// Constructors
// Constructor with no parameters is not part of spec. It was needed to get to compile. Bug in compiler?
protected CustomLineCap() {
}
public CustomLineCap(GraphicsPath fillPAth, GraphicsPath strokePath, LineCap baseCap, float baseInset) {
this.baseInset = baseInset;
}
public CustomLineCap(GraphicsPath fillPAth, GraphicsPath strokePAth, LineCap baseCap) {
this.baseCap = baseCap;
}
public CustomLineCap(GraphicsPath fillPAth, GraphicsPath strokePAth) {
}
public LineCap BaseCap{
get {
return baseCap;
}
set {
baseCap = value;
}
}
public LineJoin StrokeJoin{
get {
return strokeJoin;
}
set {
strokeJoin = value;
}
}
public float BaseInset{
get {
return baseInset;
}
set {
baseInset = value;
}
}
public float WidthScale{
get {
return widthScale;
}
set {
widthScale = value;
}
}
//Public Methods
// Implment IConeable.Clone
public object Clone(){
//FIXME
return new CustomLineCap();
}
public virtual void Dispose(){
Dispose(true);
}
public virtual void Dispose(bool disposing){
}
public void GetStrokeCaps(out LineCap startCap, out LineCap endCap){
startCap = baseCap;
endCap = baseCap;
}
public void SetStrokeCaps(LineCap startCap, LineCap endCap){
}
}
}