Struct rich_sdl2_rust::window::message_box::ColorScheme
source · pub struct ColorScheme {
pub background: Rgb,
pub text: Rgb,
pub button_border: Rgb,
pub button_background: Rgb,
pub button_selected: Rgb,
}
Expand description
A color scheme for a message box.
Fields§
§background: Rgb
A background color in the message box.
text: Rgb
A foreground text color in the message box.
A border color in the message box button.
A background color in the message box button.
A selected color in the message box button.
Trait Implementations§
source§impl Clone for ColorScheme
impl Clone for ColorScheme
source§fn clone(&self) -> ColorScheme
fn clone(&self) -> ColorScheme
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ColorScheme
impl Debug for ColorScheme
source§impl From<ColorScheme> for SDL_MessageBoxColorScheme
impl From<ColorScheme> for SDL_MessageBoxColorScheme
source§fn from(scheme: ColorScheme) -> Self
fn from(scheme: ColorScheme) -> Self
Converts to this type from the input type.
source§impl PartialEq for ColorScheme
impl PartialEq for ColorScheme
source§fn eq(&self, other: &ColorScheme) -> bool
fn eq(&self, other: &ColorScheme) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ColorScheme
impl Eq for ColorScheme
impl StructuralPartialEq for ColorScheme
Auto Trait Implementations§
impl RefUnwindSafe for ColorScheme
impl Send for ColorScheme
impl Sync for ColorScheme
impl Unpin for ColorScheme
impl UnwindSafe for ColorScheme
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