[][src]Trait druid::text::TextStorage

pub trait TextStorage: PietTextStorage + Data {
    pub fn add_attributes(
        &self,
        builder: PietTextLayoutBuilder,
        env: &Env
    ) -> PietTextLayoutBuilder { ... } }

A type that represents text that can be displayed.

Provided methods

pub fn add_attributes(
    &self,
    builder: PietTextLayoutBuilder,
    env: &Env
) -> PietTextLayoutBuilder
[src]

If this TextStorage object manages style spans, it should implement this method and update the provided builder with its spans, as required.

Loading content...

Implementations on Foreign Types

impl TextStorage for String[src]

impl TextStorage for Arc<String>[src]

Loading content...

Implementors

impl TextStorage for RichText[src]

impl TextStorage for ArcStr[src]

Loading content...