#[macro_export]
macro_rules! impl_style {
() => {
pub fn background_color(mut self, color: impl $crate::IntoColor<$crate::Rgba>) -> Self {
self.style.background_color = color.into_color();
self
}
pub fn border_width(mut self, width: f32) -> Self {
self.style.border_width(width);
self
}
pub fn border_color(mut self, color: impl $crate::IntoColor<$crate::Rgba>) -> Self {
self.style.border_color(color);
self
}
pub fn border(mut self, border: agape_core::Border) -> Self {
self.style.border = Some(border);
self
}
pub fn corner_radius(mut self, radius: u32) -> Self {
self.style.corner_radius(radius);
self
}
pub fn fit(mut self) -> Self {
self.style.fit();
self
}
pub fn fit_height(mut self) -> Self {
self.style.fit_height();
self
}
pub fn fit_width(mut self) -> Self {
self.style.fit_width();
self
}
pub fn fill(mut self) -> Self {
self.style.fill();
self
}
pub fn fill_width(mut self) -> Self {
self.style.fill_width();
self
}
pub fn fill_height(mut self) -> Self {
self.style.fill_height();
self
}
pub fn fixed(mut self, width: f32, height: f32) -> Self {
self.style.fixed(width, height);
self
}
};
}