Allow border radii to be set via preshints

This commit is contained in:
Manish Goregaokar 2017-05-10 14:08:01 -07:00
parent d5efed6c6a
commit 195e37954f
2 changed files with 11 additions and 1 deletions

View file

@ -26,6 +26,12 @@ impl<L> HasViewportPercentage for BorderRadiusSize<L> {
fn has_viewport_percentage(&self) -> bool { false }
}
impl<L: Clone> From<L> for BorderRadiusSize<L> {
fn from(other: L) -> Self {
Self::new(other.clone(), other)
}
}
impl<L> BorderRadiusSize<L> {
#[inline]
/// Create a new `BorderRadiusSize` for an area of given width and height.