pub struct CompositingLayerSpec {
pub opacity: u8,
pub background: CompositingLayerBackground,
pub transform: LayerTransform,
/* private fields */
}Expand description
An independently retained paint surface. Animation is only one possible producer of changes.
Fields§
§opacity: u8§background: CompositingLayerBackground§transform: LayerTransformImplementations§
Source§impl CompositingLayerSpec
impl CompositingLayerSpec
pub const fn new() -> Self
pub const fn opaque(self) -> Self
pub const fn transparent(self) -> Self
pub fn opacity(self, opacity: f32) -> Self
pub fn opacity_f32(self) -> f32
pub fn transform(self, transform: LayerTransform) -> Self
pub fn rotation_degrees(self, degrees: f32) -> Self
pub fn rotation_radians(self, radians: f32) -> Self
pub fn scale(self, scale: f32) -> Self
pub fn scale_xy(self, scale_x: f32, scale_y: f32) -> Self
pub fn transform_origin(self, x: f32, y: f32) -> Self
pub fn translation(self, x: f32, y: f32) -> Self
Trait Implementations§
Source§impl Clone for CompositingLayerSpec
impl Clone for CompositingLayerSpec
Source§fn clone(&self) -> CompositingLayerSpec
fn clone(&self) -> CompositingLayerSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CompositingLayerSpec
Source§impl Debug for CompositingLayerSpec
impl Debug for CompositingLayerSpec
Source§impl Default for CompositingLayerSpec
impl Default for CompositingLayerSpec
impl Eq for CompositingLayerSpec
Source§impl Hash for CompositingLayerSpec
impl Hash for CompositingLayerSpec
Source§impl PartialEq for CompositingLayerSpec
impl PartialEq for CompositingLayerSpec
impl StructuralPartialEq for CompositingLayerSpec
Auto Trait Implementations§
impl Freeze for CompositingLayerSpec
impl RefUnwindSafe for CompositingLayerSpec
impl Send for CompositingLayerSpec
impl Sync for CompositingLayerSpec
impl Unpin for CompositingLayerSpec
impl UnsafeUnpin for CompositingLayerSpec
impl UnwindSafe for CompositingLayerSpec
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