Author: miguel
Date: 2007-06-06 18:05:09 -0400 (Wed, 06 Jun 2007)
New Revision: 78789
Modified:
trunk/moon/src/ChangeLog
trunk/moon/src/animation.cpp
trunk/moon/src/brush.cpp
trunk/moon/src/geometry.cpp
trunk/moon/src/geometry.h
trunk/moon/src/runtime.cpp
trunk/moon/src/runtime.h
trunk/moon/src/shape.cpp
trunk/moon/src/shape.h
trunk/moon/src/transform.cpp
trunk/moon/src/transform.h
trunk/moon/src/xaml.cpp
Log:
2007-06-06 Miguel de Icaza <[EMAIL PROTECTED]>
* runtime.h: Move all the types into the Value::Kind enumeration
so that we can have a shared type system.
Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog 2007-06-06 21:57:46 UTC (rev 78788)
+++ trunk/moon/src/ChangeLog 2007-06-06 22:05:09 UTC (rev 78789)
@@ -6,6 +6,9 @@
2007-06-06 Miguel de Icaza <[EMAIL PROTECTED]>
+ * runtime.h: Move all the types into the Value::Kind enumeration
+ so that we can have a shared type system.
+
* demo.cpp (main): Allow loading a XAML file from the command
line, for your testing pleasure.
Modified: trunk/moon/src/animation.cpp
===================================================================
--- trunk/moon/src/animation.cpp 2007-06-06 21:57:46 UTC (rev 78788)
+++ trunk/moon/src/animation.cpp 2007-06-06 22:05:09 UTC (rev 78789)
@@ -417,23 +417,23 @@
animation_init ()
{
/* Timeline properties */
- Timeline::AutoReverseProperty = DependencyObject::Register
(DependencyObject::TIMELINE, "AutoReverse", new Value (false));
- Timeline::BeginTimeProperty = DependencyObject::Register
(DependencyObject::TIMELINE, "BeginTime", new Value (0));
- Timeline::DurationProperty = DependencyObject::Register
(DependencyObject::TIMELINE, "Duration", new Value (0));
+ Timeline::AutoReverseProperty = DependencyObject::Register
(Value::TIMELINE, "AutoReverse", new Value (false));
+ Timeline::BeginTimeProperty = DependencyObject::Register
(Value::TIMELINE, "BeginTime", new Value (0));
+ Timeline::DurationProperty = DependencyObject::Register
(Value::TIMELINE, "Duration", new Value (0));
//DependencyObject::Register (DependencyObject::TIMELINE,
"FillBehavior", new Value (0));
//DependencyObject::Register (DependencyObject::TIMELINE,
"RepeatBehavior", new Value (0));
//DependencyObject::Register (DependencyObject::TIMELINE, "SpeedRatio",
new Value (0));
/* DoubleAnimation properties */
- DoubleAnimation::ByProperty = DependencyObject::Register
(DependencyObject::DOUBLEANIMATION, "By", new Value (0.0));
- DoubleAnimation::FromProperty = DependencyObject::Register
(DependencyObject::DOUBLEANIMATION, "From", new Value (0.0));
- DoubleAnimation::ToProperty = DependencyObject::Register
(DependencyObject::DOUBLEANIMATION, "To", new Value (0.0));
+ DoubleAnimation::ByProperty = DependencyObject::Register
(Value::DOUBLEANIMATION, "By", new Value (0.0));
+ DoubleAnimation::FromProperty = DependencyObject::Register
(Value::DOUBLEANIMATION, "From", new Value (0.0));
+ DoubleAnimation::ToProperty = DependencyObject::Register
(Value::DOUBLEANIMATION, "To", new Value (0.0));
/* Storyboard properties */
- Storyboard::TargetPropertyProperty = DependencyObject::Register
(DependencyObject::STORYBOARD, "TargetProperty",
+ Storyboard::TargetPropertyProperty = DependencyObject::Register
(Value::STORYBOARD, "TargetProperty",
Value::STRING);
- Storyboard::TargetNameProperty = DependencyObject::Register
(DependencyObject::STORYBOARD, "TargetName",
+ Storyboard::TargetNameProperty = DependencyObject::Register
(Value::STORYBOARD, "TargetName",
Value::STRING);
}
Modified: trunk/moon/src/brush.cpp
===================================================================
--- trunk/moon/src/brush.cpp 2007-06-06 21:57:46 UTC (rev 78788)
+++ trunk/moon/src/brush.cpp 2007-06-06 22:05:09 UTC (rev 78789)
@@ -194,10 +194,10 @@
brush_init ()
{
/* Brush fields */
- Brush::OpacityProperty = DependencyObject::Register
(DependencyObject::BRUSH, "Opacity", new Value (1.0));
- Brush::RelativeTransformProperty = DependencyObject::Register
(DependencyObject::BRUSH, "RelativeTransform", new Value ());
- Brush::TransformProperty = DependencyObject::Register
(DependencyObject::BRUSH, "TransformProperty", new Value ());
+ Brush::OpacityProperty = DependencyObject::Register (Value::BRUSH,
"Opacity", new Value (1.0));
+ Brush::RelativeTransformProperty = DependencyObject::Register
(Value::BRUSH, "RelativeTransform", new Value ());
+ Brush::TransformProperty = DependencyObject::Register (Value::BRUSH,
"TransformProperty", new Value ());
/* SolidColorBrush fields */
- SolidColorBrush::ColorProperty = DependencyObject::Register
(DependencyObject::SOLIDCOLORBRUSH, "Color", new Value (new Color
(0x00FFFFFF)));
+ SolidColorBrush::ColorProperty = DependencyObject::Register
(Value::SOLIDCOLORBRUSH, "Color", new Value (new Color (0x00FFFFFF)));
}
Modified: trunk/moon/src/geometry.cpp
===================================================================
--- trunk/moon/src/geometry.cpp 2007-06-06 21:57:46 UTC (rev 78788)
+++ trunk/moon/src/geometry.cpp 2007-06-06 22:05:09 UTC (rev 78789)
@@ -433,47 +433,47 @@
geometry_init ()
{
/* Geometry fields */
- Geometry::FillRuleProperty = DependencyObject::Register
(DependencyObject::GEOMETRY, "FillRule", new Value (FillRuleEvenOdd));
- Geometry::TransformProperty = DependencyObject::Register
(DependencyObject::GEOMETRY, "Transform", Value::DEPENDENCY_OBJECT);
+ Geometry::FillRuleProperty = DependencyObject::Register
(Value::GEOMETRY, "FillRule", new Value (FillRuleEvenOdd));
+ Geometry::TransformProperty = DependencyObject::Register
(Value::GEOMETRY, "Transform", Value::DEPENDENCY_OBJECT);
/* GeometryGroup fields */
- GeometryGroup::ChildrenProperty = DependencyObject::Register
(DependencyObject::GEOMETRYGROUP, "Children", Value::DEPENDENCY_OBJECT);
+ GeometryGroup::ChildrenProperty = DependencyObject::Register
(Value::GEOMETRYGROUP, "Children", Value::DEPENDENCY_OBJECT);
/* EllipseGeometry fields */
- EllipseGeometry::CenterProperty = DependencyObject::Register
(DependencyObject::ELLIPSEGEOMETRY, "Center", Value::POINT);
- EllipseGeometry::RadiusXProperty = DependencyObject::Register
(DependencyObject::ELLIPSEGEOMETRY, "RadiusX", new Value (0.0));
- EllipseGeometry::RadiusYProperty = DependencyObject::Register
(DependencyObject::ELLIPSEGEOMETRY, "RadiusY", new Value (0.0));
+ EllipseGeometry::CenterProperty = DependencyObject::Register
(Value::ELLIPSEGEOMETRY, "Center", Value::POINT);
+ EllipseGeometry::RadiusXProperty = DependencyObject::Register
(Value::ELLIPSEGEOMETRY, "RadiusX", new Value (0.0));
+ EllipseGeometry::RadiusYProperty = DependencyObject::Register
(Value::ELLIPSEGEOMETRY, "RadiusY", new Value (0.0));
/* LineGeometry fields */
- LineGeometry::EndPointProperty = DependencyObject::Register
(DependencyObject::LINEGEOMETRY, "EndPoint", Value::POINT);
- LineGeometry::StartPointProperty = DependencyObject::Register
(DependencyObject::LINEGEOMETRY, "StartPoint", Value::POINT);
+ LineGeometry::EndPointProperty = DependencyObject::Register
(Value::LINEGEOMETRY, "EndPoint", Value::POINT);
+ LineGeometry::StartPointProperty = DependencyObject::Register
(Value::LINEGEOMETRY, "StartPoint", Value::POINT);
/* PathGeometry */
- PathGeometry::FiguresProperty = DependencyObject::Register
(DependencyObject::PATHGEOMETRY, "Figures", Value::DEPENDENCY_OBJECT);
+ PathGeometry::FiguresProperty = DependencyObject::Register
(Value::PATHGEOMETRY, "Figures", Value::DEPENDENCY_OBJECT);
/* RectangleGeometry fields */
- RectangleGeometry::RadiusXProperty = DependencyObject::Register
(DependencyObject::RECTANGLEGEOMETRY, "RadiusX", new Value (0.0));
- RectangleGeometry::RadiusYProperty = DependencyObject::Register
(DependencyObject::RECTANGLEGEOMETRY, "RadiusY", new Value (0.0));
- RectangleGeometry::RectProperty = DependencyObject::Register
(DependencyObject::RECTANGLEGEOMETRY, "Rect", Value::RECT);
+ RectangleGeometry::RadiusXProperty = DependencyObject::Register
(Value::RECTANGLEGEOMETRY, "RadiusX", new Value (0.0));
+ RectangleGeometry::RadiusYProperty = DependencyObject::Register
(Value::RECTANGLEGEOMETRY, "RadiusY", new Value (0.0));
+ RectangleGeometry::RectProperty = DependencyObject::Register
(Value::RECTANGLEGEOMETRY, "Rect", Value::RECT);
/* PathFigure fields */
- PathFigure::IsClosedProperty = DependencyObject::Register
(DependencyObject::PATHFIGURE, "IsClosed", new Value (true));
- PathFigure::IsFilledProperty = DependencyObject::Register
(DependencyObject::PATHFIGURE, "IsFilled", new Value (true));
- PathFigure::SegmentsProperty = DependencyObject::Register
(DependencyObject::PATHFIGURE, "Segments", Value::DEPENDENCY_OBJECT);
- PathFigure::StartPointProperty = DependencyObject::Register
(DependencyObject::PATHFIGURE, "StartPoint", Value::POINT);
+ PathFigure::IsClosedProperty = DependencyObject::Register
(Value::PATHFIGURE, "IsClosed", new Value (true));
+ PathFigure::IsFilledProperty = DependencyObject::Register
(Value::PATHFIGURE, "IsFilled", new Value (true));
+ PathFigure::SegmentsProperty = DependencyObject::Register
(Value::PATHFIGURE, "Segments", Value::DEPENDENCY_OBJECT);
+ PathFigure::StartPointProperty = DependencyObject::Register
(Value::PATHFIGURE, "StartPoint", Value::POINT);
/* ArcSegment fields */
- ArcSegment::IsLargeArcProperty = DependencyObject::Register
(DependencyObject::ARCSEGMENT, "IsLargeArc", new Value (true));
- ArcSegment::PointProperty = DependencyObject::Register
(DependencyObject::ARCSEGMENT, "Point", Value::POINT);
- ArcSegment::RotationAngleProperty = DependencyObject::Register
(DependencyObject::ARCSEGMENT, "RadiusY", new Value (0.0));
- ArcSegment::SizeProperty = DependencyObject::Register
(DependencyObject::ARCSEGMENT, "RotationAngle", Value::POINT);
- ArcSegment::SweepDirectionProperty = DependencyObject::Register
(DependencyObject::ARCSEGMENT, "SweepDirection", new Value
(SweepDirectionCounterclockwise));
+ ArcSegment::IsLargeArcProperty = DependencyObject::Register
(Value::ARCSEGMENT, "IsLargeArc", new Value (true));
+ ArcSegment::PointProperty = DependencyObject::Register
(Value::ARCSEGMENT, "Point", Value::POINT);
+ ArcSegment::RotationAngleProperty = DependencyObject::Register
(Value::ARCSEGMENT, "RadiusY", new Value (0.0));
+ ArcSegment::SizeProperty = DependencyObject::Register
(Value::ARCSEGMENT, "RotationAngle", Value::POINT);
+ ArcSegment::SweepDirectionProperty = DependencyObject::Register
(Value::ARCSEGMENT, "SweepDirection", new Value
(SweepDirectionCounterclockwise));
/* BezierSegment fields */
- BezierSegment::Point1Property = DependencyObject::Register
(DependencyObject::BEZIERSEGMENT, "Point1", Value::POINT);
- BezierSegment::Point2Property = DependencyObject::Register
(DependencyObject::BEZIERSEGMENT, "Point2", Value::POINT);
- BezierSegment::Point3Property = DependencyObject::Register
(DependencyObject::BEZIERSEGMENT, "Point3", Value::POINT);
+ BezierSegment::Point1Property = DependencyObject::Register
(Value::BEZIERSEGMENT, "Point1", Value::POINT);
+ BezierSegment::Point2Property = DependencyObject::Register
(Value::BEZIERSEGMENT, "Point2", Value::POINT);
+ BezierSegment::Point3Property = DependencyObject::Register
(Value::BEZIERSEGMENT, "Point3", Value::POINT);
/* LineSegment fields */
- LineSegment::PointProperty = DependencyObject::Register
(DependencyObject::LINESEGMENT, "Point", Value::POINT);
+ LineSegment::PointProperty = DependencyObject::Register
(Value::LINESEGMENT, "Point", Value::POINT);
}
Modified: trunk/moon/src/geometry.h
===================================================================
--- trunk/moon/src/geometry.h 2007-06-06 21:57:46 UTC (rev 78788)
+++ trunk/moon/src/geometry.h 2007-06-06 22:05:09 UTC (rev 78789)
@@ -28,7 +28,7 @@
static DependencyProperty* FillRuleProperty;
static DependencyProperty* TransformProperty;
- Geometry () { SetObjectType (DependencyObject::GEOMETRY); };
+ Geometry () { SetObjectType (Value::GEOMETRY); };
};
FillRule geometry_get_fill_rule (Geometry *geometry);
void geometry_set_fill_rule (Geometry *geometry, FillRule fill_rule);
@@ -42,7 +42,7 @@
public:
static DependencyProperty* ChildrenProperty;
- GeometryGroup () { SetObjectType (DependencyObject::GEOMETRYGROUP); };
+ GeometryGroup () { SetObjectType (Value::GEOMETRYGROUP); };
};
GeometryGroup* geometry_group_new ();
// TODO get|set GeometryCollection
@@ -56,7 +56,7 @@
static DependencyProperty* RadiusXProperty;
static DependencyProperty* RadiusYProperty;
- EllipseGeometry () { SetObjectType (DependencyObject::ELLIPSEGEOMETRY);
};
+ EllipseGeometry () { SetObjectType (Value::ELLIPSEGEOMETRY); };
};
EllipseGeometry* ellipse_geometry_new ();
Point* ellipse_geometry_get_center (EllipseGeometry *ellipse_geometry);
@@ -74,7 +74,7 @@
static DependencyProperty* EndPointProperty;
static DependencyProperty* StartPointProperty;
- LineGeometry () { SetObjectType (DependencyObject::LINEGEOMETRY); };
+ LineGeometry () { SetObjectType (Value::LINEGEOMETRY); };
};
LineGeometry* line_geometry_new ();
Point* line_geometry_get_end_point (LineGeometry* line_geometry);
@@ -89,7 +89,7 @@
public:
static DependencyProperty* FiguresProperty;
- PathGeometry () { SetObjectType (DependencyObject::PATHGEOMETRY); };
+ PathGeometry () { SetObjectType (Value::PATHGEOMETRY); };
};
PathGeometry* path_geometry_new ();
// TODO get|set PathFigureCollection
@@ -103,7 +103,7 @@
static DependencyProperty* RadiusYProperty;
static DependencyProperty* RectProperty;
- RectangleGeometry () { SetObjectType
(DependencyObject::RECTANGLEGEOMETRY); };
+ RectangleGeometry () { SetObjectType (Value::RECTANGLEGEOMETRY); };
};
RectangleGeometry* rectangle_geometry_new ();
double rectangle_geometry_get_radius_x (RectangleGeometry *rectangle_geometry);
@@ -125,7 +125,7 @@
PathFigure ()
{
- SetObjectType (DependencyObject::PATHFIGURE);
+ SetObjectType (Value::PATHFIGURE);
}
};
PathFigure* path_figure_new ();
@@ -155,7 +155,7 @@
ArcSegment ()
{
- SetObjectType (DependencyObject::ARCSEGMENT);
+ SetObjectType (Value::ARCSEGMENT);
}
};
ArcSegment *arc_segment_new ();
@@ -181,7 +181,7 @@
BezierSegment ()
{
- SetObjectType (DependencyObject::BEZIERSEGMENT);
+ SetObjectType (Value::BEZIERSEGMENT);
}
};
BezierSegment *bezier_segment_new ();
@@ -201,7 +201,7 @@
LineSegment ()
{
- SetObjectType (DependencyObject::LINESEGMENT);
+ SetObjectType (Value::LINESEGMENT);
}
};
LineSegment *line_segment_new ();
Modified: trunk/moon/src/runtime.cpp
===================================================================
--- trunk/moon/src/runtime.cpp 2007-06-06 21:57:46 UTC (rev 78788)
+++ trunk/moon/src/runtime.cpp 2007-06-06 22:05:09 UTC (rev 78789)
@@ -602,7 +602,7 @@
DependencyObject::DependencyObject ()
{
- this->objectType = INVALID;
+ this->objectType = Value::INVALID;
current_values = g_hash_table_new_full (g_str_hash, g_str_equal, NULL,
g_free);
events = new EventObject ();
this->attached_list = NULL;
@@ -615,7 +615,7 @@
}
void
-DependencyObject::SetObjectType (Type objectType)
+DependencyObject::SetObjectType (Value::Kind objectType)
{
this->objectType = objectType;
}
@@ -627,7 +627,7 @@
}
DependencyProperty *
-DependencyObject::GetDependencyProperty (DependencyObject::Type type, char
*name)
+DependencyObject::GetDependencyProperty (Value::Kind type, char *name)
{
GHashTable *table;
DependencyProperty *property;
@@ -659,7 +659,7 @@
// Use this for values that can be null
//
DependencyProperty *
-DependencyObject::Register (DependencyObject::Type type, char *name,
Value::Kind vtype)
+DependencyObject::Register (Value::Kind type, char *name, Value::Kind vtype)
{
g_return_val_if_fail (name != NULL, NULL);
@@ -670,7 +670,7 @@
// DependencyObject takes ownership of the Value * for default_value
//
DependencyProperty *
-DependencyObject::Register (DependencyObject::Type type, char *name, Value
*default_value)
+DependencyObject::Register (Value::Kind type, char *name, Value *default_value)
{
g_return_val_if_fail (default_value != NULL, NULL);
g_return_val_if_fail (name != NULL, NULL);
@@ -679,7 +679,7 @@
}
DependencyProperty *
-DependencyObject::RegisterFull (DependencyObject::Type type, char *name, Value
*default_value, Value::Kind vtype)
+DependencyObject::RegisterFull (Value::Kind type, char *name, Value
*default_value, Value::Kind vtype)
{
GHashTable *table;
@@ -702,7 +702,7 @@
return property;
}
-DependencyObject::Type
+Value::Kind
DependencyObject::GetObjectType ()
{
return objectType;
@@ -857,7 +857,7 @@
namescope_init ()
{
global_NameScope = new NameScope ();
- NameScope::NameScopeProperty = DependencyObject::Register
(DependencyObject::NAMESCOPE, "NameScope", Value::DEPENDENCY_OBJECT);
+ NameScope::NameScopeProperty = DependencyObject::Register
(Value::NAMESCOPE, "NameScope", Value::DEPENDENCY_OBJECT);
}
DependencyProperty* FrameworkElement::HeightProperty;
@@ -866,8 +866,8 @@
void
framework_element_init ()
{
- FrameworkElement::HeightProperty = DependencyObject::Register
(DependencyObject::FRAMEWORKELEMENT, "Height", new Value (0.0));
- FrameworkElement::WidthProperty = DependencyObject::Register
(DependencyObject::FRAMEWORKELEMENT, "Width", new Value (0.0));
+ FrameworkElement::HeightProperty = DependencyObject::Register
(Value::FRAMEWORKELEMENT, "Height", new Value (0.0));
+ FrameworkElement::WidthProperty = DependencyObject::Register
(Value::FRAMEWORKELEMENT, "Width", new Value (0.0));
}
DependencyProperty* Canvas::TopProperty;
@@ -876,8 +876,8 @@
void
canvas_init ()
{
- Canvas::TopProperty = DependencyObject::Register
(DependencyObject::CANVAS, "Top", new Value (0.0));
- Canvas::LeftProperty = DependencyObject::Register
(DependencyObject::CANVAS, "Left", new Value (0.0));
+ Canvas::TopProperty = DependencyObject::Register (Value::CANVAS, "Top",
new Value (0.0));
+ Canvas::LeftProperty = DependencyObject::Register (Value::CANVAS,
"Left", new Value (0.0));
}
DependencyProperty* UIElement::RenderTransformProperty;
@@ -885,7 +885,7 @@
void
item_init ()
{
- UIElement::RenderTransformProperty = DependencyObject::Register
(DependencyObject::UIELEMENT, "RenderTransform", Value::DEPENDENCY_OBJECT);
+ UIElement::RenderTransformProperty = DependencyObject::Register
(Value::UIELEMENT, "RenderTransform", Value::DEPENDENCY_OBJECT);
}
void
Modified: trunk/moon/src/runtime.h
===================================================================
--- trunk/moon/src/runtime.h 2007-06-06 21:57:46 UTC (rev 78788)
+++ trunk/moon/src/runtime.h 2007-06-06 22:05:09 UTC (rev 78789)
@@ -157,10 +157,48 @@
INT64 = 3,
INT32 = 4,
STRING = 5,
- DEPENDENCY_OBJECT = 6,
COLOR = 7,
POINT = 8,
- RECT = 9
+ RECT = 9,
+
+ DEPENDENCY_OBJECT = 1000,
+
+ // These are dependency objects
+ UIELEMENT,
+ PANEL,
+ CANVAS,
+ TIMELINE,
+ ROTATETRANSFORM,
+ SCALETRANSFORM,
+ TRANSLATETRANSFORM,
+ MATRIXTRANSFORM,
+ STORYBOARD,
+ DOUBLEANIMATION,
+ SHAPE,
+ ELLIPSE,
+ LINE,
+ PATH,
+ POLYGON,
+ POLYLINE,
+ RECTANGLE,
+ GEOMETRY,
+ GEOMETRYGROUP,
+ ELLIPSEGEOMETRY,
+ LINEGEOMETRY,
+ PATHGEOMETRY,
+ RECTANGLEGEOMETRY,
+ FRAMEWORKELEMENT,
+ NAMESCOPE,
+ CLOCK,
+ BRUSH,
+ SOLIDCOLORBRUSH,
+ PATHFIGURE,
+ ARCSEGMENT,
+ BEZIERSEGMENT,
+ LINESEGMENT,
+ POLYBEZIERSEGMENT,
+ POLYQUADRATICBEZIERSEGMENT,
+ QUADRATICBEZIERSEGMENT
};
Kind k;
@@ -307,56 +345,18 @@
class DependencyObject : public Base {
public:
- enum Type {
- INVALID = 0,
- UIELEMENT,
- PANEL,
- CANVAS,
- TIMELINE,
- ROTATETRANSFORM,
- SCALETRANSFORM,
- TRANSLATETRANSFORM,
- MATRIXTRANSFORM,
- STORYBOARD,
- DOUBLEANIMATION,
- SHAPE,
- ELLIPSE,
- LINE,
- PATH,
- POLYGON,
- POLYLINE,
- RECTANGLE,
- GEOMETRY,
- GEOMETRYGROUP,
- ELLIPSEGEOMETRY,
- LINEGEOMETRY,
- PATHGEOMETRY,
- RECTANGLEGEOMETRY,
- FRAMEWORKELEMENT,
- NAMESCOPE,
- CLOCK,
- BRUSH,
- SOLIDCOLORBRUSH,
- PATHFIGURE,
- ARCSEGMENT,
- BEZIERSEGMENT,
- LINESEGMENT,
- POLYBEZIERSEGMENT,
- POLYQUADRATICBEZIERSEGMENT,
- QUADRATICBEZIERSEGMENT
- };
-
+
DependencyObject ();
~DependencyObject ();
- static DependencyProperty *Register (Type type, char *name, Value
*default_value);
- static DependencyProperty *Register (DependencyObject::Type type, char
*name, Value::Kind vtype);
- static DependencyProperty *RegisterFull (DependencyObject::Type type,
char *name, Value *default_value, Value::Kind vtype);
+ static DependencyProperty *Register (Value::Kind type, char *name,
Value *default_value);
+ static DependencyProperty *Register (Value::Kind type, char *name,
Value::Kind vtype);
+ static DependencyProperty *RegisterFull (Value::Kind type, char *name,
Value *default_value, Value::Kind vtype);
- static DependencyProperty *GetDependencyProperty (Type type, char
*name);
+ static DependencyProperty *GetDependencyProperty (Value::Kind type,
char *name);
void SetValue (DependencyProperty *property, Value value);
Value *GetValue (DependencyProperty *property);
DependencyProperty *GetDependencyProperty (char *name);
- Type GetObjectType ();
+ Value::Kind GetObjectType ();
DependencyObject* FindName (char *name);
@@ -367,10 +367,10 @@
protected:
void NotifyAttacheesOfPropertyChange (DependencyProperty *property);
- void SetObjectType (Type objectType);
+ void SetObjectType (Value::Kind objectType);
private:
- Type objectType;
+ Value::Kind objectType;
static GHashTable *properties;
GHashTable *current_values;
GSList *attached_list;
@@ -387,7 +387,7 @@
char *name;
Value *default_value;
- DependencyObject::Type type;
+ Value::Kind type;
Value::Kind value_type;
};
@@ -419,7 +419,7 @@
Brush ()
{
- SetObjectType (DependencyObject::BRUSH);
+ SetObjectType (Value::BRUSH);
}
virtual void SetupBrush (cairo_t *cairo) = 0;
@@ -439,7 +439,7 @@
SolidColorBrush ()
{
- SetObjectType (DependencyObject::SOLIDCOLORBRUSH);
+ SetObjectType (Value::SOLIDCOLORBRUSH);
}
virtual void SetupBrush (cairo_t *cairo);
@@ -500,7 +500,7 @@
user_xform_origin(0,0),
x1 (0), y1(0), x2(0), y2(0)
{
- SetObjectType (DependencyObject::UIELEMENT);
+ SetObjectType (Value::UIELEMENT);
cairo_matrix_init_identity (&absolute_xform);
}
Modified: trunk/moon/src/shape.cpp
===================================================================
--- trunk/moon/src/shape.cpp 2007-06-06 21:57:46 UTC (rev 78788)
+++ trunk/moon/src/shape.cpp 2007-06-06 22:05:09 UTC (rev 78789)
@@ -624,36 +624,36 @@
shape_init ()
{
/* Shape fields */
- Shape::FillProperty = DependencyObject::Register
(DependencyObject::SHAPE, "Fill", Value::DEPENDENCY_OBJECT);
- Shape::StretchProperty = DependencyObject::Register
(DependencyObject::SHAPE, "Stretch", new Value (StretchFill));
- Shape::StrokeProperty = DependencyObject::Register
(DependencyObject::SHAPE, "Stroke", Value::DEPENDENCY_OBJECT);
- Shape::StrokeDashArrayProperty = DependencyObject::Register
(DependencyObject::SHAPE, "StrokeDashArray", new Value ());
- Shape::StrokeDashCapProperty = DependencyObject::Register
(DependencyObject::SHAPE, "StrokeDashCap", new Value (PenLineCapFlat));
- Shape::StrokeDashOffsetProperty = DependencyObject::Register
(DependencyObject::SHAPE, "StrokeDashOffset", new Value (0.0));
- Shape::StrokeEndLineCapProperty = DependencyObject::Register
(DependencyObject::SHAPE, "StrokeEndLineCap", new Value (PenLineCapFlat));
- Shape::StrokeLineJoinProperty = DependencyObject::Register
(DependencyObject::SHAPE, "StrokeLineJoin", new Value (PenLineJoinMiter));
- Shape::StrokeMiterLimitProperty = DependencyObject::Register
(DependencyObject::SHAPE, "StrokeMiterLimit", new Value (10.0));
- Shape::StrokeStartLineCapProperty = DependencyObject::Register
(DependencyObject::SHAPE, "StrokeStartLineCap", new Value (PenLineCapFlat));
- Shape::StrokeThicknessProperty = DependencyObject::Register
(DependencyObject::SHAPE, "StrokeThickness", new Value (1.0));
+ Shape::FillProperty = DependencyObject::Register (Value::SHAPE, "Fill",
Value::DEPENDENCY_OBJECT);
+ Shape::StretchProperty = DependencyObject::Register (Value::SHAPE,
"Stretch", new Value (StretchFill));
+ Shape::StrokeProperty = DependencyObject::Register (Value::SHAPE,
"Stroke", Value::DEPENDENCY_OBJECT);
+ Shape::StrokeDashArrayProperty = DependencyObject::Register
(Value::SHAPE, "StrokeDashArray", new Value ());
+ Shape::StrokeDashCapProperty = DependencyObject::Register
(Value::SHAPE, "StrokeDashCap", new Value (PenLineCapFlat));
+ Shape::StrokeDashOffsetProperty = DependencyObject::Register
(Value::SHAPE, "StrokeDashOffset", new Value (0.0));
+ Shape::StrokeEndLineCapProperty = DependencyObject::Register
(Value::SHAPE, "StrokeEndLineCap", new Value (PenLineCapFlat));
+ Shape::StrokeLineJoinProperty = DependencyObject::Register
(Value::SHAPE, "StrokeLineJoin", new Value (PenLineJoinMiter));
+ Shape::StrokeMiterLimitProperty = DependencyObject::Register
(Value::SHAPE, "StrokeMiterLimit", new Value (10.0));
+ Shape::StrokeStartLineCapProperty = DependencyObject::Register
(Value::SHAPE, "StrokeStartLineCap", new Value (PenLineCapFlat));
+ Shape::StrokeThicknessProperty = DependencyObject::Register
(Value::SHAPE, "StrokeThickness", new Value (1.0));
/* Rectangle fields */
- Rectangle::RadiusXProperty = DependencyObject::Register
(DependencyObject::RECTANGLE, "RadiusX", new Value (0.0));
- Rectangle::RadiusYProperty = DependencyObject::Register
(DependencyObject::RECTANGLE, "RadiusY", new Value (0.0));
+ Rectangle::RadiusXProperty = DependencyObject::Register
(Value::RECTANGLE, "RadiusX", new Value (0.0));
+ Rectangle::RadiusYProperty = DependencyObject::Register
(Value::RECTANGLE, "RadiusY", new Value (0.0));
/* Line fields */
- Line::X1Property = DependencyObject::Register (DependencyObject::LINE,
"X1", new Value (0.0));
- Line::Y1Property = DependencyObject::Register (DependencyObject::LINE,
"Y1", new Value (0.0));
- Line::X2Property = DependencyObject::Register (DependencyObject::LINE,
"X2", new Value (0.0));
- Line::Y2Property = DependencyObject::Register (DependencyObject::LINE,
"Y2", new Value (0.0));
+ Line::X1Property = DependencyObject::Register (Value::LINE, "X1", new
Value (0.0));
+ Line::Y1Property = DependencyObject::Register (Value::LINE, "Y1", new
Value (0.0));
+ Line::X2Property = DependencyObject::Register (Value::LINE, "X2", new
Value (0.0));
+ Line::Y2Property = DependencyObject::Register (Value::LINE, "Y2", new
Value (0.0));
/* Polygon fields */
- Polygon::FillRuleProperty = DependencyObject::Register
(DependencyObject::POLYGON, "Fill", new Value (FillRuleEvenOdd));
- Polygon::PointsProperty = DependencyObject::Register
(DependencyObject::POLYGON, "Points", new Value ());
+ Polygon::FillRuleProperty = DependencyObject::Register (Value::POLYGON,
"Fill", new Value (FillRuleEvenOdd));
+ Polygon::PointsProperty = DependencyObject::Register (Value::POLYGON,
"Points", new Value ());
/* Polyline fields */
- Polyline::FillRuleProperty = DependencyObject::Register
(DependencyObject::POLYLINE, "Fill", new Value (FillRuleEvenOdd));
- Polyline::PointsProperty = DependencyObject::Register
(DependencyObject::POLYLINE, "Points", new Value ());
+ Polyline::FillRuleProperty = DependencyObject::Register
(Value::POLYLINE, "Fill", new Value (FillRuleEvenOdd));
+ Polyline::PointsProperty = DependencyObject::Register (Value::POLYLINE,
"Points", new Value ());
/* Path fields */
- Path::DataProperty = DependencyObject::Register
(DependencyObject::PATH, "Data", Value::DEPENDENCY_OBJECT);
+ Path::DataProperty = DependencyObject::Register (Value::PATH, "Data",
Value::DEPENDENCY_OBJECT);
}
Modified: trunk/moon/src/shape.h
===================================================================
--- trunk/moon/src/shape.h 2007-06-06 21:57:46 UTC (rev 78788)
+++ trunk/moon/src/shape.h 2007-06-06 22:05:09 UTC (rev 78789)
@@ -35,7 +35,7 @@
Shape () : stroke_dash_array (NULL), stroke_dash_array_count (0)
{
- SetObjectType (DependencyObject::SHAPE);
+ SetObjectType (Value::SHAPE);
}
//
@@ -85,7 +85,7 @@
//
class Ellipse : public Shape {
public:
- Ellipse () { SetObjectType (DependencyObject::ELLIPSE); };
+ Ellipse () { SetObjectType (Value::ELLIPSE); };
void Draw (Surface *s);
};
@@ -99,7 +99,7 @@
static DependencyProperty* RadiusXProperty;
static DependencyProperty* RadiusYProperty;
- Rectangle () { SetObjectType (DependencyObject::RECTANGLE); };
+ Rectangle () { SetObjectType (Value::RECTANGLE); };
void Draw (Surface *s);
@@ -121,7 +121,7 @@
static DependencyProperty* X2Property;
static DependencyProperty* Y2Property;
- Line () { SetObjectType(DependencyObject::LINE); };
+ Line () { SetObjectType(Value::LINE); };
void Draw (Surface *s);
@@ -149,7 +149,7 @@
static DependencyProperty* FillRuleProperty;
static DependencyProperty* PointsProperty;
- Polygon () : fill_rule (FillRuleEvenOdd), points (NULL), count (0) {
SetObjectType (DependencyObject::POLYGON); };
+ Polygon () : fill_rule (FillRuleEvenOdd), points (NULL), count (0) {
SetObjectType (Value::POLYGON); };
void Draw (Surface *s);
};
@@ -170,7 +170,7 @@
static DependencyProperty* FillRuleProperty;
static DependencyProperty* PointsProperty;
- Polyline () : fill_rule (FillRuleEvenOdd), points (NULL), count (0) {
SetObjectType (DependencyObject::POLYLINE); };
+ Polyline () : fill_rule (FillRuleEvenOdd), points (NULL), count (0) {
SetObjectType (Value::POLYLINE); };
void Draw (Surface *s);
};
Modified: trunk/moon/src/transform.cpp
===================================================================
--- trunk/moon/src/transform.cpp 2007-06-06 21:57:46 UTC (rev 78788)
+++ trunk/moon/src/transform.cpp 2007-06-06 22:05:09 UTC (rev 78789)
@@ -239,19 +239,19 @@
transform_init ()
{
/* RotateTransform fields */
- RotateTransform::AngleProperty = DependencyObject::Register
(DependencyObject::ROTATETRANSFORM, "Angle", new Value (0.0));
- RotateTransform::CenterXProperty = DependencyObject::Register
(DependencyObject::ROTATETRANSFORM, "CenterX", new Value (0.0));
- RotateTransform::CenterYProperty = DependencyObject::Register
(DependencyObject::ROTATETRANSFORM, "CenterY", new Value (0.0));
+ RotateTransform::AngleProperty = DependencyObject::Register
(Value::ROTATETRANSFORM, "Angle", new Value (0.0));
+ RotateTransform::CenterXProperty = DependencyObject::Register
(Value::ROTATETRANSFORM, "CenterX", new Value (0.0));
+ RotateTransform::CenterYProperty = DependencyObject::Register
(Value::ROTATETRANSFORM, "CenterY", new Value (0.0));
/* TranslateTransform fields */
- TranslateTransform::XProperty = DependencyObject::Register
(DependencyObject::TRANSLATETRANSFORM, "X", new Value (0.0));
- TranslateTransform::YProperty = DependencyObject::Register
(DependencyObject::TRANSLATETRANSFORM, "Y", new Value (0.0));
+ TranslateTransform::XProperty = DependencyObject::Register
(Value::TRANSLATETRANSFORM, "X", new Value (0.0));
+ TranslateTransform::YProperty = DependencyObject::Register
(Value::TRANSLATETRANSFORM, "Y", new Value (0.0));
/* ScaleTransform fields */
- ScaleTransform::ScaleXProperty = DependencyObject::Register
(DependencyObject::SCALETRANSFORM, "ScaleX", new Value (1.0));
- ScaleTransform::ScaleYProperty = DependencyObject::Register
(DependencyObject::SCALETRANSFORM, "ScaleY", new Value (1.0));
- ScaleTransform::CenterXProperty = DependencyObject::Register
(DependencyObject::SCALETRANSFORM, "CenterX", new Value (0.0));
- ScaleTransform::CenterYProperty = DependencyObject::Register
(DependencyObject::SCALETRANSFORM, "CenterY", new Value (0.0));
+ ScaleTransform::ScaleXProperty = DependencyObject::Register
(Value::SCALETRANSFORM, "ScaleX", new Value (1.0));
+ ScaleTransform::ScaleYProperty = DependencyObject::Register
(Value::SCALETRANSFORM, "ScaleY", new Value (1.0));
+ ScaleTransform::CenterXProperty = DependencyObject::Register
(Value::SCALETRANSFORM, "CenterX", new Value (0.0));
+ ScaleTransform::CenterYProperty = DependencyObject::Register
(Value::SCALETRANSFORM, "CenterY", new Value (0.0));
/* XXX MatrixTransform fields */
}
Modified: trunk/moon/src/transform.h
===================================================================
--- trunk/moon/src/transform.h 2007-06-06 21:57:46 UTC (rev 78788)
+++ trunk/moon/src/transform.h 2007-06-06 22:05:09 UTC (rev 78789)
@@ -21,7 +21,7 @@
class RotateTransform : public Transform {
public:
- RotateTransform () { SetObjectType (DependencyObject::ROTATETRANSFORM);
}
+ RotateTransform () { SetObjectType (Value::ROTATETRANSFORM); }
static DependencyProperty* AngleProperty;
static DependencyProperty* CenterXProperty;
@@ -44,7 +44,7 @@
class TranslateTransform : public Transform {
public:
- TranslateTransform () { SetObjectType
(DependencyObject::TRANSLATETRANSFORM); }
+ TranslateTransform () { SetObjectType (Value::TRANSLATETRANSFORM); }
static DependencyProperty* XProperty;
static DependencyProperty* YProperty;
@@ -63,7 +63,7 @@
class ScaleTransform : public Transform {
public:
- ScaleTransform () { SetObjectType (DependencyObject::SCALETRANSFORM); }
+ ScaleTransform () { SetObjectType (Value::SCALETRANSFORM); }
static DependencyProperty* ScaleXProperty;
static DependencyProperty* ScaleYProperty;
@@ -90,7 +90,7 @@
class MatrixTransform : public Transform {
public:
- MatrixTransform () { SetObjectType (DependencyObject::MATRIXTRANSFORM);
}
+ MatrixTransform () { SetObjectType (Value::MATRIXTRANSFORM); }
/* these are dependency properties
Matrix matrix;
Modified: trunk/moon/src/xaml.cpp
===================================================================
--- trunk/moon/src/xaml.cpp 2007-06-06 21:57:46 UTC (rev 78788)
+++ trunk/moon/src/xaml.cpp 2007-06-06 22:05:09 UTC (rev 78789)
@@ -93,7 +93,7 @@
public:
const char *name;
XamlElementInfo *parent;
- DependencyObject::Type dependency_type;
+ Value::Kind dependency_type;
create_item_func create_item;
create_element_instance_func create_element;
@@ -101,7 +101,7 @@
set_property_func set_property;
set_attributes_func set_attributes;
- XamlElementInfo (const char *name, XamlElementInfo *parent,
DependencyObject::Type dependency_type) :
+ XamlElementInfo (const char *name, XamlElementInfo *parent, Value::Kind
dependency_type) :
name (name), parent (parent), dependency_type (dependency_type),
create_item (NULL), create_element (NULL), add_child (NULL),
set_property (NULL), set_attributes (NULL)
{
@@ -459,13 +459,13 @@
// We still use a name for ghost elements to make debugging easier
XamlElementInfo *
-register_ghost_element (const char *name, XamlElementInfo *parent,
DependencyObject::Type dt)
+register_ghost_element (const char *name, XamlElementInfo *parent, Value::Kind
dt)
{
return new XamlElementInfo (name, parent, dt);
}
XamlElementInfo *
-register_dependency_object_element (const char *name, XamlElementInfo *parent,
DependencyObject::Type dt,
+register_dependency_object_element (const char *name, XamlElementInfo *parent,
Value::Kind dt,
create_item_func create_item)
{
XamlElementInfo *res = new XamlElementInfo (name, parent, dt);
@@ -482,7 +482,7 @@
}
XamlElementInfo *
-register_element_full (const char *name, XamlElementInfo *parent,
DependencyObject::Type dt,
+register_element_full (const char *name, XamlElementInfo *parent, Value::Kind
dt,
create_item_func create_item, create_element_instance_func
create_element, add_child_func add_child,
set_property_func set_property, set_attributes_func
set_attributes)
{
@@ -507,42 +507,42 @@
//
// ui element ->
//
- XamlElementInfo *ui = register_ghost_element ("UIElement", NULL,
DependencyObject::UIELEMENT);
- XamlElementInfo *fw = register_ghost_element ("FrameworkElement", ui,
DependencyObject::FRAMEWORKELEMENT);
- XamlElementInfo *shape = register_ghost_element ("Shape", fw,
DependencyObject::SHAPE);
+ XamlElementInfo *ui = register_ghost_element ("UIElement", NULL,
Value::UIELEMENT);
+ XamlElementInfo *fw = register_ghost_element ("FrameworkElement", ui,
Value::FRAMEWORKELEMENT);
+ XamlElementInfo *shape = register_ghost_element ("Shape", fw,
Value::SHAPE);
///
/// Shapes
///
- register_dependency_object_element ("Ellipse", shape,
DependencyObject::ELLIPSE, (create_item_func) ellipse_new);
- register_dependency_object_element ("Line", shape,
DependencyObject::LINE, (create_item_func) line_new);
- register_dependency_object_element ("Path", shape,
DependencyObject::PATH, (create_item_func) path_new);
- register_dependency_object_element ("Polygon", shape,
DependencyObject::POLYGON, (create_item_func) polygon_new);
- register_dependency_object_element ("Polyline", shape,
DependencyObject::POLYLINE, (create_item_func) polyline_new);
- register_dependency_object_element ("Rectangle", shape,
DependencyObject::RECTANGLE, (create_item_func) rectangle_new);
+ register_dependency_object_element ("Ellipse", shape, Value::ELLIPSE,
(create_item_func) ellipse_new);
+ register_dependency_object_element ("Line", shape, Value::LINE,
(create_item_func) line_new);
+ register_dependency_object_element ("Path", shape, Value::PATH,
(create_item_func) path_new);
+ register_dependency_object_element ("Polygon", shape, Value::POLYGON,
(create_item_func) polygon_new);
+ register_dependency_object_element ("Polyline", shape, Value::POLYLINE,
(create_item_func) polyline_new);
+ register_dependency_object_element ("Rectangle", shape,
Value::RECTANGLE, (create_item_func) rectangle_new);
///
/// Geometry
///
- XamlElementInfo *geo = register_ghost_element ("Geometry", NULL,
DependencyObject::GEOMETRY);
- register_dependency_object_element ("GeometryGroup", geo,
DependencyObject::GEOMETRYGROUP, (create_item_func) geometry_group_new);
- register_dependency_object_element ("EllipseGeometry", geo,
DependencyObject::ELLIPSEGEOMETRY, (create_item_func) ellipse_geometry_new);
-// register_dependency_object_element ("CombinedGeometry", geo,
DependencyObject::COMBINEDGEOMETRY, (create_item_func) combined_geometry_new);
- register_dependency_object_element ("LineGeometry", geo,
DependencyObject::LINEGEOMETRY, (create_item_func) line_geometry_new);
- register_dependency_object_element ("PathGeometry", geo,
DependencyObject::PATHGEOMETRY, (create_item_func) path_geometry_new);
- register_dependency_object_element ("RectangleGeometry", geo,
DependencyObject::RECTANGLEGEOMETRY, (create_item_func) rectangle_geometry_new);
-// register_dependency_object_element ("StreamGeometry", geo,
DependencyObject::STREAMGEOMETRY, (create_item_func) stream_geometry_new);
+ XamlElementInfo *geo = register_ghost_element ("Geometry", NULL,
Value::GEOMETRY);
+ register_dependency_object_element ("GeometryGroup", geo,
Value::GEOMETRYGROUP, (create_item_func) geometry_group_new);
+ register_dependency_object_element ("EllipseGeometry", geo,
Value::ELLIPSEGEOMETRY, (create_item_func) ellipse_geometry_new);
+// register_dependency_object_element ("CombinedGeometry", geo,
Value::COMBINEDGEOMETRY, (create_item_func) combined_geometry_new);
+ register_dependency_object_element ("LineGeometry", geo,
Value::LINEGEOMETRY, (create_item_func) line_geometry_new);
+ register_dependency_object_element ("PathGeometry", geo,
Value::PATHGEOMETRY, (create_item_func) path_geometry_new);
+ register_dependency_object_element ("RectangleGeometry", geo,
Value::RECTANGLEGEOMETRY, (create_item_func) rectangle_geometry_new);
+// register_dependency_object_element ("StreamGeometry", geo,
Value::STREAMGEOMETRY, (create_item_func) stream_geometry_new);
///
/// Panels
///
- XamlElementInfo *panel = register_ghost_element ("Panel", fw,
DependencyObject::PANEL);
- XamlElementInfo *canvas = register_dependency_object_element ("Canvas",
panel, DependencyObject::CANVAS, (create_item_func) canvas_new);
+ XamlElementInfo *panel = register_ghost_element ("Panel", fw,
Value::PANEL);
+ XamlElementInfo *canvas = register_dependency_object_element ("Canvas",
panel, Value::CANVAS, (create_item_func) canvas_new);
canvas->add_child = panel_add_child;
@@ -550,25 +550,25 @@
/// Animation
///
- XamlElementInfo *tl = register_ghost_element ("Timeline", NULL,
DependencyObject::TIMELINE);
- register_dependency_object_element ("DoubleAnimation", tl,
DependencyObject::DOUBLEANIMATION, (create_item_func) double_animation_new);
- register_dependency_object_element ("StoryBoard", tl,
DependencyObject::STORYBOARD, (create_item_func) storyboard_new);
+ XamlElementInfo *tl = register_ghost_element ("Timeline", NULL,
Value::TIMELINE);
+ register_dependency_object_element ("DoubleAnimation", tl,
Value::DOUBLEANIMATION, (create_item_func) double_animation_new);
+ register_dependency_object_element ("StoryBoard", tl,
Value::STORYBOARD, (create_item_func) storyboard_new);
///
/// Transforms
///
- register_dependency_object_element ("RotateTransform", NULL,
DependencyObject::ROTATETRANSFORM, (create_item_func) rotate_transform_new);
- register_dependency_object_element ("ScaleTransform", NULL,
DependencyObject::SCALETRANSFORM, (create_item_func) scale_transform_new);
- register_dependency_object_element ("TranslateTransform", NULL,
DependencyObject::TRANSLATETRANSFORM, (create_item_func)
translate_transform_new);
- register_dependency_object_element ("MatrixTransform", NULL,
DependencyObject::MATRIXTRANSFORM, (create_item_func) matrix_transform_new);
+ register_dependency_object_element ("RotateTransform", NULL,
Value::ROTATETRANSFORM, (create_item_func) rotate_transform_new);
+ register_dependency_object_element ("ScaleTransform", NULL,
Value::SCALETRANSFORM, (create_item_func) scale_transform_new);
+ register_dependency_object_element ("TranslateTransform", NULL,
Value::TRANSLATETRANSFORM, (create_item_func) translate_transform_new);
+ register_dependency_object_element ("MatrixTransform", NULL,
Value::MATRIXTRANSFORM, (create_item_func) matrix_transform_new);
///
/// Brushes
///
- XamlElementInfo *brush = register_ghost_element ("Brush", NULL,
DependencyObject::BRUSH);
- register_dependency_object_element ("SolidColorBrush", brush,
DependencyObject::SOLIDCOLORBRUSH, (create_item_func) solid_color_brush_new);
+ XamlElementInfo *brush = register_ghost_element ("Brush", NULL,
Value::BRUSH);
+ register_dependency_object_element ("SolidColorBrush", brush,
Value::SOLIDCOLORBRUSH, (create_item_func) solid_color_brush_new);
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches