MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::SymbolMeshParams Struct Reference
Inheritance diagram for meshlib::SymbolMeshParams:

Public Member Functions

auto assign_from_another (_other:&meshlib::SymbolMeshParams) -> &mut meshlib::SymbolMeshParams
auto text () const -> &meshlib::std_string
auto text_mut () -> &mut meshlib::std_string
void set_text (value:&str)
auto font_detalization () const -> &core::ffi::c_int
auto font_detalization_mut () -> &mut core::ffi::c_int
void set_font_detalization (value:core::ffi::c_int)
auto symbols_distance_additional_offset () const -> &meshlib::Vector2f
auto symbols_distance_additional_offset_mut () -> &mut meshlib::Vector2f
void set_symbols_distance_additional_offset (value:meshlib::Vector2f)
auto symbols_thickness_offset_modifier () const -> &f32
auto symbols_thickness_offset_modifier_mut () -> &mut f32
void set_symbols_thickness_offset_modifier (value:f32)
auto align () const -> &meshlib::AlignType
auto align_mut () -> &mut meshlib::AlignType
void set_align (value:meshlib::AlignType)
auto path_to_font_file () const -> &meshlib::std_filesystem_path
auto path_to_font_file_mut () -> &mut meshlib::std_filesystem_path
void set_path_to_font_file (value:&str)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::SymbolMeshParams >
static auto construct_from (text:&str, fontDetalization:core::ffi::c_int, symbolsDistanceAdditionalOffset:meshlib::Vector2f, symbolsThicknessOffsetModifier:f32, align:meshlib::AlignType, pathToFontFile:&str) -> meshlib::Owned< meshlib::SymbolMeshParams >
static auto construct_from_another (_other:&meshlib::SymbolMeshParams) -> meshlib::Owned< meshlib::SymbolMeshParams >
static auto max_generated_font_height () -> *const f32
Static Public Member Functions inherited from meshlib::CppClass
static void destroy (ptr:*mut Self)
Static Public Member Functions inherited from meshlib::CppCopy
static auto copy (ptr:*const Self) -> *mut Self

Detailed Description

Generated from class MR::SymbolMeshParams. Derived classes: Direct: (non-virtual) MR::TextMeshAlignParams

Generated from class MR::SymbolMeshParams. Heap-allocated instances are held in Owned<SymbolMeshParams>.

Member Function Documentation

◆ align()

auto meshlib::SymbolMeshParams::align ( ) const -> &meshlib::AlignType

alignment of the text inside bbox Returns a pointer to a member variable of class MR::SymbolMeshParams named align.

Calls MR_SymbolMeshParams_Get_align(). The reference to this object might be preserved as the return value.

◆ align_mut()

auto meshlib::SymbolMeshParams::align_mut ( ) -> &mut meshlib::AlignType

alignment of the text inside bbox Returns a mutable pointer to a member variable of class MR::SymbolMeshParams named align.

Calls MR_SymbolMeshParams_GetMutable_align(). The reference to this object might be preserved as the return value.

◆ assign_from_another()

auto meshlib::SymbolMeshParams::assign_from_another ( _other:&meshlib::SymbolMeshParams ) -> &mut meshlib::SymbolMeshParams

Generated from method MR::SymbolMeshParams::operator=.

Calls MR_SymbolMeshParams_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.

◆ construct_from()

auto meshlib::SymbolMeshParams::construct_from ( text:& str,
fontDetalization:core::ffi::c_int ,
symbolsDistanceAdditionalOffset:meshlib::Vector2f ,
symbolsThicknessOffsetModifier:f32 ,
align:meshlib::AlignType ,
pathToFontFile:& str ) -> meshlib::Owned< meshlib::SymbolMeshParams >
static

Constructs MR::SymbolMeshParams elementwise.

Calls MR_SymbolMeshParams_ConstructFrom(). The reference to the parameter text might be preserved in the constructed object. The reference to the parameter symbolsDistanceAdditionalOffset might be preserved in the constructed object. The reference to the parameter align might be preserved in the constructed object. The reference to the parameter pathToFontFile might be preserved in the constructed object.

