skia_safe::textlayout

Type Alias ParagraphBuilder

Source
pub type ParagraphBuilder = RefHandle<skia_textlayout_ParagraphBuilder>;

Aliased Type§

struct ParagraphBuilder(/* private fields */);

Implementations§

Source§

impl ParagraphBuilder

Source

pub fn push_style(&mut self, style: &TextStyle) -> &mut Self

Source

pub fn pop(&mut self) -> &mut Self

Source

pub fn peek_style(&mut self) -> TextStyle

Source

pub fn add_text(&mut self, str: impl AsRef<str>) -> &mut Self

Source

pub fn add_placeholder( &mut self, placeholder_style: &PlaceholderStyle, ) -> &mut Self

Source

pub fn build(&mut self) -> Paragraph

Source

pub fn get_text(&mut self) -> &str

Source

pub fn get_paragraph_style(&self) -> ParagraphStyle

Source

pub fn reset(&mut self)

Source

pub fn new( style: &ParagraphStyle, font_collection: impl Into<FontCollection>, ) -> Self

Trait Implementations§

Source§

impl Debug for ParagraphBuilder

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Send for ParagraphBuilder

Source§

impl Sync for ParagraphBuilder