[f-spot: 7/41] update gtk-sharp-beans to upstream
- From: Stephane Delcroix <sdelcroix src gnome org>
- To: svn-commits-list gnome org
- Subject: [f-spot: 7/41] update gtk-sharp-beans to upstream
- Date: Mon, 15 Jun 2009 08:40:27 -0400 (EDT)
commit da0368cb491ccf2bb09ef9e0b6b73f135035c540
Author: Stephane Delcroix <stephane delcroix org>
Date: Mon Jun 8 16:34:25 2009 +0200
update gtk-sharp-beans to upstream
gtk-sharp-beans/Drawable.cs | 37 +++++++++++++++++++++++++++++++++++++
gtk-sharp-beans/Makefile.am | 1 +
2 files changed, 38 insertions(+), 0 deletions(-)
---
diff --git a/gtk-sharp-beans/Drawable.cs b/gtk-sharp-beans/Drawable.cs
new file mode 100644
index 0000000..a3c0499
--- /dev/null
+++ b/gtk-sharp-beans/Drawable.cs
@@ -0,0 +1,37 @@
+// Gdk.Drawable.cs
+//
+// Author(s):
+// Stephane Delcroix <stephane delcroix org>
+//
+// Copyright (c) 2009 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.
+
+using System;
+using System.Collections;
+using System.Runtime.InteropServices;
+
+namespace Gdk {
+ public static class DrawableExtensions {
+ [DllImport("libgdk-win32-2.0-0.dll")]
+ static unsafe extern void gdk_draw_rgb_image_dithalign(IntPtr raw, IntPtr gc, int x, int y, int width, int height, int dith, byte* rgb_buf, int rowstride, int xdith, int ydith);
+
+ public unsafe static void DrawRgbImageDithalign(this Drawable drawable, Gdk.GC gc, int x, int y, int width, int height, Gdk.RgbDither dith, byte* rgb_buf, int rowstride, int xdith, int ydith)
+ {
+ gdk_draw_rgb_image_dithalign(drawable.Handle, gc == null ? IntPtr.Zero : gc.Handle, x, y, width, height, (int) dith, rgb_buf, rowstride, xdith, ydith);
+ }
+ }
+}
+
diff --git a/gtk-sharp-beans/Makefile.am b/gtk-sharp-beans/Makefile.am
index 00259c5..421f73d 100644
--- a/gtk-sharp-beans/Makefile.am
+++ b/gtk-sharp-beans/Makefile.am
@@ -2,6 +2,7 @@ include ../Makefile.include
SRCS = \
$(srcdir)/Dialog.cs \
+ $(srcdir)/Drawable.cs \
$(srcdir)/Image.cs \
$(srcdir)/Widget.cs \
$(srcdir)/Format.cs \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]