pub enum Paint {
Panel {
bounds: Bounds,
radius: u8,
fill: Option<Rgb>,
border: Option<Rgb>,
shadow: bool,
dashed: bool,
},
Wash {
bounds: Bounds,
radius: u8,
color: Rgb,
alpha: u8,
border: Option<Rgb>,
},
Hairline {
bounds: Bounds,
color: Rgb,
},
Text {
x: i32,
y: i32,
max_width: i32,
text: String,
color: Rgb,
font: Font,
align_right: bool,
centred: bool,
underline: bool,
},
Icon {
bounds: Bounds,
icon: Icon,
color: Rgb,
},
Corners {
bounds: Bounds,
radius: u8,
color: Rgb,
which: u8,
},
Strips {
bounds: Bounds,
strips: Vec<Strip>,
},
Image {
bounds: Bounds,
clip: Bounds,
bitmap: Bitmap,
color: Rgb,
},
}Variants§
Panel
Fields
Wash
A see-through wash with round corners over what’s already drawn, text included, and a border twice a panel’s weight: where something dragged would land.
Fields
Hairline
A line one device pixel thick, along the top or left of bounds.
Text
Fields
Icon
Corners
Fills the listed corners of bounds back in. Cells can’t be rounded and paint
can’t go under text, so a rounded surface is cells with its corners painted out.
Strips
A row’s share of a minimap: many small bars, which as panels would be slow.
Image
A bitmap scaled to bounds. Coverage is inked in color.
Implementations§
Trait Implementations§
impl Eq for Paint
impl StructuralPartialEq for Paint
Auto Trait Implementations§
impl Freeze for Paint
impl RefUnwindSafe for Paint
impl Send for Paint
impl Sync for Paint
impl Unpin for Paint
impl UnsafeUnpin for Paint
impl UnwindSafe for Paint
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