Struct druid::piet::CoreGraphicsText
pub struct CoreGraphicsText { /* private fields */ }
Implementations§
§impl CoreGraphicsText
impl CoreGraphicsText
pub 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§
§impl Clone for CoreGraphicsText
impl Clone for CoreGraphicsText
§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 more§impl Debug for CoreGraphicsText
impl Debug for CoreGraphicsText
§impl Text for CoreGraphicsText
impl Text for CoreGraphicsText
§type TextLayout = CoreGraphicsTextLayout
type TextLayout = CoreGraphicsTextLayout
A concrete type that implements the
TextLayout
trait.§type TextLayoutBuilder = CoreGraphicsTextLayoutBuilder
type TextLayoutBuilder = CoreGraphicsTextLayoutBuilder
A concrete type that implements the
TextLayoutBuilder
trait.§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 more§fn new_text_layout(
&mut self,
text: impl TextStorage
) -> <CoreGraphicsText as Text>::TextLayoutBuilder
fn new_text_layout( &mut self, text: impl TextStorage ) -> <CoreGraphicsText as Text>::TextLayoutBuilder
Create a new layout object to display the provided
text
. Read moreAuto Trait Implementations§
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.