pub struct SurfaceColors { /* private fields */ }Expand description
Paired (background, foreground, border) colors resolved for one SurfaceRole.
Components that change a container background MUST take the paired foreground from the same SurfaceColors
so text can never become invisible against its surface.
Implementations§
Source§impl SurfaceColors
impl SurfaceColors
pub fn get_bg(&self) -> Color
pub fn get_mut_bg(&mut self) -> &mut Color
pub fn set_bg(&mut self, val: Color) -> &mut Self
pub fn get_fg(&self) -> Color
pub fn get_mut_fg(&mut self) -> &mut Color
pub fn set_fg(&mut self, val: Color) -> &mut Self
pub fn get_border(&self) -> Color
pub fn get_mut_border(&mut self) -> &mut Color
pub fn set_border(&mut self, val: Color) -> &mut Self
Trait Implementations§
Source§impl Clone for SurfaceColors
impl Clone for SurfaceColors
impl Copy for SurfaceColors
Source§impl Debug for SurfaceColors
impl Debug for SurfaceColors
impl Eq for SurfaceColors
Source§impl Hash for SurfaceColors
impl Hash for SurfaceColors
Source§impl PartialEq for SurfaceColors
impl PartialEq for SurfaceColors
impl StructuralPartialEq for SurfaceColors
Auto Trait Implementations§
impl Forget for SurfaceColors
impl Freeze for SurfaceColors
impl Move for SurfaceColors
impl RefUnwindSafe for SurfaceColors
impl Send for SurfaceColors
impl Sync for SurfaceColors
impl Unpin for SurfaceColors
impl UnsafeUnpin for SurfaceColors
impl UnwindSafe for SurfaceColors
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