Hi aM,
It depends on how in-depth you want to go. We have split out "libgerbv" as a separate library you're welcome to use in your own applications. If you download the gerbv source from git (see webpage on how to do this), look at the /doc/example-code/ directory for a bunch of examples on making some command line apps using libgerbv. The rendering code is also accessible with libgerv, so you can make fully functional GUI apps with it too. If you want to just use the regular gerbv program and add some specialized functions of your own, that would be another option. Go to /src/interface.c to add any buttons or menu entries you want to add, and then place the callbacks for those buttons in the /src/callback.c file. You can then put whatever code you want in those callback stubs. There's an example in /doc/example-code on how to draw rectangles. For zooming to specific levels, you'll probably just want to look at the functions in callbacks.c on how to do that.

Hack away!
Julian

On 06/08/2010 01:36 AM, a m wrote:
Hello,

Im wondering how it would be possible for me to zoom in on a certain region or a drawing that is specified by typing in (x, y, width, height) parameters. Another use case would be to draw a box or circle based on the above parameters.

Where would i start to be able to do something like this?

In general, how scriptable is gerbv? how can i start hacking?

thanks,
aM


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo


_______________________________________________
Gerbv-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gerbv-devel
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Gerbv-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gerbv-devel

Reply via email to