Module embedded_layout::align [−][src]
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
Traits
This trait enables alignment operations for View objects
Base trait for alignment operations
Implement this trait for horizontal alignment operations
Implement this trait for vertical alignment operations