Struct buffer_graphics_lib::text::Text
source · pub struct Text { /* private fields */ }
Implementations§
source§impl Text
impl Text
pub fn pos(&self) -> TextPos
pub fn formatting(&self) -> &TextFormat
sourcepub fn with_formatting<F: Into<TextFormat>>(&self, format: F) -> Self
pub fn with_formatting<F: Into<TextFormat>>(&self, format: F) -> Self
As text wrapping is calculated when the text object is created changing it as no effect
pub fn with_color(&self, color: Color) -> Self
pub fn with_pos<P: Into<TextPos>>(&self, pos: P) -> Self
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Text
impl Send for Text
impl Sync for Text
impl Unpin for Text
impl UnwindSafe for Text
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