#[repr(i32)]pub enum PostScriptCap {
PostScriptNotSet = -2,
PostScriptFlatCap = 0,
PostScriptRoundCap = 1,
PostScriptSquareCap = 2,
}Expand description
The PostScriptCap Enumeration defines line-ending types for use with a PostScript printer driver.
Variants§
PostScriptNotSet = -2
Specifies that the line-ending style has not been set and that a default style can be used. (In Windows implementations, the PostScript printer driver uses a default line join style of PostScriptFlatCap.)
PostScriptFlatCap = 0
Specifies that the line ends at the last point. The end is squared off.
PostScriptRoundCap = 1
Specifies a circular cap. The center of the circle is the last point in the line. The diameter of the circle is the same as the line width; that is, the thickness of the line.
PostScriptSquareCap = 2
Specifies a square cap. The center of the square is the last point in the line. The height and width of the square are the same as the line width; that is, the thickness of the line.
Implementations§
Source§impl PostScriptCap
impl PostScriptCap
Source§impl PostScriptCap
impl PostScriptCap
Trait Implementations§
Source§impl Clone for PostScriptCap
impl Clone for PostScriptCap
impl Copy for PostScriptCap
Source§impl Debug for PostScriptCap
impl Debug for PostScriptCap
impl Eq for PostScriptCap
Source§impl IntoEnumIterator for PostScriptCap
impl IntoEnumIterator for PostScriptCap
type Iterator = PostScriptCapIter
fn iter() -> PostScriptCapIter ⓘ
Source§impl Ord for PostScriptCap
impl Ord for PostScriptCap
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for PostScriptCap
impl PartialEq for PostScriptCap
Source§impl PartialOrd for PostScriptCap
impl PartialOrd for PostScriptCap
impl StructuralPartialEq for PostScriptCap
Auto Trait Implementations§
impl Forget for PostScriptCap
impl Freeze for PostScriptCap
impl Move for PostScriptCap
impl RefUnwindSafe for PostScriptCap
impl Send for PostScriptCap
impl Sync for PostScriptCap
impl Unpin for PostScriptCap
impl UnsafeUnpin for PostScriptCap
impl UnwindSafe for PostScriptCap
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.