mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
* 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
92 lines
1.9 KiB
C#
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){
|
|
}
|
|
}
|
|
}
|