◆ construct_from_another()

auto meshlib::SymbolMeshParams::construct_from_another ( _other:&meshlib::SymbolMeshParams ) -> meshlib::Owned< meshlib::SymbolMeshParams >
static

Generated from constructor MR::SymbolMeshParams::SymbolMeshParams.

Calls MR_SymbolMeshParams_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

◆ font_detalization()

auto meshlib::SymbolMeshParams::font_detalization ( ) const -> &core::ffi::c_int

Detailization of Bezier curves on font glyphs Returns a pointer to a member variable of class MR::SymbolMeshParams named fontDetalization.

Calls MR_SymbolMeshParams_Get_fontDetalization(). The reference to this object might be preserved as the return value.

◆ font_detalization_mut()

auto meshlib::SymbolMeshParams::font_detalization_mut ( ) -> &mut core::ffi::c_int

Detailization of Bezier curves on font glyphs Returns a mutable pointer to a member variable of class MR::SymbolMeshParams named fontDetalization.

Calls MR_SymbolMeshParams_GetMutable_fontDetalization(). The reference to this object might be preserved as the return value.

◆ max_generated_font_height()

auto meshlib::SymbolMeshParams::max_generated_font_height ( ) -> *const f32
static

max font size with 128 << 6 FT_F26Dot6 font size Returns a pointer to a member variable of class MR::SymbolMeshParams named MaxGeneratedFontHeight.

Calls MR_SymbolMeshParams_Get_MaxGeneratedFontHeight().

◆ new()

auto meshlib::SymbolMeshParams::new ( ) -> meshlib::Owned< meshlib::SymbolMeshParams >
static

Constructs an empty (default-constructed) instance.

Calls MR_SymbolMeshParams_DefaultConstruct().

◆ path_to_font_file()

auto meshlib::SymbolMeshParams::path_to_font_file ( ) const -> &meshlib::std_filesystem_path

Path to font file Returns a pointer to a member variable of class MR::SymbolMeshParams named pathToFontFile.

Calls MR_SymbolMeshParams_Get_pathToFontFile(). The reference to this object might be preserved as the return value.

◆ path_to_font_file_mut()

auto meshlib::SymbolMeshParams::path_to_font_file_mut ( ) -> &mut meshlib::std_filesystem_path

Path to font file Returns a mutable pointer to a member variable of class MR::SymbolMeshParams named pathToFontFile.

Calls MR_SymbolMeshParams_GetMutable_pathToFontFile(). The reference to this object might be preserved as the return value.

◆ set_align()

void meshlib::SymbolMeshParams::set_align ( value:meshlib::AlignType )

alignment of the text inside bbox Modifies a member variable of class MR::SymbolMeshParams named align.

Calls MR_SymbolMeshParams_Set_align(). The reference to the parameter value might be preserved in this object in element align.

◆ set_font_detalization()

void meshlib::SymbolMeshParams::set_font_detalization ( value:core::ffi::c_int )

Detailization of Bezier curves on font glyphs Modifies a member variable of class MR::SymbolMeshParams named fontDetalization.

Calls MR_SymbolMeshParams_Set_fontDetalization().

◆ set_path_to_font_file()

void meshlib::SymbolMeshParams::set_path_to_font_file ( value:& str)

Path to font file Modifies a member variable of class MR::SymbolMeshParams named pathToFontFile.

Calls MR_SymbolMeshParams_Set_pathToFontFile(). The reference to the parameter value might be preserved in this object in element pathToFontFile.

◆ set_symbols_distance_additional_offset()

void meshlib::SymbolMeshParams::set_symbols_distance_additional_offset ( value:meshlib::Vector2f )

Additional offset between symbols X: In symbol size: 1.0f adds one "space", 0.5 adds half "space". Y: In symbol size: 1.0f adds one base height, 0.5 adds half base height Modifies a member variable of class MR::SymbolMeshParams named symbolsDistanceAdditionalOffset.

