2003-02-12 02:14:42 +00:00
<Type Name= "CanvasLine" FullName= "Gnome.CanvasLine" >
2003-02-15 03:08:25 +00:00
<TypeSignature Language= "C#" Value= "public class CanvasLine : Gnome.CanvasItem, IWrapper, IDisposable" Maintainer= "auto" />
2003-02-12 02:14:42 +00:00
<AssemblyInfo >
<AssemblyName > gnome-sharp</AssemblyName>
2003-12-24 01:35:30 +00:00
<AssemblyPublicKey >
</AssemblyPublicKey>
2003-02-12 02:14:42 +00:00
<AssemblyVersion > 0.0.0.0</AssemblyVersion>
2003-10-28 00:48:23 +00:00
<AssemblyCulture > neutral</AssemblyCulture>
2003-02-12 02:14:42 +00:00
<Attributes />
</AssemblyInfo>
2003-02-23 07:26:30 +00:00
<ThreadSafetyStatement > Gtk# is thread aware, but not thread safe; See the <link location= "node:gtk-sharp/programming/threads" > Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
2003-02-12 02:14:42 +00:00
<Docs >
2003-07-30 06:34:41 +00:00
<summary > Line canvas item</summary>
<remarks >
A canvas item for drawing lines. This canvas item uses a
<see cref= "T:Gnome.CanvasPoints" /> structure so one or multiple joined lined
segments can be drawn with a single <see cref= "T:Gnome.CanvasLine" /> item.
2004-04-11 18:45:51 +00:00
<example >
<code lang= "C#" >
// LineExample.cs - Displays triangle using gnome canvas
// Compile: mcs -r gtk-sharp.dll -r gnome-sharp.dll LineExample.cs
namespace GnomeSamples {
using System;
using Gtk;
using Gnome;
public class LineExample {
public static int Main (string[] args) {
Application.Init ();
Gtk.Window win = new Gtk.Window ("Canvas line example");
win.DeleteEvent += new DeleteEventHandler (Window_Delete);
Canvas canvas = new Canvas ();
win.Add (canvas);
CanvasLine line = new CanvasLine (canvas.Root ());
line.Points = new CanvasPoints (new double[]{40,0, 0,80, 80,80, 40,0});
win.ShowAll ();
Application.Run ();
return 0;
}
static void Window_Delete (object obj, DeleteEventArgs args) {
Application.Quit ();
args.RetVal = true;
}
}
}
</code>
</example> </remarks>
2003-02-12 02:14:42 +00:00
</Docs>
<Base >
<BaseTypeName > Gnome.CanvasItem</BaseTypeName>
</Base>
<Interfaces >
<Interface >
<InterfaceName > GLib.IWrapper</InterfaceName>
</Interface>
<Interface >
<InterfaceName > System.IDisposable</InterfaceName>
</Interface>
</Interfaces>
<Attributes />
<Members >
<Member MemberName= "Finalize" >
2003-10-13 22:55:58 +00:00
<MemberSignature Language= "C#" Value= "protected override void Finalize ();" />
2003-02-12 02:14:42 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2003-02-23 07:26:30 +00:00
<summary > Disposes the resources associated with the object.</summary>
<remarks />
2003-02-12 02:14:42 +00:00
</Docs>
</Member>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public CanvasLine (IntPtr raw);" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
2003-07-30 06:34:41 +00:00
<Parameter Name= "raw" Type= "System.IntPtr" />
</Parameters>
2003-02-12 02:14:42 +00:00
<Docs >
2003-02-23 07:26:30 +00:00
<summary > Internal constructor</summary>
<param name= "raw" > Pointer to the C object.</param>
<returns > An instance of CanvasLine, wrapping the C object.</returns>
<remarks >
<para > This is an internal constructor, and should not be used by user code.</para>
</remarks>
2003-02-12 02:14:42 +00:00
</Docs>
</Member>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public CanvasLine (Gnome.CanvasGroup group);" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
2003-07-30 06:34:41 +00:00
<Parameter Name= "group" Type= "Gnome.CanvasGroup" />
</Parameters>
2003-02-12 02:14:42 +00:00
<Docs >
2003-07-30 06:34:41 +00:00
<summary > Creates a new line</summary>
<param name= "group" >
The <see cref= "T:Gnome.CanvasGroup" /> that this item
belongs to.
</param>
<returns > the newly-created <see cref= "T:Gnome.CanvasLine" /> object</returns>
2003-12-24 01:35:30 +00:00
<remarks >
</remarks>
2003-02-12 02:14:42 +00:00
</Docs>
</Member>
<Member MemberName= "FillStipple" >
<MemberSignature Language= "C#" Value= "public Gdk.Drawable FillStipple { set; get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Gdk.Drawable</ReturnType>
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters >
</Parameters>
2003-02-12 02:14:42 +00:00
<Docs >
2003-07-30 06:34:41 +00:00
<summary > Stipple pattern for the line.</summary>
<param name= "value" > Stipple pattern for the line.</param>
<returns > Stipple pattern for the line.</returns>
2003-12-24 01:35:30 +00:00
<remarks >
</remarks>
2003-02-12 02:14:42 +00:00
</Docs>
</Member>
<Member MemberName= "ArrowShapeB" >
<MemberSignature Language= "C#" Value= "public double ArrowShapeB { set; get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.Double</ReturnType>
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters >
</Parameters>
2003-02-12 02:14:42 +00:00
<Docs >
2003-07-30 06:34:41 +00:00
<summary >
Distance from tip of arrowhead to trailing point, measured
along the shaft.
</summary>
<param name= "value" > Distance from tip of arrowhead to trailing point, measured along shaft.</param>
<returns > Distance from tip of arrowhead to trailing point, measured along shaft.</returns>
2003-12-24 01:35:30 +00:00
<remarks >
</remarks>
2003-02-12 02:14:42 +00:00
</Docs>
</Member>
<Member MemberName= "ArrowShapeA" >
<MemberSignature Language= "C#" Value= "public double ArrowShapeA { set; get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.Double</ReturnType>
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters >
</Parameters>
2003-02-12 02:14:42 +00:00
<Docs >
2003-07-30 06:34:41 +00:00
<summary > Distance from tip of arrowhead to center.</summary>
<param name= "value" > Distance from tip of arrowhead to center.</param>
<returns > Distance from tip of arrowhead to center.</returns>
2003-12-24 01:35:30 +00:00
<remarks >
</remarks>
2003-02-12 02:14:42 +00:00
</Docs>
</Member>
<Member MemberName= "Smooth" >
<MemberSignature Language= "C#" Value= "public bool Smooth { set; get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.Boolean</ReturnType>
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters >
</Parameters>
2003-02-12 02:14:42 +00:00
<Docs >
2003-07-30 06:34:41 +00:00
<summary > Specifies whether to smooth the line using parabolic splines.</summary>
<param name= "value" >
<see langword= "true" /> to smooth the line</param>
<returns > Whether to smooth the line using parabolic splines</returns>
2003-12-24 01:35:30 +00:00
<remarks >
</remarks>
2003-02-12 02:14:42 +00:00
</Docs>
</Member>
<Member MemberName= "LineStyle" >
<MemberSignature Language= "C#" Value= "public Gdk.LineStyle LineStyle { set; get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Gdk.LineStyle</ReturnType>
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters >
</Parameters>
2003-02-12 02:14:42 +00:00
<Docs >
2003-07-30 06:34:41 +00:00
<summary > Line dash style.</summary>
<param name= "value" > Line dash style</param>
<returns > Line dash style</returns>
2003-12-24 01:35:30 +00:00
<remarks >
</remarks>
2003-02-12 02:14:42 +00:00
</Docs>
</Member>
<Member MemberName= "Points" >
<MemberSignature Language= "C#" Value= "public Gnome.CanvasPoints Points { set; get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Gnome.CanvasPoints</ReturnType>
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters >
</Parameters>
2003-02-12 02:14:42 +00:00
<Docs >
2003-07-30 06:34:41 +00:00
<summary > a <see cref= "T:Gnome.CanvasPoints" /> pointer. This
can be created by a call to the <see cref= "C:Gnome.CanvasPoints" /> constructor.
</summary>
<param name= "value" > a <see cref= "T:Gnome.CanvasPoints" /> pointer.</param>
<returns > a <see cref= "T:Gnome.CanvasPoints" /> pointer.</returns>
2003-12-24 01:35:30 +00:00
<remarks >
</remarks>
2003-02-12 02:14:42 +00:00
</Docs>
</Member>
<Member MemberName= "FirstArrowhead" >
<MemberSignature Language= "C#" Value= "public bool FirstArrowhead { set; get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.Boolean</ReturnType>
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters >
</Parameters>
2003-02-12 02:14:42 +00:00
<Docs >
2003-07-30 06:34:41 +00:00
<summary > Specifies whether to draw an arrowhead on the first point of the line.</summary>
<param name= "value" >
<see langword= "true" /> to draw an arrowhead</param>
<returns > whether to draw an arrowhead on the first point of the line.</returns>
2003-12-24 01:35:30 +00:00
<remarks >
</remarks>
2003-02-12 02:14:42 +00:00
</Docs>
</Member>
<Member MemberName= "SplineSteps" >
<MemberSignature Language= "C#" Value= "public uint SplineSteps { set; get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.UInt32</ReturnType>
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters >
</Parameters>
2003-02-12 02:14:42 +00:00
<Docs >
2003-07-30 06:34:41 +00:00
<summary > Specifies the number of steps to use when rendering curves.</summary>
<param name= "value" > the number of steps to use when rendering curves.</param>
<returns > the number of steps to use when rendering curves.</returns>
2003-12-24 01:35:30 +00:00
<remarks >
</remarks>
2003-02-12 02:14:42 +00:00
</Docs>
</Member>
<Member MemberName= "LastArrowhead" >
<MemberSignature Language= "C#" Value= "public bool LastArrowhead { set; get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.Boolean</ReturnType>
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters >
</Parameters>
2003-02-12 02:14:42 +00:00
<Docs >
2003-07-30 06:34:41 +00:00
<summary > Specifies whether to draw an arrowhead on the last point of the line.</summary>
<param name= "value" >
<see langword= "true" /> to draw an arrowhead</param>
<returns > whether to draw an arrowhead on the last point of the line.</returns>
2003-02-12 02:14:42 +00:00
<remarks > To be added</remarks>
</Docs>
</Member>
<Member MemberName= "CapStyle" >
<MemberSignature Language= "C#" Value= "public Gdk.CapStyle CapStyle { set; get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Gdk.CapStyle</ReturnType>
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters >
</Parameters>
2003-02-12 02:14:42 +00:00
<Docs >
2003-07-30 06:34:41 +00:00
<summary > Determines how the ends of lines are drawn (the line cap style).</summary>
<param name= "value" > the line cap style.</param>
<returns > the line cap style</returns>
2003-12-24 01:35:30 +00:00
<remarks >
</remarks>
2003-02-12 02:14:42 +00:00
</Docs>
</Member>
<Member MemberName= "JoinStyle" >
<MemberSignature Language= "C#" Value= "public Gdk.JoinStyle JoinStyle { set; get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Gdk.JoinStyle</ReturnType>
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters >
</Parameters>
2003-02-12 02:14:42 +00:00
<Docs >
2003-07-30 06:34:41 +00:00
<summary > Vertex join style for line segments</summary>
<param name= "value" > the vertext join style</param>
<returns > Vertex join style</returns>
<remarks >
<para >
(<see cref= "F:Gdk.JoinStyle.Miter" /> to join by extending
each line to meet at an angle, <see cref= "F:Gdk.JoinStyle.Round" /> to join by a circular arc,
and <see cref= "F:Gdk.JoinStyle.Bevel" /> to join by a
straight line which makes an equal angle with each line)
</para>
</remarks>
2003-02-12 02:14:42 +00:00
</Docs>
</Member>
<Member MemberName= "FillColorRgba" >
<MemberSignature Language= "C#" Value= "public uint FillColorRgba { set; get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.UInt32</ReturnType>
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters >
</Parameters>
2003-02-12 02:14:42 +00:00
<Docs >
2003-07-30 06:34:41 +00:00
<summary > Line color with an alpha component (in the format 0xRRGGBBAA).</summary>
<param name= "value" > line color with alpha component</param>
<returns > the line color</returns>
2003-12-24 01:35:30 +00:00
<remarks >
</remarks>
2003-02-12 02:14:42 +00:00
</Docs>
</Member>
<Member MemberName= "FillColorGdk" >
<MemberSignature Language= "C#" Value= "public Gdk.Color FillColorGdk { set; get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Gdk.Color</ReturnType>
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters >
</Parameters>
2003-02-12 02:14:42 +00:00
<Docs >
2003-07-30 06:34:41 +00:00
<summary > The <see cref= "T:Gdk.Color" /> to draw the line with.</summary>
<param name= "value" > the line color</param>
<returns > the line color</returns>
2003-12-24 01:35:30 +00:00
<remarks >
</remarks>
2003-02-12 02:14:42 +00:00
</Docs>
</Member>
<Member MemberName= "WidthUnits" >
<MemberSignature Language= "C#" Value= "public double WidthUnits { set; get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.Double</ReturnType>
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters >
</Parameters>
2003-02-12 02:14:42 +00:00
<Docs >
2003-07-30 06:34:41 +00:00
<summary > Width of the line in canvas units. The line width will be scaled when the canvas zoom factor changes.</summary>
<param name= "value" > width of the line</param>
<returns > width of the line in canvas units</returns>
2003-12-24 01:35:30 +00:00
<remarks >
</remarks>
2003-02-12 02:14:42 +00:00
</Docs>
</Member>
<Member MemberName= "ArrowShapeC" >
<MemberSignature Language= "C#" Value= "public double ArrowShapeC { set; get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.Double</ReturnType>
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters >
</Parameters>
2003-02-12 02:14:42 +00:00
<Docs >
2003-07-30 06:34:41 +00:00
<summary > Distance of arrowhead trailing points from outside edge of shaft.</summary>
<param name= "value" > distance of the arrowing trailing points</param>
<returns > Distance of arrowhead trailing points from outside edge of shaft.</returns>
2003-12-24 01:35:30 +00:00
<remarks >
</remarks>
2003-02-12 02:14:42 +00:00
</Docs>
</Member>
<Member MemberName= "WidthPixels" >
<MemberSignature Language= "C#" Value= "public uint WidthPixels { set; get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.UInt32</ReturnType>
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters >
</Parameters>
2003-02-12 02:14:42 +00:00
<Docs >
2003-07-30 06:34:41 +00:00
<summary > Width of the line in pixels. The line width will not be scaled when the canvas zoom factor changes.</summary>
<param name= "value" > width of the line</param>
<returns > width of the line in pixels.</returns>
2003-02-12 02:14:42 +00:00
<remarks > To be added</remarks>
</Docs>
</Member>
<Member MemberName= "FillColor" >
<MemberSignature Language= "C#" Value= "public string FillColor { set; get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.String</ReturnType>
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters >
</Parameters>
2003-02-12 02:14:42 +00:00
<Docs >
2003-07-30 06:34:41 +00:00
<summary > X color specification for line.</summary>
<param name= "value" > X color specification for the line</param>
<returns > X color specification for the line</returns>
2003-12-24 01:35:30 +00:00
<remarks >
</remarks>
</Docs>
</Member>
<Member MemberName= "GType" >
<MemberSignature Language= "C#" Value= "public static GLib.GType GType { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > GLib.GType</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
<summary > To be added</summary>
<returns > a <see cref= "T:GLib.GType" /> </returns>
<remarks > To be added</remarks>
2003-02-12 02:14:42 +00:00
</Docs>
</Member>
2003-03-07 01:30:00 +00:00
<Member MemberName= ".ctor" >
2003-12-24 01:35:30 +00:00
<MemberSignature Language= "C#" Value= "protected CanvasLine (GLib.GType gtype);" />
2003-03-07 01:30:00 +00:00
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
2003-12-24 01:35:30 +00:00
<Parameter Name= "gtype" Type= "GLib.GType" />
2003-07-30 06:34:41 +00:00
</Parameters>
2003-03-07 01:30:00 +00:00
<Docs >
2003-12-24 01:35:30 +00:00
<summary > To be added</summary>
<param name= "gtype" > a <see cref= "T:GLib.GType" /> </param>
<returns > a <see cref= "T:Gnome.CanvasLine" /> </returns>
<remarks > To be added</remarks>
2003-03-07 01:30:00 +00:00
</Docs>
</Member>
2003-02-12 02:14:42 +00:00
</Members>
2003-07-30 06:34:41 +00:00
</Type>