Beispiel #1
0
 public PrintCompositor(GtkSource.Buffer buffer) : base(IntPtr.Zero)
 {
     if (GetType() != typeof(PrintCompositor))
     {
         var vals  = new List <GLib.Value> ();
         var names = new List <string> ();
         if (buffer != null)
         {
             names.Add("buffer");
             vals.Add(new GLib.Value(buffer));
         }
         CreateNativeObject(names.ToArray(), vals.ToArray());
         return;
     }
     owned = true;
     Raw   = gtk_source_print_compositor_new(buffer == null ? IntPtr.Zero : buffer.Handle);
 }
Beispiel #2
0
 public FileSaver(GtkSource.Buffer buffer, GtkSource.File file, GLib.IFile target_location) : base(IntPtr.Zero)
 {
     if (GetType() != typeof(FileSaver))
     {
         var vals  = new List <GLib.Value> ();
         var names = new List <string> ();
         if (buffer != null)
         {
             names.Add("buffer");
             vals.Add(new GLib.Value(buffer));
         }
         if (file != null)
         {
             names.Add("file");
             vals.Add(new GLib.Value(file));
         }
         CreateNativeObject(names.ToArray(), vals.ToArray());
         return;
     }
     owned = true;
     Raw   = gtk_source_file_saver_new_with_target(buffer == null ? IntPtr.Zero : buffer.Handle, file == null ? IntPtr.Zero : file.Handle, target_location == null ? IntPtr.Zero : ((target_location is GLib.Object) ? (target_location as GLib.Object).Handle : (target_location as GLib.FileAdapter).Handle));
 }
Beispiel #3
0
 public FileSaver(GtkSource.Buffer buffer, GtkSource.File file) : base(IntPtr.Zero)
 {
     if (GetType() != typeof(FileSaver))
     {
         var vals  = new List <GLib.Value> ();
         var names = new List <string> ();
         if (buffer != null)
         {
             names.Add("buffer");
             vals.Add(new GLib.Value(buffer));
         }
         if (file != null)
         {
             names.Add("file");
             vals.Add(new GLib.Value(file));
         }
         CreateNativeObject(names.ToArray(), vals.ToArray());
         return;
     }
     owned = true;
     Raw   = gtk_source_file_saver_new(buffer == null ? IntPtr.Zero : buffer.Handle, file == null ? IntPtr.Zero : file.Handle);
 }
Beispiel #4
0
 public SearchContext(GtkSource.Buffer buffer, GtkSource.SearchSettings settings) : base(IntPtr.Zero)
 {
     if (GetType() != typeof(SearchContext))
     {
         var vals  = new List <GLib.Value> ();
         var names = new List <string> ();
         if (buffer != null)
         {
             names.Add("buffer");
             vals.Add(new GLib.Value(buffer));
         }
         if (settings != null)
         {
             names.Add("settings");
             vals.Add(new GLib.Value(settings));
         }
         CreateNativeObject(names.ToArray(), vals.ToArray());
         return;
     }
     owned = true;
     Raw   = gtk_source_search_context_new(buffer == null ? IntPtr.Zero : buffer.Handle, settings == null ? IntPtr.Zero : settings.Handle);
 }