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

Public Member Functions

auto name () const -> meshlib::Owned< meshlib::std_string >
void action (_1:meshlib::HistoryAction_Type)
auto heap_bytes () const -> usize
auto upcast_to_history_action () const -> &meshlib::HistoryAction
auto upcast_to_history_action_mut () -> &mut meshlib::HistoryAction

Static Public Member Functions

static auto construct_from_another (_other:&meshlib::ChangeObjectAction) -> meshlib::Owned< meshlib::ChangeObjectAction >
static auto construct (name:&str, obj:&meshlib::std_shared_ptr_MR_Object) -> meshlib::Owned< meshlib::ChangeObjectAction >
static auto static_downcast_from_history_action (object:&meshlib::HistoryAction) -> &Self
static auto static_downcast_from_history_action_mut (object:&mut meshlib::HistoryAction) -> &mut Self
static auto dynamic_downcast_from_history_action (object:&meshlib::HistoryAction) -> Option<&Self >
static auto dynamic_downcast_from_history_action_mut (object:&mut meshlib::HistoryAction) -> Option<&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

History action for object change Generated from class MR::ChangeObjectAction. Base classes: Direct: (non-virtual) MR::HistoryAction

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

Member Function Documentation

◆ action()

void meshlib::ChangeObjectAction::action ( _1:meshlib::HistoryAction_Type )

Generated from method MR::ChangeObjectAction::action.

Calls MR_ChangeObjectAction_action().

◆ construct()

auto meshlib::ChangeObjectAction::construct ( name:& str,
obj:&meshlib::std_shared_ptr_MR_Object  ) -> meshlib::Owned< meshlib::ChangeObjectAction >
static

Constructed from original Object Generated from constructor MR::ChangeObjectAction::ChangeObjectAction.

Calls MR_ChangeObjectAction_Construct(). The reference to the parameter name might be preserved in the constructed object. The reference to the parameter obj might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::ChangeObjectAction::ChangeObjectAction.

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

◆ dynamic_downcast_from_history_action()

auto meshlib::ChangeObjectAction::dynamic_downcast_from_history_action ( object:&meshlib::HistoryAction ) -> Option<&Self >
static

Dynamic downcast from the base class MR::HistoryAction. Returns None if the object isn't actually a ChangeObjectAction.

Calls MR_ChangeObjectAction_DynamicDowncastFrom_MR_HistoryAction().

◆ dynamic_downcast_from_history_action_mut()

auto meshlib::ChangeObjectAction::dynamic_downcast_from_history_action_mut ( object:&mut meshlib::HistoryAction ) -> Option<&mut Self >
static

Dynamic downcast from the base class MR::HistoryAction. Returns None if the object isn't actually a ChangeObjectAction.

Calls MR_ChangeObjectAction_MutableDynamicDowncastFrom_MR_HistoryAction().

◆ heap_bytes()

auto meshlib::ChangeObjectAction::heap_bytes ( ) const -> usize

Generated from method MR::ChangeObjectAction::heapBytes.

Calls MR_ChangeObjectAction_heapBytes().

◆ name()

auto meshlib::ChangeObjectAction::name ( ) const -> meshlib::Owned< meshlib::std_string >

Generated from method MR::ChangeObjectAction::name.

Calls MR_ChangeObjectAction_name().

◆ static_downcast_from_history_action()

auto meshlib::ChangeObjectAction::static_downcast_from_history_action ( object:&meshlib::HistoryAction ) -> &Self
static

Static downcast from the base class MR::HistoryAction.

Calls MR_ChangeObjectAction_StaticDowncastFrom_MR_HistoryAction(). Undefined behavior if the object isn't actually a ChangeObjectAction.

Note
This function is unsafe.

◆ static_downcast_from_history_action_mut()

auto meshlib::ChangeObjectAction::static_downcast_from_history_action_mut ( object:&mut meshlib::HistoryAction ) -> &mut Self
static

Static downcast from the base class MR::HistoryAction.

Calls MR_ChangeObjectAction_MutableStaticDowncastFrom_MR_HistoryAction(). Undefined behavior if the object isn't actually a ChangeObjectAction.

Note
This function is unsafe.

◆ upcast_to_history_action()

auto meshlib::ChangeObjectAction::upcast_to_history_action ( ) const -> &meshlib::HistoryAction

Upcasts to the base class MR::HistoryAction.

Calls MR_ChangeObjectAction_UpcastTo_MR_HistoryAction().

◆ upcast_to_history_action_mut()

auto meshlib::ChangeObjectAction::upcast_to_history_action_mut ( ) -> &mut meshlib::HistoryAction

Upcasts to the base class MR::HistoryAction.

Calls MR_ChangeObjectAction_MutableUpcastTo_MR_HistoryAction().


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