The anchorx/y values describe where text will appear in the given area. You may define a rectangle that is much larger than usual amounts of text that go in it (i.e. mm2 window), but want the newest text always to appear at the top, or the bottom, and left or right justified.
Value | Comment |
---|---|
ANCHOR_NONE | No special anchoring, text appears starting at rect co-ords |
ANCHOR_AUTOSIZE_WIDTH | Auto-size the item depending on the width of the text (anchorx) |
ANCHOR_AUTOSIZE_HEIGHT | Auto-size the item depending on the height of the text (anchory) |
ANCHOR_RIGHT | Anchor text to the right side of the area when it isn't the full width of the rectangle (anchorx) |
ANCHOR_BOTTOM | Anchor text to the bottom of the area when it isn't the full height of the rectangle (anchory) |
ANCHOR_CENTER | Center text in the width of the rectangle when it isn't the full width (anchorx) |
ANCHOR_MIDDLE | Center text in the middle of the rectangle when it isn't the full height (anchory) |