Static Public Member Functions | |
| static auto | construct_from_another (_other:&meshlib::FeatureObjectSharedProperty) -> meshlib::Owned< meshlib::FeatureObjectSharedProperty > |
| 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 |
FeatureObjectSharedProperty struct is designed to represent a shared property of a feature object, enabling the use of generalized getter and setter methods for property manipulation. propertyName: A string representing the name of the property. getter : A std::function encapsulating a method with no parameters that returns a FeaturesPropertyTypesVariant.This allows for a generic way to retrieve the value of the property. setter : A std::function encapsulating a method that takes a FeaturesPropertyTypesVariant as a parameter and returns void.This function sets the value of the property. The templated constructor of this struct takes the property name, pointers to the getter and setter member functions, and a pointer to the object( obj ). The constructor initializes the propertyName and uses lambdas to adapt the member function pointers into std::function objects that conform to the expected getter and setter signatures.The getter lambda invokes the getter method on the object, and the setter lambda ensures the correct variant type is passed before invoking the setter method. Generated from class MR::FeatureObjectSharedProperty.
Generated from class MR::FeatureObjectSharedProperty. Heap-allocated instances are held in Owned<FeatureObjectSharedProperty>.
| auto meshlib::FeatureObjectSharedProperty::assign_from_another | ( | _other:&meshlib::FeatureObjectSharedProperty | ) | -> &mut meshlib::FeatureObjectSharedProperty |
Generated from method MR::FeatureObjectSharedProperty::operator=.
Calls MR_FeatureObjectSharedProperty_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.
|
static |
Generated from constructor MR::FeatureObjectSharedProperty::FeatureObjectSharedProperty.
Calls MR_FeatureObjectSharedProperty_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.
| auto meshlib::FeatureObjectSharedProperty::getter | ( | ) | const -> &meshlib::std_function_std_variant_float_MR_Vector3f_from_const_MR_FeatureObject_ptr_MR_ViewportId |
due to getAllSharedProperties in FeatureObject returns static vector, we need externaly setup object to invoke setter ad getter. Returns a pointer to a member variable of class MR::FeatureObjectSharedProperty named getter.
Calls MR_FeatureObjectSharedProperty_Get_getter(). The reference to this object might be preserved as the return value.
| auto meshlib::FeatureObjectSharedProperty::getter_mut | ( | ) | -> &mut meshlib::std_function_std_variant_float_MR_Vector3f_from_const_MR_FeatureObject_ptr_MR_ViewportId |
due to getAllSharedProperties in FeatureObject returns static vector, we need externaly setup object to invoke setter ad getter. Returns a mutable pointer to a member variable of class MR::FeatureObjectSharedProperty named getter.
Calls MR_FeatureObjectSharedProperty_GetMutable_getter(). The reference to this object might be preserved as the return value.
| auto meshlib::FeatureObjectSharedProperty::kind | ( | ) | const -> &meshlib::FeaturePropertyKind |
Returns a pointer to a member variable of class MR::FeatureObjectSharedProperty named kind.
Calls MR_FeatureObjectSharedProperty_Get_kind(). The reference to this object might be preserved as the return value.
| auto meshlib::FeatureObjectSharedProperty::kind_mut | ( | ) | -> &mut meshlib::FeaturePropertyKind |
Returns a mutable pointer to a member variable of class MR::FeatureObjectSharedProperty named kind.
Calls MR_FeatureObjectSharedProperty_GetMutable_kind(). The reference to this object might be preserved as the return value.
| auto meshlib::FeatureObjectSharedProperty::property_name | ( | ) | const -> &meshlib::std_string |
Returns a pointer to a member variable of class MR::FeatureObjectSharedProperty named propertyName.
Calls MR_FeatureObjectSharedProperty_Get_propertyName(). The reference to this object might be preserved as the return value.
| auto meshlib::FeatureObjectSharedProperty::property_name_mut | ( | ) | -> &mut meshlib::std_string |
Returns a mutable pointer to a member variable of class MR::FeatureObjectSharedProperty named propertyName.
Calls MR_FeatureObjectSharedProperty_GetMutable_propertyName(). The reference to this object might be preserved as the return value.
| void meshlib::FeatureObjectSharedProperty::set_getter | ( | value:&meshlib::std_function_std_variant_float_MR_Vector3f_from_const_MR_FeatureObject_ptr_MR_ViewportId | ) |
due to getAllSharedProperties in FeatureObject returns static vector, we need externaly setup object to invoke setter ad getter. Modifies a member variable of class MR::FeatureObjectSharedProperty named getter.
Calls MR_FeatureObjectSharedProperty_Set_getter(). The reference to the parameter value might be preserved in this object in element getter.
| void meshlib::FeatureObjectSharedProperty::set_kind | ( | value:meshlib::FeaturePropertyKind | ) |
Modifies a member variable of class MR::FeatureObjectSharedProperty named kind.
Calls MR_FeatureObjectSharedProperty_Set_kind(). The reference to the parameter value might be preserved in this object in element kind.
| void meshlib::FeatureObjectSharedProperty::set_property_name | ( | value:& | str | ) |
Modifies a member variable of class MR::FeatureObjectSharedProperty named propertyName.
Calls MR_FeatureObjectSharedProperty_Set_propertyName(). The reference to the parameter value might be preserved in this object in element propertyName.
| void meshlib::FeatureObjectSharedProperty::set_setter | ( | value:&meshlib::std_function_void_from_const_std_variant_float_MR_Vector3f_ref_MR_FeatureObject_ptr_MR_ViewportId | ) |
NOTE: id should usually be {}, not the current viewport ID, to set the property for all viewports. Passing a non-zero ID would only modify the active viewport, and per-viewport properties aren't usually used. Modifies a member variable of class MR::FeatureObjectSharedProperty named setter.
Calls MR_FeatureObjectSharedProperty_Set_setter(). The reference to the parameter value might be preserved in this object in element setter.
| auto meshlib::FeatureObjectSharedProperty::setter | ( | ) | const -> &meshlib::std_function_void_from_const_std_variant_float_MR_Vector3f_ref_MR_FeatureObject_ptr_MR_ViewportId |
NOTE: id should usually be {}, not the current viewport ID, to set the property for all viewports. Passing a non-zero ID would only modify the active viewport, and per-viewport properties aren't usually used. Returns a pointer to a member variable of class MR::FeatureObjectSharedProperty named setter.
Calls MR_FeatureObjectSharedProperty_Get_setter(). The reference to this object might be preserved as the return value.
| auto meshlib::FeatureObjectSharedProperty::setter_mut | ( | ) | -> &mut meshlib::std_function_void_from_const_std_variant_float_MR_Vector3f_ref_MR_FeatureObject_ptr_MR_ViewportId |
NOTE: id should usually be {}, not the current viewport ID, to set the property for all viewports. Passing a non-zero ID would only modify the active viewport, and per-viewport properties aren't usually used. Returns a mutable pointer to a member variable of class MR::FeatureObjectSharedProperty named setter.
Calls MR_FeatureObjectSharedProperty_GetMutable_setter(). The reference to this object might be preserved as the return value.