pub struct Anchors(/* private fields */);Expand description
Lados do pai aos quais um controle com Align::None fica preso.
- esquerda + direita: a largura acompanha o pai;
- só direita: o controle se move junto com a borda direita;
- nenhum dos dois: o controle se move metade do quanto o pai cresceu.
O mesmo vale para cima/embaixo. O padrão é esquerda + cima.
Implementations§
Source§impl Anchors
impl Anchors
pub const NONE: Anchors
pub const LEFT: Anchors
pub const TOP: Anchors
pub const RIGHT: Anchors
pub const BOTTOM: Anchors
pub const ALL: Anchors
pub const fn contains(self, other: Anchors) -> bool
pub const fn union(self, other: Anchors) -> Anchors
pub fn names(self) -> Vec<String>
Sourcepub fn from_names<I, S>(names: I) -> Option<Anchors>
pub fn from_names<I, S>(names: I) -> Option<Anchors>
Monta a partir de nomes ("left", "right"…). None se algum nome for inválido.
Trait Implementations§
impl Copy for Anchors
impl Eq for Anchors
impl StructuralPartialEq for Anchors
Auto Trait Implementations§
impl Forget for Anchors
impl Freeze for Anchors
impl Move for Anchors
impl RefUnwindSafe for Anchors
impl Send for Anchors
impl Sync for Anchors
impl Unpin for Anchors
impl UnsafeUnpin for Anchors
impl UnwindSafe for Anchors
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