Struct sndjvu_format::annot::Maparea
source · pub struct Maparea {
pub link: Link,
pub comment: Quoted,
pub shape: Shape,
pub border: Border,
}
Expand description
A maparea
annotation.
let dest = Quoted::new("http://www.lizardtech.com/");
let comment = Quoted::new("Here is a rectangular hyperlink");
let shape = Shape::Rect {
origin: Point { x: 543, y: 2859 },
width: 408,
height: 183,
border_always_visible: false,
highlight: None,
};
let annot: Annot = Maparea {
link: Link { dest, target: None },
comment,
shape,
border: Border::Xor,
}.into();
assert_eq!(
annot.to_string(),
"(maparea \
\"http://www.lizardtech.com/\" \
\"Here is a rectangular hyperlink\" \
(rect 543 2859 408 183) (xor))",
);
Fields§
§link: Link
§comment: Quoted
§shape: Shape
§border: Border
Trait Implementations§
source§impl PartialEq for Maparea
impl PartialEq for Maparea
impl Eq for Maparea
impl StructuralEq for Maparea
impl StructuralPartialEq for Maparea
Auto Trait Implementations§
impl RefUnwindSafe for Maparea
impl Send for Maparea
impl Sync for Maparea
impl Unpin for Maparea
impl UnwindSafe for Maparea
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