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<ColorScheme> for ColorScheme
impl PartialEq<ColorScheme> 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 ==
.