gnome-sharp0.0.0.0neutralGtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details.Use this class to create text on the canvas. 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.CanvasItemGLib.IWrapperSystem.IDisposableMethodSystem.VoidDisposes the resources associated with the object.ConstructorInternal 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.ConstructorTo be addedan object of type To be addedConstructorTo be added
an object of type an object of type To be addedPropertySystem.StringTo be added
an object of type an object of type To be addedPropertySystem.BooleanTo be added
an object of type an object of type To be addedPropertySystem.Int32To be added
an object of type an object of type To be addedPropertySystem.StringTo be added
an object of type an object of type To be addedPropertySystem.StringTo be added
an object of type an object of type To be addedPropertySystem.DoubleTo be added
an object of type an object of type To be addedPropertySystem.DoubleTo be added
an object of type an object of type To be addedPropertySystem.DoubleTo be added
an object of type an object of type To be addedPropertyPango.StretchTo be added
an object of type an object of type To be addedPropertyGtk.JustificationTo be added
an object of type an object of type To be addedPropertySystem.DoubleTo be added
an object of type an object of type To be addedPropertySystem.DoubleTo be added
an object of type 'double'
an object of type 'double'To be addedPropertyGdk.DrawableTo be added
an object of type an object of type To be addedPropertyGtk.AnchorTypeTo be added
an object of type an object of type To be addedPropertySystem.DoubleTo be added
an object of type an object of type To be addedPropertySystem.Int32To be added
an object of type an object of type To be addedPropertySystem.BooleanTo be added
an object of type an object of type To be addedPropertyPango.AttrListTo be added
an object of type an object of type To be addedPropertyPango.UnderlineTo be added
an object of type an object of type To be addedPropertySystem.DoubleTo be added
an object of type an object of type To be addedPropertySystem.UInt32To be added
an object of type an object of type To be addedPropertySystem.Int32To be added
an object of type an object of type To be addedPropertySystem.DoubleTo be added
an object of type an object of type To be addedPropertyPango.StyleTo be added
an object of type an object of type To be addedPropertyPango.VariantTo be added
an object of type an object of type To be addedPropertyGdk.ColorTo be added
an object of type an object of type To be addedPropertyPango.FontDescriptionTo be added
an object of type an object of type To be addedPropertySystem.StringTo be added
an object of type an object of type To be addedPropertySystem.DoubleTo be added
an object of type 'double'
an object of type 'double'To be addedPropertySystem.DoubleTo be added
an object of type an object of type To be addedPropertySystem.StringTo be added
an object of type an object of type To be addedPropertyGLib.GTypeTo be addeda To be addedConstructorTo be added
a a To be added