Struct egui_nodes::Style[][src]

pub struct Style {
Show 16 fields pub grid_spacing: f32, pub node_corner_rounding: f32, pub node_padding_horizontal: f32, pub node_padding_vertical: f32, pub node_border_thickness: f32, pub link_thickness: f32, pub link_line_segments_per_length: f32, pub link_hover_distance: f32, pub pin_circle_radius: f32, pub pin_quad_side_length: f32, pub pin_triangle_side_length: f32, pub pin_line_thickness: f32, pub pin_hover_radius: f32, pub pin_offset: f32, pub flags: usize, pub colors: [Color32; 16],
}
Expand description

The style used by a context Example:

let style = Style { colors: ColorStyle::colors_classic(), ..Default::default() };
let ctx = Context { style, ..Default::default() }

Fields

grid_spacing: f32node_corner_rounding: f32node_padding_horizontal: f32node_padding_vertical: f32node_border_thickness: f32link_thickness: f32link_line_segments_per_length: f32link_hover_distance: f32pin_circle_radius: f32pin_quad_side_length: f32pin_triangle_side_length: f32pin_line_thickness: f32pin_hover_radius: f32pin_offset: f32flags: usizecolors: [Color32; 16]

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.