pub struct BackgroundView<Content, Bg> { /* private fields */ }Expand description
A view that renders a background behind the content.
The content determines the layout size, and the background fills the bounds. The background renders first (behind), then content renders on top.
Implementations§
Source§impl<Content, Bg> BackgroundView<Content, Bg>
impl<Content, Bg> BackgroundView<Content, Bg>
Trait Implementations§
Source§impl<Content, Bg> Debug for BackgroundView<Content, Bg>
impl<Content, Bg> Debug for BackgroundView<Content, Bg>
Auto Trait Implementations§
impl<Content, Bg> Freeze for BackgroundView<Content, Bg>
impl<Content, Bg> RefUnwindSafe for BackgroundView<Content, Bg>where
Content: RefUnwindSafe,
Bg: RefUnwindSafe,
impl<Content, Bg> Send for BackgroundView<Content, Bg>
impl<Content, Bg> Sync for BackgroundView<Content, Bg>
impl<Content, Bg> Unpin for BackgroundView<Content, Bg>
impl<Content, Bg> UnsafeUnpin for BackgroundView<Content, Bg>where
Content: UnsafeUnpin,
Bg: UnsafeUnpin,
impl<Content, Bg> UnwindSafe for BackgroundView<Content, Bg>where
Content: UnwindSafe,
Bg: UnwindSafe,
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
Source§impl<T> IdentifiableExt for T
impl<T> IdentifiableExt for T
Source§impl<V> PositionExt for Vwhere
V: View,
impl<V> PositionExt for Vwhere
V: View,
Source§fn position(
self,
x: impl IntoSignalF32,
y: impl IntoSignalF32,
) -> PositionedChild<Self>
fn position( self, x: impl IntoSignalF32, y: impl IntoSignalF32, ) -> PositionedChild<Self>
Position view’s center at absolute (x, y) coordinates. Read more
Source§fn position_anchor(
self,
anchor: UnitPoint,
x: impl IntoSignalF32,
y: impl IntoSignalF32,
) -> PositionedChild<Self>
fn position_anchor( self, anchor: UnitPoint, x: impl IntoSignalF32, y: impl IntoSignalF32, ) -> PositionedChild<Self>
Position view’s anchor point at absolute coordinates. Read more
Source§fn position_in(self, position: UnitPoint) -> PositionedChild<Self>
fn position_in(self, position: UnitPoint) -> PositionedChild<Self>
Position view’s center at fractional location in parent. Read more
Source§fn position_in_anchor(
self,
anchor: UnitPoint,
position: UnitPoint,
) -> PositionedChild<Self>
fn position_in_anchor( self, anchor: UnitPoint, position: UnitPoint, ) -> PositionedChild<Self>
Position view’s anchor at fractional location in parent. Read more
Source§fn position_in_offset(
self,
anchor: UnitPoint,
position: UnitPoint,
offset_x: impl IntoSignalF32,
offset_y: impl IntoSignalF32,
) -> PositionedChild<Self>
fn position_in_offset( self, anchor: UnitPoint, position: UnitPoint, offset_x: impl IntoSignalF32, offset_y: impl IntoSignalF32, ) -> PositionedChild<Self>
Position with fractional location plus offset. Read more
Source§fn pin(self, constraints: PinConstraints) -> PositionedChild<Self>
fn pin(self, constraints: PinConstraints) -> PositionedChild<Self>
Position using edge pins and optional explicit size. Read more