pub struct CornersDotOptions {
pub dot_type: CornerDotType,
pub color: Color,
pub gradient: Option<Gradient>,
}Expand description
Options for styling QR code corner dots (center of finder patterns).
Fields§
§dot_type: CornerDotTypeThe type/style of corner dots.
color: ColorSolid color for corner dots (ignored if gradient is set).
gradient: Option<Gradient>Optional gradient for corner dots.
Implementations§
Source§impl CornersDotOptions
impl CornersDotOptions
Sourcepub fn new(dot_type: CornerDotType) -> Self
pub fn new(dot_type: CornerDotType) -> Self
Create new corner dot options with a specific type.
Sourcepub fn with_type(self, dot_type: CornerDotType) -> Self
pub fn with_type(self, dot_type: CornerDotType) -> Self
Set the dot type.
Sourcepub fn with_color(self, color: Color) -> Self
pub fn with_color(self, color: Color) -> Self
Set the color.
Sourcepub fn with_gradient(self, gradient: Gradient) -> Self
pub fn with_gradient(self, gradient: Gradient) -> Self
Set the gradient.
Trait Implementations§
Source§impl Clone for CornersDotOptions
impl Clone for CornersDotOptions
Source§fn clone(&self) -> CornersDotOptions
fn clone(&self) -> CornersDotOptions
Returns a duplicate of the value. Read more
1.0.0 · 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 CornersDotOptions
impl Debug for CornersDotOptions
Source§impl Default for CornersDotOptions
impl Default for CornersDotOptions
Source§impl PartialEq for CornersDotOptions
impl PartialEq for CornersDotOptions
impl StructuralPartialEq for CornersDotOptions
Auto Trait Implementations§
impl Freeze for CornersDotOptions
impl RefUnwindSafe for CornersDotOptions
impl Send for CornersDotOptions
impl Sync for CornersDotOptions
impl Unpin for CornersDotOptions
impl UnwindSafe for CornersDotOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.