pub struct MapStyle {
pub border: Option<Stroke>,
pub line: Option<Stroke>,
pub fill_color: Color32,
pub text_color: Color32,
pub font: Option<FontId>,
pub background_color: Color32,
pub alert_color: Color32,
}Expand description
Visual style used to paint the map under a given theme.
Multiplying or dividing a MapStyle by a number scales the stroke widths
and the font size, leaving colors untouched; the widget uses this to scale
the active style with the current zoom factor. Fields that are None are
left untouched by those operators.
Fields§
§border: Option<Stroke>Stroke used for the widget border.
line: Option<Stroke>Stroke used for the connection lines between nodes.
fill_color: Color32Color used to fill node shapes.
text_color: Color32Color used for text.
font: Option<FontId>Font used for map labels.
background_color: Color32Background color of the map canvas.
alert_color: Color32Color used for notification pulse animations.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MapStyle
impl RefUnwindSafe for MapStyle
impl Send for MapStyle
impl Sync for MapStyle
impl Unpin for MapStyle
impl UnsafeUnpin for MapStyle
impl UnwindSafe for MapStyle
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more