Implement Frame::stroke_text in canvas API

This commit is contained in:
Héctor Ramón Jiménez 2025-05-01 02:59:59 +02:00
parent 8f3bca299b
commit acde7ea735
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
4 changed files with 41 additions and 0 deletions

View file

@ -217,6 +217,11 @@ pub trait Backend: Sized {
size: Size,
stroke: impl Into<Stroke<'a>>,
);
fn stroke_text<'a>(
&mut self,
text: impl Into<Text>,
stroke: impl Into<Stroke<'a>>,
);
fn fill(&mut self, path: &Path, fill: impl Into<Fill>);
fn fill_text(&mut self, text: impl Into<Text>);
@ -272,6 +277,12 @@ impl Backend for () {
_stroke: impl Into<Stroke<'a>>,
) {
}
fn stroke_text<'a>(
&mut self,
_text: impl Into<Text>,
_stroke: impl Into<Stroke<'a>>,
) {
}
fn fill(&mut self, _path: &Path, _fill: impl Into<Fill>) {}
fn fill_text(&mut self, _text: impl Into<Text>) {}