Skip to content

Commit 903e23e

Browse files
committed
define new trait function to determine if anti-aliasing is used
- value is true by default - backends can opt to support the functionality
1 parent 561ba27 commit 903e23e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

plotters-backend/src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,4 +326,10 @@ pub trait DrawingBackend: Sized {
326326

327327
Ok(())
328328
}
329+
330+
/// Utilize anti-aliasing if supported by the chosen backend.
331+
/// By default this option is true.
332+
fn use_anti_aliasing(&self) -> bool {
333+
true
334+
}
329335
}

0 commit comments

Comments
 (0)