Text:text_alignment

Returns how text is aligned within this element.

Usage

text:text_alignment()

Returns

Name Type Description
alignment love.AlignMode Text alignment used when drawing this text.

Examples

local text = crystal.Text:new("Hello World");
text:set_text_alignment("center");
print(text:text_alignment()); -- Prints "center"

This site uses Just the Docs, a documentation theme for Jekyll.