Struct freya_engine::prelude::ParagraphBuilder
source · pub struct ParagraphBuilder;
Implementations§
source§impl ParagraphBuilder
impl ParagraphBuilder
pub fn push_style(&mut self, _style: &TextStyle) -> &mut Self
pub fn pop(&mut self) -> &mut Self
pub fn peek_style(&mut self) -> TextStyle
pub fn add_text(&mut self, _str: impl AsRef<str>) -> &mut Self
pub fn add_placeholder( &mut self, _placeholder_style: &PlaceholderStyle ) -> &mut Self
pub fn build(&mut self) -> Paragraph
pub fn reset(&mut self)
pub fn new(_style: &ParagraphStyle, _font_collection: &FontCollection) -> Self
Auto Trait Implementations§
impl RefUnwindSafe for ParagraphBuilder
impl Send for ParagraphBuilder
impl Sync for ParagraphBuilder
impl Unpin for ParagraphBuilder
impl UnwindSafe for ParagraphBuilder
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