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.
Trait Implementations§
Source§impl Clone for DecorationRect
impl Clone for DecorationRect
Source§fn clone(&self) -> DecorationRect
fn clone(&self) -> DecorationRect
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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