Struct conrod::scroll::Style [] [src]

pub struct Style {
    pub maybe_thickness: Option<Scalar>,
    pub maybe_color: Option<Color>,
}

Style for the Scrolling.

Fields

maybe_thickness: Option<Scalar>

The width for vertical scrollbars, the height for horizontal scrollbars.

maybe_color: Option<Color>

The color of the scrollbar.

Methods

impl Style
[src]

fn new() -> Style

Construct a new default Style.

fn thickness(&self, theme: &Theme) -> Scalar

Get the thickness of the scrollbar or a default from the theme.

fn color(&self, theme: &Theme) -> Color

Get the Color for an Element.

Trait Implementations

impl Decodable for Style
[src]

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Style, __D::Error>

impl Encodable for Style
[src]

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl PartialEq for Style
[src]

fn eq(&self, __arg_0: &Style) -> bool

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

fn ne(&self, __arg_0: &Style) -> bool

This method tests for !=.

impl Debug for Style
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for Style
[src]

fn clone(&self) -> Style

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for Style
[src]