Struct oxygengine_user_interface::raui::material::prelude::ThemeProps
source · [−]pub struct ThemeProps {
pub active_colors: ThemeColorsBundle,
pub background_colors: ThemeColorsBundle,
pub content_backgrounds: HashMap<String, ThemedImageMaterial, RandomState>,
pub button_backgrounds: HashMap<String, ThemedButtonMaterial, RandomState>,
pub icons_level_sizes: Vec<f32, Global>,
pub text_variants: HashMap<String, ThemedTextMaterial, RandomState>,
pub switch_variants: HashMap<String, ThemedSwitchMaterial, RandomState>,
pub modal_shadow_variants: HashMap<String, Color, RandomState>,
}
Fields
active_colors: ThemeColorsBundle
background_colors: ThemeColorsBundle
content_backgrounds: HashMap<String, ThemedImageMaterial, RandomState>
icons_level_sizes: Vec<f32, Global>
text_variants: HashMap<String, ThemedTextMaterial, RandomState>
switch_variants: HashMap<String, ThemedSwitchMaterial, RandomState>
modal_shadow_variants: HashMap<String, Color, RandomState>
Trait Implementations
sourceimpl Clone for ThemeProps
impl Clone for ThemeProps
sourcefn clone(&self) -> ThemeProps
fn clone(&self) -> ThemeProps
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ThemeProps
impl Debug for ThemeProps
sourceimpl Default for ThemeProps
impl Default for ThemeProps
sourcefn default() -> ThemeProps
fn default() -> ThemeProps
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ThemeProps
impl<'de> Deserialize<'de> for ThemeProps
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<ThemeProps, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ThemeProps, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Prefab for ThemeProps
impl Prefab for ThemeProps
fn from_prefab(data: Value) -> Result<Self, PrefabError>
fn to_prefab(&self) -> Result<Value, PrefabError>
sourceimpl PropsData for ThemePropswhere
ThemeProps: Clone,
impl PropsData for ThemePropswhere
ThemeProps: Clone,
sourceimpl Serialize for ThemeProps
impl Serialize for ThemeProps
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for ThemeProps
impl Send for ThemeProps
impl Sync for ThemeProps
impl Unpin for ThemeProps
impl UnwindSafe for ThemeProps
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more