Line data Source code
1 : // Copyright 2014 The Flutter Authors. 2 : // Copyright 2021 Suragch. 3 : // All rights reserved. 4 : // Use of this source code is governed by a BSD-style license that can be 5 : // found in the LICENSE file. 6 : 7 : /// Whether and how to align text vertically. 8 : /// 9 : /// This is only used at the MongolTextPainter level and above. Below that the 10 : /// more primitive [TextAlign] enum is used and top is mapped to left and 11 : /// bottom is mapped to right. 12 15 : enum MongolTextAlign { 13 : /// Align the text on the top edge of the container. 14 : top, 15 : 16 : /// Align the text on the bottom edge of the container. 17 : bottom, 18 : 19 : /// Align the text in the center of the container. 20 : center, 21 : 22 : /// Stretch lines of text that end with a soft line break to fill the height 23 : /// of the container. 24 : /// 25 : /// Lines that end with hard line breaks are aligned towards the [top] edge. 26 : justify, 27 : }