mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-24 16:45:35 +00:00
restructuring for gtk-sharp/gnome-sharp split
svn path=/trunk/gtk-sharp/; revision=63085
This commit is contained in:
parent
59d3d1ce85
commit
d7070f0da9
|
@ -1,71 +0,0 @@
|
|||
// Gnome.About.custom - Gnome About class customizations
|
||||
//
|
||||
// Author: Mike Kestner <mkestner@novell.com>
|
||||
//
|
||||
// Copyright (C) 2005 Novell, Inc.
|
||||
//
|
||||
// This code is inserted after the automatically generated code.
|
||||
//
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
[DllImport("gnomeui-2")]
|
||||
static extern IntPtr gnome_about_new(IntPtr name, IntPtr version, IntPtr copyright, IntPtr comments, IntPtr[] authors, IntPtr[] documenters, IntPtr translator_credits, IntPtr logo_pixbuf);
|
||||
|
||||
IntPtr[] NullTerm (string[] src)
|
||||
{
|
||||
if (src == null || src.Length == 0)
|
||||
return null;
|
||||
IntPtr[] result = new IntPtr [src.Length + 1];
|
||||
for (int i = 0; i < src.Length; i++)
|
||||
result [i] = GLib.Marshaller.StringToPtrGStrdup (src [i]);
|
||||
result [src.Length] = IntPtr.Zero;
|
||||
return result;
|
||||
}
|
||||
|
||||
void ReleaseArray (IntPtr[] ptrs)
|
||||
{
|
||||
if (ptrs == null)
|
||||
return;
|
||||
foreach (IntPtr p in ptrs)
|
||||
GLib.Marshaller.Free (p);
|
||||
}
|
||||
|
||||
public About (string name, string version, string copyright, string comments, string[] authors, string[] documenters, string translator_credits, Gdk.Pixbuf logo_pixbuf) : base (IntPtr.Zero)
|
||||
{
|
||||
IntPtr nname = GLib.Marshaller.StringToPtrGStrdup (name);
|
||||
IntPtr nversion = GLib.Marshaller.StringToPtrGStrdup (version);
|
||||
IntPtr ncopyright = GLib.Marshaller.StringToPtrGStrdup (copyright);
|
||||
IntPtr ncomments = GLib.Marshaller.StringToPtrGStrdup (comments);
|
||||
IntPtr ntranslator_credits = GLib.Marshaller.StringToPtrGStrdup (translator_credits);
|
||||
IntPtr[] nauthors = NullTerm (authors);
|
||||
IntPtr[] ndocumenters = NullTerm (documenters);
|
||||
|
||||
if (GetType () != typeof (About)) {
|
||||
CreateNativeObject (new string[0], new GLib.Value[0]);
|
||||
gnome_about_construct (Handle, nname, nversion, ncopyright, ncomments, nauthors, ndocumenters, ntranslator_credits, logo_pixbuf == null ? IntPtr.Zero : logo_pixbuf.Handle);
|
||||
} else
|
||||
Raw = gnome_about_new (nname, nversion, ncopyright, ncomments, nauthors, ndocumenters, ntranslator_credits, (logo_pixbuf != null) ? logo_pixbuf.Handle : IntPtr.Zero);
|
||||
|
||||
GLib.Marshaller.Free (nname);
|
||||
GLib.Marshaller.Free (nversion);
|
||||
GLib.Marshaller.Free (ncopyright);
|
||||
GLib.Marshaller.Free (ncomments);
|
||||
GLib.Marshaller.Free (ntranslator_credits);
|
||||
ReleaseArray (nauthors);
|
||||
ReleaseArray (ndocumenters);
|
||||
}
|
||||
|
|
@ -1,51 +0,0 @@
|
|||
// App.custom - Gnome.App customizations
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
[DllImport("gnomeui-2")]
|
||||
static extern IntPtr gnome_app_new(IntPtr appname, IntPtr title);
|
||||
|
||||
public App (string appname, string title) : base (IntPtr.Zero)
|
||||
{
|
||||
if (GetType () != typeof (App)) {
|
||||
CreateNativeObject (new string[0], new GLib.Value[0]);
|
||||
Construct (appname, title);
|
||||
return;
|
||||
}
|
||||
IntPtr nappname = GLib.Marshaller.StringToPtrGStrdup (appname);
|
||||
IntPtr ntitle = GLib.Marshaller.StringToPtrGStrdup (title);
|
||||
Raw = gnome_app_new(nappname, ntitle);
|
||||
GLib.Marshaller.Free (nappname);
|
||||
GLib.Marshaller.Free (ntitle);
|
||||
}
|
||||
|
||||
[Obsolete("Replaced by overload with no IntPtr arg")]
|
||||
public void CreateMenusInterp (Gnome.UIInfo uiinfo, Gtk.CallbackMarshal relay_func, IntPtr data, Gtk.DestroyNotify destroy_func)
|
||||
{
|
||||
CreateMenusInterp (uiinfo, relay_func, destroy_func);
|
||||
}
|
||||
|
||||
[Obsolete("Replaced by overload with no IntPtr arg")]
|
||||
public void InsertMenusInterp (string path, Gnome.UIInfo menuinfo, Gtk.CallbackMarshal relay_func, IntPtr data, Gtk.DestroyNotify destroy_func)
|
||||
{
|
||||
InsertMenusInterp (path, menuinfo, relay_func, destroy_func);
|
||||
}
|
||||
|
||||
[Obsolete("Replaced by overload with no IntPtr arg")]
|
||||
public void CreateToolbarInterp (Gnome.UIInfo uiinfo, Gtk.CallbackMarshal relay_func, IntPtr data, Gtk.DestroyNotify destroy_func)
|
||||
{
|
||||
CreateToolbarInterp (uiinfo, relay_func, destroy_func);
|
||||
}
|
|
@ -1,25 +0,0 @@
|
|||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Gnome
|
||||
{
|
||||
|
||||
public delegate void ContextMenuItemCallback ();
|
||||
|
||||
[StructLayout (LayoutKind.Sequential)]
|
||||
public struct BonoboUIVerb
|
||||
{
|
||||
string verb;
|
||||
ContextMenuItemCallback callback;
|
||||
IntPtr user_data;
|
||||
IntPtr dummy;
|
||||
|
||||
public BonoboUIVerb (string name, ContextMenuItemCallback cb)
|
||||
{
|
||||
verb = name;
|
||||
callback = cb;
|
||||
user_data = IntPtr.Zero;
|
||||
dummy = IntPtr.Zero;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,43 +0,0 @@
|
|||
//
|
||||
// Gnome.Canvas.custom - Gnome Canvas class customizations
|
||||
//
|
||||
// Author: Duncan Mak (duncan@ximian.com)
|
||||
// Mike Kestner <mkestner@novell.com>
|
||||
//
|
||||
// Copyright (C) 2003 Duncan Mak
|
||||
// Copyright (C) 2004-2006 Novell, Inc.
|
||||
//
|
||||
// This code is inserted after the automatically generated code.
|
||||
//
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
[DllImport("gnomecanvas-2")]
|
||||
static extern void gnome_canvas_w2c_affine(IntPtr raw, double[] affine);
|
||||
|
||||
public void W2cAffine(out double[] affine) {
|
||||
affine = new double [6];
|
||||
gnome_canvas_w2c_affine(Handle, affine);
|
||||
}
|
||||
|
||||
public Canvas (bool is_aa) : base (IntPtr.Zero)
|
||||
{
|
||||
string[] names = {"aa"};
|
||||
GLib.Value[] vals = new GLib.Value [1];
|
||||
vals [0] = new GLib.Value (is_aa);
|
||||
CreateNativeObject (names, vals);
|
||||
}
|
||||
|
|
@ -1,34 +0,0 @@
|
|||
// Gnome.CanvasBpath.custom - Gnome CanvasBpath class customizations
|
||||
//
|
||||
// Author: Rachel Hestilow <hestilow@ximian.com>
|
||||
//
|
||||
// Copyright (C) 2002 Rachel Hestilow
|
||||
//
|
||||
// This code is inserted after the automatically generated code.
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
public CanvasBpath (Gnome.CanvasGroup group) : base (group, GType)
|
||||
{
|
||||
}
|
||||
|
||||
public CanvasPathDef BPath {
|
||||
get {
|
||||
return new CanvasPathDef (Bpath);
|
||||
}
|
||||
set {
|
||||
Bpath = value.Handle;
|
||||
}
|
||||
}
|
|
@ -1,27 +0,0 @@
|
|||
// Gnome.CanvasClipgroup.custom - Gnome CanvasClipgroup class customizations
|
||||
//
|
||||
// Author: Rachel Hestilow <hestilow@ximian.com>
|
||||
//
|
||||
// Copyright (C) 2002 Rachel Hestilow
|
||||
//
|
||||
// This code is inserted after the automatically generated code.
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
public CanvasClipgroup (Gnome.CanvasGroup group) : base (group, GType)
|
||||
{
|
||||
}
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
//
|
||||
// Gnome.CanvasEllipse.custom - Gnome CanvasEllipse class customizations
|
||||
//
|
||||
// Author: Rachel Hestilow <hestilow@ximian.com>
|
||||
//
|
||||
// Copyright (C) 2002 Rachel Hestilow
|
||||
//
|
||||
// This code is inserted after the automatically generated code.
|
||||
//
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
public CanvasEllipse (Gnome.CanvasGroup group) : base (group, GType)
|
||||
{
|
||||
}
|
||||
|
|
@ -1,34 +0,0 @@
|
|||
//
|
||||
// Gnome.CanvasGroup.custom - Gnome CanvasGroup class customizations
|
||||
//
|
||||
// Author: Rachel Hestilow <hestilow@ximian.com>
|
||||
//
|
||||
// Copyright (C) 2002 Rachel Hestilow
|
||||
//
|
||||
// This code is inserted after the automatically generated code.
|
||||
//
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
public CanvasGroup (Gnome.CanvasGroup group) : base (group, GType)
|
||||
{
|
||||
}
|
||||
|
||||
protected CanvasGroup (Gnome.CanvasGroup group, GLib.GType type) : base (group, type)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -1,216 +0,0 @@
|
|||
//
|
||||
// Gnome.CanvasItem.custom - Gnome CanvasItem class customizations
|
||||
//
|
||||
// Author: Rachel Hestilow <hestilow@ximian.com>
|
||||
//
|
||||
// Copyright (C) 2002 Rachel Hestilow
|
||||
//
|
||||
// This code is inserted after the automatically generated code.
|
||||
//
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
[DllImport("gnomecanvas-2")]
|
||||
static extern System.IntPtr gnome_canvas_item_new (IntPtr group, GLib.GType type, IntPtr null_terminator);
|
||||
|
||||
[DllImport("libgobject-2.0-0.dll")]
|
||||
static extern void g_object_ref (IntPtr raw);
|
||||
|
||||
public CanvasItem (Gnome.CanvasGroup group, GLib.GType type)
|
||||
: base (gnome_canvas_item_new (group.Handle, type, IntPtr.Zero))
|
||||
{
|
||||
g_object_ref (Handle);
|
||||
}
|
||||
|
||||
[DllImport("gnomecanvas-2")]
|
||||
static extern void gnome_canvas_item_i2c_affine(IntPtr raw, double[] affine);
|
||||
|
||||
public void I2cAffine(out double[] affine) {
|
||||
affine = new double [6];
|
||||
gnome_canvas_item_i2c_affine(Handle, affine);
|
||||
}
|
||||
|
||||
[DllImport("gnomecanvas-2")]
|
||||
static extern void gnome_canvas_item_i2w_affine(IntPtr raw, double[] affine);
|
||||
|
||||
public void I2wAffine(out double[] affine) {
|
||||
affine = new double [6];
|
||||
gnome_canvas_item_i2w_affine(Handle, affine);
|
||||
}
|
||||
|
||||
[DllImport("gnomesharpglue-2")]
|
||||
static extern void gnomesharp_canvas_item_base_realize (IntPtr handle);
|
||||
|
||||
[DllImport("gnomesharpglue-2")]
|
||||
static extern void gnomesharp_canvas_item_override_realize (GLib.GType gtype, RealizeDelegate cb);
|
||||
|
||||
[GLib.CDeclCallback]
|
||||
delegate void RealizeDelegate (IntPtr item);
|
||||
|
||||
static RealizeDelegate RealizeCallback;
|
||||
|
||||
static void Realize_cb (IntPtr item)
|
||||
{
|
||||
CanvasItem obj = GLib.Object.GetObject (item, false) as CanvasItem;
|
||||
obj.Realize ();
|
||||
}
|
||||
|
||||
static void OverrideRealize (GLib.GType gtype)
|
||||
{
|
||||
if (RealizeCallback == null)
|
||||
RealizeCallback = new RealizeDelegate (Realize_cb);
|
||||
gnomesharp_canvas_item_override_realize (gtype, RealizeCallback);
|
||||
}
|
||||
|
||||
[GLib.DefaultSignalHandler (Type=typeof(Gnome.CanvasItem), ConnectionMethod="OverrideRealize")]
|
||||
protected virtual void Realize ()
|
||||
{
|
||||
gnomesharp_canvas_item_base_realize (Handle);
|
||||
}
|
||||
|
||||
[DllImport("gnomesharpglue-2")]
|
||||
static extern double gnomesharp_canvas_item_base_point (IntPtr handle, double x, double y, int cx, int cy, out IntPtr actual_item_handle);
|
||||
|
||||
[DllImport("gnomesharpglue-2")]
|
||||
static extern void gnomesharp_canvas_item_override_point (GLib.GType gtype, PointDelegate cb);
|
||||
|
||||
[GLib.CDeclCallback]
|
||||
delegate double PointDelegate (IntPtr item, double x, double y, int cx, int cy, out IntPtr actual_item_handle);
|
||||
|
||||
static PointDelegate PointCallback;
|
||||
|
||||
static double Point_cb (IntPtr item, double x, double y, int cx, int cy, out IntPtr actual_item_handle)
|
||||
{
|
||||
CanvasItem obj = GLib.Object.GetObject (item, false) as CanvasItem;
|
||||
CanvasItem actual_item;
|
||||
double result = obj.Point (x, y, cx, cy, out actual_item);
|
||||
actual_item_handle = actual_item != null ? actual_item.Handle : IntPtr.Zero;
|
||||
return result;
|
||||
}
|
||||
|
||||
static void OverridePoint (GLib.GType gtype)
|
||||
{
|
||||
if (PointCallback == null)
|
||||
PointCallback = new PointDelegate (Point_cb);
|
||||
gnomesharp_canvas_item_override_point (gtype, PointCallback);
|
||||
}
|
||||
|
||||
[GLib.DefaultSignalHandler (Type=typeof(Gnome.CanvasItem), ConnectionMethod="OverridePoint")]
|
||||
protected virtual double Point (double x, double y, int cx, int cy, out CanvasItem actual_item)
|
||||
{
|
||||
IntPtr actual_item_handle;
|
||||
double result = gnomesharp_canvas_item_base_point (Handle, x, y, cx, cy, out actual_item_handle);
|
||||
actual_item = GLib.Object.GetObject (actual_item_handle, false) as CanvasItem;
|
||||
return result;
|
||||
}
|
||||
|
||||
[DllImport("gnomesharpglue-2")]
|
||||
static extern void gnomesharp_canvas_item_base_draw (IntPtr handle, IntPtr drawable, int x, int y, int width, int height);
|
||||
|
||||
[DllImport("gnomesharpglue-2")]
|
||||
static extern void gnomesharp_canvas_item_override_draw (GLib.GType gtype, DrawDelegate cb);
|
||||
|
||||
[GLib.CDeclCallback]
|
||||
delegate void DrawDelegate (IntPtr handle, IntPtr drawable, int x, int y, int width, int height);
|
||||
|
||||
static DrawDelegate DrawCallback;
|
||||
|
||||
static void Draw_cb (IntPtr handle, IntPtr drawable_handle, int x, int y, int width, int height)
|
||||
{
|
||||
CanvasItem obj = GLib.Object.GetObject (handle, false) as CanvasItem;
|
||||
Gdk.Drawable drawable = GLib.Object.GetObject (drawable_handle, false) as Gdk.Drawable;
|
||||
obj.Draw (drawable, x, y, width, height);
|
||||
}
|
||||
|
||||
static void OverrideDraw (GLib.GType gtype)
|
||||
{
|
||||
if (DrawCallback == null)
|
||||
DrawCallback = new DrawDelegate (Draw_cb);
|
||||
gnomesharp_canvas_item_override_draw (gtype, DrawCallback);
|
||||
}
|
||||
|
||||
[GLib.DefaultSignalHandler (Type=typeof(Gnome.CanvasItem), ConnectionMethod="OverrideDraw")]
|
||||
protected virtual void Draw (Gdk.Drawable drawable, int x, int y, int width, int height)
|
||||
{
|
||||
gnomesharp_canvas_item_base_draw (Handle, drawable.Handle, x, y, width, height);
|
||||
}
|
||||
|
||||
[DllImport("gnomesharpglue-2")]
|
||||
static extern void gnomesharp_canvas_item_base_render (IntPtr handle, ref CanvasBuf buf);
|
||||
|
||||
[DllImport("gnomesharpglue-2")]
|
||||
static extern void gnomesharp_canvas_item_override_render (GLib.GType gtype, RenderDelegate cb);
|
||||
|
||||
[GLib.CDeclCallback]
|
||||
delegate void RenderDelegate (IntPtr handle, ref CanvasBuf buf);
|
||||
|
||||
static RenderDelegate RenderCallback;
|
||||
|
||||
static void Render_cb (IntPtr handle, ref CanvasBuf buf)
|
||||
{
|
||||
CanvasItem obj = GLib.Object.GetObject (handle, false) as CanvasItem;
|
||||
obj.Render (ref buf);
|
||||
}
|
||||
|
||||
[GLib.DefaultSignalHandler (Type=typeof(Gnome.CanvasItem), ConnectionMethod="OverrideRender")]
|
||||
static void OverrideRender (GLib.GType gtype)
|
||||
{
|
||||
if (RenderCallback == null)
|
||||
RenderCallback = new RenderDelegate (Render_cb);
|
||||
gnomesharp_canvas_item_override_render (gtype, RenderCallback);
|
||||
}
|
||||
|
||||
protected virtual void Render (ref CanvasBuf buf)
|
||||
{
|
||||
gnomesharp_canvas_item_base_render (Handle, ref buf);
|
||||
}
|
||||
|
||||
[DllImport("gnomesharpglue-2")]
|
||||
static extern void gnomesharp_canvas_item_base_update (IntPtr handle, double[] affine, ref Art.SVP clip_path, int flags);
|
||||
|
||||
[DllImport("gnomesharpglue-2")]
|
||||
static extern void gnomesharp_canvas_item_override_update (GLib.GType gtype, UpdateDelegate cb);
|
||||
|
||||
[GLib.CDeclCallback]
|
||||
delegate void UpdateDelegate (IntPtr item, IntPtr affine_ptr, IntPtr clip_path, int flags);
|
||||
|
||||
static UpdateDelegate UpdateCallback;
|
||||
|
||||
static void Update_cb (IntPtr item, IntPtr affine_ptr, IntPtr clip_path_handle, int flags)
|
||||
{
|
||||
CanvasItem obj = GLib.Object.GetObject (item, false) as CanvasItem;
|
||||
double[] affine = new double [6];
|
||||
Marshal.Copy (affine_ptr, affine, 0, 6);
|
||||
Art.SVP clip_path;
|
||||
if (clip_path_handle == IntPtr.Zero)
|
||||
clip_path = Art.SVP.Zero;
|
||||
else
|
||||
clip_path = (Art.SVP) Marshal.PtrToStructure (clip_path_handle, typeof(Art.SVP));
|
||||
obj.Update (affine, ref clip_path, flags);
|
||||
}
|
||||
|
||||
static void OverrideUpdate (GLib.GType gtype)
|
||||
{
|
||||
if (UpdateCallback == null)
|
||||
UpdateCallback = new UpdateDelegate (Update_cb);
|
||||
gnomesharp_canvas_item_override_update (gtype, UpdateCallback);
|
||||
}
|
||||
|
||||
[GLib.DefaultSignalHandler (Type=typeof(Gnome.CanvasItem), ConnectionMethod="OverrideUpdate")]
|
||||
protected virtual void Update (double[] affine, ref Art.SVP clip_path, int flags)
|
||||
{
|
||||
gnomesharp_canvas_item_base_update (Handle, affine, ref clip_path, flags);
|
||||
}
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
//
|
||||
// Gnome.CanvasLine.custom - Gnome CanvasLine class customizations
|
||||
//
|
||||
// Author: Rachel Hestilow <hestilow@ximian.com>
|
||||
//
|
||||
// Copyright (C) 2002 Rachel Hestilow
|
||||
//
|
||||
// This code is inserted after the automatically generated code.
|
||||
//
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
public CanvasLine (Gnome.CanvasGroup group) : base (group, GType)
|
||||
{
|
||||
}
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
// Gnome.CanvasPathDef.custom - Gnome CanvasPathDef class customizations
|
||||
//
|
||||
// Author: Mike Kestner <mkestner@novell.com>
|
||||
//
|
||||
// Copyright (C) 2005 Novell, Inc.
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
public static CanvasPathDef NewFromBpath (Art.Bpath bpath)
|
||||
{
|
||||
return new CanvasPathDef (gnome_canvas_path_def_new_from_bpath (ref bpath));
|
||||
}
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
//
|
||||
// Gnome.CanvasPixbuf.custom - Gnome CanvasPixbuf class customizations
|
||||
//
|
||||
// Author: Rachel Hestilow <hestilow@ximian.com>
|
||||
//
|
||||
// Copyright (C) 2002 Rachel Hestilow
|
||||
//
|
||||
// This code is inserted after the automatically generated code.
|
||||
//
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
public CanvasPixbuf (Gnome.CanvasGroup group) : base (group, GType)
|
||||
{
|
||||
}
|
||||
|
|
@ -1,31 +0,0 @@
|
|||
//
|
||||
// Gnome.CanvasPoints.custom - Gnome CanvasPoints class customizations
|
||||
//
|
||||
// Author: Rachel Hestilow <hestilow@ximian.com>
|
||||
//
|
||||
// Copyright (C) 2002 Rachel Hestilow
|
||||
//
|
||||
// This code is inserted after the automatically generated code.
|
||||
//
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
[DllImport("gnomesharpglue-2")]
|
||||
static extern System.IntPtr
|
||||
gtksharp_gnome_canvas_points_new_from_array (uint num_points, double[] coords);
|
||||
|
||||
public CanvasPoints (double[] coords) : this (gtksharp_gnome_canvas_points_new_from_array ((uint) coords.Length / 2, coords)) {}
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
//
|
||||
// Gnome.CanvasPolygon.custom - Gnome CanvasPolygon class customizations
|
||||
//
|
||||
// Author: Rachel Hestilow <hestilow@ximian.com>
|
||||
//
|
||||
// Copyright (C) 2002 Rachel Hestilow
|
||||
//
|
||||
// This code is inserted after the automatically generated code.
|
||||
//
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
public CanvasPolygon (Gnome.CanvasGroup group) : base (group, GType)
|
||||
{
|
||||
}
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
//
|
||||
// Gnome.CanvasRE.custom - Gnome CanvasRE class customizations
|
||||
//
|
||||
// Author: Rachel Hestilow <hestilow@ximian.com>
|
||||
//
|
||||
// Copyright (C) 2002 Rachel Hestilow
|
||||
//
|
||||
// This code is inserted after the automatically generated code.
|
||||
//
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
protected CanvasRE (Gnome.CanvasGroup group, GLib.GType type) : base (group, type)
|
||||
{
|
||||
}
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
//
|
||||
// Gnome.CanvasRect.custom - Gnome CanvasRect class customizations
|
||||
//
|
||||
// Author: Rachel Hestilow <hestilow@ximian.com>
|
||||
//
|
||||
// Copyright (C) 2002 Rachel Hestilow
|
||||
//
|
||||
// This code is inserted after the automatically generated code.
|
||||
//
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
public CanvasRect (Gnome.CanvasGroup group) : base (group, GType)
|
||||
{
|
||||
}
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
//
|
||||
// Gnome.CanvasRichText.custom - Gnome CanvasRichText class customizations
|
||||
//
|
||||
// Author: Rachel Hestilow <hestilow@ximian.com>
|
||||
//
|
||||
// Copyright (C) 2002 Rachel Hestilow
|
||||
//
|
||||
// This code is inserted after the automatically generated code.
|
||||
//
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
public CanvasRichText (Gnome.CanvasGroup group) : base (group, GType)
|
||||
{
|
||||
}
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
//
|
||||
// Gnome.CanvasShape.custom - Gnome CanvasShape class customizations
|
||||
//
|
||||
// Author: Rachel Hestilow <hestilow@ximian.com>
|
||||
//
|
||||
// Copyright (C) 2002 Rachel Hestilow
|
||||
//
|
||||
// This code is inserted after the automatically generated code.
|
||||
//
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
protected CanvasShape (Gnome.CanvasGroup group, GLib.GType type) : base (group, type)
|
||||
{
|
||||
}
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
//
|
||||
// Gnome.CanvasText.custom - Gnome CanvasText class customizations
|
||||
//
|
||||
// Author: Rachel Hestilow <hestilow@ximian.com>
|
||||
//
|
||||
// Copyright (C) 2002 Rachel Hestilow
|
||||
//
|
||||
// This code is inserted after the automatically generated code.
|
||||
//
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
public CanvasText (Gnome.CanvasGroup group) : base (group, GType)
|
||||
{
|
||||
}
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
//
|
||||
// Gnome.CanvasWidget.custom - Gnome CanvasWidget class customizations
|
||||
//
|
||||
// Author: Rachel Hestilow <hestilow@ximian.com>
|
||||
//
|
||||
// Copyright (C) 2002 Rachel Hestilow
|
||||
//
|
||||
// This code is inserted after the automatically generated code.
|
||||
//
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
public CanvasWidget (Gnome.CanvasGroup group) : base (group, GType)
|
||||
{
|
||||
}
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
// Client.custom - Gnome.Client customizations
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
[Obsolete("Replaced by overload with no IntPtr arg")]
|
||||
public void RequestInteractionInterp (Gnome.DialogType dialog_type, Gtk.CallbackMarshal function, IntPtr data, Gtk.DestroyNotify destroy)
|
||||
{
|
||||
RequestInteractionInterp (dialog_type, function, destroy);
|
||||
}
|
|
@ -1,40 +0,0 @@
|
|||
// DateEdit.custom - Gnome.DateEdit customizations
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
[DllImport("gnomeui-2")]
|
||||
static extern IntPtr gnome_date_edit_new(IntPtr the_time, bool show_time, bool use_24_format);
|
||||
|
||||
public DateEdit () : this (System.DateTime.Now, true, false)
|
||||
{
|
||||
}
|
||||
|
||||
public DateEdit (System.DateTime the_time) : this (the_time, true, false)
|
||||
{
|
||||
}
|
||||
|
||||
public DateEdit (System.DateTime the_time, bool show_time) : this (the_time, show_time, false)
|
||||
{
|
||||
}
|
||||
|
||||
public DateEdit (System.DateTime the_time, bool show_time, bool use_24_format) : base (IntPtr.Zero)
|
||||
{
|
||||
if (GetType () != typeof (DateEdit)) {
|
||||
CreateNativeObject (new string[0], new GLib.Value [0]);
|
||||
Construct (the_time, ((show_time) ? DateEditFlags.ShowTime : 0) | ((use_24_format) ? DateEditFlags.Two4Hr : 0));
|
||||
return;
|
||||
}
|
||||
Raw = gnome_date_edit_new(GLib.Marshaller.DateTimeTotime_t (the_time), show_time, use_24_format);
|
||||
}
|
|
@ -1,68 +0,0 @@
|
|||
// Druid.custom - Gnome.Druid customizations
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
[DllImport("gnomeui-2")]
|
||||
static extern IntPtr gnome_druid_new_with_window(IntPtr title, IntPtr parent, bool close_on_cancel, out IntPtr window);
|
||||
|
||||
Gtk.Widget new_with_window (string title, Gtk.Widget parent, bool close_on_cancel)
|
||||
{
|
||||
IntPtr handle;
|
||||
IntPtr ntitle = GLib.Marshaller.StringToPtrGStrdup (title);
|
||||
Raw = gnome_druid_new_with_window (ntitle, parent == null ? IntPtr.Zero : parent.Handle, close_on_cancel, out handle);
|
||||
GLib.Marshaller.Free (ntitle);
|
||||
return GLib.Object.GetObject (handle) as Gtk.Widget;
|
||||
}
|
||||
|
||||
public Druid (string title, bool close_on_cancel, out Gtk.Widget window) : base (IntPtr.Zero)
|
||||
{
|
||||
if (GetType () != typeof (Druid)) {
|
||||
CreateNativeObject (new string[0], new GLib.Value [0]);
|
||||
window = ConstructWithWindow (title, null, close_on_cancel);
|
||||
return;
|
||||
}
|
||||
window = new_with_window (title, null, close_on_cancel);
|
||||
}
|
||||
|
||||
public Druid (string title, bool close_on_cancel) : base (IntPtr.Zero)
|
||||
{
|
||||
if (GetType () != typeof (Druid)) {
|
||||
CreateNativeObject (new string[0], new GLib.Value[0]);
|
||||
ConstructWithWindow (title, null, close_on_cancel);
|
||||
return;
|
||||
}
|
||||
new_with_window (title, null, close_on_cancel);
|
||||
}
|
||||
|
||||
public Druid (string title, Gtk.Window parent, bool close_on_cancel) : base (IntPtr.Zero)
|
||||
{
|
||||
if (GetType () != typeof (Druid)) {
|
||||
CreateNativeObject (new string[0], new GLib.Value[0]);
|
||||
ConstructWithWindow (title, parent, close_on_cancel);
|
||||
return;
|
||||
}
|
||||
new_with_window (title, parent, close_on_cancel);
|
||||
}
|
||||
|
||||
public Druid (string title, Gtk.Window parent, bool close_on_cancel, out Gtk.Widget window) : base (IntPtr.Zero)
|
||||
{
|
||||
if (GetType () != typeof (Druid)) {
|
||||
CreateNativeObject (new string[0], new GLib.Value[0]);
|
||||
window = ConstructWithWindow (title, parent, close_on_cancel);
|
||||
return;
|
||||
}
|
||||
window = new_with_window(title, parent, close_on_cancel);
|
||||
}
|
||||
|
|
@ -1,36 +0,0 @@
|
|||
// DruidPage.custom - Gnome.DruidPage customizations
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
[DllImport("gnomeui-2")]
|
||||
static extern IntPtr gnome_druid_page_edge_new_with_vals(int position, bool antialiased, IntPtr title, IntPtr text, IntPtr logo, IntPtr watermark, IntPtr top_watermark);
|
||||
|
||||
public DruidPageEdge (Gnome.EdgePosition position) : this (position, false, String.Empty, String.Empty, null, null, null)
|
||||
{
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
|
@ -1,58 +0,0 @@
|
|||
// Font.custom - customizations to Gnome.Font
|
||||
//
|
||||
// Authors: Mike Kestner <mkestner@ximian.com>
|
||||
//
|
||||
// Copyright (c) 2004 Novell, Inc.
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
[DllImport("gnomeprint-2-2")]
|
||||
static extern IntPtr gnome_font_list ();
|
||||
|
||||
public static string[] List ()
|
||||
{
|
||||
IntPtr list_ptr = gnome_font_list ();
|
||||
if (list_ptr == IntPtr.Zero)
|
||||
return new string [0];
|
||||
|
||||
GLib.List list = new GLib.List (list_ptr, typeof (string));
|
||||
string[] result = new string [list.Count];
|
||||
int i = 0;
|
||||
foreach (string val in list)
|
||||
result [i++] = val;
|
||||
return result;
|
||||
}
|
||||
|
||||
[DllImport("gnomeprint-2-2")]
|
||||
static extern IntPtr gnome_font_style_list (IntPtr family);
|
||||
|
||||
public static string[] StyleList (string family)
|
||||
{
|
||||
IntPtr nfamily = GLib.Marshaller.StringToPtrGStrdup (family);
|
||||
IntPtr list_ptr = gnome_font_style_list (nfamily);
|
||||
GLib.Marshaller.Free (nfamily);
|
||||
if (list_ptr == IntPtr.Zero)
|
||||
return new string [0];
|
||||
|
||||
GLib.List list = new GLib.List (list_ptr, typeof (string));
|
||||
string[] result = new string [list.Count];
|
||||
int i = 0;
|
||||
foreach (string val in list)
|
||||
result [i++] = val;
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
@ -1,47 +0,0 @@
|
|||
// FontFamily.cs - customizations to Gnome.FontFamily
|
||||
//
|
||||
// Authors: Mike Kestner <mkestner@ximian.com>
|
||||
//
|
||||
// Copyright (c) 2004 Novell, Inc.
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
namespace Gnome {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class FontFamily {
|
||||
|
||||
private FontFamily () {}
|
||||
|
||||
[DllImport("gnomeprint-2-2")]
|
||||
static extern IntPtr gnome_font_family_list ();
|
||||
|
||||
public static string[] List ()
|
||||
{
|
||||
IntPtr list_ptr = gnome_font_family_list ();
|
||||
if (list_ptr == IntPtr.Zero)
|
||||
return new string [0];
|
||||
|
||||
GLib.List list = new GLib.List (list_ptr, typeof (string));
|
||||
string[] result = new string [list.Count];
|
||||
int i = 0;
|
||||
foreach (string val in list)
|
||||
result [i++] = val;
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,167 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<metadata>
|
||||
<attr path="/api/namespace/callback[@cname='GnomeModuleClassInitHook']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/callback[@cname='GnomeModuleHook']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/callback[@cname='GnomeModuleInitHook']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/enum[@cname='GnomePrintButtons']/member[@name='Cancel']" name="value">(int)Gtk.ResponseType.Cancel</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeApp']/constructor[@cname='gnome_app_new']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeApp']/field[@name='AccelGroup']" name="access">public</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeApp']/field[@name='Contents']" name="access">public</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeApp']/field[@cname='menubar']" name="name">Menus</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeApp']/field[@name='Menus']" name="access">public</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeApp']/field[@name='Menus']" name="type">GtkMenuBar*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeApp']/field[@name='Name']" name="access">public</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeApp']/field[@name='Prefix']" name="access">public</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeApp']/field[@name='Statusbar']" name="access">public</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDateEdit']/constructor[@cname='gnome_date_edit_new_flags']/*/*[@name='flags']" name="property_name">dateedit_flags</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDateEdit']/constructor[@cname='gnome_date_edit_new_flags']/*/*[@name='the_time']" name="property_name">time</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDateEdit']/constructor[@cname='gnome_date_edit_new']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDateEdit']/method[@name='GetFlags']" name="new_flag">1</attr>
|
||||
<attr path="/api/namespace/boxed[@cname='GnomeCanvasPoints']/field" name="access">private</attr>
|
||||
<attr path="/api/namespace/boxed[@cname='GnomeCanvasPoints']/method[@name='Free']" name="deprecated">1</attr>
|
||||
<attr path="/api/namespace/boxed[@cname='GnomeCanvasPoints']/method[@name='Ref']" name="deprecated">1</attr>
|
||||
<attr path="/api/namespace/boxed[@cname='GnomeGlyphList']/method/*/*[@type='const-guchar*']" name="type">const-gchar*</attr>
|
||||
<attr path="/api/namespace/boxed[@cname='GnomeGlyphList']/method[@name='Ref']" name="deprecated">1</attr>
|
||||
<attr path="/api/namespace/boxed[@cname='GnomeGlyphList']/method[@name='Unref']" name="deprecated">1</attr>
|
||||
<attr path="/api/namespace/boxed[@cname='GnomeModuleInfo']" name="opaque">1</attr>
|
||||
<attr path="/api/namespace/boxed[@cname='GnomeModuleInfo']/field[@name='Name']" name="access">public</attr>
|
||||
<attr path="/api/namespace/boxed[@cname='GnomeModuleInfo']/field[@name='Version']" name="access">public</attr>
|
||||
<attr path="/api/namespace/boxed[@cname='GnomeModuleInfo']/field[@name='Description']" name="access">public</attr>
|
||||
<attr path="/api/namespace/boxed[@cname='GnomePrintUnit']/method/*/*[@type='const-guchar*']" name="type">const-gchar*</attr>
|
||||
<attr path="/api/namespace/boxed[@cname='GnomePrintUnit']/method[@name='GetIdentity']/*/*[@name='base']" name="name">Base</attr>
|
||||
<attr path="/api/namespace/callback[@cname='GnomeTriggerActionFunction']/*/*[@name='supinfo']" name="type">const-char*</attr>
|
||||
<attr path="/api/namespace/class[@cname='GnomeConfig_']/method[@name='SetSetHandler']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/class[@cname='GnomeConfig_']/method[@name='SetSyncHandler']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/class[@cname='GnomeGdk_']" name="name">GdkHelper</attr>
|
||||
<attr path="/api/namespace/class[@cname='GnomeGtk_']" name="name">GtkHelper</attr>
|
||||
<attr path="/api/namespace/class[@cname='GnomeGlobal']/method[@name='MdiModeGetType']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/class[@cname='GnomePrint_']/method/*/*[@name='in']" name="type">const-gchar*</attr>
|
||||
<attr path="/api/namespace/class[@cname='GnomePrint_']/method/*/*[@name='text']" name="type">const-gchar*</attr>
|
||||
<attr path="/api/namespace/class[@cname='GnomePrint_']/method/*/*[@name='name']" name="type">const-gchar*</attr>
|
||||
<attr path="/api/namespace/class[@cname='GnomePrint_']/method/*/*[@name='data']" name="type">const-guchar</attr>
|
||||
<attr path="/api/namespace/class[@cname='GnomePrint_']/method/*/*[@name='data']" name="array">1</attr>
|
||||
<attr path="/api/namespace/class[@cname='GnomeThumbnail_']/method[@name='ScaleDownPixbuf']/return-type" name="owned">true</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeAbout']" name="disable_void_ctor">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeAbout']/constructor[@cname='gnome_about_new']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeAbout']/method[@name='Construct']/*/*[@type='const-gchar**']" name="array">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeAppBar']/signal[@name='ClearPrompt']" name="name">PromptCleared</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvas']/field[@name='PixelsPerUnit']" name="access">public</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvas']/method[@name='C2w']/*/*[@type='double*']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvas']/method[@name='GetButtPoints']/*/*[@type='double*']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvas']/method[@name='GetColor']/return-type" name="type">gboolean</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvas']/method[@name='GetColor']/*/*[@type='GdkColor*']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvas']/method[@name='GetMiterPoints']/return-type" name="type">gboolean</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvas']/method[@name='GetMiterPoints']/*/*[@type='double*']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvas']/method[@name='GetScrollOffsets']/*/*[@type='int*']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvas']/method[@name='GetScrollRegion']/*/*[@type='double*']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvas']/method[@name='W2c']/*/*[@type='int*']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvas']/method[@name='W2cD']/*/*[@type='double*']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvas']/method[@name='WindowToWorld']/*/*[@type='double*']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvas']/method[@name='WorldToWindow']/*/*[@type='double*']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvas']/method[@name='W2cAffine']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvasBpath']/property[@name='Bpath']" name="type">gpointer</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvasClipgroup']/property[@name='Wind']" name="type">ArtWindRule</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvasItem']/constructor[@cname='gnome_canvas_item_new']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvasItem']/field[@name='Canvas']" name="access">public</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvasItem']/method[@name='Construct']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvasItem']/method[@name='GetBounds']/*/*[@type='double*']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvasItem']/method[@name='I2cAffine']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvasItem']/method[@name='I2w']/*/*[@type='double*']" name="pass_as">ref</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvasItem']/method[@name='I2wAffine']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvasItem']/method[@name='SetValist']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvasItem']/method[@name='W2i']/*/*[@type='double*']" name="pass_as">ref</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvasItem']/signal[@name='Event']" name="name">CanvasEvent</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvasRichText']/method[@name='GetIterLocation']/*/*[@name='location']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvasRichText']/method[@name='GetIterAtLocation']/*/*[@name='iter']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeCanvasShape']/property[@name='Dash']" name="type">ArtVpathDash</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeClient']/signal[@name='Connect']" name="name">Connected</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeClient']/signal[@name='Disconnect']" name="name">Disconnected</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDateEdit']/method[@name='GetInitialTime']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruid']/constructor[@cname='gnome_druid_new_with_window']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruid']/field[@type='GtkWidget*']" name="access">public</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruid']/field[@type='GtkWidget*']" name="type">GtkButton*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruid']/field[@cname='back']" name="name">BackButton</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruid']/field[@cname='cancel']" name="name">CancelButton</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruid']/field[@cname='finish']" name="name">FinishButton</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruid']/field[@cname='help']" name="name">HelpButton</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruid']/field[@cname='next']" name="name">NextButton</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruid']/method[@cname='gnome_druid_construct_with_window']/*/*[@name='window']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruidPage']/signal[@name='Back']" name="name">BackClicked</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruidPage']/signal[@name='Cancel']" name="name">CancelClicked</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruidPage']/signal[@name='Finish']" name="name">FinishClicked</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruidPage']/signal[@name='Next']" name="name">NextClicked</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruidPage']/signal[@name='Prepare']" name="name">Prepared</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruidPageEdge']/field[@cname='background_color']" name="name">BgColor</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruidPageEdge']/field[@cname='logo_background_color']" name="name">LogoBgColor</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruidPageEdge']/field[@cname='logo_image']" name="name">Logo</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruidPageEdge']/field[@cname='top_watermark_image']" name="name">TopWatermark</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruidPageEdge']/field[@cname='watermark_image']" name="name">Watermark</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruidPageEdge']/constructor[@cname='gnome_druid_page_edge_new']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruidPageEdge']/constructor[@cname='gnome_druid_page_edge_new_with_vals']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruidPageEdge']/constructor[@cname='gnome_druid_page_edge_new_aa']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruidPageStandard']/constructor[@cname='gnome_druid_page_standard_new_with_vals']/*/*[@name='logo']" name="null_ok">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruidPageStandard']/constructor[@cname='gnome_druid_page_standard_new_with_vals']/*/*[@name='top_watermark']" name="null_ok">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruidPageStandard']/field[@cname='vbox']" name="name">VBox</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruidPageStandard']/field[@cname='vbox']" name="type">GtkVBox*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruidPageStandard']/property[@name='Background']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruidPageStandard']/property[@name='ContentsBackground']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruidPageStandard']/property[@name='LogoBackground']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeDruidPageStandard']/property[@name='TitleForeground']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeEntry']/method[@name='GtkEntry']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeEntry']/signal[@name='Activate']" name="name">Activated</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeFileEntry']/method[@name='GnomeEntry']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeFileEntry']/method[@name='GtkEntry']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeFileEntry']/signal[@name='Activate']" name="name">Activated</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeFont']/method[@name='FamilyList']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeFont']/method[@name='FamilyListFree']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeFont']/method[@name='List']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeFont']/method[@name='ListFree']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeFont']/method[@name='StyleList']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeFont']/method[@name='StyleListFree']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeFont']/method/*/*[@type='const-guchar*']" name="type">const-gchar*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeFont']/method[@name='GetFamilyName']/return-type" name="type">const-gchar*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeFont']/method[@name='GetFullName']/return-type" name="type">gchar*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeFontFace']/method/return-type[@type='const-guchar*']" name="type">const-gchar*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeFontFace']/method/*/*[@type='const-guchar*']" name="type">const-gchar*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeFontPicker']/method[@name='GetFont']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeFontPreview']/method/*/*[@type='const-guchar*']" name="type">const-gchar*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeIconEntry']/method[@name='PickDialog']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeIconList']/constructor[@cname='gnome_icon_list_new']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeIconList']/method[@name='GetIconFilename']/return-type" name="type">const-gchar*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeIconList']/method[@name='GetSelection']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeIconList']/method[@name='SetIconDataFull']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeIconList']/signal[@name='FocusIcon']" name="name">IconFocused</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeIconList']/signal[@name='SelectIcon']" name="name">IconSelected</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeIconList']/signal[@name='UnselectIcon']" name="name">IconUnselected</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeIconTheme']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomePixmapEntry']/method[@name='GnomeEntry']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomePixmapEntry']/method[@name='GnomeFileEntry']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomePixmapEntry']/method[@name='GtkEntry']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomePrintConfig']/method/*/*[@type='const-guchar*']" name="type">const-gchar*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomePrintConfig']/method[@name='Get']/return-type" name="type">gchar*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomePrintDialog']/method/*/*[@type='const-guchar*']" name="type">const-gchar*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomePrintDialog']/constructor[@cname='gnome_print_dialog_new']/*/*[@type='const-guchar*']" name="type">const-gchar*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomePrintDialog']/constructor[@cname='gnome_print_dialog_new']/*/*[@name='flags']" name="type">GnomePrintDialogFlags</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomePrintJobPreview']/constructor/*/*[@type='const-guchar*']" name="type">const-gchar*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomePrintMeta']/method/*/*[@name='filename']" name="type">const-gchar*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomePrintTransport']" name="parent">GObject</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeScores']/constructor[@cname='gnome_scores_new']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='PanelAppletShell']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='PanelApplet']/method[@cname='panel_applet_factory_main']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='PanelApplet']/method[@cname='panel_applet_factory_main_closure']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='PanelApplet']/method[@cname='panel_applet_get_flags']" name="new_flag">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='PanelApplet']/method[@cname='panel_applet_set_flasg']" name="new_flag">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='PanelApplet']" name="abstract">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GnomeCanvasPathDef']/method[@name='Curveto']" name="name">CurveTo</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GnomeCanvasPathDef']/method[@name='Lineto']" name="name">LineTo</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GnomeCanvasPathDef']/method[@name='LinetoMoving']" name="name">LineToMoving</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GnomeCanvasPathDef']/method[@name='Moveto']" name="name">MoveTo</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GnomeCanvasPathDef']/method[@name='Ref']" name="deprecated">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GnomeCanvasPathDef']/method[@name='Split']/return-type" name="element_type">GnomeCanvasPathDef*</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GnomeCanvasPathDef']/method[@name='Split']/return-type" name="owned">true</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GnomeCanvasPathDef']/method[@name='Split']/return-type" name="elements_owned">true</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GnomeCanvasPathDef']/method[@name='Unref']" name="deprecated">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GnomeModuleRequirement']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GnomePrintPaper']/method/*/*[@type='const-guchar*']" name="type">const-gchar*</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GnomeThemeFile']/method[@name='Free']" name="deprecated">1</attr>
|
||||
</metadata>
|
|
@ -1,51 +0,0 @@
|
|||
// IconList.custom - customizations to Gnome.IconList
|
||||
//
|
||||
// Authors: Mike Kestner <mkestner@ximian.com>
|
||||
//
|
||||
// Copyright (c) 2004 Novell, Inc.
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
[DllImport("gnomeui-2")]
|
||||
static extern IntPtr gnome_icon_list_get_selection (IntPtr raw);
|
||||
|
||||
public int[] Selection {
|
||||
get {
|
||||
IntPtr list_ptr = gnome_icon_list_get_selection (Handle);
|
||||
if (list_ptr == IntPtr.Zero)
|
||||
return new int [0];
|
||||
|
||||
GLib.List list = new GLib.List (list_ptr, typeof (int));
|
||||
int[] result = new int [list.Count];
|
||||
int i = 0;
|
||||
foreach (int val in list)
|
||||
result [i++] = val;
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
[DllImport("gnomeui-2")]
|
||||
static extern IntPtr gnome_icon_list_new(uint icon_width, IntPtr adj, int flags);
|
||||
|
||||
public IconList (uint icon_width, Gtk.Adjustment adj, int flags) : base (IntPtr.Zero)
|
||||
{
|
||||
if (GetType () != typeof (IconList)) {
|
||||
CreateNativeObject (new string[0], new GLib.Value[0]);
|
||||
Construct (icon_width, adj, flags);
|
||||
return;
|
||||
}
|
||||
Raw = gnome_icon_list_new(icon_width, (adj != null) ? adj.Handle : IntPtr.Zero, flags);
|
||||
}
|
|
@ -1,29 +0,0 @@
|
|||
//
|
||||
// Gnome.IconTextItem.custom - Gnome IconTextItem class customizations
|
||||
//
|
||||
// Author: Rachel Hestilow <hestilow@ximian.com>
|
||||
//
|
||||
// Copyright (C) 2002 Rachel Hestilow
|
||||
//
|
||||
// This code is inserted after the automatically generated code.
|
||||
//
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
public IconTextItem (Gnome.CanvasGroup group) : base (group, GType)
|
||||
{
|
||||
}
|
||||
|
|
@ -1,70 +0,0 @@
|
|||
// IconTheme.cs - Manual implementation of GnomeIconTheme class in GTK+-2.4.
|
||||
//
|
||||
// Authors: Jeroen Zwartepoorte <jeroen@xs4all.nl>
|
||||
//
|
||||
// Copyright (c) 2004 Novell, Inc.
|
||||
|
||||
namespace Gnome {
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class IconTheme : Gtk.IconTheme {
|
||||
|
||||
~IconTheme()
|
||||
{
|
||||
Dispose();
|
||||
}
|
||||
|
||||
protected IconTheme(GLib.GType gtype) : base(gtype) {}
|
||||
public IconTheme(IntPtr raw) : base(raw) {}
|
||||
|
||||
[DllImport("gnomeui-2")]
|
||||
static extern IntPtr gnome_icon_theme_new();
|
||||
|
||||
public IconTheme() : base (IntPtr.Zero)
|
||||
{
|
||||
Raw = gnome_icon_theme_new();
|
||||
}
|
||||
|
||||
[DllImport("gnomeui-2")]
|
||||
static extern bool gnome_icon_theme_get_allow_svg(IntPtr raw);
|
||||
|
||||
[DllImport("gnomeui-2")]
|
||||
static extern void gnome_icon_theme_set_allow_svg(IntPtr raw, bool allow_svg);
|
||||
|
||||
public bool AllowSvg {
|
||||
get {
|
||||
bool raw_ret = gnome_icon_theme_get_allow_svg(Handle);
|
||||
bool ret = raw_ret;
|
||||
return ret;
|
||||
}
|
||||
set {
|
||||
gnome_icon_theme_set_allow_svg(Handle, value);
|
||||
}
|
||||
}
|
||||
|
||||
[DllImport("gnomeui-2")]
|
||||
static extern IntPtr gnome_icon_theme_lookup_icon(IntPtr raw, IntPtr icon_name, int size, ref Gnome.IconData icon_data, out int base_size);
|
||||
|
||||
public string LookupIcon(string icon_name, int size, Gnome.IconData icon_data, out int base_size) {
|
||||
IntPtr native_icon_name = GLib.Marshaller.StringToPtrGStrdup (icon_name);
|
||||
IntPtr raw_ret = gnome_icon_theme_lookup_icon(Handle, native_icon_name, size, ref icon_data, out base_size);
|
||||
GLib.Marshaller.Free (native_icon_name);
|
||||
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
[DllImport("gnomeui-2")]
|
||||
static extern IntPtr gnome_icon_theme_get_type();
|
||||
|
||||
public static new GLib.GType GType {
|
||||
get {
|
||||
IntPtr raw_ret = gnome_icon_theme_get_type();
|
||||
GLib.GType ret = new GLib.GType(raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,64 +0,0 @@
|
|||
SUBDIRS = . glue
|
||||
|
||||
if ENABLE_GNOME
|
||||
pkg = gnome
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
pkgconfig_DATA = gnome-sharp-2.0.pc
|
||||
else
|
||||
pkg =
|
||||
endif
|
||||
|
||||
INCLUDE_API = ../pango/pango-api.xml ../atk/atk-api.xml ../gdk/gdk-api.xml ../gtk/gtk-api.xml ../art/art-api.xml ../gnomevfs/gnome-vfs-api.xml
|
||||
METADATA = Gnome.metadata
|
||||
SYMBOLS =
|
||||
references = ../glib/glib-sharp.dll ../pango/pango-sharp.dll ../atk/atk-sharp.dll ../gdk/gdk-sharp.dll ../gtk/gtk-sharp.dll ../art/art-sharp.dll ../gnomevfs/gnome-vfs-sharp.dll
|
||||
glue_includes = gnome.h,libgnomeprint/gnome-print.h,libgnomeprint/gnome-print-paper.h
|
||||
|
||||
sources = \
|
||||
BonoboUIVerb.cs \
|
||||
FontFamily.cs \
|
||||
IconTheme.cs \
|
||||
Modules.cs \
|
||||
PanelAppletFactory.cs
|
||||
|
||||
customs = \
|
||||
About.custom \
|
||||
App.custom \
|
||||
DateEdit.custom \
|
||||
CanvasBpath.custom \
|
||||
CanvasClipgroup.custom \
|
||||
Canvas.custom \
|
||||
CanvasEllipse.custom \
|
||||
CanvasGroup.custom \
|
||||
CanvasItem.custom \
|
||||
CanvasLine.custom \
|
||||
CanvasPathDef.custom \
|
||||
CanvasPixbuf.custom \
|
||||
CanvasPoints.custom \
|
||||
CanvasPolygon.custom \
|
||||
CanvasRect.custom \
|
||||
CanvasRE.custom \
|
||||
CanvasRichText.custom \
|
||||
CanvasShape.custom \
|
||||
CanvasText.custom \
|
||||
CanvasWidget.custom \
|
||||
Client.custom \
|
||||
Druid.custom \
|
||||
DruidPageEdge.custom \
|
||||
Font.custom \
|
||||
IconList.custom \
|
||||
IconTextItem.custom \
|
||||
PanelApplet.custom \
|
||||
Popup.custom \
|
||||
Print.custom \
|
||||
PrintContext.custom \
|
||||
PrintDialog.custom \
|
||||
PrintJob.custom \
|
||||
Program.custom \
|
||||
Scores.custom \
|
||||
UIInfo.custom
|
||||
|
||||
add_dist = gnome-sharp-2.0.pc.in
|
||||
|
||||
include ../Makefile.include
|
||||
|
|
@ -1,43 +0,0 @@
|
|||
// Modules.cs
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
namespace Gnome
|
||||
{
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class Modules
|
||||
{
|
||||
[DllImport("gnome-2")]
|
||||
static extern System.IntPtr libgnome_module_info_get ();
|
||||
[DllImport("gnomeui-2")]
|
||||
static extern System.IntPtr libgnomeui_module_info_get ();
|
||||
|
||||
public static ModuleInfo LibGnome {
|
||||
get {
|
||||
return new ModuleInfo (libgnome_module_info_get ());
|
||||
}
|
||||
}
|
||||
|
||||
public static ModuleInfo UI {
|
||||
get {
|
||||
return new ModuleInfo (libgnomeui_module_info_get ());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
[DllImport ("panel-applet-2")]
|
||||
static extern void panel_applet_setup_menu (IntPtr handle, IntPtr xml, BonoboUIVerb[] items, IntPtr user_data);
|
||||
|
||||
public void SetupMenu (string xml, BonoboUIVerb[] items)
|
||||
{
|
||||
BonoboUIVerb[] nulled_items = new BonoboUIVerb[items.Length + 1];
|
||||
Array.Copy (items, nulled_items, items.Length);
|
||||
nulled_items[items.Length] = new BonoboUIVerb (null, null);
|
||||
IntPtr native = GLib.Marshaller.StringToPtrGStrdup (xml);
|
||||
panel_applet_setup_menu (Handle, native, nulled_items, IntPtr.Zero);
|
||||
GLib.Marshaller.Free (native);
|
||||
PersistentData ["setup_menu_verbs"] = items;
|
||||
}
|
||||
|
||||
public abstract void Creation ();
|
||||
|
||||
public abstract string IID {
|
||||
get;
|
||||
}
|
||||
|
||||
public abstract string FactoryIID {
|
||||
get;
|
||||
}
|
|
@ -1,60 +0,0 @@
|
|||
// Gnome.PanelAppletFactory.cs - PanelAppletFactory class impl
|
||||
//
|
||||
// Copyright (c) 2004-2005 Novell, Inc.
|
||||
//
|
||||
// This code is inserted after the automatically generated code.
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Gnome
|
||||
{
|
||||
public class PanelAppletFactory
|
||||
{
|
||||
private PanelAppletFactory () {}
|
||||
|
||||
private static string _IID;
|
||||
private static string _factoryIID;
|
||||
private static GnomeSharp.PanelAppletFactoryCallbackWrapper cb_wrapper;
|
||||
|
||||
public static void Register (Type applet_type)
|
||||
{
|
||||
PanelApplet applet = (PanelApplet) Activator.CreateInstance (applet_type, BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance | BindingFlags.CreateInstance, null, new object[] {IntPtr.Zero}, null);
|
||||
|
||||
cb_wrapper = new GnomeSharp.PanelAppletFactoryCallbackWrapper (new PanelAppletFactoryCallback (Creation));
|
||||
_IID = applet.IID;
|
||||
_factoryIID = applet.FactoryIID;
|
||||
IntPtr native_iid = GLib.Marshaller.StringToPtrGStrdup (_factoryIID);
|
||||
panel_applet_factory_main (native_iid, ((GLib.GType) applet_type).Val, cb_wrapper.NativeDelegate, IntPtr.Zero);
|
||||
GLib.Marshaller.Free (native_iid);
|
||||
}
|
||||
|
||||
private static bool Creation (PanelApplet applet, string iid)
|
||||
{
|
||||
if (_IID != iid)
|
||||
return false;
|
||||
applet.Creation ();
|
||||
return true;
|
||||
}
|
||||
|
||||
[DllImport("panel-applet-2")]
|
||||
static extern int panel_applet_factory_main(IntPtr iid, IntPtr applet_type, GnomeSharp.PanelAppletFactoryCallbackNative cb, IntPtr data);
|
||||
}
|
||||
}
|
|
@ -1,27 +0,0 @@
|
|||
// Popup.custom - Gnome.Popup customizations
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
[Obsolete]
|
||||
public static int MenuDoPopupModal (Gtk.Widget popup, Gtk.MenuPositionFunc pos_func, IntPtr data, Gdk.EventButton evnt, IntPtr user_data, Gtk.Widget for_widget)
|
||||
{
|
||||
return MenuDoPopupModal (popup, pos_func, evnt, user_data, for_widget);
|
||||
}
|
||||
|
||||
[Obsolete]
|
||||
public static void MenuDoPopup (Gtk.Widget popup, Gtk.MenuPositionFunc pos_func, IntPtr data, Gdk.EventButton evnt, IntPtr user_data, Gtk.Widget for_widget)
|
||||
{
|
||||
MenuDoPopup (popup, pos_func, evnt, user_data, for_widget);
|
||||
}
|
|
@ -1,42 +0,0 @@
|
|||
// Pixbuf.custom - Gdk Pixbuf class customizations
|
||||
//
|
||||
// Authors:
|
||||
// Larry Ewing <lewing@ximian.com
|
||||
//
|
||||
// (C) 2004 Novell, Inc. (Larry Ewing)
|
||||
//
|
||||
// This code is inserted after the automatically generated code
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
[DllImport("gnomeprint-2-2")]
|
||||
static extern unsafe int gnome_print_rgbimage(IntPtr pc, byte * data, int width, int height, int rowstride);
|
||||
|
||||
[DllImport("gnomeprint-2-2")]
|
||||
static extern unsafe int gnome_print_rgbaimage(IntPtr pc, byte * data, int width, int height, int rowstride);
|
||||
|
||||
public static int Pixbuf (Gnome.PrintContext pc, Gdk.Pixbuf image) {
|
||||
int ret = 0;
|
||||
|
||||
unsafe {
|
||||
if (image.NChannels == 4)
|
||||
ret = gnome_print_rgbaimage(pc.Handle, (byte *) image.Pixels, image.Width, image.Height, image.Rowstride);
|
||||
else
|
||||
ret = gnome_print_rgbimage(pc.Handle, (byte *) image.Pixels, image.Width, image.Height, image.Rowstride);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
|
@ -1,284 +0,0 @@
|
|||
[DllImport("gnomeprint-2-2")]
|
||||
static extern int gnome_print_beginpage (IntPtr raw, IntPtr name);
|
||||
|
||||
public PrintReturnCode BeginPage (string name) {
|
||||
IntPtr native = GLib.Marshaller.StringToPtrGStrdup (name);
|
||||
int result = gnome_print_beginpage (Handle, native);
|
||||
GLib.Marshaller.Free (native);
|
||||
return (PrintReturnCode) result;
|
||||
}
|
||||
|
||||
[DllImport("gnomeprint-2-2")]
|
||||
static extern int gnome_print_showpage (IntPtr raw);
|
||||
|
||||
public PrintReturnCode ShowPage () {
|
||||
return (PrintReturnCode)gnome_print_showpage (Handle);
|
||||
}
|
||||
|
||||
[DllImport("gnomeprint-2-2")]
|
||||
static extern int gnome_print_end_doc (IntPtr raw);
|
||||
|
||||
public PrintReturnCode EndDoc () {
|
||||
return (PrintReturnCode)gnome_print_end_doc (Handle);
|
||||
}
|
||||
|
||||
[DllImport("gnomeprint-2-2")]
|
||||
static extern int gnome_print_gsave (IntPtr raw);
|
||||
|
||||
public PrintReturnCode SaveGraphicState () {
|
||||
return (PrintReturnCode)gnome_print_gsave (Handle);
|
||||
}
|
||||
|
||||
[DllImport("gnomeprint-2-2")]
|
||||
static extern int gnome_print_grestore (IntPtr raw);
|
||||
|
||||
public PrintReturnCode RestoreGraphicState () {
|
||||
return (PrintReturnCode)gnome_print_grestore (Handle);
|
||||
}
|
||||
|
||||
[DllImport("gnomeprint-2-2")]
|
||||
static extern int gnome_print_newpath (IntPtr raw);
|
||||
|
||||
public PrintReturnCode NewPath () {
|
||||
return (PrintReturnCode)gnome_print_newpath (Handle);
|
||||
}
|
||||
|
||||
[DllImport("gnomeprint-2-2")]
|
||||
static extern int gnome_print_moveto (IntPtr raw, double x, double y);
|
||||
|
||||
public PrintReturnCode MoveTo (double x, double y) {
|
||||
return (PrintReturnCode)gnome_print_moveto (Handle, x, y);
|
||||
}
|
||||
|
||||
[DllImport("gnomeprint-2-2")]
|
||||
static extern int gnome_print_lineto (IntPtr raw, double x, double y);
|
||||
|
||||
public PrintReturnCode LineTo (double x, double y) {
|
||||
return (PrintReturnCode)gnome_print_lineto (Handle, x, y);
|
||||
}
|
||||
|
||||
[DllImport("gnomeprint-2-2")]
|
||||
static extern int gnome_print_curveto (IntPtr raw, double x1, double y1, double x2, double y2, double x3, double y3);
|
||||
|
||||
public PrintReturnCode CurveTo (double x1, double y1, double x2, double y2, double x3, double y3) {
|
||||
return (PrintReturnCode)gnome_print_curveto (Handle, x1, y1, x2, y2, x3, y3);
|
||||
}
|
||||
|
||||
[DllImport("gnomeprint-2-2")]
|
||||
static extern int gnome_print_closepath (IntPtr raw);
|
||||
|
||||
public PrintReturnCode ClosePath () {
|
||||
return (PrintReturnCode)gnome_print_closepath (Handle);
|
||||
}
|
||||
|
||||
[DllImport("gnomeprint-2-2")]
|
||||
static extern int gnome_print_strokepath (IntPtr raw);
|
||||
|
||||
public PrintReturnCode StrokePath () {
|
||||
return (PrintReturnCode)gnome_print_strokepath (Handle);
|
||||
}
|
||||
|
||||
[DllImport("gnomeprint-2-2")]
|
||||
static extern int gnome_print_bpath (IntPtr raw, ref Art.Bpath bpath, bool append);
|
||||
|
||||
public PrintReturnCode Bpath (Art.Bpath bpath, bool append) {
|
||||
return (PrintReturnCode)gnome_print_bpath (Handle, ref bpath, append);
|
||||
}
|
||||
|
||||
[DllImport("gnomeprint-2-2")]
|
||||
static extern int gnome_print_vpath (IntPtr raw, ref Art.Vpath vpath, bool append);
|
||||
|
||||
public PrintReturnCode Vpath (Art.Vpath vpath, bool append) {
|
||||
return (PrintReturnCode)gnome_print_vpath (Handle, ref vpath, append);
|
||||
}
|
||||
|
||||
[DllImport("gnomeprint-2-2")]
|
||||
static extern int gnome_print_arcto (IntPtr raw, double x, double y, double radius, double angle1, double angle2, int direction);
|
||||
|
||||
public PrintReturnCode ArcTo (double x, double y, double radius, double angle1, double angle2, int direction) {
|
||||
return (PrintReturnCode)gnome_print_arcto (Handle, x, y, radius, angle1, angle2, direction);
|
||||
}
|
||||
|
||||
[DllImport("gnomeprint-2-2")]
|
||||
static extern int gnome_print_setrgbcolor (IntPtr raw, double r, double g, double b);
|
||||
|
||||
public PrintReturnCode SetRgbColor (double r, double g, double b) {
|
||||
return (PrintReturnCode)gnome_print_setrgbcolor (Handle, r, g, b);
|
||||
}
|
||||
|
||||
[DllImport("gnomeprint-2-2")]
|
||||
static extern int gnome_print_setopacity (IntPtr raw, double opacity);
|
||||
|
||||
public PrintReturnCode SetOpacity (double opacity) {
|
||||
return (PrintReturnCode)gnome_print_setopacity (Handle, opacity);
|
||||
}
|
||||
|
||||
[DllImport("gnomeprint-2-2")]
|
||||
static extern int gnome_print_setlinewidth (IntPtr raw, double width);
|
||||
|
||||
public PrintReturnCode SetLineWidth (double width) {
|
||||
return (PrintReturnCode)gnome_print_setlinewidth (Handle, width);
|
||||
}
|
||||
|
||||
[DllImport("gnomeprint-2-2")]
|
||||
static extern int gnome_print_setmiterlimit (IntPtr raw, double limit);
|
||||
|
||||
public PrintReturnCode SetMiterLimit (double limit) {
|
||||
return (PrintReturnCode)gnome_print_setmiterlimit (Handle, limit);
|
||||
}
|
||||
|
||||
[DllImport("gnomeprint-2-2")]
|
||||
static extern int gnome_print_setlinejoin (IntPtr raw, int jointype);
|
||||
|
||||
public PrintReturnCode SetLineJoin (int jointype) {
|
||||
return (PrintReturnCode)gnome_print_setlinejoin (Handle, jointype);
|
||||
}
|
||||
|
||||
[DllImport("gnomeprint-2-2")]
|
||||
static extern int gnome_print_setlinecap (IntPtr raw, int captype);
|
||||
|
||||
public PrintReturnCode SetLineCap (int captype) {
|
||||
return (PrintReturnCode)gnome_print_setlinecap (Handle, captype);
|
||||
}
|
||||
|
||||
// FIXME!
|
||||
/*[DllImport("gnomeprint-2-2")]
|
||||
static extern int gnome_print_setdash (IntPtr raw, int n_values, IntPtr value, double offset);
|
||||
|
||||
public PrintReturnCode SetDash (double values[], double offset) {
|
||||
return (PrintReturnCode)gnome_print_setdash (Handle, values.Length, values, offset);
|
||||
}*/
|
||||
|
||||
[DllImport("gnomeprint-2-2")]
|
||||
static extern int gnome_print_setfont (IntPtr raw, IntPtr font);
|
||||
|
||||
public PrintReturnCode SetFont (Font font) {
|
||||
return (PrintReturnCode)gnome_print_setfont (Handle, font == null ? IntPtr.Zero : font.Handle);
|
||||
}
|
||||
|
||||
[DllImport("gnomeprint-2-2")]
|
||||
static extern int gnome_print_clip (IntPtr raw);
|
||||
|
||||
public PrintReturnCode Clip () {
|
||||
return (PrintReturnCode)gnome_print_clip (Handle);
|
||||
}
|
||||
|
||||
[DllImport("gnomeprint-2-2")]
|
||||
static extern int gnome_print_eoclip (IntPtr raw);
|
||||
|
||||
public PrintReturnCode EvenOddClip () {
|
||||
return (PrintReturnCode)gnome_print_eoclip (Handle);
|
||||
}
|
||||
|
||||
[DllImport("gnomeprint-2-2")]
|
||||
static extern int gnome_print_scale (IntPtr raw, double sx, double sy);
|
||||
|
||||
public PrintReturnCode Scale (double sx, double sy) {
|
||||
return (PrintReturnCode)gnome_print_scale (Handle, sx, sy);
|
||||
}
|
||||
|
||||
[DllImport("gnomeprint-2-2")]
|
||||
static extern int gnome_print_rotate (IntPtr raw, double theta);
|
||||
|
||||
public PrintReturnCode Rotate (double theta) {
|
||||
return (PrintReturnCode)gnome_print_rotate (Handle, theta);
|
||||
}
|
||||
|
||||
[DllImport("gnomeprint-2-2")]
|
||||
static extern int gnome_print_translate (IntPtr raw, double x, double y);
|
||||
|
||||
public PrintReturnCode Translate (double x, double y) {
|
||||
return (PrintReturnCode)gnome_print_translate (Handle, x, y);
|
||||
}
|
||||
|
||||
[DllImport("gnomeprint-2-2")]
|
||||
static extern int gnome_print_fill (IntPtr raw);
|
||||
|
||||
public PrintReturnCode Fill () {
|
||||
return (PrintReturnCode)gnome_print_fill (Handle);
|
||||
}
|
||||
|
||||
[DllImport("gnomeprint-2-2")]
|
||||
static extern int gnome_print_eofill (IntPtr raw);
|
||||
|
||||
public PrintReturnCode EvenOddFill () {
|
||||
return (PrintReturnCode)gnome_print_eofill (Handle);
|
||||
}
|
||||
|
||||
[DllImport("gnomeprint-2-2")]
|
||||
static extern int gnome_print_stroke (IntPtr raw);
|
||||
|
||||
public PrintReturnCode Stroke () {
|
||||
return (PrintReturnCode)gnome_print_stroke (Handle);
|
||||
}
|
||||
|
||||
[DllImport("gnomeprint-2-2")]
|
||||
static extern int gnome_print_show (IntPtr raw, IntPtr text);
|
||||
|
||||
public PrintReturnCode Show (string text) {
|
||||
IntPtr native = GLib.Marshaller.StringToPtrGStrdup (text);
|
||||
int result = gnome_print_show (Handle, native);
|
||||
GLib.Marshaller.Free (native);
|
||||
return (PrintReturnCode) result;
|
||||
}
|
||||
|
||||
[DllImport("gnomeprint-2-2")]
|
||||
static extern int gnome_print_show_sized (IntPtr raw, IntPtr text, int bytes);
|
||||
|
||||
public PrintReturnCode ShowSized (string text, int bytes) {
|
||||
IntPtr native = GLib.Marshaller.StringToPtrGStrdup (text);
|
||||
int result = gnome_print_show_sized (Handle, native, bytes);
|
||||
GLib.Marshaller.Free (native);
|
||||
return (PrintReturnCode) result;
|
||||
}
|
||||
|
||||
[DllImport("gnomeprint-2-2")]
|
||||
static extern int gnome_print_grayimage (IntPtr raw, IntPtr data, int width, int height, int rowstride);
|
||||
|
||||
public PrintReturnCode GrayImage (string data, int width, int height, int rowstride) {
|
||||
IntPtr native = GLib.Marshaller.StringToPtrGStrdup (data);
|
||||
int result = gnome_print_grayimage (Handle, native, width, height, rowstride);
|
||||
GLib.Marshaller.Free (native);
|
||||
return (PrintReturnCode) result;
|
||||
}
|
||||
|
||||
[DllImport("gnomeprint-2-2")]
|
||||
static extern int gnome_print_rgbimage (IntPtr raw, IntPtr data, int width, int height, int rowstride);
|
||||
|
||||
public PrintReturnCode RgbImage (string data, int width, int height, int rowstride) {
|
||||
IntPtr native = GLib.Marshaller.StringToPtrGStrdup (data);
|
||||
int result = gnome_print_rgbimage (Handle, native, width, height, rowstride);
|
||||
GLib.Marshaller.Free (native);
|
||||
return (PrintReturnCode) result;
|
||||
}
|
||||
|
||||
[DllImport("gnomeprint-2-2")]
|
||||
static extern int gnome_print_rgbaimage (IntPtr raw, IntPtr data, int width, int height, int rowstride);
|
||||
|
||||
public PrintReturnCode RgbaImage (string data, int width, int height, int rowstride) {
|
||||
IntPtr native = GLib.Marshaller.StringToPtrGStrdup (data);
|
||||
int result = gnome_print_rgbaimage (Handle, native, width, height, rowstride);
|
||||
GLib.Marshaller.Free (native);
|
||||
return (PrintReturnCode) result;
|
||||
}
|
||||
|
||||
[DllImport("gnomeprint-2-2")]
|
||||
static extern int gnome_print_line_stroked (IntPtr raw, double x0, double y0, double x1, double y1);
|
||||
|
||||
public PrintReturnCode LineStroked (double x0, double y0, double x1, double y1) {
|
||||
return (PrintReturnCode)gnome_print_line_stroked (Handle, x0, y0, x1, y1);
|
||||
}
|
||||
|
||||
[DllImport("gnomeprint-2-2")]
|
||||
static extern int gnome_print_rect_stroked (IntPtr raw, double x, double y, double width, double height);
|
||||
|
||||
public PrintReturnCode RectStroked (double x, double y, double width, double height) {
|
||||
return (PrintReturnCode)gnome_print_rect_stroked (Handle, x, y, width, height);
|
||||
}
|
||||
|
||||
[DllImport("gnomeprint-2-2")]
|
||||
static extern int gnome_print_rect_filled (IntPtr raw, double x, double y, double width, double height);
|
||||
|
||||
public PrintReturnCode RectFilled (double x, double y, double width, double height) {
|
||||
return (PrintReturnCode)gnome_print_rect_filled (Handle, x, y, width, height);
|
||||
}
|
|
@ -1,27 +0,0 @@
|
|||
//
|
||||
// PrintDialog.custom - customizations
|
||||
//
|
||||
// Author: Martin Willemoes Hansen <mwh@sysrq.dk>
|
||||
//
|
||||
// Copyright (C) 2003 Martin Willemoes Hansen
|
||||
//
|
||||
// This code is inserted after the automatically generated code.
|
||||
//
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
public PrintDialog (Gnome.PrintJob gpj, string title)
|
||||
: this (gpj, title, 0) {}
|
|
@ -1,25 +0,0 @@
|
|||
//
|
||||
// PrintJob.custom - customizations
|
||||
//
|
||||
// Author: Martin Willemoes Hansen <mwh@sysrq.dk>
|
||||
//
|
||||
// Copyright (C) 2003 2004 Martin Willemoes Hansen
|
||||
//
|
||||
// This code is inserted after the automatically generated code.
|
||||
//
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
public PrintJob() : this (PrintConfig.Default()) {}
|
|
@ -1,98 +0,0 @@
|
|||
//
|
||||
// Gnome.Program.custom - Gnome Program class customizations
|
||||
//
|
||||
// Author: Rachel Hestilow <hestilow@ximian.com>
|
||||
//
|
||||
// Copyright (C) 2002 Rachel Hestilow
|
||||
//
|
||||
// This code is inserted after the automatically generated code.
|
||||
//
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
[DllImport("libgobject-2.0-0.dll")]
|
||||
static extern void g_type_init ();
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
struct PropertyArg {
|
||||
public string name;
|
||||
public GLib.Value value;
|
||||
}
|
||||
|
||||
[DllImport("gnomesharpglue-2")]
|
||||
static extern System.IntPtr
|
||||
gtksharp_gnome_program_init (string app_id, string app_version, IntPtr module, int argc, IntPtr argv, int nargs, PropertyArg[] args);
|
||||
|
||||
public Program (string app_id, string app_version, ModuleInfo module, string[] argv, params object[] props) : base (IntPtr.Zero)
|
||||
{
|
||||
if (app_id.IndexOf (" ") > 0)
|
||||
throw new ArgumentException ("app_id argument can't contain spaces.");
|
||||
|
||||
int nargs = props.Length / 2;
|
||||
PropertyArg[] args = new PropertyArg[nargs];
|
||||
GLib.Value[] vals = new GLib.Value[nargs];
|
||||
string[] new_argv = new string[argv.Length + 1];
|
||||
|
||||
g_type_init ();
|
||||
|
||||
for (int i = 0; i < nargs; i++)
|
||||
{
|
||||
args[i].name = (string) props[i * 2];
|
||||
GLib.Value value;
|
||||
// FIXME: handle more types
|
||||
object prop = props[i * 2 + 1];
|
||||
Type type = prop.GetType ();
|
||||
if (type == "hello".GetType ())
|
||||
value = new GLib.Value ((string) prop);
|
||||
else if (type == true.GetType ())
|
||||
value = new GLib.Value ((bool) prop);
|
||||
else
|
||||
value = GLib.Value.Empty;
|
||||
vals[i] = value;
|
||||
args[i].value = value;
|
||||
}
|
||||
|
||||
/* FIXME: Is there a way to access this in .NET? */
|
||||
new_argv[0] = app_id;
|
||||
Array.Copy (argv, 0, new_argv, 1, argv.Length);
|
||||
|
||||
GLib.Argv gargv = new GLib.Argv (new_argv, false);
|
||||
Raw = gtksharp_gnome_program_init (app_id, app_version, module.Handle, new_argv.Length, gargv.Handle, nargs, args);
|
||||
PersistentData["glib_argv"] = gargv;
|
||||
|
||||
//
|
||||
// Dynamically reset the signal handlers, because Gnome overwrites them
|
||||
//
|
||||
Type mono_runtime_type = Type.GetType ("Mono.Runtime");
|
||||
if (mono_runtime_type != null){
|
||||
object [] iargs = new object [0];
|
||||
System.Reflection.MethodInfo mi = mono_runtime_type.GetMethod ("InstallSignalHandlers", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Static);
|
||||
|
||||
mi.Invoke (null, iargs);
|
||||
}
|
||||
}
|
||||
|
||||
public void Run ()
|
||||
{
|
||||
Gtk.Application.Run ();
|
||||
}
|
||||
|
||||
public void Quit ()
|
||||
{
|
||||
Gtk.Application.Quit ();
|
||||
}
|
||||
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
// Scores.custom - Gnome.Scores customizations
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
[DllImport("gnomeui-2")]
|
||||
static extern IntPtr gnome_scores_new(uint n_scores, IntPtr names, out float scores, IntPtr times, bool clear);
|
||||
|
||||
public Scores (uint n_scores, string names, out float scores, System.DateTime times, bool clear) : base (IntPtr.Zero)
|
||||
{
|
||||
if (GetType () != typeof (Scores)) {
|
||||
CreateNativeObject (new string[0], new GLib.Value[0]);
|
||||
scores = Construct (n_scores, names, times, clear);
|
||||
return;
|
||||
}
|
||||
IntPtr native = GLib.Marshaller.StringToPtrGStrdup (names);
|
||||
Raw = gnome_scores_new(n_scores, native, out scores, GLib.Marshaller.DateTimeTotime_t (times), clear);
|
||||
GLib.Marshaller.Free (native);
|
||||
}
|
|
@ -1,26 +0,0 @@
|
|||
// UIInfo.custom - Gnome.UIInfo customizations
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
[Obsolete ("Replaced by Widget property.")]
|
||||
public Gtk.Widget widget {
|
||||
get {
|
||||
Gtk.Widget ret = (Gtk.Widget) GLib.Object.GetObject(_widget);
|
||||
return ret;
|
||||
}
|
||||
set { _widget = value.Handle; }
|
||||
}
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
lib_LTLIBRARIES = $(TARGET)
|
||||
|
||||
if ENABLE_GNOME
|
||||
TARGET = libgnomesharpglue-2.la
|
||||
else
|
||||
TARGET =
|
||||
endif
|
||||
|
||||
libgnomesharpglue_2_la_LDFLAGS = -module -avoid-version -no-undefined
|
||||
|
||||
libgnomesharpglue_2_la_SOURCES = \
|
||||
canvasitem.c \
|
||||
canvaspoints.c \
|
||||
panelapplet.c \
|
||||
program.c \
|
||||
#
|
||||
|
||||
nodist_libgnomesharpglue_2_la_SOURCES = generated.c
|
||||
|
||||
libgnomesharpglue_2_la_LIBADD = $(GNOME_LIBS)
|
||||
|
||||
INCLUDES = $(GNOME_CFLAGS) $(GTK_SHARP_VERSION_CFLAGS) -I$(top_srcdir)
|
||||
|
||||
libgnomesharpglue.dll: $(libgnomesharpglue_2_la_OBJECTS) libgnomesharpglue.rc libgnomesharpglue.def
|
||||
./build-dll libgnomesharpglue-2 $(VERSION)
|
||||
|
||||
CLEANFILES = lib*.a lib*.dll
|
||||
|
|
@ -1,129 +0,0 @@
|
|||
/* canvasitem.c : Glue for accessing fields in a GnomeCanvasItem
|
||||
*
|
||||
* Author: Duncan Mak (duncan@ximian.com)
|
||||
* Mike Kestner (mkestner@ximian.com)
|
||||
*
|
||||
* Copyright (C) 2001-2003 Ximian, Inc.
|
||||
* Copyright (C) 2004 Novell, Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of version 2 of the Lesser GNU General
|
||||
* Public License as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this program; if not, write to the
|
||||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <libgnomecanvas/gnome-canvas.h>
|
||||
|
||||
void gnomesharp_canvas_item_base_update (GnomeCanvasItem *item, double *affine, ArtSVP *clip_path, int flags);
|
||||
|
||||
void
|
||||
gnomesharp_canvas_item_base_update (GnomeCanvasItem *item, double *affine, ArtSVP *clip_path, int flags)
|
||||
{
|
||||
GnomeCanvasItemClass *parent = g_type_class_peek_parent (G_OBJECT_GET_CLASS (item));
|
||||
if (parent->update)
|
||||
(*parent->update) (item, affine, clip_path, flags);
|
||||
}
|
||||
|
||||
void gnomesharp_canvas_item_override_update (GType gtype, gpointer cb);
|
||||
|
||||
void
|
||||
gnomesharp_canvas_item_override_update (GType gtype, gpointer cb)
|
||||
{
|
||||
GnomeCanvasItemClass *klass = g_type_class_peek (gtype);
|
||||
if (!klass)
|
||||
klass = g_type_class_ref (gtype);
|
||||
((GnomeCanvasItemClass *) klass)->update = cb;
|
||||
}
|
||||
|
||||
gdouble gnomesharp_canvas_item_base_point (GnomeCanvasItem *item, double x, double y, int cx, int cy, GnomeCanvasItem **actual_item);
|
||||
|
||||
gdouble
|
||||
gnomesharp_canvas_item_base_point (GnomeCanvasItem *item, double x, double y, int cx, int cy, GnomeCanvasItem **actual_item)
|
||||
{
|
||||
GnomeCanvasItemClass *parent = g_type_class_peek_parent (G_OBJECT_GET_CLASS (item));
|
||||
return (*parent->point) (item, x, y, cx, cy, actual_item);
|
||||
}
|
||||
|
||||
void gnomesharp_canvas_item_override_point (GType gtype, gpointer cb);
|
||||
|
||||
void
|
||||
gnomesharp_canvas_item_override_point (GType gtype, gpointer cb)
|
||||
{
|
||||
GnomeCanvasItemClass *klass = g_type_class_peek (gtype);
|
||||
if (!klass)
|
||||
klass = g_type_class_ref (gtype);
|
||||
((GnomeCanvasItemClass *) klass)->point = cb;
|
||||
}
|
||||
|
||||
void gnomesharp_canvas_item_base_realize (GnomeCanvasItem *item);
|
||||
|
||||
void
|
||||
gnomesharp_canvas_item_base_realize (GnomeCanvasItem *item)
|
||||
{
|
||||
GnomeCanvasItemClass *parent = g_type_class_peek_parent (G_OBJECT_GET_CLASS (item));
|
||||
if (parent->realize)
|
||||
(*parent->realize) (item);
|
||||
}
|
||||
|
||||
void gnomesharp_canvas_item_override_realize (GType gtype, gpointer cb);
|
||||
|
||||
void
|
||||
gnomesharp_canvas_item_override_realize (GType gtype, gpointer cb)
|
||||
{
|
||||
GnomeCanvasItemClass *klass = g_type_class_peek (gtype);
|
||||
if (!klass)
|
||||
klass = g_type_class_ref (gtype);
|
||||
((GnomeCanvasItemClass *) klass)->realize = cb;
|
||||
}
|
||||
|
||||
void gnomesharp_canvas_item_base_draw (GnomeCanvasItem *item, GdkDrawable *drawable, int x, int y, int width, int height);
|
||||
|
||||
void
|
||||
gnomesharp_canvas_item_base_draw (GnomeCanvasItem *item, GdkDrawable *drawable, int x, int y, int width, int height)
|
||||
{
|
||||
GnomeCanvasItemClass *parent = g_type_class_peek_parent (G_OBJECT_GET_CLASS (item));
|
||||
if (parent->draw)
|
||||
(*parent->draw) (item, drawable, x, y, width, height);
|
||||
}
|
||||
|
||||
void gnomesharp_canvas_item_override_draw (GType gtype, gpointer cb);
|
||||
|
||||
void
|
||||
gnomesharp_canvas_item_override_draw (GType gtype, gpointer cb)
|
||||
{
|
||||
GnomeCanvasItemClass *klass = g_type_class_peek (gtype);
|
||||
if (!klass)
|
||||
klass = g_type_class_ref (gtype);
|
||||
((GnomeCanvasItemClass *) klass)->draw = cb;
|
||||
}
|
||||
|
||||
void gnomesharp_canvas_item_base_render (GnomeCanvasItem *item, GnomeCanvasBuf *buf);
|
||||
|
||||
void
|
||||
gnomesharp_canvas_item_base_render (GnomeCanvasItem *item, GnomeCanvasBuf *buf)
|
||||
{
|
||||
GnomeCanvasItemClass *parent = g_type_class_peek_parent (G_OBJECT_GET_CLASS (item));
|
||||
if (parent->render)
|
||||
(*parent->render) (item, buf);
|
||||
}
|
||||
|
||||
void gnomesharp_canvas_item_override_render (GType gtype, gpointer cb);
|
||||
|
||||
void
|
||||
gnomesharp_canvas_item_override_render (GType gtype, gpointer cb)
|
||||
{
|
||||
GnomeCanvasItemClass *klass = g_type_class_peek (gtype);
|
||||
if (!klass)
|
||||
klass = g_type_class_ref (gtype);
|
||||
((GnomeCanvasItemClass *) klass)->render = cb;
|
||||
}
|
||||
|
|
@ -1,42 +0,0 @@
|
|||
/* canvaspoints.c : Custom ctor for a CanvasPoints struct.
|
||||
*
|
||||
* Author: Rachel Hestilow <hestilow@ximian.com>
|
||||
*
|
||||
* <c> 2002 Rachel Hestilow
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of version 2 of the Lesser GNU General
|
||||
* Public License as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this program; if not, write to the
|
||||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <libgnomecanvas/gnome-canvas.h>
|
||||
#include <libgnomecanvas/gnome-canvas-util.h>
|
||||
|
||||
/* Forward declarations */
|
||||
GnomeCanvasPoints *gtksharp_gnome_canvas_points_new_from_array (guint num_points,
|
||||
double *coords);
|
||||
/* */
|
||||
|
||||
GnomeCanvasPoints*
|
||||
gtksharp_gnome_canvas_points_new_from_array (guint num_points, double *coords)
|
||||
{
|
||||
int i, len;
|
||||
GnomeCanvasPoints *pts = gnome_canvas_points_new (num_points);
|
||||
|
||||
len = num_points * 2;
|
||||
for (i = 0; i < len; i++)
|
||||
pts->coords[i] = coords[i];
|
||||
|
||||
return pts;
|
||||
}
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
#include <panel-applet.h>
|
||||
|
||||
typedef struct _ContextMenuItem
|
||||
{
|
||||
const gchar *verb;
|
||||
gpointer callback;
|
||||
} ContextMenuItem;
|
||||
|
||||
void panelapplet_setup_menu (PanelApplet *applet, const gchar *xml, ContextMenuItem *menuitems, gint cnt);
|
||||
|
||||
void
|
||||
panelapplet_setup_menu (PanelApplet *applet, const gchar *xml, ContextMenuItem *menuitems, gint cnt)
|
||||
{
|
||||
int i;
|
||||
BonoboUIVerb *menu_verbs = NULL;
|
||||
|
||||
menu_verbs = g_new0 (BonoboUIVerb, cnt + 1);
|
||||
|
||||
for (i = 0; i < cnt; i++) {
|
||||
menu_verbs[i].cname = menuitems[i].verb;
|
||||
menu_verbs[i].cb = menuitems[i].callback;
|
||||
menu_verbs[i].user_data = NULL;
|
||||
}
|
||||
menu_verbs[cnt].cname = NULL;
|
||||
menu_verbs[cnt].cb = NULL;
|
||||
menu_verbs[cnt].user_data = NULL;
|
||||
panel_applet_setup_menu (applet, xml, menu_verbs, NULL);
|
||||
g_free (menu_verbs);
|
||||
}
|
|
@ -1,158 +0,0 @@
|
|||
/*
|
||||
* program.c - glue code for Gnome.Program
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of version 2 of the Lesser GNU General
|
||||
* Public License as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this program; if not, write to the
|
||||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
|
||||
#include <libgnome/gnome-program.h>
|
||||
#include <libgnome/gnome-init.h>
|
||||
#include <string.h>
|
||||
#include <config.h>
|
||||
|
||||
typedef struct {
|
||||
char *name;
|
||||
GValue *value;
|
||||
} PropertyArg;
|
||||
|
||||
/* Forward declarations */
|
||||
GnomeProgram*
|
||||
gtksharp_gnome_program_init (const char *app_id, const char *app_version,
|
||||
const GnomeModuleInfo *module_info,
|
||||
int argc, char **argv,
|
||||
int nargs, PropertyArg* args);
|
||||
/* */
|
||||
|
||||
static gchar*
|
||||
get_default (GObjectClass *klass, const gchar *property)
|
||||
{
|
||||
GParamSpec *spec = g_object_class_find_property (klass, property);
|
||||
GParamSpecString *strspec;
|
||||
gchar *ret;
|
||||
|
||||
g_return_val_if_fail (spec != NULL, NULL);
|
||||
strspec = G_PARAM_SPEC_STRING (spec);
|
||||
g_return_val_if_fail (strspec != NULL, NULL);
|
||||
|
||||
ret = g_strdup (strspec->default_value);
|
||||
//g_param_spec_unref (spec);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* FIXME: HACK */
|
||||
GnomeProgram*
|
||||
gtksharp_gnome_program_init (const char *app_id, const char *app_version,
|
||||
const GnomeModuleInfo *module_info,
|
||||
int argc, char **argv,
|
||||
int nargs, PropertyArg* args)
|
||||
{
|
||||
GnomeProgram *ret;
|
||||
int i;
|
||||
gboolean *unhandled = g_new0 (gboolean, nargs);
|
||||
|
||||
/* ok, these are the known construct-time arguments which means we
|
||||
* _have_ to pass them into init. */
|
||||
|
||||
GObjectClass *klass = g_type_class_ref (GNOME_TYPE_PROGRAM);
|
||||
gchar *human_readable_name = NULL;
|
||||
gchar *gnome_path = NULL;
|
||||
gchar *gnome_prefix = NULL;
|
||||
gchar *gnome_libdir = NULL;
|
||||
gchar *gnome_datadir = NULL;
|
||||
gchar *gnome_sysconfdir = NULL;
|
||||
gboolean create_directories = TRUE;
|
||||
gchar *gnome_espeaker = NULL;
|
||||
|
||||
for (i = 0; i < nargs; i++)
|
||||
{
|
||||
if (!strcmp (args[i].name, GNOME_PARAM_HUMAN_READABLE_NAME))
|
||||
human_readable_name = g_strdup (g_value_get_string (args[i].value));
|
||||
else if (!strcmp (args[i].name, GNOME_PARAM_GNOME_PATH))
|
||||
gnome_path = g_strdup (g_value_get_string (args[i].value));
|
||||
else if (!strcmp (args[i].name, GNOME_PARAM_GNOME_PREFIX))
|
||||
gnome_prefix = g_strdup (g_value_get_string (args[i].value));
|
||||
else if (!strcmp (args[i].name, GNOME_PARAM_GNOME_LIBDIR))
|
||||
gnome_libdir = g_strdup (g_value_get_string (args[i].value));
|
||||
else if (!strcmp (args[i].name, GNOME_PARAM_GNOME_DATADIR))
|
||||
gnome_datadir = g_strdup (g_value_get_string (args[i].value));
|
||||
else if (!strcmp (args[i].name, GNOME_PARAM_GNOME_SYSCONFDIR))
|
||||
gnome_sysconfdir = g_strdup (g_value_get_string (args[i].value));
|
||||
else if (!strcmp (args[i].name, GNOME_PARAM_CREATE_DIRECTORIES))
|
||||
create_directories = g_value_get_boolean (args[i].value);
|
||||
else
|
||||
unhandled[i] = TRUE;
|
||||
}
|
||||
|
||||
if (!human_readable_name)
|
||||
human_readable_name = g_strdup (app_id);
|
||||
if (!gnome_path)
|
||||
gnome_path = get_default (klass, GNOME_PARAM_GNOME_PATH);
|
||||
if (!gnome_prefix)
|
||||
gnome_prefix = get_default (klass, GNOME_PARAM_GNOME_PREFIX);
|
||||
if (!gnome_libdir)
|
||||
gnome_libdir = get_default (klass, GNOME_PARAM_GNOME_LIBDIR);
|
||||
if (!gnome_datadir)
|
||||
gnome_datadir = get_default (klass, GNOME_PARAM_GNOME_DATADIR);
|
||||
if (!gnome_sysconfdir)
|
||||
gnome_sysconfdir = get_default (klass, GNOME_PARAM_GNOME_SYSCONFDIR);
|
||||
|
||||
ret = gnome_program_init (app_id, app_version, module_info,
|
||||
argc, argv,
|
||||
GNOME_PARAM_HUMAN_READABLE_NAME,
|
||||
human_readable_name,
|
||||
GNOME_PARAM_GNOME_PREFIX,
|
||||
gnome_prefix,
|
||||
GNOME_PARAM_GNOME_LIBDIR,
|
||||
gnome_libdir,
|
||||
GNOME_PARAM_GNOME_DATADIR,
|
||||
gnome_datadir,
|
||||
GNOME_PARAM_GNOME_SYSCONFDIR,
|
||||
gnome_sysconfdir,
|
||||
GNOME_PARAM_CREATE_DIRECTORIES,
|
||||
create_directories,
|
||||
(gnome_path) ? (GNOME_PARAM_GNOME_PATH) : ((gnome_espeaker) ? GNOME_PARAM_ESPEAKER : NULL),
|
||||
(gnome_path) ? (gnome_path) : ((gnome_espeaker) ? gnome_espeaker : NULL),
|
||||
(gnome_espeaker && gnome_path) ? GNOME_PARAM_ESPEAKER : NULL,
|
||||
(gnome_espeaker && gnome_path) ? gnome_espeaker : NULL,
|
||||
NULL);
|
||||
|
||||
for (i = 0; i < nargs; i++)
|
||||
{
|
||||
if (unhandled[i])
|
||||
g_object_set_property (G_OBJECT (ret),
|
||||
args[i].name, args[i].value);
|
||||
}
|
||||
|
||||
if (human_readable_name)
|
||||
g_free (human_readable_name);
|
||||
if (gnome_path)
|
||||
g_free (gnome_path);
|
||||
if (gnome_prefix)
|
||||
g_free (gnome_prefix);
|
||||
if (gnome_libdir)
|
||||
g_free (gnome_libdir);
|
||||
if (gnome_datadir)
|
||||
g_free (gnome_datadir);
|
||||
if (gnome_sysconfdir)
|
||||
g_free (gnome_sysconfdir);
|
||||
if (gnome_espeaker)
|
||||
g_free (gnome_espeaker);
|
||||
|
||||
g_free (unhandled);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -1,12 +0,0 @@
|
|||
prefix=${pcfiledir}/../..
|
||||
exec_prefix=${prefix}
|
||||
libdir=${exec_prefix}/lib
|
||||
gapidir=${prefix}/share/gapi-2.0
|
||||
|
||||
|
||||
Name: Gnome#
|
||||
Description: Gnome# - GNOME .NET Binding
|
||||
Version: @VERSION@
|
||||
Requires: gtk-sharp-2.0 art-sharp-2.0 gnome-vfs-sharp-2.0
|
||||
Cflags: -I:${gapidir}/gnome-api.xml
|
||||
Libs: -r:${libdir}/mono/@PACKAGE_VERSION@/gnome-sharp.dll
|
|
@ -1,11 +0,0 @@
|
|||
<configuration>
|
||||
<dllmap dll="libglib-2.0-0.dll" target="libglib-2.0@LIB_PREFIX@.0@LIB_SUFFIX@"/>
|
||||
<dllmap dll="libgobject-2.0-0.dll" target="libgobject-2.0@LIB_PREFIX@.0@LIB_SUFFIX@"/>
|
||||
<dllmap dll="libgthread-2.0-0.dll" target="libgthread-2.0@LIB_PREFIX@.0@LIB_SUFFIX@"/>
|
||||
<dllmap dll="libgtk-win32-2.0-0.dll" target="libgtk-x11-2.0@LIB_PREFIX@.0@LIB_SUFFIX@"/>
|
||||
<dllmap dll="gnome-2" target="libgnome-2@LIB_PREFIX@.0@LIB_SUFFIX@"/>
|
||||
<dllmap dll="gnomecanvas-2" target="libgnomecanvas-2@LIB_PREFIX@.0@LIB_SUFFIX@"/>
|
||||
<dllmap dll="gnomeprint-2-2" target="libgnomeprint-2-2@LIB_PREFIX@.0@LIB_SUFFIX@"/>
|
||||
<dllmap dll="gnomeprintui-2-2" target="libgnomeprintui-2-2@LIB_PREFIX@.0@LIB_SUFFIX@"/>
|
||||
<dllmap dll="gnomeui-2" target="libgnomeui-2@LIB_PREFIX@.0@LIB_SUFFIX@"/>
|
||||
</configuration>
|
|
@ -1,7 +0,0 @@
|
|||
all: windows
|
||||
|
||||
windows:
|
||||
$(CSC) /unsafe /nowarn:0660,0661 /target:library /r:../glib/glib-sharp.dll /r:../pango/pango-sharp.dll /r:../atk/atk-sharp.dll /r:../gdk/gdk-sharp.dll /r:../gtk/gtk-sharp.dll /out:gnome-sharp.dll /recurse:*.cs
|
||||
../gapi-cdecl-insert --keyfile=gtk-sharp.snk gnome-sharp.dll
|
||||
|
||||
|
Loading…
Reference in a new issue