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
130
135
140
144
149
157
164
172
177
181
186
194
201
209
214
218
223
227
232
236
239
242
246
249
252
257
264
269
271MRC_API const MR_Pdf *MR_Pdf_OffsetPtr(const MR_Pdf *ptr, ptrdiff_t i);
272
275
279
281MRC_API void MR_Pdf_Destroy(const MR_Pdf *_this);
282
285
290
295
309MRC_API void MR_Pdf_addText_bool(MR_Pdf *_this, const char *text, const char *text_end, const bool *isTitle);
310
316MRC_API void MR_Pdf_addText_MR_Pdf_TextParams(MR_Pdf *_this, const char *text, const char *text_end, const MR_Pdf_TextParams *params);
317
324MRC_API float MR_Pdf_getTextWidth(MR_Pdf *_this, const char *text, const char *text_end, const MR_Pdf_TextParams *params);
325
336
341
351MRC_API void MR_Pdf_addImageFromFile(MR_Pdf *_this, const char *imagePath, const char *imagePath_end, const MR_Pdf_ImageParams *params);
352
357MRC_API void MR_Pdf_addImage(MR_Pdf *_this, const MR_Image *image, const MR_Pdf_ImageParams *params);
358
363
368
373MRC_API void MR_Pdf_saveToFile(MR_Pdf *_this, const char *documentPath, const char *documentPath_end);
374
377MRC_API void MR_Pdf_setCursorPosX(MR_Pdf *_this, float posX);
378
381MRC_API void MR_Pdf_setCursorPosY(MR_Pdf *_this, float posY);
382
386
390
394
398
399// set up new table (clear table customization, reset parameters to default values)
402MRC_API void MR_Pdf_newTable(MR_Pdf *_this, int columnCount);
403
404// set table column widths
410
411// add in pdf table row with titles
417
418// set format for conversion values to string for each column
424
425// add in pdf table row with values
431
432// parameters to customization table cell
433// return text width (for table font parameters)
438MRC_API float MR_Pdf_getTableTextWidth(MR_Pdf *_this, const char *text, const char *text_end);
439
440// add rule to customize table cells
444
445// draw text in specific rect on page
446// text will be cropped by rect
453MRC_API void MR_Pdf_drawTextInRect(MR_Pdf *_this, const char *text, const char *text_end, const MR_Box2f *rect, const MR_Pdf_TextParams *params);
454
460MRC_API void MR_Pdf_drawTextCell(MR_Pdf *_this, const char *text, const char *text_end, const MR_Pdf_TextCellParams *params);
461
466
470
475
480
484
489
494
498
503
508
512
517
522
526
531
535
540
544
547
550
554
557
560
565
570
574
579
584
589MRC_API void MR_Pdf_PaletteRowStats_Set_rangeMin(MR_Pdf_PaletteRowStats *_this, const char *value, const char *value_end);
590
595
600
605MRC_API void MR_Pdf_PaletteRowStats_Set_rangeMax(MR_Pdf_PaletteRowStats *_this, const char *value, const char *value_end);
606
611
616
621MRC_API void MR_Pdf_PaletteRowStats_Set_percent(MR_Pdf_PaletteRowStats *_this, const char *value, const char *value_end);
622
627
631
636
645MRC_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);
646
649
652
656
659
662
667
675
682
690
696
702MRC_API void MR_Pdf_ImageParams_Set_caption(MR_Pdf_ImageParams *_this, const char *value, const char *value_end);
703
709
714
718
723
728
732
737
742
746
751
755
760
766
769
772
776
779
782
787
792
796
801
805
810
812MRC_API const MR_Pdf_Cell *MR_Pdf_Cell_OffsetPtr(const MR_Pdf_Cell *ptr, ptrdiff_t i);
813
816
820
823
826
831
832// get strang from contained value
833// \param fmtStr format string like fmt::format
840MRC_API MR_std_string *MR_Pdf_Cell_toString(const MR_Pdf_Cell *_this, const char *fmtStr, const char *fmtStr_end);
841
845
850
853
856
861
864
867
873
878
883
888
893
898
903
908
913
918
923
929MRC_API void MR_Pdf_CellCustomParams_Set_text(MR_Pdf_CellCustomParams *_this, const char *value, const char *value_end);
930
935
939
944
953MRC_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);
954
957
960
964
967
970
975
980
984
989
994
998
1003
1008
1012
1017
1022
1026
1031
1035
1040
1044
1047
1050
1054
1057
1060
1065
1066#ifdef __cplusplus
1067} // extern "C"
1068#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)
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_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)
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: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)
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
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 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 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)
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_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)
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: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)
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
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)
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: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)
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)
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: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