Struct epaint::RectShape [−][src]
pub struct RectShape {
pub rect: Rect,
pub corner_radius: f32,
pub fill: Color32,
pub stroke: Stroke,
}
Expand description
How to paint a rectangle.
Fields
rect: Rect
corner_radius: f32
How rounded the corners are. Use 0.0
for no rounding.
fill: Color32
stroke: Stroke
Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for RectShape
impl UnwindSafe for RectShape
Blanket Implementations
Mutably borrows from an owned value. Read more