pub enum Shape {
FillBg {
rect: Rect,
color: Rgba,
},
FillWith {
rect: Rect,
pixel: Pixel,
},
Line {
start: Pos2,
end: Pos2,
pixel: Pixel,
},
Text {
rect: Rect,
shape: TextShape<'static>,
},
Set {
pos: Pos2,
cell: Cell,
},
}Expand description
Shapes that a Rasterizer can produce
Variants§
FillBg
Fill the region with a color
FillWith
Fill the region with a pixel
Line
Draw a line between 2 positions, wtih a pixel
Text
Draws some text into a region
Set
Set a specific cell at a position with a Cell
Trait Implementations§
impl StructuralPartialEq for Shape
Auto Trait Implementations§
impl Freeze for Shape
impl RefUnwindSafe for Shape
impl Send for Shape
impl Sync for Shape
impl Unpin for Shape
impl UnwindSafe for Shape
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