#[non_exhaustive]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 (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.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.
Trait Implementations§
Auto Trait Implementations§
impl Forget for DecorationRect
impl Freeze for DecorationRect
impl Move 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