pub struct TextBlock { /* private fields */ }Implementations§
Source§impl TextBlock
impl TextBlock
pub fn new(x: i32, y: i32, width: i32, height: i32) -> TextBlock
pub fn fg<COLOR>(&mut self, fg: RGB)
pub fn bg<COLOR>(&mut self, bg: COLOR)
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 Freeze for TextBlock
impl RefUnwindSafe for TextBlock
impl Send for TextBlock
impl Sync for TextBlock
impl Unpin for TextBlock
impl UnsafeUnpin for TextBlock
impl UnwindSafe for TextBlock
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