LibrePCB Developers Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ffi.h File Reference
#include <cstdarg>
#include <cstddef>
#include <cstdint>
#include <cstdlib>
#include <ostream>
#include <new>
#include <QtCore>
+ Include dependency graph for ffi.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  InteractiveHtmlBomPad
 
struct  InteractiveHtmlBomRefMap
 

Namespaces

namespace  librepcb
 
namespace  librepcb::rs
 

Macros

#define NONNULL
 

Enumerations

enum class  InteractiveHtmlBomDrawingKind
 
enum class  InteractiveHtmlBomDrawingLayer
 
enum class  InteractiveHtmlBomHighlightPin1Mode
 
enum class  InteractiveHtmlBomLayer
 
enum class  InteractiveHtmlBomSides
 
enum class  InteractiveHtmlBomViewMode
 

Functions

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)
 
InteractiveHtmlBomffi_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)
 
ZipArchiveffi_ziparchive_new_from_file (const QString *NONNULL path, QString *NONNULL err)
 
ZipArchiveffi_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)
 
ZipWriterffi_zipwriter_new_to_file (const QString *NONNULL path, QString *NONNULL err)
 
ZipWriterffi_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)
 

Macro Definition Documentation

◆ NONNULL

#define NONNULL