gnome-sharp0.0.0.0neutralGtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details.Line canvas item
A canvas item for drawing lines. This canvas item uses a
structure so one or multiple joined lined
segments can be drawn with a single item.
// 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;
}
}
}
Gnome.CanvasItemGLib.IWrapperSystem.IDisposableMethodSystem.VoidDisposes the resources associated with the object.ConstructorInternal constructor
Pointer to the C object.
An instance of CanvasLine, wrapping the C object.This is an internal constructor, and should not be used by user code.ConstructorCreates a new line
The that this item
belongs to.
the newly-created objectPropertyGdk.DrawableStipple pattern for the line.
Stipple pattern for the line.
Stipple pattern for the line.PropertySystem.Double
Distance from tip of arrowhead to trailing point, measured
along the shaft.
Distance from tip of arrowhead to trailing point, measured along shaft.
Distance from tip of arrowhead to trailing point, measured along shaft.PropertySystem.DoubleDistance from tip of arrowhead to center.
Distance from tip of arrowhead to center.
Distance from tip of arrowhead to center.PropertySystem.BooleanSpecifies whether to smooth the line using parabolic splines. to smooth the line
Whether to smooth the line using parabolic splinesPropertyGdk.LineStyleLine dash style.
Line dash style
Line dash stylePropertyGnome.CanvasPointsa pointer. This
can be created by a call to the constructor.
a pointer.
a pointer.PropertySystem.BooleanSpecifies whether to draw an arrowhead on the first point of the line. to draw an arrowhead
whether to draw an arrowhead on the first point of the line.PropertySystem.UInt32Specifies the number of steps to use when rendering curves.
the number of steps to use when rendering curves.
the number of steps to use when rendering curves.PropertySystem.BooleanSpecifies whether to draw an arrowhead on the last point of the line. to draw an arrowhead
whether to draw an arrowhead on the last point of the line.To be addedPropertyGdk.CapStyleDetermines how the ends of lines are drawn (the line cap style).
the line cap style.
the line cap stylePropertyGdk.JoinStyleVertex join style for line segments
the vertext join style
Vertex join style
( to join by extending
each line to meet at an angle, to join by a circular arc,
and to join by a
straight line which makes an equal angle with each line)
PropertySystem.UInt32Line color with an alpha component (in the format 0xRRGGBBAA).
line color with alpha component
the line colorPropertyGdk.ColorThe to draw the line with.
the line color
the line colorPropertySystem.DoubleWidth of the line in canvas units. The line width will be scaled when the canvas zoom factor changes.
width of the line
width of the line in canvas unitsPropertySystem.DoubleDistance of arrowhead trailing points from outside edge of shaft.
distance of the arrowing trailing points
Distance of arrowhead trailing points from outside edge of shaft.PropertySystem.UInt32Width of the line in pixels. The line width will not be scaled when the canvas zoom factor changes.
width of the line
width of the line in pixels.To be addedPropertySystem.StringX color specification for line.
X color specification for the line
X color specification for the linePropertyGLib.GTypeTo be addeda To be addedConstructorTo be added
a a To be added