#[repr(C)]pub struct Circle {
pub center: Point,
pub radius: i32,
pub color: Scalar,
pub thick: i32,
pub lt: i32,
pub shift: i32,
}Expand description
This structure represents a circle to draw.
Parameters match cv::circle().
Fields§
§center: PointThe center of the circle
radius: i32The radius of the circle
color: ScalarThe color of the circle
thick: i32The thickness of the circle outline, if positive. Negative values, like #FILLED, mean that a filled circle is to be drawn
lt: i32The Type of the circle boundary. See #LineTypes
shift: i32The Number of fractional bits in the coordinates of the center and in the radius value
Implementations§
Source§impl Circle
impl Circle
Sourcepub fn new(
center_: Point,
radius_: i32,
color_: Scalar,
thick_: i32,
lt_: i32,
shift_: i32,
) -> Result<Circle>
pub fn new( center_: Point, radius_: i32, color_: Scalar, thick_: i32, lt_: i32, shift_: i32, ) -> Result<Circle>
Circle constructor
§Parameters
- center_: The center of the circle
- radius_: The radius of the circle
- color_: The color of the circle
- thick_: The thickness of the circle outline, if positive. Negative values, like #FILLED, mean that a filled circle is to be drawn
- lt_: The Type of the circle boundary. See [line_types]
- shift_: The Number of fractional bits in the coordinates of the center and in the radius value
§C++ default parameters
- thick_: 1
- lt_: 8
- shift_: 0
Sourcepub fn new_def(center_: Point, radius_: i32, color_: Scalar) -> Result<Circle>
pub fn new_def(center_: Point, radius_: i32, color_: Scalar) -> Result<Circle>
Circle constructor
§Parameters
- center_: The center of the circle
- radius_: The radius of the circle
- color_: The color of the circle
- thick_: The thickness of the circle outline, if positive. Negative values, like #FILLED, mean that a filled circle is to be drawn
- lt_: The Type of the circle boundary. See [line_types]
- shift_: The Number of fractional bits in the coordinates of the center and in the radius value
§Note
This alternative version of [new] function uses the following default values for its arguments:
- thick_: 1
- lt_: 8
- shift_: 0
pub fn default() -> Circle
Trait Implementations§
impl Copy for Circle
impl StructuralPartialEq for Circle
Auto Trait Implementations§
impl Freeze for Circle
impl RefUnwindSafe for Circle
impl Send for Circle
impl Sync for Circle
impl Unpin for Circle
impl UnwindSafe for Circle
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