add Outline::{len, from_rect_rounded}
This commit is contained in:
parent
29ef4229a9
commit
6b6a3b324d
|
@ -127,6 +127,18 @@ impl Outline {
|
|||
outline
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn from_rect_rounded(rect: RectF, radius: Vector2F) -> Outline {
|
||||
let mut outline = Outline::new();
|
||||
outline.push_contour(Contour::from_rect_rounded(rect, radius));
|
||||
outline
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn len(&self) -> usize {
|
||||
self.contours.len()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn bounds(&self) -> RectF {
|
||||
self.bounds
|
||||
|
|
Loading…
Reference in New Issue