TextLine¶
Inherits: RefCounted < Object
Holds a line of text.
Description¶
Abstraction over TextServer for handling a single line of text.
Properties¶
|
||
|
||
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 |
draw ( RID canvas, Vector2 pos, 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) ) const |
get_line_ascent ( ) const |
|
get_line_descent ( ) const |
|
get_line_underline_position ( ) const |
|
get_line_underline_thickness ( ) const |
|
get_line_width ( ) const |
|
get_object_rect ( Variant key ) const |
|
get_objects ( ) const |
|
get_rid ( ) const |
|
get_size ( ) const |
|
resize_object ( Variant key, Vector2 size, InlineAlignment inline_align=5, float baseline=0.0 ) |
|
void |
set_bidi_override ( Array override ) |
void |
tab_align ( PackedFloat32Array tab_stops ) |
Property Descriptions¶
HorizontalAlignment alignment = 0
void set_horizontal_alignment ( HorizontalAlignment value )
HorizontalAlignment get_horizontal_alignment ( )
Sets text alignment within the line as if the line was horizontal.
Direction direction = 0
Text writing direction.