Element API
void fpg_element_begin(const char*desc);
- Cause opening element definition.
- Must be called before any drawing function is called otherwise the generated footprint would be broken.
void fpg_element_end(void);
- Cause element to close.
- Must be called when footprint generating is done.
void fpg_set_file(FILE *f);
- Set file handle to write footprint to.
- Must be called before any drawing function is called.
- Changing file in the middle of generating footprint would lead to broken fooptrint.
- You must close this file with fclose() after footprint was generated, this is not done automatically.
- Tip: you can pass stdout parameter for footprint to be written to stdout.
void fpg_set_file(FILE *f);
- Get file handle we are writing footprint to.
void fpg_set_units(enum fpg_units units);
- Set units we are working with.
- It's safe to change units while generating footprint.
- For default we are working with pcb default backend format that's mils/100.
- See enum fpg_units;
enum fpg_units fpg_get_units(void);
enum fpg_units;
- fpg_mm milimeters.
- fpg_um micrometers.
- fpg_mil mils
- fpg_pcb pcb backend format mils/100
- Warning: all drawing functions takes integer numbers as
parameters, so choose units wisely in order not to create huge rounding
errors.
Copyright 2009, all rights reserved unless specified otherwise.
gedasymbols.org is maintained by
DJ Delorie