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

Public Member Functions

auto assign_from_another (_other:&meshlib::scene_save::Settings) -> &mut meshlib::scene_save::Settings
auto length_unit () const -> &meshlib::std_optional_MR_LengthUnit
auto length_unit_mut () -> &mut meshlib::std_optional_MR_LengthUnit
void set_length_unit (value:Option< meshlib::LengthUnit >)
auto progress () const -> &meshlib::std_function_bool_from_float
auto progress_mut () -> &mut meshlib::std_function_bool_from_float
void set_progress (value:&meshlib::std_function_bool_from_float)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::scene_save::Settings >
static auto construct_from (lengthUnit:Option< meshlib::LengthUnit >, progress:&meshlib::std_function_bool_from_float) -> meshlib::Owned< meshlib::scene_save::Settings >
static auto construct_from_another (_other:&meshlib::scene_save::Settings) -> meshlib::Owned< meshlib::scene_save::Settings >
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::SceneSave::Settings. Derived classes: Direct: (non-virtual) MR::ObjectSave::Settings

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

Member Function Documentation

◆ assign_from_another()

auto meshlib::scene_save::Settings::assign_from_another ( _other:&meshlib::scene_save::Settings ) -> &mut meshlib::scene_save::Settings

Generated from method MR::SceneSave::Settings::operator=.

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

◆ construct_from()

auto meshlib::scene_save::Settings::construct_from ( lengthUnit:Option< meshlib::LengthUnit > ,
progress:&meshlib::std_function_bool_from_float  ) -> meshlib::Owned< meshlib::scene_save::Settings >
static

Constructs MR::SceneSave::Settings elementwise.

Calls MR_SceneSave_Settings_ConstructFrom(). The reference to the parameter lengthUnit might be preserved in the constructed object. The reference to the parameter progress might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::SceneSave::Settings::Settings.

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

◆ length_unit()

auto meshlib::scene_save::Settings::length_unit ( ) const -> &meshlib::std_optional_MR_LengthUnit

units of input coordinates and transformation, to be serialized if the format supports it Returns a pointer to a member variable of class MR::SceneSave::Settings named lengthUnit.

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

◆ length_unit_mut()

auto meshlib::scene_save::Settings::length_unit_mut ( ) -> &mut meshlib::std_optional_MR_LengthUnit

units of input coordinates and transformation, to be serialized if the format supports it Returns a mutable pointer to a member variable of class MR::SceneSave::Settings named lengthUnit.

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

◆ new()

auto meshlib::scene_save::Settings::new ( ) -> meshlib::Owned< meshlib::scene_save::Settings >
static

Constructs an empty (default-constructed) instance.

Calls MR_SceneSave_Settings_DefaultConstruct().

◆ progress()

auto meshlib::scene_save::Settings::progress ( ) const -> &meshlib::std_function_bool_from_float

to report loading progress and allow the user to cancel it Returns a pointer to a member variable of class MR::SceneSave::Settings named progress.

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

◆ progress_mut()

auto meshlib::scene_save::Settings::progress_mut ( ) -> &mut meshlib::std_function_bool_from_float

to report loading progress and allow the user to cancel it Returns a mutable pointer to a member variable of class MR::SceneSave::Settings named progress.

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

◆ set_length_unit()

void meshlib::scene_save::Settings::set_length_unit ( value:Option< meshlib::LengthUnit > )

units of input coordinates and transformation, to be serialized if the format supports it Modifies a member variable of class MR::SceneSave::Settings named lengthUnit.

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

◆ set_progress()

void meshlib::scene_save::Settings::set_progress ( value:&meshlib::std_function_bool_from_float )

to report loading progress and allow the user to cancel it Modifies a member variable of class MR::SceneSave::Settings named progress.

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


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