Implement Frame::stroke_text in canvas API
This commit is contained in:
parent
8f3bca299b
commit
acde7ea735
4 changed files with 41 additions and 0 deletions
|
|
@ -537,6 +537,14 @@ mod geometry {
|
|||
);
|
||||
}
|
||||
|
||||
fn stroke_text<'a>(
|
||||
&mut self,
|
||||
text: impl Into<Text>,
|
||||
stroke: impl Into<Stroke<'a>>,
|
||||
) {
|
||||
delegate!(self, frame, frame.stroke_text(text, stroke));
|
||||
}
|
||||
|
||||
fn fill_text(&mut self, text: impl Into<Text>) {
|
||||
delegate!(self, frame, frame.fill_text(text));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue