mirror of
https://github.com/griffi-gh/hUI.git
synced 2024-11-25 16:38:42 -06:00
impl from corners f32 for roundedcorners
This commit is contained in:
parent
7bfd12749b
commit
85810a2e59
|
@ -17,6 +17,12 @@ pub struct RoundedCorners {
|
||||||
pub point_count: NonZeroU16,
|
pub point_count: NonZeroU16,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl From<Corners<f32>> for RoundedCorners {
|
||||||
|
fn from(radius: Corners<f32>) -> Self {
|
||||||
|
Self::from_radius(radius)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl RoundedCorners {
|
impl RoundedCorners {
|
||||||
pub fn from_radius(radius: Corners<f32>) -> Self {
|
pub fn from_radius(radius: Corners<f32>) -> Self {
|
||||||
Self {
|
Self {
|
||||||
|
|
Loading…
Reference in a new issue