pub struct TitlePlacement {
pub origin: (f32, f32),
pub rotation_center: (f32, f32),
pub rotation_degrees: f32,
}Expand description
Draw origin and optional rotation for a chart or axis title.
Fields§
§origin: (f32, f32)§rotation_center: (f32, f32)§rotation_degrees: f32Implementations§
Source§impl TitlePlacement
impl TitlePlacement
Sourcepub fn rect(self, extents: TextExtents) -> RectF
pub fn rect(self, extents: TextExtents) -> RectF
Axis-aligned screen rectangle of the placed text envelope.
Trait Implementations§
Source§impl Clone for TitlePlacement
impl Clone for TitlePlacement
impl Copy for TitlePlacement
Source§impl Debug for TitlePlacement
impl Debug for TitlePlacement
Source§impl PartialEq for TitlePlacement
impl PartialEq for TitlePlacement
impl StructuralPartialEq for TitlePlacement
Auto Trait Implementations§
impl Freeze for TitlePlacement
impl RefUnwindSafe for TitlePlacement
impl Send for TitlePlacement
impl Sync for TitlePlacement
impl Unpin for TitlePlacement
impl UnsafeUnpin for TitlePlacement
impl UnwindSafe for TitlePlacement
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