pub struct PaintProps {
pub background: Option<ColorValue>,
pub border_color: Option<ColorValue>,
pub text_color: Option<ColorValue>,
pub corner_radius: RadiusValue,
}Expand description
The properties that are painted but never laid out.
Colors and radii are ColorValues and RadiusValues, so a style can
name a theme token. They resolve to concrete values when the node paints,
against the theme that is current then.
Fields§
§background: Option<ColorValue>Fill painted behind the node’s content, or None for no fill.
border_color: Option<ColorValue>Color of the border drawn inside the node’s edge, or None for no
border. Its thickness is LayoutProps::border_width.
text_color: Option<ColorValue>Color a widget’s text paints with, or None to let the widget use its
own. Widgets without text ignore it.
corner_radius: RadiusValueCorner radius of the background and the border, the same on all four corners.
Trait Implementations§
Source§impl Clone for PaintProps
impl Clone for PaintProps
Source§impl Debug for PaintProps
impl Debug for PaintProps
Source§impl Default for PaintProps
impl Default for PaintProps
Source§impl PartialEq for PaintProps
impl PartialEq for PaintProps
impl StructuralPartialEq for PaintProps
Auto Trait Implementations§
impl Forget for PaintProps
impl Freeze for PaintProps
impl Move for PaintProps
impl RefUnwindSafe for PaintProps
impl Send for PaintProps
impl Sync for PaintProps
impl Unpin for PaintProps
impl UnsafeUnpin for PaintProps
impl UnwindSafe for PaintProps
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more