<br><div class="gmail_quote">On Wed, Jul 29, 2009 at 2:12 PM, Ulrich von Zadow <span dir="ltr"><<a href="mailto:uzadow@libavg.de">uzadow@libavg.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
I've been working on bug #65 (<a href="https://www.libavg.de/mantis/view.php?id=65" target="_blank">https://www.libavg.de/mantis/view.php?id=65</a><br>
) and added point and vector-typed constructor arguments. That means<br>
that things like pos, size and texcoord can now be passed to<br>
createNode or specified in an avg file, which I think is pretty cool.<br>
</blockquote><div><br>I think that that is pretty cool too! <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
To keep a clean interface, I also made sure that node constructor<br>
arguments are the same as the python attributes. That meant some api<br>
changes:<br>
<br>
- All AreaNodes now have pos and size attributes.<br>
- The former Words::size attribute had to be renamed to fontsize.<br>
- pivotx and pivoty have been replaced by pivot.<br>
- For all vector node types, x and y attributes have been replaced by<br>
pos attributes.<br>
- Also for vector nodes, I've added texcoord constructor params.<br>
<br>
Warning: The attributes that I've removed are dangerous. Since this is<br>
python, you can still set (for example) line.x1. It just won't do what<br>
you expected anymore. Still, I think the cleaner interface is worth<br>
it. (And if anyone has an idea on how to prevent usage of the removed<br>
attributes, I'd be happy to hear it.)<br>
</blockquote><div><br>You might want to leave the old attributes defined and just throw an explanatory exception inside of the getters/setters. These would of course be removed entirely in a later version, but it would give people a chance to update their scripts. <br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Cheers,<br>
<br>
Uli<br>
<br>
--<br>
Any technology distinguishable from magic is insufficiently advanced.<br>
<br>
Ulrich von Zadow | +49-172-7872715<br>
Jabber: <a href="mailto:coder@c-base.org">coder@c-base.org</a><br>
Skype: uzadow<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
libavg-devel mailing list<br>
<a href="mailto:libavg-devel@datenhain.de">libavg-devel@datenhain.de</a><br>
<a href="https://mail.datenhain.de/mailman/listinfo/libavg-devel" target="_blank">https://mail.datenhain.de/mailman/listinfo/libavg-devel</a><br>
</blockquote></div><br>