Enum sndjvu_format::annot::Shape
source · pub enum Shape {
Rect {
origin: Point,
width: u32,
height: u32,
border_always_visible: bool,
highlight: Option<Highlight>,
},
Oval {
origin: Point,
width: u32,
height: u32,
border_always_visible: bool,
},
Text {
origin: Point,
width: u32,
height: u32,
background_color: Option<Color>,
text_color: Color,
pushpin: bool,
},
Poly {
vertices: Vec<Point>,
border_always_visible: bool,
},
Line {
endpoints: [Point; 2],
arrow: bool,
width: u32,
color: Color,
},
}
Expand description
Shape and “effect” data associated with a maparea
annotation.
Variants§
Trait Implementations§
source§impl PartialEq for Shape
impl PartialEq for Shape
impl Eq for Shape
impl StructuralEq for Shape
impl StructuralPartialEq for Shape
Auto Trait Implementations§
impl RefUnwindSafe for Shape
impl Send for Shape
impl Sync for Shape
impl Unpin for Shape
impl UnwindSafe for Shape
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