Struct conrod::widget::graph::node::Style[][src]

pub struct Style {
    pub color: Option<Color>,
    pub socket_length: Option<Scalar>,
    pub border: Option<Scalar>,
    pub border_radius: Option<Scalar>,
    pub border_color: Option<Color>,
    pub socket_color: Option<Color>,
    pub input_socket_layout: Option<SocketLayout>,
    pub output_socket_layout: Option<SocketLayout>,
}

Unique styling for the BorderedRectangle widget.

Fields

Shape color for the inner rectangle.

The length of each rectangle along its SocketSide.

The widget of the border around the widget.

this should always be a positive value in order for sockets to remain visible.

The radius of the rounded corners of the border.

This value will be clamped to the border thickness.

A value of 0.0 gives square corners.

Color of the border.

Color of the sockets.

Default layout for input sockets.

Default layout for node output sockets.

Trait Implementations

impl Copy for Style
[src]

impl Clone for Style
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Style
[src]

Formats the value using the given formatter. Read more

impl Default for Style
[src]

Returns the "default value" for a type. Read more

impl PartialEq for Style
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for Style

impl Sync for Style