Struct gemini_engine::elements::ascii::Text
source · pub struct Text<'a> {
pub pos: Vec2D,
pub content: &'a str,
pub modifier: Modifier,
/* private fields */
}
Expand description
Displays text starting at the given position
Fields§
§pos: Vec2D
§content: &'a str
§modifier: Modifier
Implementations§
Trait Implementations§
source§impl ViewElement for Text<'_>
impl ViewElement for Text<'_>
source§fn active_pixels(&self) -> Vec<Point>
fn active_pixels(&self) -> Vec<Point>
Return a vector of every coordinate where a pixel should be placed and its respective
ColChar
. If your whole object is a solid colour, consider using utils::points_to_pixels()
which will add the same ColChar
to every point and can then be used as this function’s outputAuto Trait Implementations§
impl<'a> RefUnwindSafe for Text<'a>
impl<'a> Send for Text<'a>
impl<'a> Sync for Text<'a>
impl<'a> Unpin for Text<'a>
impl<'a> UnwindSafe for Text<'a>
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