pub struct WText3D { /* private fields */ }
Expand description
This 3D Widget represents 3D text. The text always faces the camera.
Implementations§
source§impl WText3D
impl WText3D
sourcepub fn new(
text: &str,
position: Point3d,
text_scale: f64,
face_camera: bool,
color: &Color
) -> Result<WText3D>
pub fn new( text: &str, position: Point3d, text_scale: f64, face_camera: bool, color: &Color ) -> Result<WText3D>
Constructs a WText3D.
Parameters
- text: Text content of the widget.
- position: Position of the text.
- text_scale: Size of the text.
- face_camera: If true, text always faces the camera.
- color: Color of the text.
C++ default parameters
- text_scale: 1.
- face_camera: true
- color: Color::white()
Trait Implementations§
source§impl Boxed for WText3D
impl Boxed for WText3D
source§impl WText3DTrait for WText3D
impl WText3DTrait for WText3D
source§impl WText3DTraitConst for WText3D
impl WText3DTraitConst for WText3D
source§impl Widget3DTrait for WText3D
impl Widget3DTrait for WText3D
fn as_raw_mut_Widget3D(&mut self) -> *mut c_void
source§fn update_pose(&mut self, pose: Affine3d) -> Result<()>
fn update_pose(&mut self, pose: Affine3d) -> Result<()>
Updates pose of the widget by pre-multiplying its current pose. Read more
source§impl Widget3DTraitConst for WText3D
impl Widget3DTraitConst for WText3D
source§impl WidgetTrait for WText3D
impl WidgetTrait for WText3D
source§impl WidgetTraitConst for WText3D
impl WidgetTraitConst for WText3D
impl Send for WText3D
Auto Trait Implementations§
impl RefUnwindSafe for WText3D
impl !Sync for WText3D
impl Unpin for WText3D
impl UnwindSafe for WText3D
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more