pub enum Align {
Show 17 variants
None,
Top,
Bottom,
Left,
Right,
MostTop,
MostBottom,
MostLeft,
MostRight,
Client,
Contents,
Center,
VertCenter,
HorzCenter,
Horizontal,
Vertical,
Fit,
}Expand description
Alinhamento de um controle dentro do pai.
Os alinhamentos de encaixe (MostTop…Right) consomem espaço da área livre do pai,
nesta ordem: MostTop, MostBottom, MostLeft, MostRight, Top, Bottom,
Left, Right. Controles com o mesmo alinhamento seguem a ordem dos filhos.
Os demais usam a área que sobrou.
Variants§
None
Posição e tamanho livres; obedece às Anchors.
Top
Bottom
Left
Right
MostTop
MostBottom
MostLeft
MostRight
Client
Ocupa toda a área que sobrou.
Contents
Ocupa o pai inteiro, ignorando o padding e os outros controles.
Center
Mantém o tamanho e centraliza na área que sobrou.
VertCenter
Centraliza na vertical e estica na horizontal.
HorzCenter
Centraliza na horizontal e estica na vertical.
Horizontal
Estica na horizontal; mantém top e height.
Vertical
Estica na vertical; mantém left e width.
Fit
Escala mantendo a proporção até caber, centralizado.
Implementations§
Trait Implementations§
impl Copy for Align
impl Eq for Align
Source§impl PropEnum for Align
impl PropEnum for Align
impl StructuralPartialEq for Align
Auto Trait Implementations§
impl Forget for Align
impl Freeze for Align
impl Move for Align
impl RefUnwindSafe for Align
impl Send for Align
impl Sync for Align
impl Unpin for Align
impl UnsafeUnpin for Align
impl UnwindSafe for Align
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