pub struct Marker {
pub name: String,
pub shape: String,
pub colour: String,
pub at: MarkerPlace,
pub keys: Vec<String>,
pub size_px: f64,
pub hidden: bool,
}Expand description
A named marker put on a set of objects: what the legend of markers lists.
Which shapes and places exist is declared by
crate::markers::declared; the front end builds its form from that list.
Fields§
§name: StringThe title in the legend. Never empty.
shape: StringThe id of a declared shape (crate::markers::DeclaredShape::id).
colour: String#rrggbb or #rrggbbaa.
at: MarkerPlaceWhere on each object.
keys: Vec<String>The objects, by the front end’s key (object_key).
size_px: f64The symbol’s size, pixels (the width of a contour is the object’s, plus a halo).
Kept in the view and not drawn: no symbol, no legend entry, no note (a marker can be hidden without being deleted). Off by default, and then not written.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Marker
impl<'de> Deserialize<'de> for Marker
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Marker
Auto Trait Implementations§
impl Freeze for Marker
impl RefUnwindSafe for Marker
impl Send for Marker
impl Sync for Marker
impl Unpin for Marker
impl UnsafeUnpin for Marker
impl UnwindSafe for Marker
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