Struct Style

Source
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: f32§node_corner_rounding: f32§node_padding_horizontal: f32§node_padding_vertical: f32§node_border_thickness: f32§link_thickness: f32§link_line_segments_per_length: f32§link_hover_distance: f32§pin_circle_radius: f32§pin_quad_side_length: f32§pin_triangle_side_length: f32§pin_line_thickness: f32§pin_hover_radius: f32§pin_offset: f32§flags: usize§colors: [Color32; 16]

Trait Implementations§

Source§

impl Debug for Style

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Style

Source§

fn default() -> Self

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

Auto Trait Implementations§

§

impl Freeze for Style

§

impl RefUnwindSafe for Style

§

impl Send for Style

§

impl Sync for Style

§

impl Unpin for Style

§

impl UnwindSafe for Style

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.