MeshLib C Docs
Loading...
Searching...
No Matches
MRPdf.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMesh/MRBox.h>
4#include <MRCMesh/MRColor.h>
5#include <MRCMesh/MRVector2.h>
6#include <MRCMisc/common.h>
7#include <MRCMisc/exports.h>
8
9#include <stdbool.h>
10#include <stddef.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16typedef struct MR_Image MR_Image; // Defined in `#include <MRCMesh/MRImage.h>`.
17typedef struct MR_expected_void_std_string MR_expected_void_std_string; // Defined in `#include <MRCMisc/expected_void_std_string.h>`.
18typedef struct MR_std_function_MR_Pdf_CellCustomParams_from_int_int_const_std_string_ref MR_std_function_MR_Pdf_CellCustomParams_from_int_int_const_std_string_ref; // Defined in `#include <MRCMisc/std_function_MR_Pdf_CellCustomParams_from_int_int_const_std_string_ref.h>`.
19typedef struct MR_std_function_void_from_MR_Pdf_ref MR_std_function_void_from_MR_Pdf_ref; // Defined in `#include <MRCMisc/std_function_void_from_MR_Pdf_ref.h>`.
20typedef struct MR_std_optional_MR_Color MR_std_optional_MR_Color; // Defined in `#include <MRCMisc/std_optional_MR_Color.h>`.
21typedef struct MR_std_optional_std_string MR_std_optional_std_string; // Defined in `#include <MRCMisc/std_optional_std_string.h>`.
22typedef struct MR_std_string MR_std_string; // Defined in `#include <MRCMisc/std_string.h>`.
23typedef struct MR_std_variant_MR_PdfBuildinFont_std_filesystem_path MR_std_variant_MR_PdfBuildinFont_std_filesystem_path; // Defined in `#include <MRCMisc/std_variant_MR_PdfBuildinFont_std_filesystem_path.h>`.
24typedef struct MR_std_variant_int_float_bool_std_string_MR_Pdf_Cell_Empty MR_std_variant_int_float_bool_std_string_MR_Pdf_Cell_Empty; // Defined in `#include <MRCMisc/std_variant_int_float_bool_std_string_MR_Pdf_Cell_Empty.h>`.
25typedef struct MR_std_vector_MR_Pdf_Cell MR_std_vector_MR_Pdf_Cell; // Defined in `#include <MRCMisc/std_vector_MR_Pdf_Cell.h>`.
26typedef struct MR_std_vector_MR_Pdf_PaletteRowStats MR_std_vector_MR_Pdf_PaletteRowStats; // Defined in `#include <MRCMisc/std_vector_MR_Pdf_PaletteRowStats.h>`.
27typedef struct MR_std_vector_float MR_std_vector_float; // Defined in `#include <MRCMisc/std_vector_float.h>`.
28typedef struct MR_std_vector_std_pair_std_string_float MR_std_vector_std_pair_std_string_float; // Defined in `#include <MRCMisc/std_vector_std_pair_std_string_float.h>`.
29typedef struct MR_std_vector_std_string MR_std_vector_std_string; // Defined in `#include <MRCMisc/std_vector_std_string.h>`.
30
31
52
58
63typedef struct MR_Pdf MR_Pdf;
64
71
72// parameters to drawing text
75
78
82
91
98
99// Table part
100// class to convert values to string with set format
103
106
109
112
117
121
126
131
135
140
148
155
163
168
172
177
185
192
200
205
209
214
218
223
227
230
233
237
240
243
248
255
260
262MRC_API const MR_Pdf *MR_Pdf_OffsetPtr(const MR_Pdf *ptr, ptrdiff_t i);
263
266
270
272MRC_API void MR_Pdf_Destroy(const MR_Pdf *_this);
273
276
281
286
299MRC_API void MR_Pdf_addText_bool(MR_Pdf *_this, const MR_std_string *text, const bool *isTitle);
300
306
312MRC_API float MR_Pdf_getTextWidth(MR_Pdf *_this, const MR_std_string *text, const MR_Pdf_TextParams *params);
313
324
329
339MRC_API void MR_Pdf_addImageFromFile(MR_Pdf *_this, const char *imagePath, const char *imagePath_end, const MR_Pdf_ImageParams *params);
340
345MRC_API void MR_Pdf_addImage(MR_Pdf *_this, const MR_Image *image, const MR_Pdf_ImageParams *params);
346
351
356
361MRC_API void MR_Pdf_saveToFile(MR_Pdf *_this, const char *documentPath, const char *documentPath_end);
362
365MRC_API void MR_Pdf_setCursorPosX(MR_Pdf *_this, float posX);
366
369MRC_API void MR_Pdf_setCursorPosY(MR_Pdf *_this, float posY);
370
374
378
382
386
387// set up new table (clear table customization, reset parameters to default values)
390MRC_API void MR_Pdf_newTable(MR_Pdf *_this, int columnCount);
391
392// set table column widths
398
399// add in pdf table row with titles
405
406// set format for conversion values to string for each column
412
413// add in pdf table row with values
419
420// parameters to customization table cell
421// return text width (for table font parameters)
426
427// add rule to customize table cells
431
432// draw text in specific rect on page
433// text will be cropped by rect
439MRC_API void MR_Pdf_drawTextInRect(MR_Pdf *_this, const MR_std_string *text, const MR_Box2f *rect, const MR_Pdf_TextParams *params);
440
446
451
455
460
465
469
474
479
483
488
493
497
502
507
511
516
520
525
529
532
535
539
542
545
550
555
559
564
569
574MRC_API void MR_Pdf_PaletteRowStats_Set_rangeMin(MR_Pdf_PaletteRowStats *_this, const char *value, const char *value_end);
575
580
585
590MRC_API void MR_Pdf_PaletteRowStats_Set_rangeMax(MR_Pdf_PaletteRowStats *_this, const char *value, const char *value_end);
591
596
601
606MRC_API void MR_Pdf_PaletteRowStats_Set_percent(MR_Pdf_PaletteRowStats *_this, const char *value, const char *value_end);
607
612
616
621
630MRC_API MR_Pdf_PaletteRowStats *MR_Pdf_PaletteRowStats_ConstructFrom(MR_Color color, const char *rangeMin, const char *rangeMin_end, const char *rangeMax, const char *rangeMax_end, const char *percent, const char *percent_end);
631
634
637
641
644
647
652
660
667
675
681
687MRC_API void MR_Pdf_ImageParams_Set_caption(MR_Pdf_ImageParams *_this, const char *value, const char *value_end);
688
694
699
703
708
713
717
722
727
731
736
740
745
751
754
757
761
764
767
772
777
781
786
790
795
797MRC_API const MR_Pdf_Cell *MR_Pdf_Cell_OffsetPtr(const MR_Pdf_Cell *ptr, ptrdiff_t i);
798
801
805
808
811
816
817// get strang from contained value
818// \param fmtStr format string like fmt::format
825
829
834
837
840
845
848
851
857
862
867
872
877
882
887
892
897
902
907
913MRC_API void MR_Pdf_CellCustomParams_Set_text(MR_Pdf_CellCustomParams *_this, const char *value, const char *value_end);
914
919
923
928
937MRC_API MR_Pdf_CellCustomParams *MR_Pdf_CellCustomParams_ConstructFrom(const MR_Color *colorText, const MR_Color *colorCellBg, const MR_Color *colorCellBorder, const char *text, const char *text_end);
938
941
944
948
951
954
959
964
968
973
978
982
987
992
996
1001
1006
1010
1015
1019
1024
1028
1031
1034
1038
1041
1044
1049
1050#ifdef __cplusplus
1051} // extern "C"
1052#endif
struct MR_expected_void_std_string MR_expected_void_std_string
Definition MRCtm.h:19
struct MR_std_string MR_std_string
Definition MRE57.h:22
struct MR_Image MR_Image
Definition MRJpeg.h:10
MRC_API void MR_PdfParameters_Set_defaultFontBold(MR_PdfParameters *_this, MR_PassBy value_pass_by, MR_std_variant_MR_PdfBuildinFont_std_filesystem_path *value)
MRC_API void MR_Pdf_Cell_Set_data(MR_Pdf_Cell *_this, MR_PassBy value_pass_by, MR_std_variant_int_float_bool_std_string_MR_Pdf_Cell_Empty *value)
MRC_API MR_std_optional_std_string * MR_Pdf_CellCustomParams_GetMutable_text(MR_Pdf_CellCustomParams *_this)
MRC_API const MR_std_optional_MR_Color * MR_Pdf_CellCustomParams_Get_colorCellBg(const MR_Pdf_CellCustomParams *_this)
MRC_API void MR_Pdf_Cell_Empty_Destroy(const MR_Pdf_Cell_Empty *_this)
Destroys a heap-allocated instance of MR_Pdf_Cell_Empty. Does nothing if the pointer is null.
MRC_API void MR_Pdf_TextParams_Set_colorText(MR_Pdf_TextParams *_this, MR_Color value)
MRC_API MR_expected_void_std_string * MR_Pdf_setTableColumnWidths(MR_Pdf *_this, const MR_std_vector_float *widths)
MRC_API void MR_Pdf_TextParams_Set_underline(MR_Pdf_TextParams *_this, bool value)
MRC_API MR_Pdf_CellCustomParams * MR_Pdf_CellCustomParams_AssignFromAnother(MR_Pdf_CellCustomParams *_this, MR_PassBy _other_pass_by, MR_Pdf_CellCustomParams *_other)
MRC_API MR_std_variant_MR_PdfBuildinFont_std_filesystem_path * MR_PdfParameters_GetMutable_defaultFontBold(MR_PdfParameters *_this)
MRC_API MR_Color * MR_Pdf_PaletteRowStats_GetMutable_color(MR_Pdf_PaletteRowStats *_this)
MRC_API void MR_Pdf_Cell_DestroyArray(const MR_Pdf_Cell *_this)
Destroys a heap-allocated array of MR_Pdf_Cell. Does nothing if the pointer is null.
MRC_API const MR_Box2f * MR_Pdf_TextCellParams_Get_rect(const MR_Pdf_TextCellParams *_this)
MRC_API float * MR_PdfParameters_GetMutable_textSize(MR_PdfParameters *_this)
struct MR_Pdf MR_Pdf
Generated from class MR::Pdf.
Definition MRPdf.h:63
MRC_API const MR_std_variant_MR_PdfBuildinFont_std_filesystem_path * MR_PdfParameters_Get_defaultFontBold(const MR_PdfParameters *_this)
MRC_API void MR_Pdf_TextParams_Set_fontSize(MR_Pdf_TextParams *_this, float value)
MRC_API void MR_Pdf_PaletteRowStats_Set_rangeMin(MR_Pdf_PaletteRowStats *_this, const char *value, const char *value_end)
MRC_API void MR_Pdf_TextCellParams_Set_colorBorder(MR_Pdf_TextCellParams *_this, MR_Color value)
MRC_API MR_Pdf_ImageParams_AlignmentVertical * MR_Pdf_ImageParams_GetMutable_alignmentVertical(MR_Pdf_ImageParams *_this)
MRC_API MR_PdfParameters * MR_PdfParameters_DefaultConstruct(void)
MRC_API const MR_Pdf_TextCellParams * MR_Pdf_TextCellParams_OffsetPtr(const MR_Pdf_TextCellParams *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API MR_Pdf * MR_Pdf_DefaultConstructArray(size_t num_elems)
struct MR_Pdf_CellCustomParams MR_Pdf_CellCustomParams
Generated from class MR::Pdf::CellCustomParams.
Definition MRPdf.h:108
MRC_API MR_Pdf_TextParams * MR_Pdf_TextParams_AssignFromAnother(MR_Pdf_TextParams *_this, MR_PassBy _other_pass_by, MR_Pdf_TextParams *_other)
MRC_API MR_PdfParameters * MR_PdfParameters_ConstructFromAnother(MR_PassBy _other_pass_by, MR_PdfParameters *_other)
MRC_API MR_Pdf_CellCustomParams * MR_Pdf_CellCustomParams_DefaultConstruct(void)
MRC_API MR_Pdf_Cell * MR_Pdf_Cell_OffsetMutablePtr(MR_Pdf_Cell *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API MR_Pdf_AlignmentHorizontal * MR_Pdf_ImageParams_GetMutable_alignmentHorizontal(MR_Pdf_ImageParams *_this)
MRC_API const MR_std_optional_std_string * MR_Pdf_CellCustomParams_Get_text(const MR_Pdf_CellCustomParams *_this)
MRC_API const MR_Pdf_TextParams * MR_Pdf_TextParams_OffsetPtr(const MR_Pdf_TextParams *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API MR_Pdf_ImageParams * MR_Pdf_ImageParams_AssignFromAnother(MR_Pdf_ImageParams *_this, MR_PassBy _other_pass_by, MR_Pdf_ImageParams *_other)
MRC_API MR_Pdf_TextParams * MR_Pdf_TextCellParams_GetMutable_textParams(MR_Pdf_TextCellParams *_this)
MRC_API MR_Pdf_TextCellParams * MR_Pdf_TextCellParams_DefaultConstructArray(size_t num_elems)
MRC_API bool * MR_Pdf_TextParams_GetMutable_underline(MR_Pdf_TextParams *_this)
MRC_API MR_Pdf_TextCellParams * MR_Pdf_TextCellParams_OffsetMutablePtr(MR_Pdf_TextCellParams *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API MR_std_optional_MR_Color * MR_Pdf_CellCustomParams_GetMutable_colorCellBg(MR_Pdf_CellCustomParams *_this)
MRC_API MR_Pdf_TextCellParams * MR_Pdf_TextCellParams_ConstructFrom(MR_PassBy textParams_pass_by, MR_Pdf_TextParams *textParams, MR_Box2f rect, MR_Color colorBorder, MR_Color colorBackground)
MRC_API MR_Pdf_TextParams * MR_Pdf_TextParams_ConstructFromAnother(MR_PassBy _other_pass_by, MR_Pdf_TextParams *_other)
MRC_API void MR_PdfParameters_Set_defaultFont(MR_PdfParameters *_this, MR_PassBy value_pass_by, MR_std_variant_MR_PdfBuildinFont_std_filesystem_path *value)
Font name.
MRC_API void MR_Pdf_TextParams_Destroy(const MR_Pdf_TextParams *_this)
Destroys a heap-allocated instance of MR_Pdf_TextParams. Does nothing if the pointer is null.
MRC_API const MR_Vector2f * MR_Pdf_ImageParams_Get_size(const MR_Pdf_ImageParams *_this)
MRC_API MR_PdfParameters * MR_PdfParameters_ConstructFrom(float titleSize, float textSize, MR_PassBy defaultFont_pass_by, MR_std_variant_MR_PdfBuildinFont_std_filesystem_path *defaultFont, MR_PassBy defaultFontBold_pass_by, MR_std_variant_MR_PdfBuildinFont_std_filesystem_path *defaultFontBold, MR_PassBy tableFont_pass_by, MR_std_variant_MR_PdfBuildinFont_std_filesystem_path *tableFont, MR_PassBy tableFontBold_pass_by, MR_std_variant_MR_PdfBuildinFont_std_filesystem_path *tableFontBold)
MR_Pdf_ImageParams_AlignmentVertical
Definition MRPdf.h:93
@ MR_Pdf_ImageParams_AlignmentVertical_Bottom
Definition MRPdf.h:96
@ MR_Pdf_ImageParams_AlignmentVertical_Top
Definition MRPdf.h:94
@ MR_Pdf_ImageParams_AlignmentVertical_Center
Definition MRPdf.h:95
MRC_API const MR_std_string * MR_Pdf_ImageParams_Get_caption(const MR_Pdf_ImageParams *_this)
MRC_API void MR_Pdf_setCursorPosX(MR_Pdf *_this, float posX)
MRC_API MR_Pdf_Cell * MR_Pdf_Cell_DefaultConstructArray(size_t num_elems)
MRC_API void MR_Pdf_TextParams_Set_alignment(MR_Pdf_TextParams *_this, MR_Pdf_AlignmentHorizontal value)
MRC_API MR_Pdf_Cell_Empty * MR_Pdf_Cell_Empty_DefaultConstructArray(size_t num_elems)
MRC_API void MR_PdfParameters_Destroy(const MR_PdfParameters *_this)
Destroys a heap-allocated instance of MR_PdfParameters. Does nothing if the pointer is null.
MRC_API void MR_Pdf_ImageParams_Destroy(const MR_Pdf_ImageParams *_this)
Destroys a heap-allocated instance of MR_Pdf_ImageParams. Does nothing if the pointer is null.
struct MR_std_variant_MR_PdfBuildinFont_std_filesystem_path MR_std_variant_MR_PdfBuildinFont_std_filesystem_path
Definition MRPdf.h:23
MRC_API MR_Pdf_ImageParams * MR_Pdf_ImageParams_OffsetMutablePtr(MR_Pdf_ImageParams *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API void MR_Pdf_TextParams_DestroyArray(const MR_Pdf_TextParams *_this)
Destroys a heap-allocated array of MR_Pdf_TextParams. Does nothing if the pointer is null.
MRC_API void MR_Pdf_saveToFile(MR_Pdf *_this, const char *documentPath, const char *documentPath_end)
MRC_API MR_Color * MR_Pdf_TextCellParams_GetMutable_colorBorder(MR_Pdf_TextCellParams *_this)
MRC_API const MR_Pdf_Cell_Empty * MR_Pdf_Cell_Empty_OffsetPtr(const MR_Pdf_Cell_Empty *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
struct MR_std_vector_MR_Pdf_PaletteRowStats MR_std_vector_MR_Pdf_PaletteRowStats
Definition MRPdf.h:26
MRC_API void MR_Pdf_addImageFromFile(MR_Pdf *_this, const char *imagePath, const char *imagePath_end, const MR_Pdf_ImageParams *params)
Add image from file in current cursor position. If image bigger than page size, autoscale image to pa...
MRC_API MR_Pdf * MR_Pdf_OffsetMutablePtr(MR_Pdf *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API MR_Pdf_ImageParams * MR_Pdf_ImageParams_ConstructFrom(MR_Vector2f size, const char *caption, const char *caption_end, MR_Pdf_ImageParams_UniformScale uniformScale, MR_Pdf_ImageParams_AlignmentVertical alignmentVertical, MR_Pdf_AlignmentHorizontal alignmentHorizontal)
MRC_API MR_Pdf_TextParams * MR_Pdf_TextParams_OffsetMutablePtr(MR_Pdf_TextParams *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API MR_Pdf_CellCustomParams * MR_Pdf_CellCustomParams_OffsetMutablePtr(MR_Pdf_CellCustomParams *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API void MR_Pdf_CellCustomParams_Set_text(MR_Pdf_CellCustomParams *_this, const char *value, const char *value_end)
MRC_API const MR_std_optional_MR_Color * MR_Pdf_CellCustomParams_Get_colorText(const MR_Pdf_CellCustomParams *_this)
MRC_API const MR_std_variant_MR_PdfBuildinFont_std_filesystem_path * MR_Pdf_TextParams_Get_fontName(const MR_Pdf_TextParams *_this)
MRC_API MR_expected_void_std_string * MR_Pdf_setColumnValuesFormat(MR_Pdf *_this, const MR_std_vector_std_string *formats)
struct MR_Pdf_Cell_Empty MR_Pdf_Cell_Empty
Generated from class MR::Pdf::Cell::Empty.
Definition MRPdf.h:105
MRC_API void MR_PdfParameters_Set_tableFont(MR_PdfParameters *_this, MR_PassBy value_pass_by, MR_std_variant_MR_PdfBuildinFont_std_filesystem_path *value)
MRC_API MR_Pdf_Cell * MR_Pdf_Cell_AssignFromAnother(MR_Pdf_Cell *_this, MR_PassBy _other_pass_by, MR_Pdf_Cell *_other)
MRC_API float * MR_Pdf_TextParams_GetMutable_fontSize(MR_Pdf_TextParams *_this)
MRC_API void MR_Pdf_TextParams_Set_fontName(MR_Pdf_TextParams *_this, MR_PassBy value_pass_by, MR_std_variant_MR_PdfBuildinFont_std_filesystem_path *value)
struct MR_std_function_MR_Pdf_CellCustomParams_from_int_int_const_std_string_ref MR_std_function_MR_Pdf_CellCustomParams_from_int_int_const_std_string_ref
Definition MRPdf.h:18
MRC_API void MR_Pdf_addText_bool(MR_Pdf *_this, const MR_std_string *text, const bool *isTitle)
MRC_API void MR_Pdf_PaletteRowStats_DestroyArray(const MR_Pdf_PaletteRowStats *_this)
Destroys a heap-allocated array of MR_Pdf_PaletteRowStats. Does nothing if the pointer is null.
MRC_API void MR_Pdf_DestroyArray(const MR_Pdf *_this)
Destroys a heap-allocated array of MR_Pdf. Does nothing if the pointer is null.
MR_Pdf_ImageParams_UniformScale
set height to keep same scale as width scale
Definition MRPdf.h:85
@ MR_Pdf_ImageParams_UniformScale_FromHeight
Definition MRPdf.h:88
@ MR_Pdf_ImageParams_UniformScale_Auto
Definition MRPdf.h:89
@ MR_Pdf_ImageParams_UniformScale_None
Definition MRPdf.h:86
@ MR_Pdf_ImageParams_UniformScale_FromWidth
Definition MRPdf.h:87
MRC_API MR_Pdf_AlignmentHorizontal * MR_Pdf_TextParams_GetMutable_alignment(MR_Pdf_TextParams *_this)
MRC_API void MR_Pdf_setNewPageAction(MR_Pdf *_this, MR_PassBy action_pass_by, MR_std_function_void_from_MR_Pdf_ref *action)
struct MR_std_optional_std_string MR_std_optional_std_string
Definition MRPdf.h:21
MRC_API MR_std_string * MR_Pdf_PaletteRowStats_GetMutable_percent(MR_Pdf_PaletteRowStats *_this)
MRC_API MR_PdfParameters * MR_PdfParameters_AssignFromAnother(MR_PdfParameters *_this, MR_PassBy _other_pass_by, MR_PdfParameters *_other)
MRC_API const MR_std_variant_MR_PdfBuildinFont_std_filesystem_path * MR_PdfParameters_Get_defaultFont(const MR_PdfParameters *_this)
Font name.
MRC_API const float * MR_PdfParameters_Get_titleSize(const MR_PdfParameters *_this)
MRC_API const MR_std_string * MR_Pdf_PaletteRowStats_Get_percent(const MR_Pdf_PaletteRowStats *_this)
MRC_API MR_std_variant_MR_PdfBuildinFont_std_filesystem_path * MR_PdfParameters_GetMutable_tableFont(MR_PdfParameters *_this)
MRC_API void MR_Pdf_CellCustomParams_Set_colorText(MR_Pdf_CellCustomParams *_this, const MR_Color *value)
struct MR_Pdf_TextCellParams MR_Pdf_TextCellParams
Generated from class MR::Pdf::TextCellParams.
Definition MRPdf.h:111
MRC_API void MR_Pdf_PaletteRowStats_Set_rangeMax(MR_Pdf_PaletteRowStats *_this, const char *value, const char *value_end)
MRC_API MR_Pdf_TextParams * MR_Pdf_TextParams_ConstructFrom(MR_PassBy fontName_pass_by, MR_std_variant_MR_PdfBuildinFont_std_filesystem_path *fontName, float fontSize, MR_Pdf_AlignmentHorizontal alignment, MR_Color colorText, bool underline)
MRC_API MR_std_optional_MR_Color * MR_Pdf_CellCustomParams_GetMutable_colorText(MR_Pdf_CellCustomParams *_this)
MRC_API MR_Box2f MR_Pdf_getPageWorkArea(const MR_Pdf *_this)
MRC_API float * MR_PdfParameters_GetMutable_titleSize(MR_PdfParameters *_this)
MRC_API void MR_Pdf_CellCustomParams_DestroyArray(const MR_Pdf_CellCustomParams *_this)
Destroys a heap-allocated array of MR_Pdf_CellCustomParams. Does nothing if the pointer is null.
MRC_API void MR_Pdf_ImageParams_DestroyArray(const MR_Pdf_ImageParams *_this)
Destroys a heap-allocated array of MR_Pdf_ImageParams. Does nothing if the pointer is null.
MRC_API const MR_Pdf_ImageParams_UniformScale * MR_Pdf_ImageParams_Get_uniformScale(const MR_Pdf_ImageParams *_this)
MRC_API MR_Pdf_TextParams * MR_Pdf_TextParams_DefaultConstructArray(size_t num_elems)
MRC_API MR_PdfParameters * MR_PdfParameters_DefaultConstructArray(size_t num_elems)
MRC_API void MR_Pdf_addText_MR_Pdf_TextParams(MR_Pdf *_this, const MR_std_string *text, const MR_Pdf_TextParams *params)
MR_Pdf_AlignmentHorizontal
Definition MRPdf.h:66
@ MR_Pdf_AlignmentHorizontal_Center
Definition MRPdf.h:68
@ MR_Pdf_AlignmentHorizontal_Left
Definition MRPdf.h:67
@ MR_Pdf_AlignmentHorizontal_Right
Definition MRPdf.h:69
MRC_API MR_Pdf_ImageParams_UniformScale * MR_Pdf_ImageParams_GetMutable_uniformScale(MR_Pdf_ImageParams *_this)
MRC_API void MR_Pdf_ImageParams_Set_alignmentVertical(MR_Pdf_ImageParams *_this, MR_Pdf_ImageParams_AlignmentVertical value)
MRC_API MR_Pdf_Cell * MR_Pdf_Cell_ConstructFromAnother(MR_PassBy _other_pass_by, MR_Pdf_Cell *_other)
MRC_API MR_Box2f * MR_Pdf_TextCellParams_GetMutable_rect(MR_Pdf_TextCellParams *_this)
MRC_API void MR_Pdf_setTableCustomRule(MR_Pdf *_this, MR_PassBy rule_pass_by, MR_std_function_MR_Pdf_CellCustomParams_from_int_int_const_std_string_ref *rule)
MRC_API MR_Pdf_TextParams * MR_Pdf_TextParams_DefaultConstruct(void)
MRC_API const MR_Color * MR_Pdf_TextCellParams_Get_colorBackground(const MR_Pdf_TextCellParams *_this)
MRC_API void MR_Pdf_ImageParams_Set_alignmentHorizontal(MR_Pdf_ImageParams *_this, MR_Pdf_AlignmentHorizontal value)
MRC_API const MR_Pdf_CellCustomParams * MR_Pdf_CellCustomParams_OffsetPtr(const MR_Pdf_CellCustomParams *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API MR_Pdf_TextCellParams * MR_Pdf_TextCellParams_ConstructFromAnother(MR_PassBy _other_pass_by, MR_Pdf_TextCellParams *_other)
MRC_API MR_Vector2f MR_Pdf_getPageSize(const MR_Pdf *_this)
MRC_API const MR_std_variant_MR_PdfBuildinFont_std_filesystem_path * MR_PdfParameters_Get_tableFont(const MR_PdfParameters *_this)
MRC_API MR_std_optional_MR_Color * MR_Pdf_CellCustomParams_GetMutable_colorCellBorder(MR_Pdf_CellCustomParams *_this)
MRC_API MR_Pdf_TextCellParams * MR_Pdf_TextCellParams_AssignFromAnother(MR_Pdf_TextCellParams *_this, MR_PassBy _other_pass_by, MR_Pdf_TextCellParams *_other)
MRC_API void MR_Pdf_TextCellParams_Destroy(const MR_Pdf_TextCellParams *_this)
Destroys a heap-allocated instance of MR_Pdf_TextCellParams. Does nothing if the pointer is null.
MRC_API MR_Pdf_ImageParams * MR_Pdf_ImageParams_ConstructFromAnother(MR_PassBy _other_pass_by, MR_Pdf_ImageParams *_other)
MRC_API MR_std_string * MR_Pdf_PaletteRowStats_GetMutable_rangeMax(MR_Pdf_PaletteRowStats *_this)
MRC_API const MR_Color * MR_Pdf_PaletteRowStats_Get_color(const MR_Pdf_PaletteRowStats *_this)
MRC_API void MR_Pdf_CellCustomParams_Set_colorCellBorder(MR_Pdf_CellCustomParams *_this, const MR_Color *value)
MRC_API void MR_PdfParameters_Set_textSize(MR_PdfParameters *_this, float value)
MRC_API const MR_Pdf_ImageParams * MR_Pdf_ImageParams_OffsetPtr(const MR_Pdf_ImageParams *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API void MR_Pdf_PaletteRowStats_Destroy(const MR_Pdf_PaletteRowStats *_this)
Destroys a heap-allocated instance of MR_Pdf_PaletteRowStats. Does nothing if the pointer is null.
MRC_API void MR_Pdf_drawTextCell(MR_Pdf *_this, const MR_std_string *text, const MR_Pdf_TextCellParams *params)
MRC_API void MR_Pdf_CellCustomParams_Destroy(const MR_Pdf_CellCustomParams *_this)
Destroys a heap-allocated instance of MR_Pdf_CellCustomParams. Does nothing if the pointer is null.
MRC_API bool MR_Pdf_ConvertTo_bool(const MR_Pdf *_this)
MRC_API MR_Pdf_Cell_Empty * MR_Pdf_Cell_Empty_OffsetMutablePtr(MR_Pdf_Cell_Empty *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API const MR_Color * MR_Pdf_TextCellParams_Get_colorBorder(const MR_Pdf_TextCellParams *_this)
MRC_API MR_Pdf_PaletteRowStats * MR_Pdf_PaletteRowStats_DefaultConstructArray(size_t num_elems)
MRC_API MR_std_variant_MR_PdfBuildinFont_std_filesystem_path * MR_PdfParameters_GetMutable_defaultFont(MR_PdfParameters *_this)
Font name.
MRC_API void MR_Pdf_PaletteRowStats_Set_percent(MR_Pdf_PaletteRowStats *_this, const char *value, const char *value_end)
struct MR_PdfParameters MR_PdfParameters
Parameters of document style.
Definition MRPdf.h:57
MRC_API void MR_PdfParameters_Set_tableFontBold(MR_PdfParameters *_this, MR_PassBy value_pass_by, MR_std_variant_MR_PdfBuildinFont_std_filesystem_path *value)
struct MR_std_variant_int_float_bool_std_string_MR_Pdf_Cell_Empty MR_std_variant_int_float_bool_std_string_MR_Pdf_Cell_Empty
Definition MRPdf.h:24
MRC_API MR_std_variant_MR_PdfBuildinFont_std_filesystem_path * MR_Pdf_TextParams_GetMutable_fontName(MR_Pdf_TextParams *_this)
MRC_API MR_Pdf_PaletteRowStats * MR_Pdf_PaletteRowStats_ConstructFrom(MR_Color color, const char *rangeMin, const char *rangeMin_end, const char *rangeMax, const char *rangeMax_end, const char *percent, const char *percent_end)
MRC_API float MR_Pdf_getTextWidth(MR_Pdf *_this, const MR_std_string *text, const MR_Pdf_TextParams *params)
MRC_API MR_Pdf_Cell_Empty * MR_Pdf_Cell_Empty_ConstructFromAnother(const MR_Pdf_Cell_Empty *_other)
MRC_API const MR_std_string * MR_Pdf_PaletteRowStats_Get_rangeMin(const MR_Pdf_PaletteRowStats *_this)
MRC_API const MR_PdfParameters * MR_PdfParameters_OffsetPtr(const MR_PdfParameters *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API void MR_Pdf_CellCustomParams_Set_colorCellBg(MR_Pdf_CellCustomParams *_this, const MR_Color *value)
MRC_API const MR_Color * MR_Pdf_TextParams_Get_colorText(const MR_Pdf_TextParams *_this)
MRC_API void MR_Pdf_ImageParams_Set_uniformScale(MR_Pdf_ImageParams *_this, MR_Pdf_ImageParams_UniformScale value)
MRC_API MR_Pdf_PaletteRowStats * MR_Pdf_PaletteRowStats_AssignFromAnother(MR_Pdf_PaletteRowStats *_this, MR_PassBy _other_pass_by, MR_Pdf_PaletteRowStats *_other)
MRC_API MR_Pdf_CellCustomParams * MR_Pdf_CellCustomParams_ConstructFromAnother(MR_PassBy _other_pass_by, MR_Pdf_CellCustomParams *_other)
MRC_API MR_Pdf_Cell * MR_Pdf_Cell_DefaultConstruct(void)
MRC_API void MR_Pdf_TextCellParams_Set_rect(MR_Pdf_TextCellParams *_this, MR_Box2f value)
MRC_API MR_Pdf_PaletteRowStats * MR_Pdf_PaletteRowStats_OffsetMutablePtr(MR_Pdf_PaletteRowStats *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API const MR_std_variant_MR_PdfBuildinFont_std_filesystem_path * MR_PdfParameters_Get_tableFontBold(const MR_PdfParameters *_this)
MRC_API const float * MR_Pdf_TextParams_Get_fontSize(const MR_Pdf_TextParams *_this)
MRC_API void MR_Pdf_addImage(MR_Pdf *_this, const MR_Image *image, const MR_Pdf_ImageParams *params)
MRC_API void MR_Pdf_Cell_Empty_DestroyArray(const MR_Pdf_Cell_Empty *_this)
Destroys a heap-allocated array of MR_Pdf_Cell_Empty. Does nothing if the pointer is null.
MR_PdfBuildinFont
Definition MRPdf.h:35
@ MR_PdfBuildinFont_Helvetica
Definition MRPdf.h:40
@ MR_PdfBuildinFont_HelveticaBoldOblique
Definition MRPdf.h:43
@ MR_PdfBuildinFont_TimesBoldItalic
Definition MRPdf.h:47
@ MR_PdfBuildinFont_Count
Definition MRPdf.h:50
@ MR_PdfBuildinFont_Symbol
Definition MRPdf.h:48
@ MR_PdfBuildinFont_CourierOblique
Definition MRPdf.h:38
@ MR_PdfBuildinFont_TimesBold
Definition MRPdf.h:45
@ MR_PdfBuildinFont_Courier
Definition MRPdf.h:36
@ MR_PdfBuildinFont_CourierBoldOblique
Definition MRPdf.h:39
@ MR_PdfBuildinFont_HelveticaBold
Definition MRPdf.h:41
@ MR_PdfBuildinFont_HelveticaOblique
Definition MRPdf.h:42
@ MR_PdfBuildinFont_ZapfDingbats
Definition MRPdf.h:49
@ MR_PdfBuildinFont_TimesRoman
Definition MRPdf.h:44
@ MR_PdfBuildinFont_CourierBold
Definition MRPdf.h:37
@ MR_PdfBuildinFont_TimesItalic
Definition MRPdf.h:46
MRC_API const MR_Pdf_AlignmentHorizontal * MR_Pdf_TextParams_Get_alignment(const MR_Pdf_TextParams *_this)
MRC_API MR_Pdf_ImageParams * MR_Pdf_ImageParams_DefaultConstructArray(size_t num_elems)
MRC_API MR_Color * MR_Pdf_TextCellParams_GetMutable_colorBackground(MR_Pdf_TextCellParams *_this)
MRC_API const MR_Pdf_PaletteRowStats * MR_Pdf_PaletteRowStats_OffsetPtr(const MR_Pdf_PaletteRowStats *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API void MR_Pdf_newTable(MR_Pdf *_this, int columnCount)
MRC_API void MR_Pdf_PaletteRowStats_Set_color(MR_Pdf_PaletteRowStats *_this, MR_Color value)
struct MR_std_vector_std_string MR_std_vector_std_string
Definition MRPdf.h:29
MRC_API MR_Pdf_ImageParams * MR_Pdf_ImageParams_DefaultConstruct(void)
MRC_API float MR_Pdf_getCursorPosX(const MR_Pdf *_this)
MRC_API const MR_Pdf_TextParams * MR_Pdf_TextCellParams_Get_textParams(const MR_Pdf_TextCellParams *_this)
MRC_API void MR_Pdf_ImageParams_Set_size(MR_Pdf_ImageParams *_this, MR_Vector2f value)
struct MR_std_vector_float MR_std_vector_float
Definition MRPdf.h:27
MRC_API const MR_std_variant_int_float_bool_std_string_MR_Pdf_Cell_Empty * MR_Pdf_Cell_Get_data(const MR_Pdf_Cell *_this)
struct MR_Pdf_TextParams MR_Pdf_TextParams
Generated from class MR::Pdf::TextParams.
Definition MRPdf.h:74
MRC_API MR_Pdf * MR_Pdf_Construct(const MR_PdfParameters *params)
MRC_API float MR_Pdf_getTableTextWidth(MR_Pdf *_this, const MR_std_string *text)
MRC_API MR_Pdf_TextCellParams * MR_Pdf_TextCellParams_DefaultConstruct(void)
MRC_API MR_Pdf_PaletteRowStats * MR_Pdf_PaletteRowStats_DefaultConstruct(void)
MRC_API MR_Pdf_Cell_Empty * MR_Pdf_Cell_Empty_AssignFromAnother(MR_Pdf_Cell_Empty *_this, const MR_Pdf_Cell_Empty *_other)
struct MR_Pdf_Cell MR_Pdf_Cell
Generated from class MR::Pdf::Cell.
Definition MRPdf.h:102
MRC_API MR_Pdf_Cell_Empty * MR_Pdf_Cell_Empty_DefaultConstruct(void)
MRC_API MR_Pdf_CellCustomParams * MR_Pdf_CellCustomParams_DefaultConstructArray(size_t num_elems)
MRC_API MR_expected_void_std_string * MR_Pdf_addTableTitles(MR_Pdf *_this, const MR_std_vector_std_string *titles)
MRC_API void MR_Pdf_TextCellParams_Set_colorBackground(MR_Pdf_TextCellParams *_this, MR_Color value)
MRC_API MR_std_string * MR_Pdf_Cell_toString(const MR_Pdf_Cell *_this, const MR_std_string *fmtStr)
MRC_API MR_Pdf_CellCustomParams * MR_Pdf_CellCustomParams_ConstructFrom(const MR_Color *colorText, const MR_Color *colorCellBg, const MR_Color *colorCellBorder, const char *text, const char *text_end)
MRC_API float MR_Pdf_getCursorPosY(const MR_Pdf *_this)
MRC_API void MR_Pdf_ImageParams_Set_caption(MR_Pdf_ImageParams *_this, const char *value, const char *value_end)
MRC_API const bool * MR_Pdf_TextParams_Get_underline(const MR_Pdf_TextParams *_this)
MRC_API void MR_Pdf_drawTextInRect(MR_Pdf *_this, const MR_std_string *text, const MR_Box2f *rect, const MR_Pdf_TextParams *params)
MRC_API MR_Pdf_PaletteRowStats * MR_Pdf_PaletteRowStats_ConstructFromAnother(MR_PassBy _other_pass_by, MR_Pdf_PaletteRowStats *_other)
MRC_API const MR_Pdf_Cell * MR_Pdf_Cell_OffsetPtr(const MR_Pdf_Cell *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API const MR_std_string * MR_Pdf_PaletteRowStats_Get_rangeMax(const MR_Pdf_PaletteRowStats *_this)
struct MR_Pdf_ImageParams MR_Pdf_ImageParams
Definition MRPdf.h:81
MRC_API void MR_Pdf_newPage(MR_Pdf *_this)
MRC_API void MR_PdfParameters_Set_titleSize(MR_PdfParameters *_this, float value)
MRC_API MR_std_variant_int_float_bool_std_string_MR_Pdf_Cell_Empty * MR_Pdf_Cell_GetMutable_data(MR_Pdf_Cell *_this)
MRC_API MR_std_string * MR_Pdf_ImageParams_GetMutable_caption(MR_Pdf_ImageParams *_this)
MRC_API void MR_Pdf_addPaletteStatsTable(MR_Pdf *_this, const MR_std_vector_MR_Pdf_PaletteRowStats *paletteStats)
MRC_API const MR_Pdf_ImageParams_AlignmentVertical * MR_Pdf_ImageParams_Get_alignmentVertical(const MR_Pdf_ImageParams *_this)
MRC_API MR_Color * MR_Pdf_TextParams_GetMutable_colorText(MR_Pdf_TextParams *_this)
MRC_API MR_Pdf * MR_Pdf_ConstructFromAnother(MR_PassBy other_pass_by, MR_Pdf *other)
MRC_API void MR_Pdf_Destroy(const MR_Pdf *_this)
Destroys a heap-allocated instance of MR_Pdf. Does nothing if the pointer is null.
MRC_API void MR_Pdf_TextCellParams_Set_textParams(MR_Pdf_TextCellParams *_this, MR_PassBy value_pass_by, MR_Pdf_TextParams *value)
struct MR_std_function_void_from_MR_Pdf_ref MR_std_function_void_from_MR_Pdf_ref
Definition MRPdf.h:19
MRC_API void MR_Pdf_TextCellParams_DestroyArray(const MR_Pdf_TextCellParams *_this)
Destroys a heap-allocated array of MR_Pdf_TextCellParams. Does nothing if the pointer is null.
MRC_API const float * MR_PdfParameters_Get_textSize(const MR_PdfParameters *_this)
struct MR_std_vector_MR_Pdf_Cell MR_std_vector_MR_Pdf_Cell
Definition MRPdf.h:25
MRC_API MR_Pdf * MR_Pdf_AssignFromAnother(MR_Pdf *_this, MR_PassBy other_pass_by, MR_Pdf *other)
struct MR_Pdf_PaletteRowStats MR_Pdf_PaletteRowStats
Generated from class MR::Pdf::PaletteRowStats.
Definition MRPdf.h:77
MRC_API void MR_PdfParameters_DestroyArray(const MR_PdfParameters *_this)
Destroys a heap-allocated array of MR_PdfParameters. Does nothing if the pointer is null.
MRC_API const MR_std_optional_MR_Color * MR_Pdf_CellCustomParams_Get_colorCellBorder(const MR_Pdf_CellCustomParams *_this)
MRC_API MR_PdfParameters * MR_PdfParameters_OffsetMutablePtr(MR_PdfParameters *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
struct MR_std_vector_std_pair_std_string_float MR_std_vector_std_pair_std_string_float
Definition MRPdf.h:28
MRC_API const MR_Pdf_AlignmentHorizontal * MR_Pdf_ImageParams_Get_alignmentHorizontal(const MR_Pdf_ImageParams *_this)
struct MR_std_optional_MR_Color MR_std_optional_MR_Color
Definition MRPdf.h:20
MRC_API void MR_Pdf_addTable(MR_Pdf *_this, const MR_std_vector_std_pair_std_string_float *table)
MRC_API void MR_Pdf_Cell_Destroy(const MR_Pdf_Cell *_this)
Destroys a heap-allocated instance of MR_Pdf_Cell. Does nothing if the pointer is null.
MRC_API void MR_Pdf_setCursorPosY(MR_Pdf *_this, float posY)
MRC_API MR_std_string * MR_Pdf_PaletteRowStats_GetMutable_rangeMin(MR_Pdf_PaletteRowStats *_this)
MRC_API MR_std_variant_MR_PdfBuildinFont_std_filesystem_path * MR_PdfParameters_GetMutable_tableFontBold(MR_PdfParameters *_this)
MRC_API MR_Vector2f * MR_Pdf_ImageParams_GetMutable_size(MR_Pdf_ImageParams *_this)
MRC_API MR_expected_void_std_string * MR_Pdf_addRow(MR_Pdf *_this, const MR_std_vector_MR_Pdf_Cell *cells)
MRC_API const MR_Pdf * MR_Pdf_OffsetPtr(const MR_Pdf *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MR_PassBy
Definition common.h:19
#define MRC_API
Definition exports.h:11
virtual void action(HistoryAction::Type) override
size_t size() const
Definition MRBox.h:76
Generated from class MR::Color.
Definition MRColor.h:18
Definition MRVector2.h:43