pub struct TextRotation {
pub cx: f32,
pub cy: f32,
pub angle_deg: f32,
pub half_width: f32,
}Expand description
The position/orientation operands for ContentBuilder::text_rotated,
grouped into one argument so the method stays under clippy’s
too-many-arguments threshold without merging it into ContentBuilder::text.
Fields§
§cx: f32Rotation center, x.
cy: f32Rotation center, y.
angle_deg: f32Counter-clockwise rotation angle in degrees.
half_width: f32Half the text run’s width, used to horizontally center it on cx.
Trait Implementations§
Source§impl Clone for TextRotation
impl Clone for TextRotation
Source§fn clone(&self) -> TextRotation
fn clone(&self) -> TextRotation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TextRotation
Source§impl Debug for TextRotation
impl Debug for TextRotation
Source§impl PartialEq for TextRotation
impl PartialEq for TextRotation
impl StructuralPartialEq for TextRotation
Auto Trait Implementations§
impl Freeze for TextRotation
impl RefUnwindSafe for TextRotation
impl Send for TextRotation
impl Sync for TextRotation
impl Unpin for TextRotation
impl UnsafeUnpin for TextRotation
impl UnwindSafe for TextRotation
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