pub struct BackgroundConfig {
pub source: BackgroundSource,
pub padding: u32,
pub corner_radius: u32,
pub shadow: u32,
pub inset: u32,
}Expand description
Background framing: the backdrop plus the padding / rounding / shadow that lift the screen capture off it.
Fields§
§source: BackgroundSourceThe backdrop fill.
padding: u32Padding between the backdrop edge and the framed screen, in composed-canvas pixels.
corner_radius: u32Corner radius of the framed screen, in composed-canvas pixels.
shadow: u32Drop-shadow strength, 0..=100.
inset: u32Inset border (a colored frame just inside the screen edge), in
pixels. 0 disables it.
Trait Implementations§
Source§impl Clone for BackgroundConfig
impl Clone for BackgroundConfig
Source§fn clone(&self) -> BackgroundConfig
fn clone(&self) -> BackgroundConfig
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 moreSource§impl Debug for BackgroundConfig
impl Debug for BackgroundConfig
Source§impl Default for BackgroundConfig
impl Default for BackgroundConfig
Source§impl<'de> Deserialize<'de> for BackgroundConfigwhere
BackgroundConfig: Default,
impl<'de> Deserialize<'de> for BackgroundConfigwhere
BackgroundConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BackgroundConfig
impl PartialEq for BackgroundConfig
Source§fn eq(&self, other: &BackgroundConfig) -> bool
fn eq(&self, other: &BackgroundConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BackgroundConfig
impl Serialize for BackgroundConfig
impl StructuralPartialEq for BackgroundConfig
Auto Trait Implementations§
impl Freeze for BackgroundConfig
impl RefUnwindSafe for BackgroundConfig
impl Send for BackgroundConfig
impl Sync for BackgroundConfig
impl Unpin for BackgroundConfig
impl UnsafeUnpin for BackgroundConfig
impl UnwindSafe for BackgroundConfig
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