![]() |
LibrePCB Developers Documentation
|
Classes | |
struct | InteractiveHtmlBomPad |
struct | InteractiveHtmlBomRefMap |
Enumerations | |
enum class | InteractiveHtmlBomDrawingKind |
enum class | InteractiveHtmlBomDrawingLayer |
enum class | InteractiveHtmlBomHighlightPin1Mode |
enum class | InteractiveHtmlBomLayer |
enum class | InteractiveHtmlBomSides |
enum class | InteractiveHtmlBomViewMode |
Functions | |
std::size_t | ffi_qbytearray_len (const QByteArray *obj) |
const uint8_t * | ffi_qbytearray_data (const QByteArray *obj) |
uint8_t * | ffi_qbytearray_data_mut (QByteArray *obj) |
void | ffi_qbytearray_resize (QByteArray *obj, std::size_t len, uint8_t value) |
std::size_t | ffi_qstring_len (const QString *obj) |
const uint16_t * | ffi_qstring_utf16 (const QString *obj) |
void | ffi_qstring_set (QString *obj, const char *s, std::size_t len) |
std::size_t | ffi_qstringlist_len (const QStringList *obj) |
const QString * | ffi_qstringlist_at (const QStringList *obj, std::size_t index) |
size_t | ffi_qbytearray_len (const QByteArray *NONNULL obj) |
const uint8_t * | ffi_qbytearray_data (const QByteArray *NONNULL obj) |
uint8_t * | ffi_qbytearray_data_mut (QByteArray *NONNULL obj) |
void | ffi_qbytearray_resize (QByteArray *NONNULL obj, size_t len, uint8_t value) |
size_t | ffi_qstring_len (const QString *NONNULL obj) |
const uint16_t * | ffi_qstring_utf16 (const QString *NONNULL obj) |
void | ffi_qstring_set (QString *NONNULL obj, const char *s, size_t len) |
size_t | ffi_qstringlist_len (const QStringList *NONNULL obj) |
const QString * | ffi_qstringlist_at (const QStringList *NONNULL obj, size_t index) |
InteractiveHtmlBom * | ffi_ibom_new (const QString *NONNULL title, const QString *NONNULL company, const QString *NONNULL revision, const QString *NONNULL date, float bottom_left_x, float bottom_left_y, float top_right_x, float top_right_y) |
void | ffi_ibom_delete (InteractiveHtmlBom *obj) |
void | ffi_ibom_set_view_config (InteractiveHtmlBom *NONNULL obj, InteractiveHtmlBomViewMode mode, InteractiveHtmlBomHighlightPin1Mode highlight_pin1, bool dark) |
void | ffi_ibom_set_rotation (InteractiveHtmlBom *NONNULL obj, float angle, bool offset_back) |
void | ffi_ibom_set_show_silkscreen (InteractiveHtmlBom *NONNULL obj, bool show) |
void | ffi_ibom_set_show_fabrication (InteractiveHtmlBom *NONNULL obj, bool show) |
void | ffi_ibom_set_show_pads (InteractiveHtmlBom *NONNULL obj, bool show) |
void | ffi_ibom_set_checkboxes (InteractiveHtmlBom *NONNULL obj, const QStringList *NONNULL checkboxes) |
void | ffi_ibom_set_fields (InteractiveHtmlBom *NONNULL obj, const QStringList *NONNULL fields) |
void | ffi_ibom_add_drawing (InteractiveHtmlBom *NONNULL obj, InteractiveHtmlBomDrawingKind kind, InteractiveHtmlBomDrawingLayer layer, const QString *NONNULL svgpath, float width, bool filled) |
size_t | ffi_ibom_add_footprint (InteractiveHtmlBom *NONNULL obj, InteractiveHtmlBomLayer layer, float pos_x, float pos_y, float angle, float bottom_left_x, float bottom_left_y, float top_right_x, float top_right_y, bool mount, const QStringList *NONNULL fields, const InteractiveHtmlBomPad *pads_array, size_t pads_size) |
void | ffi_ibom_add_bom_line (InteractiveHtmlBom *NONNULL obj, InteractiveHtmlBomSides sides, const InteractiveHtmlBomRefMap *parts_array, size_t parts_size) |
void | ffi_ibom_add_track (InteractiveHtmlBom *NONNULL obj, InteractiveHtmlBomLayer layer, float start_x, float start_y, float end_x, float end_y, float width, const QString *net_name) |
void | ffi_ibom_add_via (InteractiveHtmlBom *NONNULL obj, const InteractiveHtmlBomLayer *layers_array, size_t layers_size, float pos_x, float pos_y, float diameter, float drill_diameter, const QString *net_name) |
void | ffi_ibom_add_zone (InteractiveHtmlBom *NONNULL obj, InteractiveHtmlBomLayer layer, const QString *NONNULL svgpath, const QString *net_name) |
bool | ffi_ibom_generate_html (const InteractiveHtmlBom *NONNULL obj, QString *NONNULL out, QString *NONNULL err) |
void | ffi_increment_number_in_string (QString *NONNULL s) |
ZipArchive * | ffi_ziparchive_new_from_file (const QString *NONNULL path, QString *NONNULL err) |
ZipArchive * | ffi_ziparchive_new_from_mem (const QByteArray *NONNULL data, QString *NONNULL err) |
void | ffi_ziparchive_delete (ZipArchive *obj) |
size_t | ffi_ziparchive_len (const ZipArchive *NONNULL obj) |
bool | ffi_ziparchive_name_for_index (ZipArchive *NONNULL obj, size_t index, QString *NONNULL name, QString *NONNULL err) |
bool | ffi_ziparchive_read_by_index (ZipArchive *NONNULL obj, size_t index, QByteArray *NONNULL buf, QString *NONNULL err) |
bool | ffi_ziparchive_extract (ZipArchive *NONNULL obj, const QString *NONNULL dir) |
ZipWriter * | ffi_zipwriter_new_to_file (const QString *NONNULL path, QString *NONNULL err) |
ZipWriter * | ffi_zipwriter_new_to_mem (QByteArray *NONNULL data) |
void | ffi_zipwriter_delete (ZipWriter *obj) |
bool | ffi_zipwriter_write_file (ZipWriter *NONNULL obj, const QString *NONNULL name, const QByteArray *NONNULL data, uint32_t mode, QString *NONNULL err) |
bool | ffi_zipwriter_finish (ZipWriter *NONNULL obj, QString *NONNULL err) |
|
strong |
|
strong |
|
strong |
|
strong |
Wrapper for [Layer]
Enumerator | |
---|---|
Front | Front layer |
Back | Back layer |
|
strong |
|
strong |
std::size_t ffi_qbytearray_len | ( | const QByteArray * | obj | ) |
const uint8_t * ffi_qbytearray_data | ( | const QByteArray * | obj | ) |
uint8_t * ffi_qbytearray_data_mut | ( | QByteArray * | obj | ) |
void ffi_qbytearray_resize | ( | QByteArray * | obj, |
std::size_t | len, | ||
uint8_t | value | ||
) |
std::size_t ffi_qstring_len | ( | const QString * | obj | ) |
const uint16_t * ffi_qstring_utf16 | ( | const QString * | obj | ) |
void ffi_qstring_set | ( | QString * | obj, |
const char * | s, | ||
std::size_t | len | ||
) |
std::size_t ffi_qstringlist_len | ( | const QStringList * | obj | ) |
const QString * ffi_qstringlist_at | ( | const QStringList * | obj, |
std::size_t | index | ||
) |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
InteractiveHtmlBom * ffi_ibom_new | ( | const QString *NONNULL | title, |
const QString *NONNULL | company, | ||
const QString *NONNULL | revision, | ||
const QString *NONNULL | date, | ||
float | bottom_left_x, | ||
float | bottom_left_y, | ||
float | top_right_x, | ||
float | top_right_y | ||
) |
void ffi_ibom_delete | ( | InteractiveHtmlBom * | obj | ) |
void ffi_ibom_set_view_config | ( | InteractiveHtmlBom *NONNULL | obj, |
InteractiveHtmlBomViewMode | mode, | ||
InteractiveHtmlBomHighlightPin1Mode | highlight_pin1, | ||
bool | dark | ||
) |
Wrapper to set [InteractiveHtmlBom::view_mode], [InteractiveHtmlBom::dark_mode] and [InteractiveHtmlBom::highlight_pin1]
void ffi_ibom_set_rotation | ( | InteractiveHtmlBom *NONNULL | obj, |
float | angle, | ||
bool | offset_back | ||
) |
Wrapper to set [InteractiveHtmlBom::board_rotation] and [InteractiveHtmlBom::offset_back_rotation]
void ffi_ibom_set_show_silkscreen | ( | InteractiveHtmlBom *NONNULL | obj, |
bool | show | ||
) |
Wrapper to set [InteractiveHtmlBom::show_silkscreen]
void ffi_ibom_set_show_fabrication | ( | InteractiveHtmlBom *NONNULL | obj, |
bool | show | ||
) |
Wrapper to set [InteractiveHtmlBom::show_fabrication]
void ffi_ibom_set_show_pads | ( | InteractiveHtmlBom *NONNULL | obj, |
bool | show | ||
) |
Wrapper to set [InteractiveHtmlBom::show_pads]
void ffi_ibom_set_checkboxes | ( | InteractiveHtmlBom *NONNULL | obj, |
const QStringList *NONNULL | checkboxes | ||
) |
Wrapper to set [InteractiveHtmlBom::checkboxes]
void ffi_ibom_set_fields | ( | InteractiveHtmlBom *NONNULL | obj, |
const QStringList *NONNULL | fields | ||
) |
Wrapper to set [InteractiveHtmlBom::fields]
void ffi_ibom_add_drawing | ( | InteractiveHtmlBom *NONNULL | obj, |
InteractiveHtmlBomDrawingKind | kind, | ||
InteractiveHtmlBomDrawingLayer | layer, | ||
const QString *NONNULL | svgpath, | ||
float | width, | ||
bool | filled | ||
) |
Wrapper for adding a drawing to [InteractiveHtmlBom::drawings]
size_t ffi_ibom_add_footprint | ( | InteractiveHtmlBom *NONNULL | obj, |
InteractiveHtmlBomLayer | layer, | ||
float | pos_x, | ||
float | pos_y, | ||
float | angle, | ||
float | bottom_left_x, | ||
float | bottom_left_y, | ||
float | top_right_x, | ||
float | top_right_y, | ||
bool | mount, | ||
const QStringList *NONNULL | fields, | ||
const InteractiveHtmlBomPad * | pads_array, | ||
size_t | pads_size | ||
) |
Wrapper for [InteractiveHtmlBom::add_footprint]
void ffi_ibom_add_bom_line | ( | InteractiveHtmlBom *NONNULL | obj, |
InteractiveHtmlBomSides | sides, | ||
const InteractiveHtmlBomRefMap * | parts_array, | ||
size_t | parts_size | ||
) |
Wrapper to add BOM lines to [InteractiveHtmlBom::bom_front], [InteractiveHtmlBom::bom_back] or [InteractiveHtmlBom::bom_both]
void ffi_ibom_add_track | ( | InteractiveHtmlBom *NONNULL | obj, |
InteractiveHtmlBomLayer | layer, | ||
float | start_x, | ||
float | start_y, | ||
float | end_x, | ||
float | end_y, | ||
float | width, | ||
const QString * | net_name | ||
) |
Wrapper for adding a track to [InteractiveHtmlBom::tracks]
void ffi_ibom_add_via | ( | InteractiveHtmlBom *NONNULL | obj, |
const InteractiveHtmlBomLayer * | layers_array, | ||
size_t | layers_size, | ||
float | pos_x, | ||
float | pos_y, | ||
float | diameter, | ||
float | drill_diameter, | ||
const QString * | net_name | ||
) |
Wrapper for adding a via to [InteractiveHtmlBom::vias]
void ffi_ibom_add_zone | ( | InteractiveHtmlBom *NONNULL | obj, |
InteractiveHtmlBomLayer | layer, | ||
const QString *NONNULL | svgpath, | ||
const QString * | net_name | ||
) |
Wrapper for adding a zone to [InteractiveHtmlBom::zones]
bool ffi_ibom_generate_html | ( | const InteractiveHtmlBom *NONNULL | obj, |
QString *NONNULL | out, | ||
QString *NONNULL | err | ||
) |
Wrapper for [InteractiveHtmlBom::generate_html]
void ffi_increment_number_in_string | ( | QString *NONNULL | s | ) |
Wrapper for [increment_number_in_string]
ZipArchive * ffi_ziparchive_new_from_file | ( | const QString *NONNULL | path, |
QString *NONNULL | err | ||
) |
ZipArchive * ffi_ziparchive_new_from_mem | ( | const QByteArray *NONNULL | data, |
QString *NONNULL | err | ||
) |
void ffi_ziparchive_delete | ( | ZipArchive * | obj | ) |
size_t ffi_ziparchive_len | ( | const ZipArchive *NONNULL | obj | ) |
bool ffi_ziparchive_name_for_index | ( | ZipArchive *NONNULL | obj, |
size_t | index, | ||
QString *NONNULL | name, | ||
QString *NONNULL | err | ||
) |
bool ffi_ziparchive_read_by_index | ( | ZipArchive *NONNULL | obj, |
size_t | index, | ||
QByteArray *NONNULL | buf, | ||
QString *NONNULL | err | ||
) |
bool ffi_ziparchive_extract | ( | ZipArchive *NONNULL | obj, |
const QString *NONNULL | dir | ||
) |
void ffi_zipwriter_delete | ( | ZipWriter * | obj | ) |