Struct conrod::TabsStyle
[−]
[src]
pub struct TabsStyle { pub maybe_layout: Option<Layout>, pub maybe_bar_width: Option<Scalar>, pub maybe_label_color: Option<Color>, pub maybe_label_font_size: Option<FontSize>, pub canvas: Style, }
The styling for Canvas Tabs.
Fields
maybe_layout: Option<Layout>
The direction in which the tabs will be laid out.
maybe_bar_width: Option<Scalar>
The width of the tab bar. For horizontally laid out tabs, this is the height of the bar. For vertically laid out tabs, this is the width of the bar.
maybe_label_color: Option<Color>
The color of the tabs' labels.
maybe_label_font_size: Option<FontSize>
The font size for the tabs' labels.
canvas: Style
Styling for each of the canvasses passed to the Canvas.
Methods
impl Style
[src]
fn new() -> Style
Construct the default Tabs
style.
fn layout(&self, theme: &Theme) -> Layout
Get the layout of the tabs for the Tabs
widget.
fn label_color(&self, theme: &Theme) -> Color
Get the color for the tab labels.
fn font_size(&self, theme: &Theme) -> FontSize
Get the font size for the tab labels.
Trait Implementations
impl Encodable for Style
[src]
impl Decodable 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