Struct egui_graphs::SettingsStyle
source · pub struct SettingsStyle { /* private fields */ }Expand description
SettingsStyle stores settings for the style of the graph.
Implementations§
source§impl SettingsStyle
impl SettingsStyle
sourcepub fn new() -> Self
pub fn new() -> Self
Creates new SettingsStyle with default values.
use egui_graphs::SettingsStyle;
let settings = SettingsStyle::new();sourcepub fn with_labels_always(self, always: bool) -> Self
pub fn with_labels_always(self, always: bool) -> Self
Whether to show labels always or when interacted.
Default is false.
sourcepub fn with_folded_radius_weight(self, weight: f32) -> Self
pub fn with_folded_radius_weight(self, weight: f32) -> Self
For every node folded the folding root node radius is getting bigger by this value.
Default: 2.
sourcepub fn with_edge_radius_weight(self, weight: f32) -> Self
pub fn with_edge_radius_weight(self, weight: f32) -> Self
For every edge connected to node its radius is getting bigger by this value.
Default: 1.
sourcepub fn with_node_color(self, color: Color32) -> Self
pub fn with_node_color(self, color: Color32) -> Self
Sets default color for node.
sourcepub fn with_edge_color(self, color: Color32) -> Self
pub fn with_edge_color(self, color: Color32) -> Self
Sets default color for edge.
pub fn color_node_stroke(&self, ctx: &Context) -> Color32
Trait Implementations§
source§impl Clone for SettingsStyle
impl Clone for SettingsStyle
source§fn clone(&self) -> SettingsStyle
fn clone(&self) -> SettingsStyle
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for SettingsStyle
impl Debug for SettingsStyle
Auto Trait Implementations§
impl RefUnwindSafe for SettingsStyle
impl Send for SettingsStyle
impl Sync for SettingsStyle
impl Unpin for SettingsStyle
impl UnwindSafe for SettingsStyle
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