gnome-sharp 0.0.0.0 neutral Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details. To be added To be added using System; using Gtk; using GtkSharp; using Gnome; class CanvasTest { public CanvasTest() { Application.Init(); Window window1 = new Window("Hello Canvas!"); window1.DeleteEvent += new DeleteEventHandler (delete_event); Canvas canvas1 = Canvas.NewAa(); int Width = 100; int Height = 100; canvas1.SetScrollRegion(0, 0, Width, Height); canvas1.WidthRequest = Width; canvas1.HeightRequest = Height; CanvasGroup root = canvas1.Root(); // Draw Background CanvasRect background = new CanvasRect(root); background.X1 = 0; background.X2 = Width; background.Y1 = 0; background.Y2 = Height; background.FillColor = "#ffffff"; background.Show(); // Here we go CanvasText hello = new CanvasText(root); hello.X = 40; hello.Y = 10; hello.FillColor = "#000000"; hello.Text = "Hello, Canvas!"; hello.Show(); canvas1.Show(); window1.Add(canvas1); window1.ShowAll(); Application.Run(); } public static void Main() { new CanvasTest(); } void delete_event (object obj, DeleteEventArgs args) { Application.Quit (); } } Gnome.CanvasItem GLib.IWrapper System.IDisposable Method System.Void Disposes the resources associated with the object. Constructor Internal constructor Pointer to the C object. An instance of CanvasText, wrapping the C object. This is an internal constructor, and should not be used by user code. Constructor To be added an object of type To be added Constructor To be added an object of type an object of type To be added Property System.String To be added an object of type an object of type To be added Property System.Boolean To be added an object of type an object of type To be added Property System.Int32 To be added an object of type an object of type To be added Property System.String To be added an object of type an object of type To be added Property System.String To be added an object of type an object of type To be added Property System.Double To be added an object of type an object of type To be added Property System.Double To be added an object of type an object of type To be added Property System.Double To be added an object of type an object of type To be added Property Pango.Stretch To be added an object of type an object of type To be added Property Gtk.Justification To be added an object of type an object of type To be added Property System.Double To be added an object of type an object of type To be added Property System.Double To be added an object of type 'double' an object of type 'double' To be added Property Gdk.Drawable To be added an object of type an object of type To be added Property Gtk.AnchorType To be added an object of type an object of type To be added Property System.Double To be added an object of type an object of type To be added Property System.Int32 To be added an object of type an object of type To be added Property System.Boolean To be added an object of type an object of type To be added Property Pango.AttrList To be added an object of type an object of type To be added Property Pango.Underline To be added an object of type an object of type To be added Property System.Double To be added an object of type an object of type To be added Property System.UInt32 To be added an object of type an object of type To be added Property System.Int32 To be added an object of type an object of type To be added Property System.Double To be added an object of type an object of type To be added Property Pango.Style To be added an object of type an object of type To be added Property Pango.Variant To be added an object of type an object of type To be added Property Gdk.Color To be added an object of type an object of type To be added Property Pango.FontDescription To be added an object of type an object of type To be added Property System.String To be added an object of type an object of type To be added Property System.Double To be added an object of type 'double' an object of type 'double' To be added Property System.Double To be added an object of type an object of type To be added Property System.String To be added an object of type an object of type To be added Property GLib.GType To be added a To be added Constructor To be added a a To be added