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
59
66
67// parameters to drawing text
71
75
84
91
96
100
101// Table part
102// class to convert values to string with set format
106
110
114
120typedef struct MR_Pdf MR_Pdf;
121
126
131
136
141
146
151
159
168
176
181
187
192
200
209
217
222
228
233
237
242
251
255
259
264
267
270
277
285
290
293MRC_API const MR_Pdf *MR_Pdf_OffsetPtr(const MR_Pdf *ptr, ptrdiff_t i);
294
298
303
305MRC_API void MR_Pdf_Destroy(const MR_Pdf *_this);
306
309
314
321
335MRC_API void MR_Pdf_addText_bool(MR_Pdf *_this, const char *text, const char *text_end, const bool *isTitle);
336
342MRC_API void MR_Pdf_addText_MR_Pdf_TextParams(MR_Pdf *_this, const char *text, const char *text_end, const MR_Pdf_TextParams *params);
343
350MRC_API float MR_Pdf_getTextWidth(MR_Pdf *_this, const char *text, const char *text_end, const MR_Pdf_TextParams *params);
351
362
367
377MRC_API void MR_Pdf_addImageFromFile(MR_Pdf *_this, const char *imagePath, const char *imagePath_end, const MR_Pdf_ImageParams *params);
378
383MRC_API void MR_Pdf_addImage(MR_Pdf *_this, const MR_Image *image, const MR_Pdf_ImageParams *params);
384
389
394
399MRC_API void MR_Pdf_saveToFile(MR_Pdf *_this, const char *documentPath, const char *documentPath_end);
400
403MRC_API void MR_Pdf_setCursorPosX(MR_Pdf *_this, float posX);
404
407MRC_API void MR_Pdf_setCursorPosY(MR_Pdf *_this, float posY);
408
412
416
420
424
425// set up new table (clear table customization, reset parameters to default values)
428MRC_API void MR_Pdf_newTable(MR_Pdf *_this, int columnCount);
429
430// set table column widths
436
437// add in pdf table row with titles
443
444// set format for conversion values to string for each column
450
451// add in pdf table row with values
457
458// parameters to customization table cell
459// return text width (for table font parameters)
464MRC_API float MR_Pdf_getTableTextWidth(MR_Pdf *_this, const char *text, const char *text_end);
465
466// add rule to customize table cells
470
471// draw text in specific rect on page
472// text will be cropped by rect
479MRC_API void MR_Pdf_drawTextInRect(MR_Pdf *_this, const char *text, const char *text_end, const MR_Box2f *rect, const MR_Pdf_TextParams *params);
480
486MRC_API void MR_Pdf_drawTextCell(MR_Pdf *_this, const char *text, const char *text_end, const MR_Pdf_TextCellParams *params);
487
488// draw rect (filled with border)
494MRC_API void MR_Pdf_drawRect(MR_Pdf *_this, const MR_Box2f *rect, const MR_Color *fillColor, const MR_Color *strokeColor);
495
500
506
511
516
521
526
531
537
542
547
553
558
563
568
573
577
582
590
594
598
603
606
609
616
621
627
632
637
644MRC_API void MR_Pdf_PaletteRowStats_Set_rangeMin(MR_Pdf_PaletteRowStats *_this, const char *value, const char *value_end);
645
650
655
662MRC_API void MR_Pdf_PaletteRowStats_Set_rangeMax(MR_Pdf_PaletteRowStats *_this, const char *value, const char *value_end);
663
668
673
680MRC_API void MR_Pdf_PaletteRowStats_Set_percent(MR_Pdf_PaletteRowStats *_this, const char *value, const char *value_end);
681
686
690
695
709MRC_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);
710
714
718
723
726
729
736
744
753
761
767
775MRC_API void MR_Pdf_ImageParams_Set_caption(MR_Pdf_ImageParams *_this, const char *value, const char *value_end);
776
782
787
793
798
803
809
814
819
825
830
834
839
851
855
859
864
867
870
877
882
888
893
897
902
905MRC_API const MR_Pdf_Cell *MR_Pdf_Cell_OffsetPtr(const MR_Pdf_Cell *ptr, ptrdiff_t i);
906
910
915
918
921
928
929// get strang from contained value
930// \param fmtStr format string like fmt::format
937MRC_API MR_std_string *MR_Pdf_Cell_toString(const MR_Pdf_Cell *_this, const char *fmtStr, const char *fmtStr_end);
938
942
947
951
955
961
964
967
975
980
987
992
997
1004
1009
1014
1021
1026
1031
1039MRC_API void MR_Pdf_CellCustomParams_Set_text(MR_Pdf_CellCustomParams *_this, const char *value, const char *value_end);
1040
1045
1049
1054
1068MRC_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);
1069
1073
1077
1082
1085
1088
1095
1100
1106
1111
1116
1122
1127
1132
1138
1143
1148
1154
1159
1163
1168
1177
1181
1185
1190
1193
1196
1203
1204#ifdef __cplusplus
1205} // extern "C"
1206#endif
struct MR_expected_void_std_string MR_expected_void_std_string
Definition MRCtm.h:26
struct MR_std_string MR_std_string
Definition MRCtm.h:32
struct MR_std_optional_MR_Color MR_std_optional_MR_Color
Definition MRCtm.h:29
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
Definition MRPdf.h:120
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)
MRC_API void MR_Pdf_drawTextCell(MR_Pdf *_this, const char *text, const char *text_end, const MR_Pdf_TextCellParams *params)
MRC_API MR_Pdf * MR_Pdf_DefaultConstructArray(size_t num_elems)
struct MR_Pdf_CellCustomParams MR_Pdf_CellCustomParams
Definition MRPdf.h:109
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)
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)
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)
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:86
@ MR_Pdf_ImageParams_AlignmentVertical_Bottom
Definition MRPdf.h:89
@ MR_Pdf_ImageParams_AlignmentVertical_Top
Definition MRPdf.h:87
@ MR_Pdf_ImageParams_AlignmentVertical_Center
Definition MRPdf.h:88
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)
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)
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)
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)
MRC_API MR_Pdf_CellCustomParams * MR_Pdf_CellCustomParams_OffsetMutablePtr(MR_Pdf_CellCustomParams *ptr, ptrdiff_t i)
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
Definition MRPdf.h:99
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_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:78
@ MR_Pdf_ImageParams_UniformScale_FromHeight
Definition MRPdf.h:81
@ MR_Pdf_ImageParams_UniformScale_Auto
Definition MRPdf.h:82
@ MR_Pdf_ImageParams_UniformScale_None
Definition MRPdf.h:79
@ MR_Pdf_ImageParams_UniformScale_FromWidth
Definition MRPdf.h:80
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_addText_bool(MR_Pdf *_this, const char *text, const char *text_end, const bool *isTitle)
MRC_API void MR_Pdf_CellCustomParams_Set_colorText(MR_Pdf_CellCustomParams *_this, const MR_Color *value)
struct MR_Pdf_TextCellParams MR_Pdf_TextCellParams
Definition MRPdf.h:113
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)
MR_Pdf_AlignmentHorizontal
Definition MRPdf.h:61
@ MR_Pdf_AlignmentHorizontal_Center
Definition MRPdf.h:63
@ MR_Pdf_AlignmentHorizontal_Left
Definition MRPdf.h:62
@ MR_Pdf_AlignmentHorizontal_Right
Definition MRPdf.h:64
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 void MR_Pdf_drawRect(MR_Pdf *_this, const MR_Box2f *rect, const MR_Color *fillColor, const MR_Color *strokeColor)
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)
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 float MR_Pdf_getTableTextWidth(MR_Pdf *_this, const char *text, const char *text_end)
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)
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_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 void MR_Pdf_addText_MR_Pdf_TextParams(MR_Pdf *_this, const char *text, const char *text_end, const MR_Pdf_TextParams *params)
MRC_API MR_Pdf_Cell_Empty * MR_Pdf_Cell_Empty_OffsetMutablePtr(MR_Pdf_Cell_Empty *ptr, ptrdiff_t i)
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:58
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_std_string * MR_Pdf_Cell_toString(const MR_Pdf_Cell *_this, const char *fmtStr, const char *fmtStr_end)
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 void MR_Pdf_drawTextInRect(MR_Pdf *_this, const char *text, const char *text_end, const MR_Box2f *rect, 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)
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)
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)
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
Definition MRPdf.h:70
MRC_API MR_Pdf * MR_Pdf_Construct(const MR_PdfParameters *params)
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
Definition MRPdf.h:105
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_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 float MR_Pdf_getTextWidth(MR_Pdf *_this, const char *text, const char *text_end, const MR_Pdf_TextParams *params)
MRC_API const bool * MR_Pdf_TextParams_Get_underline(const MR_Pdf_TextParams *_this)
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)
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:95
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
Definition MRPdf.h:74
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)
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)
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)
MR_PassBy
Definition common.h:23
#define MRC_API
Definition exports.h:11
virtual void action(HistoryAction::Type) override
size_t size() const
Definition MRBox.h:78
Generated from class MR::Color.
Definition MRColor.h:18
Definition MRVector2.h:45