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_std_string MR_std_string; // Defined in `#include <MRCMisc/std_string.h>`.
17typedef struct MR_std_vector_MR_Pdf_PaletteRowStats MR_std_vector_MR_Pdf_PaletteRowStats; // Defined in `#include <MRCMisc/std_vector_MR_Pdf_PaletteRowStats.h>`.
18typedef 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>`.
19
20
26
31typedef struct MR_Pdf MR_Pdf;
32
35
39
44
48
53
58
62
67
81
95MRC_API void MR_PdfParameters_Set_defaultFontName(MR_PdfParameters *_this, const char *value, const char *value_end);
96
110
118
126MRC_API void MR_PdfParameters_Set_tableFontName(MR_PdfParameters *_this, const char *value, const char *value_end);
127
135
139
144
151MRC_API MR_PdfParameters *MR_PdfParameters_ConstructFrom(float titleSize, float textSize, const char *defaultFontName, const char *defaultFontName_end, const char *tableFontName, const char *tableFontName_end);
152
155
158
162
165
168
173
177
179MRC_API const MR_Pdf *MR_Pdf_OffsetPtr(const MR_Pdf *ptr, ptrdiff_t i);
180
183
190MRC_API MR_Pdf *MR_Pdf_Construct(const char *documentPath, const char *documentPath_end, const MR_PdfParameters *params);
191
193MRC_API void MR_Pdf_Destroy(const MR_Pdf *_this);
194
197
202
207
220MRC_API void MR_Pdf_addText(MR_Pdf *_this, const MR_std_string *text, const bool *isTitle);
221
232
237
247MRC_API void MR_Pdf_addImageFromFile(MR_Pdf *_this, const char *imagePath, const char *imagePath_end, const MR_Pdf_ImageParams *params);
248
253
258
261MRC_API void MR_Pdf_setCursorPosX(MR_Pdf *_this, float posX);
262
265MRC_API void MR_Pdf_setCursorPosY(MR_Pdf *_this, float posY);
266
270
274
278
282
287
291
296
301
306MRC_API void MR_Pdf_PaletteRowStats_Set_rangeMin(MR_Pdf_PaletteRowStats *_this, const char *value, const char *value_end);
307
312
317
322MRC_API void MR_Pdf_PaletteRowStats_Set_rangeMax(MR_Pdf_PaletteRowStats *_this, const char *value, const char *value_end);
323
328
333
338MRC_API void MR_Pdf_PaletteRowStats_Set_percent(MR_Pdf_PaletteRowStats *_this, const char *value, const char *value_end);
339
344
348
353
362MRC_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);
363
366
369
373
376
379
384
392
399
407
413
419MRC_API void MR_Pdf_ImageParams_Set_caption(MR_Pdf_ImageParams *_this, const char *value, const char *value_end);
420
426
432
437
443
447
452
457MRC_API MR_Pdf_ImageParams *MR_Pdf_ImageParams_ConstructFrom(MR_Vector2f size, const char *caption, const char *caption_end, bool uniformScaleFromWidth);
458
461
464
468
471
474
479
480#ifdef __cplusplus
481} // extern "C"
482#endif
struct MR_std_string MR_std_string
Definition MRE57.h:22
MRC_API MR_Color * MR_Pdf_PaletteRowStats_GetMutable_color(MR_Pdf_PaletteRowStats *_this)
MRC_API float * MR_PdfParameters_GetMutable_textSize(MR_PdfParameters *_this)
struct MR_Pdf MR_Pdf
Generated from class MR::Pdf.
Definition MRPdf.h:31
MRC_API void MR_Pdf_PaletteRowStats_Set_rangeMin(MR_Pdf_PaletteRowStats *_this, const char *value, const char *value_end)
MRC_API MR_PdfParameters * MR_PdfParameters_DefaultConstruct(void)
MRC_API const MR_std_string * MR_PdfParameters_Get_tableFontName(const MR_PdfParameters *_this)
MRC_API MR_PdfParameters * MR_PdfParameters_ConstructFromAnother(MR_PassBy _other_pass_by, MR_PdfParameters *_other)
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_PdfParameters * MR_PdfParameters_ConstructFrom(float titleSize, float textSize, const char *defaultFontName, const char *defaultFontName_end, const char *tableFontName, const char *tableFontName_end)
MRC_API const MR_Vector2f * MR_Pdf_ImageParams_Get_size(const MR_Pdf_ImageParams *_this)
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_std_string * MR_PdfParameters_GetMutable_defaultFontName(MR_PdfParameters *_this)
Font name list of available fonts: Courier (-Bold, -Oblique, -BoldOblique) Helvetica (-Bold,...
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.
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...
struct MR_std_vector_MR_Pdf_PaletteRowStats MR_std_vector_MR_Pdf_PaletteRowStats
Definition MRPdf.h:17
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 bool * MR_Pdf_ImageParams_GetMutable_uniformScaleFromWidth(MR_Pdf_ImageParams *_this)
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.
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 MR_std_string * MR_PdfParameters_GetMutable_tableFontName(MR_PdfParameters *_this)
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 void MR_Pdf_PaletteRowStats_Set_rangeMax(MR_Pdf_PaletteRowStats *_this, const char *value, const char *value_end)
MRC_API MR_Box2f MR_Pdf_getPageWorkArea(const MR_Pdf *_this)
MRC_API void MR_PdfParameters_Set_defaultFontName(MR_PdfParameters *_this, const char *value, const char *value_end)
Font name list of available fonts: Courier (-Bold, -Oblique, -BoldOblique) Helvetica (-Bold,...
MRC_API float * MR_PdfParameters_GetMutable_titleSize(MR_PdfParameters *_this)
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 MR_PdfParameters * MR_PdfParameters_DefaultConstructArray(size_t num_elems)
MRC_API void MR_Pdf_ImageParams_Set_uniformScaleFromWidth(MR_Pdf_ImageParams *_this, bool value)
MRC_API MR_Vector2f MR_Pdf_getPageSize(const MR_Pdf *_this)
MRC_API MR_Pdf_ImageParams * MR_Pdf_ImageParams_ConstructFromAnother(MR_PassBy _other_pass_by, MR_Pdf_ImageParams *_other)
MRC_API MR_Pdf * MR_Pdf_Construct(const char *documentPath, const char *documentPath_end, const MR_PdfParameters *params)
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_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 bool MR_Pdf_ConvertTo_bool(const MR_Pdf *_this)
MRC_API MR_Pdf_PaletteRowStats * MR_Pdf_PaletteRowStats_DefaultConstructArray(size_t num_elems)
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:25
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 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 MR_Pdf_PaletteRowStats * MR_Pdf_PaletteRowStats_AssignFromAnother(MR_Pdf_PaletteRowStats *_this, MR_PassBy _other_pass_by, MR_Pdf_PaletteRowStats *_other)
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 MR_Pdf_ImageParams * MR_Pdf_ImageParams_ConstructFrom(MR_Vector2f size, const char *caption, const char *caption_end, bool uniformScaleFromWidth)
MRC_API MR_Pdf_ImageParams * MR_Pdf_ImageParams_DefaultConstructArray(size_t num_elems)
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_PaletteRowStats_Set_color(MR_Pdf_PaletteRowStats *_this, MR_Color value)
MRC_API MR_Pdf_ImageParams * MR_Pdf_ImageParams_DefaultConstruct(void)
MRC_API float MR_Pdf_getCursorPosX(const MR_Pdf *_this)
MRC_API void MR_PdfParameters_Set_tableFontName(MR_PdfParameters *_this, const char *value, const char *value_end)
MRC_API void MR_Pdf_ImageParams_Set_size(MR_Pdf_ImageParams *_this, MR_Vector2f value)
MRC_API MR_Pdf_PaletteRowStats * MR_Pdf_PaletteRowStats_DefaultConstruct(void)
MRC_API void MR_Pdf_close(MR_Pdf *_this)
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_ImageParams_Get_uniformScaleFromWidth(const MR_Pdf_ImageParams *_this)
MRC_API MR_Pdf_PaletteRowStats * MR_Pdf_PaletteRowStats_ConstructFromAnother(MR_PassBy _other_pass_by, MR_Pdf_PaletteRowStats *_other)
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:38
MRC_API void MR_Pdf_newPage(MR_Pdf *_this)
MRC_API void MR_PdfParameters_Set_titleSize(MR_PdfParameters *_this, float value)
MRC_API const MR_std_string * MR_PdfParameters_Get_defaultFontName(const MR_PdfParameters *_this)
Font name list of available fonts: Courier (-Bold, -Oblique, -BoldOblique) Helvetica (-Bold,...
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 MR_Pdf * MR_Pdf_ConstructFromAnother(MR_PassBy other_pass_by, MR_Pdf *other)
MRC_API void MR_Pdf_addText(MR_Pdf *_this, const MR_std_string *text, const bool *isTitle)
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 const float * MR_PdfParameters_Get_textSize(const MR_PdfParameters *_this)
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:34
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 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:18
MRC_API void MR_Pdf_addTable(MR_Pdf *_this, const MR_std_vector_std_pair_std_string_float *table)
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_Vector2f * MR_Pdf_ImageParams_GetMutable_size(MR_Pdf_ImageParams *_this)
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
size_t size() const
Definition MRBox.h:77
Generated from class MR::Color.
Definition MRColor.h:19
Definition MRVector2.h:44