Author: schaveyt
Date: 2007-03-11 21:41:27 -0500 (Sun, 11 Mar 2007)
New Revision: 74086
Modified:
trunk/cocoa-sharp/src/Cocoa/Color.cs
Log:
Added Set, setFill, SetStroke, and DrawSwatchInRect methods
Modified: trunk/cocoa-sharp/src/Cocoa/Color.cs
===================================================================
--- trunk/cocoa-sharp/src/Cocoa/Color.cs 2007-03-12 02:37:18 UTC (rev
74085)
+++ trunk/cocoa-sharp/src/Cocoa/Color.cs 2007-03-12 02:41:27 UTC (rev
74086)
@@ -114,5 +114,21 @@
public Color ToRGB () {
return (Color) Object.FromIntPtr
((IntPtr)ObjCMessaging.objc_msgSend (NativeObject, "colorUsingColorSpaceName:",
typeof (IntPtr), typeof (IntPtr), new Cocoa.String
("NSDeviceRGBColorSpace").NativeObject));
}
+
+ public void Set(){
+ ObjCMessaging.objc_msgSend (NativeObject, "set", typeof (void));
+ }
+
+ public void SetFill(){
+ ObjCMessaging.objc_msgSend (NativeObject, "setFill", typeof
(void));
+ }
+
+ public void SetStroke(){
+ ObjCMessaging.objc_msgSend (NativeObject, "setStroke", typeof
(void));
+ }
+
+ public void DrawSwatchInRect( Rect rect ){
+ ObjCMessaging.objc_msgSend (NativeObject, "drawSwatchInRect:",
typeof (void), typeof (Rect), rect);
+ }
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches