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]
impl Encodable for Style
[src]
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]
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