Trait INode3D
pub trait INode3D: AsAny {
// Provided methods
fn on_attached(&self) -> Result<(), Error> { ... }
fn on_detached(&self) -> Result<(), Error> { ... }
fn on_node_property_changed(
&self,
property_type: PropertyType<()>,
reason: PropertyNotificationReason,
) -> Result<(), Error> { ... }
fn measure_override(
&self,
available_size: Vector3,
) -> Result<Vector3, Error> { ... }
fn arrange_override(&self, actual_size: Vector3) -> Result<(), Error> { ... }
}Provided Methods§
fn on_attached(&self) -> Result<(), Error>
fn on_attached(&self) -> Result<(), Error>
Called when an object node becomes attached.
fn on_detached(&self) -> Result<(), Error>
fn on_detached(&self) -> Result<(), Error>
Called when an object node becomes detached.
fn on_node_property_changed(
&self,
property_type: PropertyType<()>,
reason: PropertyNotificationReason,
) -> Result<(), Error>
fn on_node_property_changed( &self, property_type: PropertyType<()>, reason: PropertyNotificationReason, ) -> Result<(), Error>
Method executed on node property change.
§Arguments
property_type- Property that was changed in node.reason- Change reason.