pub struct PinConstraints { /* private fields */ }Expand description
Edge-based constraints for absolute positioning.
This supports common pinning patterns:
leading + trailingcomputes width from parent boundstop + bottomcomputes height from parent bounds- explicit
width/heightoverride computed dimensions
Implementations§
Source§impl PinConstraints
impl PinConstraints
Sourcepub fn all(inset: impl IntoSignalF32) -> Self
pub fn all(inset: impl IntoSignalF32) -> Self
Pins all four edges by the same inset.
Sourcepub fn leading(self, value: impl IntoSignalF32) -> Self
pub fn leading(self, value: impl IntoSignalF32) -> Self
Pins leading edge.
Sourcepub fn trailing(self, value: impl IntoSignalF32) -> Self
pub fn trailing(self, value: impl IntoSignalF32) -> Self
Pins trailing edge.
Sourcepub fn top(self, value: impl IntoSignalF32) -> Self
pub fn top(self, value: impl IntoSignalF32) -> Self
Pins top edge.
Sourcepub fn bottom(self, value: impl IntoSignalF32) -> Self
pub fn bottom(self, value: impl IntoSignalF32) -> Self
Pins bottom edge.
Sourcepub fn width(self, value: impl IntoSignalF32) -> Self
pub fn width(self, value: impl IntoSignalF32) -> Self
Sets explicit width.
Sourcepub fn height(self, value: impl IntoSignalF32) -> Self
pub fn height(self, value: impl IntoSignalF32) -> Self
Sets explicit height.
Trait Implementations§
Source§impl Clone for PinConstraints
impl Clone for PinConstraints
Source§impl Debug for PinConstraints
impl Debug for PinConstraints
Auto Trait Implementations§
impl !RefUnwindSafe for PinConstraints
impl !Send for PinConstraints
impl !Sync for PinConstraints
impl !UnwindSafe for PinConstraints
impl Freeze for PinConstraints
impl Unpin for PinConstraints
impl UnsafeUnpin for PinConstraints
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