pub struct GlassKeyFill {
pub height_dp: f32,
pub curvature: f32,
pub angle_radians: f32,
pub saturation: f32,
pub luma_gain: f32,
pub offset: f32,
pub scale_with_surface: bool,
}Expand description
Opposing edge lights whose color responds to the backdrop. Nonfinite fields or nonpositive height or curvature disable this treatment.
Fields§
§height_dp: f32Inward extent of the highlight, in dp.
curvature: f32Linear reduction in brightness across the highlight’s inward extent.
angle_radians: f32Direction of the first light in screen-space radians; the second is opposite.
saturation: f32Gain applied to the backdrop’s chroma in the reflected color.
luma_gain: f32Gain applied to the backdrop’s luminance in the reflected color.
offset: f32Additive contribution to each reflected color channel.
scale_with_surface: boolWhether the highlight width follows the surface transform or stays fixed on screen.
Trait Implementations§
Source§impl Clone for GlassKeyFill
impl Clone for GlassKeyFill
impl Copy for GlassKeyFill
Source§impl Debug for GlassKeyFill
impl Debug for GlassKeyFill
Source§impl PartialEq for GlassKeyFill
impl PartialEq for GlassKeyFill
impl StructuralPartialEq for GlassKeyFill
Auto Trait Implementations§
impl Freeze for GlassKeyFill
impl RefUnwindSafe for GlassKeyFill
impl Send for GlassKeyFill
impl Sync for GlassKeyFill
impl Unpin for GlassKeyFill
impl UnsafeUnpin for GlassKeyFill
impl UnwindSafe for GlassKeyFill
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