Author: toshok
Date: 2008-02-05 10:59:34 -0500 (Tue, 05 Feb 2008)
New Revision: 94900
Modified:
trunk/moon/src/ChangeLog
trunk/moon/src/region.cpp
trunk/moon/src/region.h
Log:
2008-02-05 Chris Toshok <[EMAIL PROTECTED]>
* region.h, region.cpp (class Region): add Offset().
Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog 2008-02-05 15:53:38 UTC (rev 94899)
+++ trunk/moon/src/ChangeLog 2008-02-05 15:59:34 UTC (rev 94900)
@@ -1,3 +1,7 @@
+2008-02-05 Chris Toshok <[EMAIL PROTECTED]>
+
+ * region.h, region.cpp (class Region): add Offset().
+
2008-02-05 Sebastien Pouliot <[EMAIL PROTECTED]>
* geometry.cpp|h: PathGeometry does a Build (not a Draw) to
Modified: trunk/moon/src/region.cpp
===================================================================
--- trunk/moon/src/region.cpp 2008-02-05 15:53:38 UTC (rev 94899)
+++ trunk/moon/src/region.cpp 2008-02-05 15:59:34 UTC (rev 94900)
@@ -106,6 +106,12 @@
}
void
+Region::Offset (int dx, int dy)
+{
+ gdk_region_offset (gdkregion, dx, dy);
+}
+
+void
Region::GetRectangles (GdkRectangle **rects, int *count)
{
gdk_region_get_rectangles (gdkregion, rects, count);
Modified: trunk/moon/src/region.h
===================================================================
--- trunk/moon/src/region.h 2008-02-05 15:53:38 UTC (rev 94899)
+++ trunk/moon/src/region.h 2008-02-05 15:59:34 UTC (rev 94900)
@@ -15,9 +15,9 @@
#include "rect.h"
class Region {
-public:
GdkRegion *gdkregion;
+public:
Region ();
Region (Rect rect);
Region (GdkRegion *region);
@@ -41,6 +41,8 @@
void GetRectangles (GdkRectangle **rects, int *count);
+ void Offset (int dx, int dy);
+
Rect ClipBox ();
GdkOverlapType RectIn (Rect rect);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches