pub struct DecorationRect {
pub rect: [f32; 4],
pub color: [f32; 4],
pub kind: DecorationKind,
}Expand description
A colored rectangle for decorations (underlines, selections, borders, etc.).
Fields§
§rect: [f32; 4]Screen position and size: [x, y, width, height] in pixels.
color: [f32; 4]Color: [r, g, b, a], 0.0-1.0.
kind: DecorationKindWhat kind of decoration this rectangle represents.
Auto Trait Implementations§
impl Freeze for DecorationRect
impl RefUnwindSafe for DecorationRect
impl Send for DecorationRect
impl Sync for DecorationRect
impl Unpin for DecorationRect
impl UnsafeUnpin for DecorationRect
impl UnwindSafe for DecorationRect
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