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
- Horizontal alignment options
- vertical
- Vertical alignment options
Traits§
- Align
- This trait enables alignment operations for
Viewobjects - Alignment
- Base trait for alignment operations
- Horizontal
Alignment - Implement this trait for horizontal alignment operations
- Vertical
Alignment - Implement this trait for vertical alignment operations