New Names for Classes and Namepaces
To simplify both code and xml files, we are considering the following set of name changes for Types in VG.net. If you use VG.net, and have an opinion on these changes, please post a comment.
Note we will keep the name of the Type and the name of any property of that Type identical. For example, currently the Style class has a property named TextStyle, which returns an instance of the TextStyle class.
First, classes related to object appearances (styling).
Current Name |
New Name |
Notes |
Style |
Style |
No change. A Style currently contains one of each: BrushStyle, PenStyle, TextStyle, and RenderStyle. |
SubStyle |
AppearanceProperties |
SubStyle is currently the name of the base class for BrushStyle, PenStyle, TextStyle, and RenderStyle. |
BrushStyle |
Fill |
This class specifies the appearance of filled interior areas in shapes, as well as the fill used within TextStyle (TextProperties) and PenStyle (Stroke). Since Fill is a base class, the name change would affect a number of derived classes: SolidBrushStyle becomes SolidFill, etc. |
PenStyle |
Stroke |
Specifies the appearance of shape edges. Contains a BrushStyle (Fill). |
TextStyle |
TextProperties |
Specifies the appearance of text. Contains a BrushStyle (Fill). We cannot simply change the name to Text, as there is a string Text property in each Shape. |
RenderStyle |
RenderProperties |
Specifies rendering options: anti-aliasing, gamma-corrected or linear composting of translucent pixels, and the pixel offset mode. |
Here are newly proposed names for various Shape classes.
Current Name |
New Name |
Notes |
RectangleShape |
Rectangle |
This will cause a conflict with the integer rectangle System.Drawing.Rectangle. Because all coordinates in VG.net are stored as floats, we believe code using integer rectangles may rarely mix with VG.net code. If many people believe the conflict will cause problems, we can leave RectangleShape as is. |
EllipseShape |
Ellipse |
|
ArcShape |
Arc |
|
PieShape |
Pie |
|
PolylineShape |
Polyline |
|
SplineShape |
Spline |
|
PathShape |
Path |
|
Finally, we are proposing changes to our namespaces and dlls:
Current Name |
New Name |
ProdigeSoftware.Drawing |
Prodige.Drawing |
ProdigeSoftware.Drawing.Styles |
Prodige.Drawing.Styles |
ProdigeSoftware.Drawing.dll |
Prodige.Drawing.dll |