#[repr(u32)]pub enum Tvg_Stroke_Cap {
TVG_STROKE_CAP_BUTT = 0,
TVG_STROKE_CAP_ROUND = 1,
TVG_STROKE_CAP_SQUARE = 2,
}Expand description
@brief Enumeration determining the ending type of a stroke in the open sub-paths.
Variants§
TVG_STROKE_CAP_BUTT = 0
< The stroke ends exactly at each of the two endpoints of a sub-path. For zero length sub-paths no stroke is rendered.
TVG_STROKE_CAP_ROUND = 1
< The stroke is extended in both endpoints of a sub-path by a half circle, with a radius equal to the half of a stroke width. For zero length sub-paths a full circle is rendered.
TVG_STROKE_CAP_SQUARE = 2
< The stroke is extended in both endpoints of a sub-path by a rectangle, with the width equal to the stroke width and the length equal to the half of the stroke width. For zero length sub-paths the square is rendered with the size of the stroke width.
Trait Implementations§
Source§impl Clone for Tvg_Stroke_Cap
impl Clone for Tvg_Stroke_Cap
Source§fn clone(&self) -> Tvg_Stroke_Cap
fn clone(&self) -> Tvg_Stroke_Cap
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Tvg_Stroke_Cap
impl Debug for Tvg_Stroke_Cap
Source§impl Hash for Tvg_Stroke_Cap
impl Hash for Tvg_Stroke_Cap
Source§impl PartialEq for Tvg_Stroke_Cap
impl PartialEq for Tvg_Stroke_Cap
Source§fn eq(&self, other: &Tvg_Stroke_Cap) -> bool
fn eq(&self, other: &Tvg_Stroke_Cap) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for Tvg_Stroke_Cap
impl Eq for Tvg_Stroke_Cap
impl StructuralPartialEq for Tvg_Stroke_Cap
Auto Trait Implementations§
impl Freeze for Tvg_Stroke_Cap
impl RefUnwindSafe for Tvg_Stroke_Cap
impl Send for Tvg_Stroke_Cap
impl Sync for Tvg_Stroke_Cap
impl Unpin for Tvg_Stroke_Cap
impl UnsafeUnpin for Tvg_Stroke_Cap
impl UnwindSafe for Tvg_Stroke_Cap
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