pub struct WText3D { /* private fields */ }
Expand description
This 3D Widget represents 3D text. The text always faces the camera.
Implementations
sourceimpl 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
sourceimpl Boxed for WText3D
impl Boxed for WText3D
sourceimpl WText3DTrait for WText3D
impl WText3DTrait for WText3D
sourceimpl WText3DTraitConst for WText3D
impl WText3DTraitConst for WText3D
sourceimpl Widget3DTrait for WText3D
impl Widget3DTrait for WText3D
fn as_raw_mut_Widget3D(&mut self) -> *mut c_void
sourcefn 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
sourceimpl Widget3DTraitConst for WText3D
impl Widget3DTraitConst for WText3D
sourceimpl WidgetTrait for WText3D
impl WidgetTrait for WText3D
sourceimpl WidgetTraitConst for WText3D
impl WidgetTraitConst for WText3D
fn as_raw_Widget(&self) -> *const c_void
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more