Trait druid::text::TextStorage [−][src]
pub trait TextStorage: PietTextStorage + Data {
fn add_attributes(
&self,
builder: PietTextLayoutBuilder,
env: &Env
) -> PietTextLayoutBuilder { ... }
fn links(&self) -> &[Link]ⓘ { ... }
}
Expand description
A type that represents text that can be displayed.
Provided methods
fn add_attributes(
&self,
builder: PietTextLayoutBuilder,
env: &Env
) -> PietTextLayoutBuilder
fn add_attributes(
&self,
builder: PietTextLayoutBuilder,
env: &Env
) -> PietTextLayoutBuilder
If this TextStorage object manages style spans, it should implement this method and update the provided builder with its spans, as required.