pub struct DisplayRect { /* private fields */ }Expand description
Implementations§
Source§impl DisplayRect
impl DisplayRect
Sourcepub fn with(self, property: impl RenderProperty) -> DisplayRect
pub fn with(self, property: impl RenderProperty) -> DisplayRect
Adds a render property to this display rectangle.
Sourcepub fn fill<'a>(self, buf: &mut DoubleBuffer) -> DisplayRect
pub fn fill<'a>(self, buf: &mut DoubleBuffer) -> DisplayRect
Fills the rectangle with the current style.
Sourcepub fn skip(self, amount: u32) -> DisplayRect
pub fn skip(self, amount: u32) -> DisplayRect
Advances the horizontal offset by the given amount.
Sourcepub fn fmt<'a>(
self,
buf: &mut DoubleBuffer,
content: impl Display,
) -> DisplayRect
pub fn fmt<'a>( self, buf: &mut DoubleBuffer, content: impl Display, ) -> DisplayRect
Renders formatted content using Display.
Sourcepub fn text(self, buf: &mut DoubleBuffer, text: &str) -> DisplayRect
pub fn text(self, buf: &mut DoubleBuffer, text: &str) -> DisplayRect
Renders the given text string.
Auto Trait Implementations§
impl Freeze for DisplayRect
impl RefUnwindSafe for DisplayRect
impl Send for DisplayRect
impl Sync for DisplayRect
impl Unpin for DisplayRect
impl UnwindSafe for DisplayRect
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