pub struct CoreGraphicsText { /* private fields */ }
Implementations§
Source§impl CoreGraphicsText
impl CoreGraphicsText
Sourcepub fn new_with_unique_state() -> CoreGraphicsText
pub fn new_with_unique_state() -> CoreGraphicsText
Create a new factory that satisfies the piet Text
trait.
The returned type will have freshly initiated inner state; this means it will not share a cache with any other objects created with this method.
In general this should be created once and then cloned and passed around.
Trait Implementations§
Source§impl Clone for CoreGraphicsText
impl Clone for CoreGraphicsText
Source§fn clone(&self) -> CoreGraphicsText
fn clone(&self) -> CoreGraphicsText
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CoreGraphicsText
impl Debug for CoreGraphicsText
Source§impl Text for CoreGraphicsText
impl Text for CoreGraphicsText
Source§type TextLayout = CoreGraphicsTextLayout
type TextLayout = CoreGraphicsTextLayout
A concrete type that implements the
TextLayout
trait.Source§type TextLayoutBuilder = CoreGraphicsTextLayoutBuilder
type TextLayoutBuilder = CoreGraphicsTextLayoutBuilder
A concrete type that implements the
TextLayoutBuilder
trait.Source§fn font_family(&mut self, family_name: &str) -> Option<FontFamily>
fn font_family(&mut self, family_name: &str) -> Option<FontFamily>
Query the platform for a font with a given name, and return a
FontFamily
object corresponding to that font, if it is found. Read moreSource§fn new_text_layout(&mut self, text: impl TextStorage) -> Self::TextLayoutBuilder
fn new_text_layout(&mut self, text: impl TextStorage) -> Self::TextLayoutBuilder
Create a new layout object to display the provided
text
. Read moreAuto Trait Implementations§
impl Freeze for CoreGraphicsText
impl !RefUnwindSafe for CoreGraphicsText
impl !Send for CoreGraphicsText
impl !Sync for CoreGraphicsText
impl Unpin for CoreGraphicsText
impl !UnwindSafe for CoreGraphicsText
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.