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

Public Member Functions

auto assign_from_another (_other:&meshlib::NoiseSettings) -> &mut meshlib::NoiseSettings
auto sigma () const -> &f32
auto sigma_mut () -> &mut f32
void set_sigma (value:f32)
auto seed () const -> &core::ffi::c_uint
auto seed_mut () -> &mut core::ffi::c_uint
void set_seed (value:core::ffi::c_uint)
auto callback () const -> &meshlib::std_function_bool_from_float
auto callback_mut () -> &mut meshlib::std_function_bool_from_float
void set_callback (value:&meshlib::std_function_bool_from_float)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::NoiseSettings >
static auto construct_from (sigma:f32, seed:core::ffi::c_uint, callback:&meshlib::std_function_bool_from_float) -> meshlib::Owned< meshlib::NoiseSettings >
static auto construct_from_another (_other:&meshlib::NoiseSettings) -> meshlib::Owned< meshlib::NoiseSettings >
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::NoiseSettings.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ callback()

auto meshlib::NoiseSettings::callback ( ) const -> &meshlib::std_function_bool_from_float

Returns a pointer to a member variable of class MR::NoiseSettings named callback.

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

◆ callback_mut()

auto meshlib::NoiseSettings::callback_mut ( ) -> &mut meshlib::std_function_bool_from_float

Returns a mutable pointer to a member variable of class MR::NoiseSettings named callback.

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

◆ construct_from()

auto meshlib::NoiseSettings::construct_from ( sigma:f32 ,
seed:core::ffi::c_uint ,
callback:&meshlib::std_function_bool_from_float  ) -> meshlib::Owned< meshlib::NoiseSettings >
static

Constructs MR::NoiseSettings elementwise.

Calls MR_NoiseSettings_ConstructFrom(). The reference to the parameter seed might be preserved in the constructed object. The reference to the parameter callback might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::NoiseSettings::NoiseSettings.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_NoiseSettings_DefaultConstruct().

◆ seed()

auto meshlib::NoiseSettings::seed ( ) const -> &core::ffi::c_uint

start state of the generator engine Returns a pointer to a member variable of class MR::NoiseSettings named seed.

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

◆ seed_mut()

auto meshlib::NoiseSettings::seed_mut ( ) -> &mut core::ffi::c_uint

start state of the generator engine Returns a mutable pointer to a member variable of class MR::NoiseSettings named seed.

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

◆ set_callback()

void meshlib::NoiseSettings::set_callback ( value:&meshlib::std_function_bool_from_float )

Modifies a member variable of class MR::NoiseSettings named callback.

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

◆ set_seed()

void meshlib::NoiseSettings::set_seed ( value:core::ffi::c_uint )

start state of the generator engine Modifies a member variable of class MR::NoiseSettings named seed.

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

◆ set_sigma()

void meshlib::NoiseSettings::set_sigma ( value:f32 )

Modifies a member variable of class MR::NoiseSettings named sigma.

Calls MR_NoiseSettings_Set_sigma().

◆ sigma()

auto meshlib::NoiseSettings::sigma ( ) const -> &f32

Returns a pointer to a member variable of class MR::NoiseSettings named sigma.

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

◆ sigma_mut()

auto meshlib::NoiseSettings::sigma_mut ( ) -> &mut f32

Returns a mutable pointer to a member variable of class MR::NoiseSettings named sigma.

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


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