pub struct TextColor { /* private fields */ }Implementations§
Source§impl TextColor
impl TextColor
pub fn empty(&self) -> Self
pub fn new(&self, r: u8, g: u8, b: u8, a: u8) -> Self
pub fn set_red(&mut self, red: u8)
pub fn set_green(&mut self, green: u8)
pub fn set_blue(&mut self, blue: u8)
pub fn set_alpha(&mut self, alpha: u8)
pub fn get_red(&self) -> u8
pub fn get_green(&self) -> u8
pub fn get_blue(&self) -> u8
pub fn get_alpha(&self) -> u8
pub fn get_red_upsample(&self) -> u16
pub fn get_green_upsample(&self) -> u16
pub fn get_blue_upsample(&self) -> u16
pub fn get_alpha_upsample(&self) -> u16
pub fn white() -> Self
pub fn black() -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TextColor
impl RefUnwindSafe for TextColor
impl !Send for TextColor
impl !Sync for TextColor
impl Unpin for TextColor
impl UnwindSafe for TextColor
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