pub struct LightingMaterial {
pub ambient: f64,
pub diffuse: f64,
pub specular: f64,
pub shine: f64,
}Expand description
How a surface reflects the lights: the amounts of the ambient, diffuse and specular lighting and the shininess of the specular highlight (the members of the scene lighting effect of WinUI).
Fields§
§ambient: f64§diffuse: f64§specular: f64§shine: f64Implementations§
Source§impl LightingMaterial
impl LightingMaterial
Sourcepub const VISUAL: LightingMaterial
pub const VISUAL: LightingMaterial
The lighting of the content of a visual: ambient and diffuse at full amount, no specular (WinUI’s lights light visuals diffusely).
Trait Implementations§
Source§impl Clone for LightingMaterial
impl Clone for LightingMaterial
impl Copy for LightingMaterial
Source§impl Debug for LightingMaterial
impl Debug for LightingMaterial
Source§impl PartialEq for LightingMaterial
impl PartialEq for LightingMaterial
impl StructuralPartialEq for LightingMaterial
Auto Trait Implementations§
impl Freeze for LightingMaterial
impl RefUnwindSafe for LightingMaterial
impl Send for LightingMaterial
impl Sync for LightingMaterial
impl Unpin for LightingMaterial
impl UnsafeUnpin for LightingMaterial
impl UnwindSafe for LightingMaterial
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more