Struct charts_rs::Theme

source ·
pub struct Theme {
Show 40 fields pub is_light: bool, pub font_family: String, pub margin: Box, pub width: f32, pub height: f32, pub background_color: Color, pub title_font_size: f32, pub title_font_color: Color, pub title_font_weight: Option<String>, pub title_margin: Option<Box>, pub title_align: Align, pub title_height: f32, pub sub_title_font_size: f32, pub sub_title_font_color: Color, pub sub_title_margin: Option<Box>, pub sub_title_align: Align, pub sub_title_height: f32, pub legend_font_size: f32, pub legend_font_color: Color, pub legend_align: Align, pub legend_margin: Option<Box>, pub x_axis_font_size: f32, pub x_axis_stroke_color: Color, pub x_axis_font_color: Color, pub x_axis_name_gap: f32, pub x_axis_height: f32, pub y_axis_font_size: f32, pub y_axis_font_color: Color, pub y_axis_stroke_color: Color, pub y_axis_split_number: usize, pub y_axis_name_gap: f32, pub grid_stroke_color: Color, pub grid_stroke_width: f32, pub series_stroke_width: f32, pub series_label_font_size: f32, pub series_label_font_color: Color, pub series_colors: Vec<Color>, pub table_header_color: Color, pub table_body_colors: Vec<Color>, pub table_border_color: Color,
}

Fields§

§is_light: bool§font_family: String§margin: Box§width: f32§height: f32§background_color: Color§title_font_size: f32§title_font_color: Color§title_font_weight: Option<String>§title_margin: Option<Box>§title_align: Align§title_height: f32§sub_title_font_size: f32§sub_title_font_color: Color§sub_title_margin: Option<Box>§sub_title_align: Align§sub_title_height: f32§legend_font_size: f32§legend_font_color: Color§legend_align: Align§legend_margin: Option<Box>§x_axis_font_size: f32§x_axis_stroke_color: Color§x_axis_font_color: Color§x_axis_name_gap: f32§x_axis_height: f32§y_axis_font_size: f32§y_axis_font_color: Color§y_axis_stroke_color: Color§y_axis_split_number: usize§y_axis_name_gap: f32§grid_stroke_color: Color§grid_stroke_width: f32§series_stroke_width: f32§series_label_font_size: f32§series_label_font_color: Color§series_colors: Vec<Color>§table_header_color: Color§table_body_colors: Vec<Color>§table_border_color: Color

Trait Implementations§

source§

impl Clone for Theme

source§

fn clone(&self) -> Theme

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl Debug for Theme

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Theme

source§

fn default() -> Theme

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for Theme

§

impl Send for Theme

§

impl Sync for Theme

§

impl Unpin for Theme

§

impl UnwindSafe for Theme

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<R, P> ReadPrimitive<R> for P
where R: Read + ReadEndian<P>, P: Default,

source§

fn read_from_little_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_little_endian().
source§

fn read_from_big_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_big_endian().
source§

fn read_from_native_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_native_endian().
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.