Static Public Member Functions | |
| static auto | construct (params:Option<&meshlib::PdfParameters >) -> meshlib::Owned< meshlib::Pdf > |
| static auto | construct_from_another (other:meshlib::Owned< meshlib::Pdf >) -> meshlib::Owned< meshlib::Pdf > |
| Static Public Member Functions inherited from meshlib::CppClass | |
| static void | destroy (ptr:*mut Self) |
Class for simple creation pdf.
Generated from class MR::Pdf.
Generated from class MR::Pdf. Heap-allocated instances are held in Owned<Pdf>.
| void meshlib::Pdf::add_image | ( | image:&meshlib::Image | , |
| params:&meshlib::Pdf_ImageParams | ) |
Generated from method MR::Pdf::addImage.
Calls MR_Pdf_addImage().
| void meshlib::Pdf::add_image_from_file | ( | imagePath:& | str, |
| params:&meshlib::Pdf_ImageParams | ) |
Add image from file in current cursor position. If image bigger than page size, autoscale image to page size. Move cursor.
Generated from method MR::Pdf::addImageFromFile.
Calls MR_Pdf_addImageFromFile().
| void meshlib::Pdf::add_palette_stats_table | ( | paletteStats:&meshlib::std_vector_MR_Pdf_PaletteRowStats | ) |
Generated from method MR::Pdf::addPaletteStatsTable.
Calls MR_Pdf_addPaletteStatsTable().
| auto meshlib::Pdf::add_row | ( | cells:&meshlib::std_vector_MR_Pdf_Cell | ) | -> meshlib::Owned< meshlib::expected_void_std_string > |
add in pdf table row with values Generated from method MR::Pdf::addRow.
Calls MR_Pdf_addRow().
| void meshlib::Pdf::add_table | ( | table:&meshlib::std_vector_std_pair_std_string_float | ) |
Add set of pair string - value in current cursor position. Move cursor. Box horizontal size is page width without offset. Box vertical size is automatically for text.
Generated from method MR::Pdf::addTable.
Calls MR_Pdf_addTable().
| auto meshlib::Pdf::add_table_titles | ( | titles:&meshlib::std_vector_std_string | ) | -> meshlib::Owned< meshlib::expected_void_std_string > |
add in pdf table row with titles Generated from method MR::Pdf::addTableTitles.
Calls MR_Pdf_addTableTitles().
| void meshlib::Pdf::add_text_bool | ( | text:& | str, |
| isTitle:Option< bool > | ) |
Add text block in current cursor position. Move cursor. Box horizontal size is page width without offset. Box vertical size is automatically for text. horAlignment = left if isTitle - horAlignment = center, use titleFontSize
Generated from method MR::Pdf::addText.
Calls MR_Pdf_addText_bool().
| void meshlib::Pdf::add_text_mr_pdf_text_params | ( | text:& | str, |
| params:&meshlib::Pdf_TextParams | ) |
Generated from method MR::Pdf::addText.
Calls MR_Pdf_addText_MR_Pdf_TextParams().
| auto meshlib::Pdf::assign_from_another | ( | other:meshlib::Owned< meshlib::Pdf > | ) | -> &mut meshlib::Pdf |
Generated from method MR::Pdf::operator=.
Calls MR_Pdf_AssignFromAnother(). The reference to things referred to by the parameter other (if any) might be preserved in this object. The reference to this object might be preserved in the return value.
|
static |
Ctor. Create a document, but not a page. To create a new page use newPage() method Generated from constructor MR::Pdf::Pdf.
Calls MR_Pdf_Construct(). The reference to the parameter params might be preserved in the constructed object.
|
static |
Generated from constructor MR::Pdf::Pdf.
Calls MR_Pdf_ConstructFromAnother(). The reference to things referred to by the parameter other (if any) might be preserved in the constructed object.
| auto meshlib::Pdf::convert_to_bool | ( | ) | const -> bool |
Checking the ability to work with a document Generated from conversion operator MR::Pdf::operator bool.
Calls MR_Pdf_ConvertTo_bool().
| void meshlib::Pdf::draw_rect | ( | rect:&meshlib::Box2f | , |
| fillColor:&meshlib::Color | , | ||
| strokeColor:&meshlib::Color | ) |
draw rect (filled with border) Generated from method MR::Pdf::drawRect.
Calls MR_Pdf_drawRect().
| void meshlib::Pdf::draw_text_cell | ( | text:& | str, |
| params:&meshlib::Pdf_TextCellParams | ) |
Generated from method MR::Pdf::drawTextCell.
Calls MR_Pdf_drawTextCell().
| void meshlib::Pdf::draw_text_in_rect | ( | text:& | str, |
| rect:&meshlib::Box2f | , | ||
| params:&meshlib::Pdf_TextParams | ) |
draw text in specific rect on page text will be cropped by rect Generated from method MR::Pdf::drawTextInRect.
Calls MR_Pdf_drawTextInRect().
| auto meshlib::Pdf::get_cursor_pos_x | ( | ) | const -> f32 |
Generated from method MR::Pdf::getCursorPosX.
Calls MR_Pdf_getCursorPosX().
| auto meshlib::Pdf::get_cursor_pos_y | ( | ) | const -> f32 |
Generated from method MR::Pdf::getCursorPosY.
Calls MR_Pdf_getCursorPosY().
| auto meshlib::Pdf::get_page_size | ( | ) | const -> meshlib::Vector2f |
Generated from method MR::Pdf::getPageSize.
Calls MR_Pdf_getPageSize().
| auto meshlib::Pdf::get_page_work_area | ( | ) | const -> meshlib::Box2f |
Generated from method MR::Pdf::getPageWorkArea.
Calls MR_Pdf_getPageWorkArea().
| auto meshlib::Pdf::get_table_text_width | ( | text:& | str | ) | -> f32 |
parameters to customization table cell return text width (for table font parameters) Generated from method MR::Pdf::getTableTextWidth.
Calls MR_Pdf_getTableTextWidth().
| auto meshlib::Pdf::get_text_width | ( | text:& | str, |
| params:&meshlib::Pdf_TextParams | ) -> f32 |
return text width Generated from method MR::Pdf::getTextWidth.
Calls MR_Pdf_getTextWidth().
| void meshlib::Pdf::new_page | ( | ) |
Add new pageand move cursor on it Generated from method MR::Pdf::newPage.
Calls MR_Pdf_newPage().
| void meshlib::Pdf::new_table | ( | columnCount:core::ffi::c_int | ) |
set up new table (clear table customization, reset parameters to default values) Generated from method MR::Pdf::newTable.
Calls MR_Pdf_newTable().
| void meshlib::Pdf::save_to_file | ( | documentPath:& | str | ) |
Save document to file Generated from method MR::Pdf::saveToFile.
Calls MR_Pdf_saveToFile().
| auto meshlib::Pdf::set_column_values_format | ( | formats:&meshlib::std_vector_std_string | ) | -> meshlib::Owned< meshlib::expected_void_std_string > |
set format for conversion values to string for each column Generated from method MR::Pdf::setColumnValuesFormat.
Calls MR_Pdf_setColumnValuesFormat().
| void meshlib::Pdf::set_cursor_pos_x | ( | posX:f32 | ) |
Generated from method MR::Pdf::setCursorPosX.
Calls MR_Pdf_setCursorPosX().
| void meshlib::Pdf::set_cursor_pos_y | ( | posY:f32 | ) |
Generated from method MR::Pdf::setCursorPosY.
Calls MR_Pdf_setCursorPosY().
| void meshlib::Pdf::set_new_page_action | ( | action:&meshlib::std_function_void_from_MR_Pdf_ref | ) |
set function to customize new page after creation Generated from method MR::Pdf::setNewPageAction.
Calls MR_Pdf_setNewPageAction().
| auto meshlib::Pdf::set_table_column_widths | ( | widths:&meshlib::std_vector_float | ) | -> meshlib::Owned< meshlib::expected_void_std_string > |
set table column widths Generated from method MR::Pdf::setTableColumnWidths.
Calls MR_Pdf_setTableColumnWidths().
| void meshlib::Pdf::set_table_custom_rule | ( | rule:&meshlib::std_function_MR_Pdf_CellCustomParams_from_int_int_const_std_string_ref | ) |
add rule to customize table cells Generated from method MR::Pdf::setTableCustomRule.
Calls MR_Pdf_setTableCustomRule().