Enum cacao::layout::LayoutAnchorY
source · [−]pub enum LayoutAnchorY {
Uninitialized,
Top(ShareId<Object>),
Bottom(ShareId<Object>),
Center(ShareId<Object>),
}
Expand description
A wrapper for NSLayoutAnchorY
, used to handle values for how a given view should
layout along the y-axis.
Variants
Uninitialized
Represents an uninitialized anchor (e.g, for a view that’s not created yet).
Top(ShareId<Object>)
Represents a top anchor.
Bottom(ShareId<Object>)
Represents a bottom anchor.
Center(ShareId<Object>)
Represents a center anchor for the Y axis.
Implementations
sourceimpl LayoutAnchorY
impl LayoutAnchorY
sourcepub fn constraint_equal_to(&self, anchor_to: &LayoutAnchorY) -> LayoutConstraint
pub fn constraint_equal_to(&self, anchor_to: &LayoutAnchorY) -> LayoutConstraint
Return a constraint equal to another vertical anchor.
sourcepub fn constraint_greater_than_or_equal_to(
&self,
anchor_to: &LayoutAnchorY
) -> LayoutConstraint
pub fn constraint_greater_than_or_equal_to(
&self,
anchor_to: &LayoutAnchorY
) -> LayoutConstraint
Return a constraint greater than or equal to another vertical anchor.
sourcepub fn constraint_less_than_or_equal_to(
&self,
anchor_to: &LayoutAnchorY
) -> LayoutConstraint
pub fn constraint_less_than_or_equal_to(
&self,
anchor_to: &LayoutAnchorY
) -> LayoutConstraint
Return a constraint less than or equal to another vertical anchor.
Trait Implementations
sourceimpl Clone for LayoutAnchorY
impl Clone for LayoutAnchorY
sourcefn clone(&self) -> LayoutAnchorY
fn clone(&self) -> LayoutAnchorY
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for LayoutAnchorY
impl Debug for LayoutAnchorY
Auto Trait Implementations
impl RefUnwindSafe for LayoutAnchorY
impl Send for LayoutAnchorY
impl Sync for LayoutAnchorY
impl Unpin for LayoutAnchorY
impl UnwindSafe for LayoutAnchorY
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more