pub struct MinimapStyle {
pub background: Color,
pub border_color: Color,
pub border_width: f32,
pub node_color: Color,
pub selected_node_color: Color,
pub viewport_fill: Color,
pub viewport_border_color: Color,
pub viewport_border_width: f32,
}Expand description
Style of the minimap overlay.
The theme-derived base is default_minimap_style; override it with
NodeGraph::minimap_style. Every length
is in screen pixels: the minimap sits in the widget’s corner and does not
scale with the camera.
Fields§
§background: ColorFill behind the node marks. Usually translucent, since the graph shows through the map.
border_color: ColorStroke around the map.
border_width: f32Width of the map’s own stroke.
node_color: ColorFill of an unselected node’s mark.
selected_node_color: ColorFill of a selected node’s mark.
viewport_fill: ColorFill of the rectangle marking what the viewport currently shows.
viewport_border_color: ColorStroke color of that rectangle.
viewport_border_width: f32Width of that rectangle’s stroke.
Trait Implementations§
Source§impl Clone for MinimapStyle
impl Clone for MinimapStyle
impl Copy for MinimapStyle
Source§impl Debug for MinimapStyle
impl Debug for MinimapStyle
Source§impl PartialEq for MinimapStyle
impl PartialEq for MinimapStyle
impl StructuralPartialEq for MinimapStyle
Auto Trait Implementations§
impl Freeze for MinimapStyle
impl RefUnwindSafe for MinimapStyle
impl Send for MinimapStyle
impl Sync for MinimapStyle
impl Unpin for MinimapStyle
impl UnsafeUnpin for MinimapStyle
impl UnwindSafe for MinimapStyle
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