Esempio n. 1
0
 public SkiaTextView()
 {
     this.skiaView = new global::SkiaSharp.Views.Gtk.SKWidget();
     this.Child    = skiaView;
     //this.PackStart(skiaView, true, true, 01);
     skiaView.PaintSurface += OnPaintSurface;
 }
Esempio n. 2
0
 protected virtual void Build()
 {
     global::Stetic.Gui.Initialize(this);
     // Widget MainWindow
     this.Name           = "MainWindow";
     this.Title          = global::Mono.Unix.Catalog.GetString("MainWindow");
     this.WindowPosition = ((global::Gtk.WindowPosition)(4));
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.fixed1           = new global::Gtk.Fixed();
     this.fixed1.Name      = "fixed1";
     this.fixed1.HasWindow = false;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.skiaWidget = new global::SkiaSharp.Views.Gtk.SKWidget();
     this.skiaWidget.WidthRequest  = 250;
     this.skiaWidget.HeightRequest = 250;
     this.skiaWidget.Events        = ((global::Gdk.EventMask)(256));
     this.skiaWidget.Name          = "skiaWidget";
     this.fixed1.Add(this.skiaWidget);
     global::Gtk.Fixed.FixedChild w1 = ((global::Gtk.Fixed.FixedChild)(this.fixed1[this.skiaWidget]));
     w1.X = 23;
     w1.Y = 20;
     // Container child fixed1.Gtk.Fixed+FixedChild
     this.button1              = new global::Gtk.Button();
     this.button1.CanFocus     = true;
     this.button1.Name         = "button1";
     this.button1.UseUnderline = true;
     this.button1.Label        = global::Mono.Unix.Catalog.GetString("GtkButton");
     this.fixed1.Add(this.button1);
     global::Gtk.Fixed.FixedChild w2 = ((global::Gtk.Fixed.FixedChild)(this.fixed1[this.button1]));
     w2.X = 103;
     w2.Y = 307;
     this.Add(this.fixed1);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 400;
     this.DefaultHeight = 388;
     this.Show();
     this.DeleteEvent     += new global::Gtk.DeleteEventHandler(this.OnDeleteEvent);
     this.button1.Clicked += new global::System.EventHandler(this.OnButton1Clicked);
 }
Esempio n. 3
0
 protected virtual void Build()
 {
     global::Stetic.Gui.Initialize(this);
     // Widget MainWindow
     this.Name           = "MainWindow";
     this.Title          = global::Mono.Unix.Catalog.GetString("MainWindow");
     this.WindowPosition = ((global::Gtk.WindowPosition)(4));
     // Container child MainWindow.Gtk.Container+ContainerChild
     this.skiaView      = new global::SkiaSharp.Views.Gtk.SKWidget();
     this.skiaView.Name = "skiaView";
     this.Add(this.skiaView);
     if ((this.Child != null))
     {
         this.Child.ShowAll();
     }
     this.DefaultWidth  = 400;
     this.DefaultHeight = 300;
     this.Show();
     this.DeleteEvent += new global::Gtk.DeleteEventHandler(this.OnDeleteEvent);
 }