pub struct SelectionBox {
pub rect: RectF,
pub color: Color,
pub stroke_width: f32,
pub handles: Vec<RectF>,
}Expand description
The blue box drawn around a selected element. Produced by
Selectable::selection_box; consumed by the renderer’s skia pass.
Fields§
§rect: RectFBox rect in chart-surface pixels (already padding-expanded).
color: Color§stroke_width: f32§handles: Vec<RectF>Resize handle squares (empty for non-resizable elements). Drawn as filled squares on top of the box outline.
Trait Implementations§
Source§impl Clone for SelectionBox
impl Clone for SelectionBox
Source§impl Debug for SelectionBox
impl Debug for SelectionBox
Source§impl PartialEq for SelectionBox
impl PartialEq for SelectionBox
impl StructuralPartialEq for SelectionBox
Auto Trait Implementations§
impl Freeze for SelectionBox
impl RefUnwindSafe for SelectionBox
impl Send for SelectionBox
impl Sync for SelectionBox
impl Unpin for SelectionBox
impl UnsafeUnpin for SelectionBox
impl UnwindSafe for SelectionBox
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