Module embedded_layout::align
source · Expand description
Alignment operations
Alignment operations are used to arrange two Views relative to each other. A single align_*
call requires both a horizontal and a vertical alignment parameter.
The list of currently supported alignments:
horizontalNoAlignment,Left,Center,RightLeftToRightRightToLeft
verticalNoAlignment,Top,Center,BottomTopToBottomBottomToTop
Alignment works by calling align_to or align_to_mut on an object that implements
the Align trait. The call needs a second View to align to, called the reference View,
and two alignment parameters. The second View will not be translated by the alignment
operation.
Modules
- Horizontal alignment options
- Vertical alignment options
Traits
- This trait enables alignment operations for
Viewobjects - Base trait for alignment operations
- Implement this trait for horizontal alignment operations
- Implement this trait for vertical alignment operations