pub trait WWidgetMergerTrait: WWidgetMergerTraitConst + Widget3DTrait {
// Required method
fn as_raw_mut_WWidgetMerger(&mut self) -> *mut c_void;
// Provided methods
fn add_widget(
&mut self,
widget: &impl Widget3DTraitConst,
pose: Affine3d,
) -> Result<()> { ... }
fn add_widget_def(&mut self, widget: &impl Widget3DTraitConst) -> Result<()> { ... }
fn finalize(&mut self) -> Result<()> { ... }
}
Expand description
Mutable methods for crate::viz::WWidgetMerger
Required Methods§
fn as_raw_mut_WWidgetMerger(&mut self) -> *mut c_void
Provided Methods§
Sourcefn add_widget(
&mut self,
widget: &impl Widget3DTraitConst,
pose: Affine3d,
) -> Result<()>
fn add_widget( &mut self, widget: &impl Widget3DTraitConst, pose: Affine3d, ) -> Result<()>
Add widget to merge with optional position change
§C++ default parameters
- pose: Affine3d::Identity()
Sourcefn add_widget_def(&mut self, widget: &impl Widget3DTraitConst) -> Result<()>
fn add_widget_def(&mut self, widget: &impl Widget3DTraitConst) -> Result<()>
Add widget to merge with optional position change
§Note
This alternative version of WWidgetMergerTrait::add_widget function uses the following default values for its arguments:
- pose: Affine3d::Identity()
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.