Struct piston_window::Rectangle [−][src]
Expand description
A filled rectangle
Fields
color: [f32; 4]
The rectangle color
shape: Shape
The roundness of the rectangle
border: Option<Border>
The border
Implementations
Creates a new rectangle with rounded corners.
Creates a new rectangle border with rounded corners.
Sets optional border.
Draws the rectangle by corners using the default method.
Draws the rectangle using the default method.
rectangle
defines the rectangle’s location and dimensions,
draw_state
draw state, draw_state::Default::default()
can be used
as a default, transform
is the transformation matrix, g
is the
Graphics
implementation, that is used to actually draw the rectangle.s
Trait Implementations
Multiplies with red, green, blue and alpha values.
Auto Trait Implementations
impl RefUnwindSafe for Rectangle
impl UnwindSafe for Rectangle
Blanket Implementations
Mutably borrows from an owned value. Read more