Calls MR_SymbolMeshParams_Set_symbolsDistanceAdditionalOffset(). The reference to the parameter value might be preserved in this object in element symbolsDistanceAdditionalOffset.

◆ set_symbols_thickness_offset_modifier()

void meshlib::SymbolMeshParams::set_symbols_thickness_offset_modifier ( value:f32 )

Symbols thickness will be modified by this value (newThickness = modifier*baseSymbolHeight + defaultThickness) note: changing this to non-zero values cause costly calculations Modifies a member variable of class MR::SymbolMeshParams named symbolsThicknessOffsetModifier.

Calls MR_SymbolMeshParams_Set_symbolsThicknessOffsetModifier().

◆ set_text()

void meshlib::SymbolMeshParams::set_text ( value:& str)

Text that will be made mesh Modifies a member variable of class MR::SymbolMeshParams named text.

Calls MR_SymbolMeshParams_Set_text(). The reference to the parameter value might be preserved in this object in element text.

◆ symbols_distance_additional_offset()

auto meshlib::SymbolMeshParams::symbols_distance_additional_offset ( ) const -> &meshlib::Vector2f

Additional offset between symbols X: In symbol size: 1.0f adds one "space", 0.5 adds half "space". Y: In symbol size: 1.0f adds one base height, 0.5 adds half base height Returns a pointer to a member variable of class MR::SymbolMeshParams named symbolsDistanceAdditionalOffset.

Calls MR_SymbolMeshParams_Get_symbolsDistanceAdditionalOffset(). The reference to this object might be preserved as the return value.

◆ symbols_distance_additional_offset_mut()

auto meshlib::SymbolMeshParams::symbols_distance_additional_offset_mut ( ) -> &mut meshlib::Vector2f

Additional offset between symbols X: In symbol size: 1.0f adds one "space", 0.5 adds half "space". Y: In symbol size: 1.0f adds one base height, 0.5 adds half base height Returns a mutable pointer to a member variable of class MR::SymbolMeshParams named symbolsDistanceAdditionalOffset.

Calls MR_SymbolMeshParams_GetMutable_symbolsDistanceAdditionalOffset(). The reference to this object might be preserved as the return value.

◆ symbols_thickness_offset_modifier()

auto meshlib::SymbolMeshParams::symbols_thickness_offset_modifier ( ) const -> &f32

Symbols thickness will be modified by this value (newThickness = modifier*baseSymbolHeight + defaultThickness) note: changing this to non-zero values cause costly calculations Returns a pointer to a member variable of class MR::SymbolMeshParams named symbolsThicknessOffsetModifier.

Calls MR_SymbolMeshParams_Get_symbolsThicknessOffsetModifier(). The reference to this object might be preserved as the return value.

◆ symbols_thickness_offset_modifier_mut()

auto meshlib::SymbolMeshParams::symbols_thickness_offset_modifier_mut ( ) -> &mut f32

Symbols thickness will be modified by this value (newThickness = modifier*baseSymbolHeight + defaultThickness) note: changing this to non-zero values cause costly calculations Returns a mutable pointer to a member variable of class MR::SymbolMeshParams named symbolsThicknessOffsetModifier.

Calls MR_SymbolMeshParams_GetMutable_symbolsThicknessOffsetModifier(). The reference to this object might be preserved as the return value.

◆ text()

auto meshlib::SymbolMeshParams::text ( ) const -> &meshlib::std_string

Text that will be made mesh Returns a pointer to a member variable of class MR::SymbolMeshParams named text.

Calls MR_SymbolMeshParams_Get_text(). The reference to this object might be preserved as the return value.

◆ text_mut()

auto meshlib::SymbolMeshParams::text_mut ( ) -> &mut meshlib::std_string

Text that will be made mesh Returns a mutable pointer to a member variable of class MR::SymbolMeshParams named text.

Calls MR_SymbolMeshParams_GetMutable_text(). The reference to this object might be preserved as the return value.


The documentation for this struct was generated from the following file: