public void Construct(Gnome.EdgePosition position, bool antialiased, string title, string text, Gdk.Pixbuf logo, Gdk.Pixbuf watermark, Gdk.Pixbuf top_watermark) { IntPtr native_title = GLib.Marshaller.StringToPtrGStrdup(title); IntPtr native_text = GLib.Marshaller.StringToPtrGStrdup(text); gnome_druid_page_edge_construct(Handle, (int)position, antialiased, native_title, native_text, logo == null ? IntPtr.Zero : logo.Handle, watermark == null ? IntPtr.Zero : watermark.Handle, top_watermark == null ? IntPtr.Zero : top_watermark.Handle); GLib.Marshaller.Free(native_title); GLib.Marshaller.Free(native_text); }
public DruidPageEdge(Gnome.EdgePosition position, bool antialiased, string title, string text, Gdk.Pixbuf logo, Gdk.Pixbuf watermark, Gdk.Pixbuf top_watermark) : base(IntPtr.Zero) { if (GetType() != typeof(DruidPageEdge)) { CreateNativeObject(new string[0], new GLib.Value[0]); Construct(position, antialiased, title, text, logo, watermark, top_watermark); return; } IntPtr ntitle = GLib.Marshaller.StringToPtrGStrdup(title); IntPtr ntext = GLib.Marshaller.StringToPtrGStrdup(text); Raw = gnome_druid_page_edge_new_with_vals((int)position, antialiased, ntitle, ntext, (logo != null) ? logo.Handle : IntPtr.Zero, (watermark != null) ? watermark.Handle : IntPtr.Zero, (top_watermark != null) ? top_watermark.Handle : IntPtr.Zero); GLib.Marshaller.Free(ntitle); GLib.Marshaller.Free(ntext); }
public DruidPageEdge(Gnome.EdgePosition position) : this(position, false, String.Empty, String.Empty, null, null, null) { }