1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Copyright (c) 2023 Xu Shaohua <shaohua@biofan.org>. All rights reserved.
// Use of this source is governed by Lesser General Public License that can be found
// in the LICENSE file.
use crate::core::matrix::Matrix;
use crate::core::paint::Paint;
use crate::core::path::Path;
use crate::core::rect::Rect;
use crate::core::scalar::Scalar;
/// Returns the filled equivalent of the stroked path.
///
/// # Parameters
/// - `src` - Path read to create a filled version
/// - `paint` - Paint, from which attributes such as stroke cap, width, miter, and join,
/// as well as path effect will be used.
/// - `dst` - resulting Path; may be the same as src
/// - `cull_rect` - optional limit passed to `PathEffect`
/// - `res_scale` - if > 1.0, increase precision, else if (`0.0 < res_scale < 1.0`)
/// reduce precision to favor speed and size
///
/// Returns true if the dst path was updated, false if it was not
/// (e.g. if the path represents hairline and cannot be filled).
pub fn fill_path_with_paint_and_scale(
_src: &Path,
_paint: &Paint,
_dst: &mut Path,
_cull_rect: &Rect,
_res_scale: Scalar,
) {
unimplemented!()
}
pub fn fill_path_with_paint_and_cull_rect(
_src: &Path,
_paint: &Paint,
_dst: &mut Path,
_cull_rect: &Rect,
_ctm: &Matrix,
) {
unimplemented!()
}
pub fn fill_path_with_paint(_src: &Path, _paint: &Paint, _dst: &mut Path) {
unimplemented!()
}