pub struct RotatedRenderer<'a> { /* private fields */ }Expand description
Renderer wrapper that applies 90° CCW rotation for platforms where the physical display is landscape but the framebuffer is portrait.
Maps logical coordinates (800×480 landscape) to framebuffer coordinates (480×800 portrait): fb_x = fb_width - logical_y - logical_height fb_y = logical_x fb_w = logical_height fb_h = logical_width
Implementations§
Trait Implementations§
Source§impl Renderer for RotatedRenderer<'_>
impl Renderer for RotatedRenderer<'_>
Source§fn fill_rect(&mut self, rect: WidgetRect, color: Color)
fn fill_rect(&mut self, rect: WidgetRect, color: Color)
Fill the given rectangle with a solid color.
Source§fn blend_rect(&mut self, rect: WidgetRect, color: Color)
fn blend_rect(&mut self, rect: WidgetRect, color: Color)
Blend a rectangle onto the target, honoring the alpha channel of
color
for source-over compositing. Read moreAuto Trait Implementations§
impl<'a> Freeze for RotatedRenderer<'a>
impl<'a> !RefUnwindSafe for RotatedRenderer<'a>
impl<'a> !Send for RotatedRenderer<'a>
impl<'a> !Sync for RotatedRenderer<'a>
impl<'a> Unpin for RotatedRenderer<'a>
impl<'a> UnsafeUnpin for RotatedRenderer<'a>
impl<'a> !UnwindSafe for RotatedRenderer<'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