#[repr(C)]pub struct Rect {
pub rect: Rect,
pub color: Scalar,
pub thick: i32,
pub lt: i32,
pub shift: i32,
}
Expand description
This structure represents a rectangle to draw.
Parameters match cv::rectangle().
Fields§
§rect: Rect
Coordinates of the rectangle
color: Scalar
The rectangle color or brightness (grayscale image)
thick: i32
The thickness of lines that make up the rectangle. Negative values, like #FILLED, mean that the function has to draw a filled rectangle
lt: i32
The type of the line. See #LineTypes
shift: i32
The number of fractional bits in the point coordinates
Implementations§
source§impl Rect
impl Rect
sourcepub fn new(
rect_: Rect,
color_: Scalar,
thick_: i32,
lt_: i32,
shift_: i32
) -> Result<Rect>
pub fn new( rect_: Rect, color_: Scalar, thick_: i32, lt_: i32, shift_: i32 ) -> Result<Rect>
Rect constructor
Parameters
- rect_: Coordinates of the rectangle
- color_: The bottom-left corner of the text string in the image
- thick_: The thickness of lines that make up the rectangle. Negative values, like #FILLED, mean that the function has to draw a filled rectangle
- lt_: The type of the line. See #LineTypes
- shift_: The number of fractional bits in the point coordinates
C++ default parameters
- thick_: 1
- lt_: 8
- shift_: 0
pub fn default() -> Rect
Trait Implementations§
source§impl PartialEq<Rect> for Rect
impl PartialEq<Rect> for Rect
impl Copy for Rect
impl StructuralPartialEq for Rect
Auto Trait Implementations§
impl RefUnwindSafe for Rect
impl Send for Rect
impl Sync for Rect
impl Unpin for Rect
impl UnwindSafe for Rect
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