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
color: Option<Color>
Shape color for the inner rectangle.
socket_length: Option<Scalar>
The length of each rectangle along its SocketSide
.
border: Option<Scalar>
The widget of the border around the widget.
this should always be a positive value in order for sockets to remain visible.
border_radius: Option<Scalar>
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.
border_color: Option<Color>
Color of the border.
socket_color: Option<Color>
Color of the sockets.
input_socket_layout: Option<SocketLayout>
Default layout for input sockets.
output_socket_layout: Option<SocketLayout>
Default layout for node output sockets.
Trait Implementations
impl Copy for Style
[src]
impl Copy for Style
impl Clone for Style
[src]
impl Clone for Style
fn clone(&self) -> Style
[src]
fn clone(&self) -> Style
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Style
[src]
impl Debug for Style
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for Style
[src]
impl Default for Style
impl PartialEq for Style
[src]
impl PartialEq for Style