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