Struct bracket_terminal::prelude::TextBlock
source · [−]pub struct TextBlock { /* private fields */ }
Implementations
sourceimpl TextBlock
impl TextBlock
pub fn new(x: i32, y: i32, width: i32, height: i32) -> TextBlock
pub fn fg<COLOR>(&mut self, fg: RGB)where
COLOR: Into<RGBA>,
pub fn bg<COLOR>(&mut self, bg: COLOR)where
COLOR: Into<RGBA>,
pub fn move_to(&mut self, x: i32, y: i32)
pub fn get_cursor(&self) -> Point
pub fn get_origin(&self) -> Point
pub fn set_origin(&mut self, origin: Point)
pub fn render(&self, console: impl AsMut<dyn Console>)
pub fn render_to_draw_batch(&self, draw_batch: &mut DrawBatch)
pub fn render_to_draw_batch_clip(&self, draw_batch: &mut DrawBatch, clip: &Rect)
pub fn print(&mut self, text: &TextBuilder) -> Result<(), OutOfSpace>
Auto Trait Implementations
impl RefUnwindSafe for TextBlock
impl Send for TextBlock
impl Sync for TextBlock
impl Unpin for TextBlock
impl UnwindSafe for TextBlock
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more