<?xml version="1.0" encoding="UTF-8" ?>
<class name="TLShapedParagraph" inherits="Resource" category="Core" version="3.2">
	<brief_description>
		Class for formatting entire paragraphs of text at once.
	</brief_description>
	<description>
	</description>
	<tutorials>
	</tutorials>
	<methods>
		<method name="copy_properties">
			<return type="void">
			</return>
			<argument index="0" name="source" type="TLShapedParagraph">
			</argument>
			<description>
				Copies properties of the another paragraph.
			</description>
		</method>
		<method name="get_line" qualifiers="const">
			<return type="TLShapedAttributedString">
			</return>
			<argument index="0" name="index" type="int">
			</argument>
			<description>
				Returns line of the pargraphs. NOTE: read only, changes to the line will be discarded on paragraph update!
			</description>
		</method>
		<method name="get_line_bounds" qualifiers="const">
			<return type="Array">
			</return>
			<description>
				Returns array of the line boundaries as [code]Vector2(start, end)[/code].
			</description>
		</method>
		<method name="get_lines" qualifiers="const">
			<return type="int">
			</return>
			<description>
				Returns number of lines in the paragraph.
			</description>
		</method>
		<method name="get_size" qualifiers="const">
			<return type="Vector2">
			</return>
			<description>
				Returns size of the paragraph in pixels.
			</description>
		</method>
		<method name="get_word_bounds" qualifiers="const">
			<return type="Array">
			</return>
			<description>
				Returns array of the word boundaries as [code]Vector2(start, end)[/code].
			</description>
		</method>
	</methods>
	<members>
		<member name="back_color" type="Color" setter="set_back_color" getter="get_back_color" default="Color( 1, 1, 1, 0 )">
			Background color of the paragraph.
		</member>
		<member name="brk_flags" type="int" setter="set_brk_flags" getter="get_brk_flags" default="2">
			Line breaking flags.
		</member>
		<member name="halign" type="int" setter="set_halign" getter="get_halign" default="0">
			Horizontal alignment.
		</member>
		<member name="indent" type="float" setter="set_indent" getter="get_indent" default="0.0">
			Indentation.
		</member>
		<member name="jst_flags" type="int" setter="set_jst_flags" getter="get_jst_flags" default="1">
			Justification flags.
		</member>
		<member name="line_spacing" type="float" setter="set_line_spacing" getter="get_line_spacing" default="1.0">
			Lien spacing in pixels.
		</member>
		<member name="string" type="TLShapedAttributedString" setter="set_string" getter="get_string">
			Text and text attributes of the paragraph.
		</member>
		<member name="width" type="float" setter="set_width" getter="get_width" default="-1.0">
			Max width of the paragraph.
		</member>
	</members>
	<signals>
		<signal name="paragraph_changed">
			<description>
				Emitted when text or attributes of the paragraph are changed.
			</description>
		</signal>
	</signals>
	<constants>
		<constant name="PARA_HALIGN_LEFT" value="0" enum="ParaHAlign">
			Align rows to the left (default).
		</constant>
		<constant name="PARA_HALIGN_CENTER" value="1" enum="ParaHAlign">
			Align rows centered.
		</constant>
		<constant name="PARA_HALIGN_RIGHT" value="2" enum="ParaHAlign">
			Align rows to the right.
		</constant>
		<constant name="PARA_HALIGN_FILL" value="3" enum="ParaHAlign">
			Expand row white spaces to fit the width.
		</constant>
	</constants>
</class>
