Hi All,
I know this is a theoretical question at best, but I'm new to dia's
source code so bear with me.. I see lots of things like this:
/* This is a subclass of Object used to help implementing objects
* that form a polygon-like shape of line-segments.
*/
struct _BezierShape {
/* Object must be first because this is a 'subclass' of it. */
Object object;
int numpoints; /* >= 2 */
BezPoint *points;
BezCornerType *corner_types;
};
And of course, the declaration of "object.h" in "lib".. which is basically
just pointers to functions (+ some other stuff)..
So, since we're already doing a kind of 'inheritance', and we are using
'interfaces' (like in object.h), I can't help wondering why the project
wasn't done using an OO language (like say, C++)..
Don't get me wrong, I'm not advocating that we change (and I don't want
to get into a debate about the merits of one language over another),
I'm just wondering why.. :) (was g++ not 'up to snuff' yet?)
My 2nd question, where can I find docs on the gtk and gnome APIs that
dia uses? (hope I don't have to grok all that source code to figure them
out myself..)
Dave
--
By the yard, life is hard.
By the inch, it's a cinch.