TextParagraph¶
Inherits: RefCounted < Object
Holds a paragraph of text.
Description¶
Abstraction over TextServer for handling a single paragraph of text.
Properties¶
|
||
BitField<LineBreakFlag> |
|
|
|
||
|
||
BitField<JustificationFlag> |
|
|
|
||
|
||
|
||
|
||
|
||
|
Methods¶
add_object ( Variant key, Vector2 size, InlineAlignment inline_align=5, int length=1, float baseline=0.0 ) |
|
add_string ( String text, Font font, int font_size, String language="", Variant meta=null ) |
|
void |
clear ( ) |
void |
clear_dropcap ( ) |
void |
draw ( RID canvas, Vector2 pos, Color color=Color(1, 1, 1, 1), Color dc_color=Color(1, 1, 1, 1) ) const |
void |
draw_dropcap ( RID canvas, Vector2 pos, Color color=Color(1, 1, 1, 1) ) const |
void |
draw_dropcap_outline ( RID canvas, Vector2 pos, int outline_size=1, Color color=Color(1, 1, 1, 1) ) const |
void |
draw_line ( RID canvas, Vector2 pos, int line, Color color=Color(1, 1, 1, 1) ) const |
void |
draw_line_outline ( RID canvas, Vector2 pos, int line, int outline_size=1, Color color=Color(1, 1, 1, 1) ) const |
void |
draw_outline ( RID canvas, Vector2 pos, int outline_size=1, Color color=Color(1, 1, 1, 1), Color dc_color=Color(1, 1, 1, 1) ) const |
get_dropcap_lines ( ) const |
|
get_dropcap_rid ( ) const |
|
get_dropcap_size ( ) const |
|
get_line_ascent ( int line ) const |
|
get_line_count ( ) const |
|
get_line_descent ( int line ) const |
|