pub enum RegionShape {
Empty,
Rect([i32; 4], [f32; 4]),
Ellipse([i32; 4]),
}Expand description
The shape a Region starts from, for a renderer that draws one:
see Region::shape.
Variants§
Empty
No area.
Rect([i32; 4], [f32; 4])
A rectangle as [left, top, right, bottom], with its corner radii
clockwise from the top left as given, before
Radii::fit.
Ellipse([i32; 4])
The ellipse filling [left, top, right, bottom].
Trait Implementations§
Source§impl Clone for RegionShape
impl Clone for RegionShape
impl Copy for RegionShape
Source§impl Debug for RegionShape
impl Debug for RegionShape
Source§impl PartialEq for RegionShape
impl PartialEq for RegionShape
impl StructuralPartialEq for RegionShape
Auto Trait Implementations§
impl Forget for RegionShape
impl Freeze for RegionShape
impl Move for RegionShape
impl RefUnwindSafe for RegionShape
impl Send for RegionShape
impl Sync for RegionShape
impl Unpin for RegionShape
impl UnsafeUnpin for RegionShape
impl UnwindSafe for RegionShape
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