Invoice++
Loading...
Searching...
No Matches
product_table.h
Go to the documentation of this file.
1//
2// Created by Jannik Heym on 20.02.25.
3//
4
5#ifndef PRODUCT_TABLE_H
6#define PRODUCT_TABLE_H
7
8#include <hpdf.h>
9#include <list>
10#include <memory>
11
13
16 std::list<std::shared_ptr<ProductData>> rest;
17 HPDF_REAL height;
18};
19
21public:
24 static product_table_return createProductTable(HPDF_Page page, HPDF_REAL padding_left, HPDF_REAL padding_right, HPDF_REAL y, HPDF_REAL bottom_padding, std::list<std::shared_ptr<ProductData>> products, HPDF_Font font, HPDF_Font font_bold);
25
28 static HPDF_REAL createTotalRow(HPDF_Page page, HPDF_REAL padding_left, HPDF_REAL padding_right, HPDF_REAL y, HPDF_REAL bottom_padding, const std::list<std::shared_ptr<ProductData>> &products, HPDF_Font font_bold);
29};
30
31
32
33#endif //PRODUCT_TABLE_H
Definition product_table.h:20
static HPDF_REAL createTotalRow(HPDF_Page page, HPDF_REAL padding_left, HPDF_REAL padding_right, HPDF_REAL y, HPDF_REAL bottom_padding, const std::list< std::shared_ptr< ProductData > > &products, HPDF_Font font_bold)
Draws the Product Tables Total Row on to a given pdf page.
Definition product_table.cpp:50
static product_table_return createProductTable(HPDF_Page page, HPDF_REAL padding_left, HPDF_REAL padding_right, HPDF_REAL y, HPDF_REAL bottom_padding, std::list< std::shared_ptr< ProductData > > products, HPDF_Font font, HPDF_Font font_bold)
Function to automatically draw the Product table on to a given invoice page.
Definition product_table.cpp:75
return struct for "createProductTable()"
Definition product_table.h:15
HPDF_REAL height
Definition product_table.h:17
std::list< std::shared_ptr< ProductData > > rest
Definition product_table.h:16