Author: miguel
Date: 2007-06-09 12:10:06 -0400 (Sat, 09 Jun 2007)
New Revision: 79059
Modified:
trunk/moon/src/ChangeLog
trunk/moon/src/runtime.cpp
trunk/moon/src/runtime.h
Log:
2007-06-09 Miguel de Icaza <[EMAIL PROTECTED]>
* runtime.h (value_color_from_argb): Temporary hack until we
figure out how to marshal Colors properly, we are using the uint32
constructor, we should figure out if this is what we want, or if
we should go down the route of using doubles (C++ stores thinks as
Doubles our managed API as bytes).
Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog 2007-06-09 16:08:48 UTC (rev 79058)
+++ trunk/moon/src/ChangeLog 2007-06-09 16:10:06 UTC (rev 79059)
@@ -1,3 +1,11 @@
+2007-06-09 Miguel de Icaza <[EMAIL PROTECTED]>
+
+ * runtime.h (value_color_from_argb): Temporary hack until we
+ figure out how to marshal Colors properly, we are using the uint32
+ constructor, we should figure out if this is what we want, or if
+ we should go down the route of using doubles (C++ stores thinks as
+ Doubles our managed API as bytes).
+
2007-06-10 Jackson Harper <[EMAIL PROTECTED]>
* xaml.cpp: Handle the TransformGroup default collection.
Modified: trunk/moon/src/runtime.cpp
===================================================================
--- trunk/moon/src/runtime.cpp 2007-06-09 16:08:48 UTC (rev 79058)
+++ trunk/moon/src/runtime.cpp 2007-06-09 16:10:06 UTC (rev 79059)
@@ -241,6 +241,12 @@
u.color = new Color (c);
}
+Value
+value_color_from_argb (uint32_t c)
+{
+ return Value (Color (c));
+}
+
Value::Value (DependencyObject *obj)
{
g_assert (obj != NULL);
Modified: trunk/moon/src/runtime.h
===================================================================
--- trunk/moon/src/runtime.h 2007-06-09 16:08:48 UTC (rev 79058)
+++ trunk/moon/src/runtime.h 2007-06-09 16:10:06 UTC (rev 79059)
@@ -162,9 +162,9 @@
}
};
+Value value_color_from_argb (uint32_t value);
+Color *color_from_str (const char *name);
-Color *color_from_str (const char *name);
-
struct DoubleArray {
public:
double *values;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches