pub struct Color { /* private fields */ }
Implementations§
Source§impl Color
impl Color
pub const NAMED_COLORS: &'static [&'static str]
pub const COLOR_BLACK: &'static str = "FF000000"
pub const COLOR_WHITE: &'static str = "FFFFFFFF"
pub const COLOR_RED: &'static str = "FFFF0000"
pub const COLOR_DARKRED: &'static str = "FF800000"
pub const COLOR_BLUE: &'static str = "FF0000FF"
pub const COLOR_DARKBLUE: &'static str = "FF000080"
pub const COLOR_GREEN: &'static str = "FF00FF00"
pub const COLOR_DARKGREEN: &'static str = "FF008000"
pub const COLOR_YELLOW: &'static str = "FFFFFF00"
pub const COLOR_DARKYELLOW: &'static str = "FF808000"
Sourcepub fn get_argb(&self) -> &str
pub fn get_argb(&self) -> &str
Get Argb. If the color is based on the theme, it cannot be obtained with this function. In that case, use get_argb_with_theme(&self, theme: &Theme).
Sourcepub fn get_argb_with_theme(&self, theme: &Theme) -> Cow<'static, str>
pub fn get_argb_with_theme(&self, theme: &Theme) -> Cow<'static, str>
Get Argb. Color information based on the theme can also be obtained.
§Examples
let mut book = umya_spreadsheet::new_file();
let theme = book.get_theme();
pub fn set_argb<S: Into<String>>(&mut self, value: S) -> &mut Self
pub fn get_indexed(&self) -> &u32
pub fn set_indexed(&mut self, index: u32) -> &mut Self
pub fn get_theme_index(&self) -> &u32
pub fn set_theme_index(&mut self, index: u32) -> &mut Self
pub fn get_tint(&self) -> &f64
pub fn set_tint(&mut self, value: f64) -> &mut Color
Trait Implementations§
Source§impl PartialOrd for Color
impl PartialOrd for Color
impl StructuralPartialEq for Color
Auto Trait Implementations§
impl Freeze for Color
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin for Color
impl UnwindSafe for Color
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more