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

Public Member Functions

auto assign_from_another (_other:&meshlib::TextMeshAlignParams) -> &mut meshlib::TextMeshAlignParams
auto start_point () const -> &meshlib::MeshTriPoint
auto start_point_mut () -> &mut meshlib::MeshTriPoint
void set_start_point (value:&meshlib::MeshTriPoint)
auto pivot_point () const -> &meshlib::Vector2f
auto pivot_point_mut () -> &mut meshlib::Vector2f
void set_pivot_point (value:meshlib::Vector2f)
auto direction () const -> &meshlib::Vector3f
auto direction_mut () -> &mut meshlib::Vector3f
void set_direction (value:meshlib::Vector3f)
auto text_normal () const -> *const *const meshlib::Vector3f
auto text_normal_mut () -> *mut *const meshlib::Vector3f
void set_text_normal (value:Option<&meshlib::Vector3f >)
auto font_height () const -> &f32
auto font_height_mut () -> &mut f32
void set_font_height (value:f32)
auto surface_offset () const -> &f32
auto surface_offset_mut () -> &mut f32
void set_surface_offset (value:f32)
auto text_maximum_movement () const -> &f32
auto text_maximum_movement_mut () -> &mut f32
void set_text_maximum_movement (value:f32)
auto font_based_size_calc () const -> &bool
auto font_based_size_calc_mut () -> &mut bool
void set_font_based_size_calc (value:bool)
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)
auto upcast_to_symbol_mesh_params () const -> &meshlib::SymbolMeshParams
auto upcast_to_symbol_mesh_params_mut () -> &mut meshlib::SymbolMeshParams

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::TextMeshAlignParams >
static auto construct_from_another (_other:&meshlib::TextMeshAlignParams) -> meshlib::Owned< meshlib::TextMeshAlignParams >
static auto max_generated_font_height () -> *const f32
static auto static_downcast_from_symbol_mesh_params (object:&meshlib::SymbolMeshParams) -> &Self
static auto static_downcast_from_symbol_mesh_params_mut (object:&mut meshlib::SymbolMeshParams) -> &mut Self
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::TextMeshAlignParams. Base classes: Direct: (non-virtual) MR::SymbolMeshParams

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

Member Function Documentation

◆ align()

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

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

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

◆ align_mut()

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

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

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

◆ assign_from_another()

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

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

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

◆ construct_from_another()

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

Generated from constructor MR::TextMeshAlignParams::TextMeshAlignParams.

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

◆ direction()

auto meshlib::TextMeshAlignParams::direction ( ) const -> &meshlib::Vector3f

Direction of text, must be not zero Returns a pointer to a member variable of class MR::TextMeshAlignParams named direction.

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

◆ direction_mut()

auto meshlib::TextMeshAlignParams::direction_mut ( ) -> &mut meshlib::Vector3f

Direction of text, must be not zero Returns a mutable pointer to a member variable of class MR::TextMeshAlignParams named direction.

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

◆ font_based_size_calc()

auto meshlib::TextMeshAlignParams::font_based_size_calc ( ) const -> &bool

If true then size of each symbol will be calculated from font height, otherwise - on bounding box of the text Returns a pointer to a member variable of class MR::TextMeshAlignParams named fontBasedSizeCalc.

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

◆ font_based_size_calc_mut()

auto meshlib::TextMeshAlignParams::font_based_size_calc_mut ( ) -> &mut bool

If true then size of each symbol will be calculated from font height, otherwise - on bounding box of the text Returns a mutable pointer to a member variable of class MR::TextMeshAlignParams named fontBasedSizeCalc.

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

◆ font_detalization()

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

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

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

◆ font_detalization_mut()

auto meshlib::TextMeshAlignParams::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::TextMeshAlignParams named fontDetalization.

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

◆ font_height()

auto meshlib::TextMeshAlignParams::font_height ( ) const -> &f32

Font height, meters Returns a pointer to a member variable of class MR::TextMeshAlignParams named fontHeight.

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

◆ font_height_mut()

auto meshlib::TextMeshAlignParams::font_height_mut ( ) -> &mut f32

Font height, meters Returns a mutable pointer to a member variable of class MR::TextMeshAlignParams named fontHeight.

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

◆ max_generated_font_height()

auto meshlib::TextMeshAlignParams::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::TextMeshAlignParams named MaxGeneratedFontHeight.

Calls MR_TextMeshAlignParams_Get_MaxGeneratedFontHeight().

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_TextMeshAlignParams_DefaultConstruct().

