pub struct DotsOptions {
pub dot_type: DotType,
pub color: Color,
pub gradient: Option<Gradient>,
pub round_size: bool,
}Expand description
Options for styling QR code dots.
Fields§
§dot_type: DotTypeThe type/style of dots.
color: ColorSolid color for dots (ignored if gradient is set).
gradient: Option<Gradient>Optional gradient for dots.
round_size: boolWhether to round dot sizes to whole pixels.
Implementations§
Source§impl DotsOptions
impl DotsOptions
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.
Sourcepub fn with_round_size(self, round_size: bool) -> Self
pub fn with_round_size(self, round_size: bool) -> Self
Set round_size option.
Trait Implementations§
Source§impl Clone for DotsOptions
impl Clone for DotsOptions
Source§fn clone(&self) -> DotsOptions
fn clone(&self) -> DotsOptions
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 DotsOptions
impl Debug for DotsOptions
Source§impl Default for DotsOptions
impl Default for DotsOptions
Source§impl PartialEq for DotsOptions
impl PartialEq for DotsOptions
impl StructuralPartialEq for DotsOptions
Auto Trait Implementations§
impl Freeze for DotsOptions
impl RefUnwindSafe for DotsOptions
impl Send for DotsOptions
impl Sync for DotsOptions
impl Unpin for DotsOptions
impl UnsafeUnpin for DotsOptions
impl UnwindSafe for DotsOptions
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.