pub struct Typesetter {}Implementations§
Source§impl Typesetter
impl Typesetter
pub fn new() -> Self
Sourcepub fn compose(
&self,
text: &str,
font: &Font,
bounds: LogicalPixelsRect,
_text_alignment: TextAlignment,
alignment: Alignment,
scale_factor: &ScaleFactor,
) -> Galley
pub fn compose( &self, text: &str, font: &Font, bounds: LogicalPixelsRect, _text_alignment: TextAlignment, alignment: Alignment, scale_factor: &ScaleFactor, ) -> Galley
Layouts a text
Trait Implementations§
Source§impl Clone for Typesetter
impl Clone for Typesetter
Source§fn clone(&self) -> Typesetter
fn clone(&self) -> Typesetter
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 moreAuto Trait Implementations§
impl Freeze for Typesetter
impl RefUnwindSafe for Typesetter
impl Send for Typesetter
impl Sync for Typesetter
impl Unpin for Typesetter
impl UnsafeUnpin for Typesetter
impl UnwindSafe for Typesetter
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