Change LdSymbolArea members.

Now it contains coordinates of the top-left delimiting
point and computed dimensions (instead of coorinates of
both delimiting points).
This commit is contained in:
2010-12-10 08:57:42 +01:00
parent 3d3a71d5d2
commit 37d898fb1a
3 changed files with 19 additions and 12 deletions

View File

@@ -20,18 +20,18 @@ typedef struct _LdSymbolArea LdSymbolArea;
/**
* LdSymbolArea:
* @x1: Left-top X coordinate.
* @y1: Left-top Y coordinate.
* @x2: Right-bottom X coordinate.
* @y2: Right-bottom Y coordinate.
* @x: Left-top X coordinate.
* @y: Left-top Y coordinate.
* @width: Width of the area, must be positive.
* @height: Height of the area, must be positive.
*
* Defines the area of the symbol relative to the center of the symbol,
* which is at the (0, 0) coordinates.
*/
struct _LdSymbolArea
{
gdouble x1, y1;
gdouble x2, y2;
gdouble x, y;
gdouble width, height;
};