pub struct ForegroundScopeProps {
pub layout: LayoutStyle,
pub foreground: Option<Color>,
}Expand description
A paint-only foreground scope wrapper (v2).
This is intentionally layout-only + paint-only: it does not imply semantics beyond its children, and it is input-transparent (hit-test passes through).
Fields§
§layout: LayoutStyle§foreground: Option<Color>Trait Implementations§
Source§impl Clone for ForegroundScopeProps
impl Clone for ForegroundScopeProps
Source§fn clone(&self) -> ForegroundScopeProps
fn clone(&self) -> ForegroundScopeProps
Returns a duplicate of the value. Read more
1.0.0 · 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 ForegroundScopeProps
impl Debug for ForegroundScopeProps
Source§impl Default for ForegroundScopeProps
impl Default for ForegroundScopeProps
Source§fn default() -> ForegroundScopeProps
fn default() -> ForegroundScopeProps
Returns the “default value” for a type. Read more
impl Copy for ForegroundScopeProps
Auto Trait Implementations§
impl Freeze for ForegroundScopeProps
impl RefUnwindSafe for ForegroundScopeProps
impl Send for ForegroundScopeProps
impl Sync for ForegroundScopeProps
impl Unpin for ForegroundScopeProps
impl UnsafeUnpin for ForegroundScopeProps
impl UnwindSafe for ForegroundScopeProps
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