◆ path_to_font_file()

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

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

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

◆ path_to_font_file_mut()

auto meshlib::TextMeshAlignParams::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::TextMeshAlignParams named pathToFontFile.

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

◆ pivot_point()

auto meshlib::TextMeshAlignParams::pivot_point ( ) const -> &meshlib::Vector2f

Position of the startPoint in a text bounding box (0, 0) - bottom left, (0, 1) - bottom right, (0.5, 0.5) - center, (1, 1) - top right Returns a pointer to a member variable of class MR::TextMeshAlignParams named pivotPoint.

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

◆ pivot_point_mut()

auto meshlib::TextMeshAlignParams::pivot_point_mut ( ) -> &mut meshlib::Vector2f

Position of the startPoint in a text bounding box (0, 0) - bottom left, (0, 1) - bottom right, (0.5, 0.5) - center, (1, 1) - top right Returns a mutable pointer to a member variable of class MR::TextMeshAlignParams named pivotPoint.

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

◆ set_align()

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

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

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

◆ set_direction()

void meshlib::TextMeshAlignParams::set_direction ( value:meshlib::Vector3f )

Direction of text, must be not zero Modifies a member variable of class MR::TextMeshAlignParams named direction.

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

◆ set_font_based_size_calc()

void meshlib::TextMeshAlignParams::set_font_based_size_calc ( value:bool )

If true then size of each symbol will be calculated from font height, otherwise - on bounding box of the text Modifies a member variable of class MR::TextMeshAlignParams named fontBasedSizeCalc.

Calls MR_TextMeshAlignParams_Set_fontBasedSizeCalc().

◆ set_font_detalization()

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

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

Calls MR_TextMeshAlignParams_Set_fontDetalization().

◆ set_font_height()

void meshlib::TextMeshAlignParams::set_font_height ( value:f32 )

Font height, meters Modifies a member variable of class MR::TextMeshAlignParams named fontHeight.

Calls MR_TextMeshAlignParams_Set_fontHeight().

◆ set_path_to_font_file()

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

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

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

◆ set_pivot_point()

void meshlib::TextMeshAlignParams::set_pivot_point ( value:meshlib::Vector2f )

Position of the startPoint in a text bounding box (0, 0) - bottom left, (0, 1) - bottom right, (0.5, 0.5) - center, (1, 1) - top right Modifies a member variable of class MR::TextMeshAlignParams named pivotPoint.

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

◆ set_start_point()

void meshlib::TextMeshAlignParams::set_start_point ( value:&meshlib::MeshTriPoint )

Position on mesh, where text's pivot point is mapped Modifies a member variable of class MR::TextMeshAlignParams named startPoint.

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

◆ set_surface_offset()

void meshlib::TextMeshAlignParams::set_surface_offset ( value:f32 )

Text mesh inside and outside offset of input mesh Modifies a member variable of class MR::TextMeshAlignParams named surfaceOffset.

Calls MR_TextMeshAlignParams_Set_surfaceOffset().

◆ set_symbols_distance_additional_offset()

void meshlib::TextMeshAlignParams::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::TextMeshAlignParams named symbolsDistanceAdditionalOffset.

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

◆ set_symbols_thickness_offset_modifier()

void meshlib::TextMeshAlignParams::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::TextMeshAlignParams named symbolsThicknessOffsetModifier.

Calls MR_TextMeshAlignParams_Set_symbolsThicknessOffsetModifier().

◆ set_text()

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

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

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

◆ set_text_maximum_movement()

void meshlib::TextMeshAlignParams::set_text_maximum_movement ( value:f32 )

Maximum possible movement of text mesh alignment, meters Modifies a member variable of class MR::TextMeshAlignParams named textMaximumMovement.

Calls MR_TextMeshAlignParams_Set_textMaximumMovement().

◆ set_text_normal()

void meshlib::TextMeshAlignParams::set_text_normal ( value:Option<&meshlib::Vector3f > )

Text normal to surface, if nullptr - use mesh normal at startPoint Modifies a member variable of class MR::TextMeshAlignParams named textNormal.

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

◆ start_point()

auto meshlib::TextMeshAlignParams::start_point ( ) const -> &meshlib::MeshTriPoint

Position on mesh, where text's pivot point is mapped Returns a pointer to a member variable of class MR::TextMeshAlignParams named startPoint.

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

◆ start_point_mut()

auto meshlib::TextMeshAlignParams::start_point_mut ( ) -> &mut meshlib::MeshTriPoint

