pub struct NodeEditorStyle {Show 28 fields
pub node_padding: [f32; 4],
pub node_rounding: f32,
pub node_border_width: f32,
pub hovered_node_border_width: f32,
pub hovered_node_border_offset: f32,
pub selected_node_border_width: f32,
pub selected_node_border_offset: f32,
pub pin_rounding: f32,
pub pin_border_width: f32,
pub link_strength: f32,
pub source_direction: [f32; 2],
pub target_direction: [f32; 2],
pub scroll_duration: f32,
pub flow_marker_distance: f32,
pub flow_speed: f32,
pub flow_duration: f32,
pub pivot_alignment: [f32; 2],
pub pivot_size: [f32; 2],
pub pivot_scale: [f32; 2],
pub pin_corners: f32,
pub pin_radius: f32,
pub pin_arrow_size: f32,
pub pin_arrow_width: f32,
pub group_rounding: f32,
pub group_border_width: f32,
pub highlight_connected_links: f32,
pub snap_link_to_pin_dir: f32,
pub colors: [[f32; 4]; 19],
}Fields§
§node_padding: [f32; 4]§node_rounding: f32§node_border_width: f32§hovered_node_border_width: f32§hovered_node_border_offset: f32§selected_node_border_width: f32§selected_node_border_offset: f32§pin_rounding: f32§pin_border_width: f32§link_strength: f32§source_direction: [f32; 2]§target_direction: [f32; 2]§scroll_duration: f32§flow_marker_distance: f32§flow_speed: f32§flow_duration: f32§pivot_alignment: [f32; 2]§pivot_size: [f32; 2]§pivot_scale: [f32; 2]§pin_corners: f32§pin_radius: f32§pin_arrow_size: f32§pin_arrow_width: f32§group_rounding: f32§group_border_width: f32§highlight_connected_links: f32§snap_link_to_pin_dir: f32§colors: [[f32; 4]; 19]Implementations§
Source§impl NodeEditorStyle
impl NodeEditorStyle
pub fn color(&self, color: StyleColor) -> [f32; 4]
pub fn set_color(&mut self, color: StyleColor, value: [f32; 4])
Trait Implementations§
Source§impl Clone for NodeEditorStyle
impl Clone for NodeEditorStyle
Source§fn clone(&self) -> NodeEditorStyle
fn clone(&self) -> NodeEditorStyle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NodeEditorStyle
impl Debug for NodeEditorStyle
Source§impl PartialEq for NodeEditorStyle
impl PartialEq for NodeEditorStyle
Source§fn eq(&self, other: &NodeEditorStyle) -> bool
fn eq(&self, other: &NodeEditorStyle) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NodeEditorStyle
Auto Trait Implementations§
impl Freeze for NodeEditorStyle
impl RefUnwindSafe for NodeEditorStyle
impl Send for NodeEditorStyle
impl Sync for NodeEditorStyle
impl Unpin for NodeEditorStyle
impl UnsafeUnpin for NodeEditorStyle
impl UnwindSafe for NodeEditorStyle
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