Position on mesh, where text's pivot point is mapped Returns a mutable pointer to a member variable of class MR::TextMeshAlignParams named startPoint.

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

◆ static_downcast_from_symbol_mesh_params()

auto meshlib::TextMeshAlignParams::static_downcast_from_symbol_mesh_params ( object:&meshlib::SymbolMeshParams ) -> &Self
static

Static downcast from the base class MR::SymbolMeshParams.

Calls MR_TextMeshAlignParams_StaticDowncastFrom_MR_SymbolMeshParams(). Undefined behavior if the object isn't actually a TextMeshAlignParams.

Note
This function is unsafe.

◆ static_downcast_from_symbol_mesh_params_mut()

auto meshlib::TextMeshAlignParams::static_downcast_from_symbol_mesh_params_mut ( object:&mut meshlib::SymbolMeshParams ) -> &mut Self
static

Static downcast from the base class MR::SymbolMeshParams.

Calls MR_TextMeshAlignParams_MutableStaticDowncastFrom_MR_SymbolMeshParams(). Undefined behavior if the object isn't actually a TextMeshAlignParams.

Note
This function is unsafe.

◆ surface_offset()

auto meshlib::TextMeshAlignParams::surface_offset ( ) const -> &f32

Text mesh inside and outside offset of input mesh Returns a pointer to a member variable of class MR::TextMeshAlignParams named surfaceOffset.

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

◆ surface_offset_mut()

auto meshlib::TextMeshAlignParams::surface_offset_mut ( ) -> &mut f32

Text mesh inside and outside offset of input mesh Returns a mutable pointer to a member variable of class MR::TextMeshAlignParams named surfaceOffset.

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

◆ symbols_distance_additional_offset()

auto meshlib::TextMeshAlignParams::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::TextMeshAlignParams named symbolsDistanceAdditionalOffset.

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

◆ symbols_distance_additional_offset_mut()

auto meshlib::TextMeshAlignParams::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::TextMeshAlignParams named symbolsDistanceAdditionalOffset.

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

◆ symbols_thickness_offset_modifier()

auto meshlib::TextMeshAlignParams::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::TextMeshAlignParams named symbolsThicknessOffsetModifier.

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

◆ symbols_thickness_offset_modifier_mut()

auto meshlib::TextMeshAlignParams::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::TextMeshAlignParams named symbolsThicknessOffsetModifier.

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

◆ text()

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

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

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

◆ text_maximum_movement()

auto meshlib::TextMeshAlignParams::text_maximum_movement ( ) const -> &f32

Maximum possible movement of text mesh alignment, meters Returns a pointer to a member variable of class MR::TextMeshAlignParams named textMaximumMovement.

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

◆ text_maximum_movement_mut()

auto meshlib::TextMeshAlignParams::text_maximum_movement_mut ( ) -> &mut f32

Maximum possible movement of text mesh alignment, meters Returns a mutable pointer to a member variable of class MR::TextMeshAlignParams named textMaximumMovement.

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

◆ text_mut()

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

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

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

◆ text_normal()

auto meshlib::TextMeshAlignParams::text_normal ( ) const -> *const *const meshlib::Vector3f

Text normal to surface, if nullptr - use mesh normal at startPoint Returns a pointer to a member variable of class MR::TextMeshAlignParams named textNormal.

Calls MR_TextMeshAlignParams_Get_textNormal(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.

◆ text_normal_mut()

auto meshlib::TextMeshAlignParams::text_normal_mut ( ) -> *mut *const meshlib::Vector3f

Text normal to surface, if nullptr - use mesh normal at startPoint Returns a mutable pointer to a member variable of class MR::TextMeshAlignParams named textNormal.

Calls MR_TextMeshAlignParams_GetMutable_textNormal(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.

◆ upcast_to_symbol_mesh_params()

auto meshlib::TextMeshAlignParams::upcast_to_symbol_mesh_params ( ) const -> &meshlib::SymbolMeshParams

Upcasts to the base class MR::SymbolMeshParams.

Calls MR_TextMeshAlignParams_UpcastTo_MR_SymbolMeshParams().

◆ upcast_to_symbol_mesh_params_mut()

auto meshlib::TextMeshAlignParams::upcast_to_symbol_mesh_params_mut ( ) -> &mut meshlib::SymbolMeshParams

Upcasts to the base class MR::SymbolMeshParams.

Calls MR_TextMeshAlignParams_MutableUpcastTo_MR_SymbolMeshParams().


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