class Godot::TextParagraph

Defined in:

libgodot/generated/classes/classes_part5.cr

Constructors

Instance Method Summary

Instance methods inherited from class Godot::RefCounted

destroy : Void destroy, get_reference_count : Int64 get_reference_count, init_ref : Bool init_ref, init_ref? : Bool init_ref?, reference : Bool reference, reference? : Bool reference?, unreference : Bool unreference, unreference? : Bool unreference?

Constructor methods inherited from class Godot::RefCounted

new(pointer : Pointer(Void) = Pointer(Void).null) new

Instance methods inherited from class Godot::Object

==(other : Godot::Object) : Bool
==(other : Nil) : Bool
==
, _enter_tree : Void _enter_tree, _exit_tree : Void _exit_tree, _godot_call_tool_button(button_name : String) : Void _godot_call_tool_button, _godot_call_virtual(method_name : String, delta : Float64) : Void _godot_call_virtual, _godot_call_virtual_with_data(method_name : String, args : Pointer(Pointer(Void)), ret : Pointer(Void)) : Void _godot_call_virtual_with_data, _godot_get_property(prop_name : String, ret_ptr : Pointer(Void)) : Void _godot_get_property, _godot_set_property(prop_name : String, val_ptr : Pointer(Void)) : Void _godot_set_property, _physics_process(delta : Float64) : Void _physics_process, _process(delta : Float64) : Void _process, _ready : Void _ready, add_user_signal(signal : String, arguments : Pointer(Void)) : Void add_user_signal, alive? : Bool alive?, await_signal(signal_name : String, timeout_sec : Float64 | Nil = nil) : Array(Variant) await_signal, blocking_signals? : Bool blocking_signals?, call(method : String, *args) : Pointer(Void) call, call_bool(method : String, *args) : Bool call_bool, call_deferred(method : String, *args) : Pointer(Void) call_deferred, call_f64(method : String, *args) : Float64 call_f64, call_i64(method : String, *args) : Int64 call_i64, call_obj(method : String, *args) : Node | Nil call_obj, call_obj_as(type : T.class, method : String, *args) : T | Nil forall T call_obj_as, call_str(method : String, *args) : String call_str, callv(method : String, arg_array : Pointer(Void)) : Pointer(Void) callv, can_translate_messages : Bool can_translate_messages, can_translate_messages? : Bool can_translate_messages?, cancel_free : Void cancel_free, check_alive! : Void check_alive!, class?(godot_class : String) : Bool class?, connect(signal_name : String, flags : Godot::ConnectFlags = ::Godot::ConnectFlags::None, callback : Proc(Array(Variant), Void) | Nil = nil) : SignalSubscription
connect(signal_name : String, flags : Godot::ConnectFlags = ::Godot::ConnectFlags::None, &block : Array(Variant) -> Void) : SignalSubscription
connect(signal_name : Symbol, flags : Godot::ConnectFlags = ::Godot::ConnectFlags::None, &block : Array(Variant) -> Void) : SignalSubscription
connect(signal_name : String, listener_target : Godot::Object, method_name : Symbol, flags : Godot::ConnectFlags = ::Godot::ConnectFlags::None) : SignalSubscription
connect(signal : String, callable : Pointer(Void), flags : Int64 = 0_i64) : Godot::Error
connect
, connect_one_shot(signal_name : String, &block : Array(Variant) -> Void) : SignalSubscription connect_one_shot, connected?(signal : String, callable : Pointer(Void)) : Bool connected?, destroy : Void destroy, destroyed? : Bool destroyed?, disconnect(signal : String, callable : Pointer(Void)) : Void
disconnect(signal_name : String) : Void
disconnect
, editor_hint? : Bool editor_hint?, emit_property_list_changed : Void emit_property_list_changed, emit_script_changed : Void emit_script_changed, emit_signal(name : String) : Void
emit_signal(name : String, *args) : Void
emit_signal
, explicitly_freed? : Bool explicitly_freed?, free : Void free, get(property : String) : Pointer(Void) get, get_class : String get_class, get_incoming_connections : Pointer(Void) get_incoming_connections, get_indexed(property_path : NodePath | String) : Pointer(Void) get_indexed, get_instance_id : Int64 get_instance_id, get_meta(name : String, default : Pointer(Void) | Nil = nil) : Pointer(Void) get_meta, get_meta_list : Pointer(Void) get_meta_list, get_method_argument_count(method : String) : Int64 get_method_argument_count, get_method_list : Pointer(Void) get_method_list, get_property_list : Pointer(Void) get_property_list, get_script : Pointer(Void) get_script, get_signal_connection_list(signal : String) : Pointer(Void) get_signal_connection_list, get_signal_list : Pointer(Void) get_signal_list, get_translation_domain : String get_translation_domain, has_connections(signal : String) : Bool has_connections, has_connections?(signal : String) : Bool has_connections?, has_meta(name : String) : Bool has_meta, has_meta?(name : String) : Bool has_meta?, has_method(method : String) : Bool has_method, has_method?(method : String) : Bool has_method?, has_signal(signal : String) : Bool has_signal, has_signal?(signal_name : String) : Bool has_signal?, has_user_signal(signal : String) : Bool has_user_signal, has_user_signal?(signal : String) : Bool has_user_signal?, hash(hasher) hash, if_alive : self | Nil if_alive, instance_id : UInt64 instance_id, is_blocking_signals : Bool is_blocking_signals, is_blocking_signals? : Bool is_blocking_signals?, is_class(godot_class : String) : Bool is_class, is_class?(godot_class : String) : Bool is_class?, is_connected(signal : String, callable : Pointer(Void)) : Bool is_connected, is_connected?(signal : String, callable : Pointer(Void)) : Bool is_connected?, is_queued_for_deletion : Bool is_queued_for_deletion, is_queued_for_deletion? : Bool is_queued_for_deletion?, is_valid? : Bool is_valid?, link_class_script : Void link_class_script, notification(what : Int64, reversed : Bool = false) : Void notification, notify_property_list_changed : Void notify_property_list_changed, pointer : Pointer(Void) pointer, pointer=(val : Pointer(Void)) pointer=, print(*args) print, printerr(*args) printerr, property_can_revert(property : String) : Bool property_can_revert, property_can_revert?(property : String) : Bool property_can_revert?, property_get_revert(property : String) : Pointer(Void) property_get_revert, property_list_changed : Godot::TypedSignal() property_list_changed, puts(*args) puts, queued_for_deletion? : Bool queued_for_deletion?, remove_meta(name : String) : Void remove_meta, remove_user_signal(signal : String) : Void remove_user_signal, script_changed : Godot::TypedSignal() script_changed, set(property : String, value : Pointer(Void)) : Void set, set_block_signals(enable : Bool) : Void set_block_signals, set_deferred(property : String, value : Pointer(Void)) : Void set_deferred, set_indexed(property_path : NodePath | String, value : Pointer(Void)) : Void set_indexed, set_message_translation(enable : Bool) : Void set_message_translation, set_meta(name : String, value : Pointer(Void)) : Void set_meta, set_script(script : Pointer(Void)) : Void set_script, set_translation_domain(domain : String) : Void set_translation_domain, signal(name : String) : Godot::BoundSignal
signal(sym : Symbol) : Godot::BoundSignal
signal
, signal_connection_count(signal_name : String) : Int32 signal_connection_count, signal_target_id : UInt64 signal_target_id, to_s(io : IO) : Void to_s, to_string : String to_string, to_unsafe : Pointer(Void) to_unsafe, tr(message : String, context : String = "") : String tr, tr_n(message : String, plural_message : String, n : Int64, context : String = "") : String tr_n

Constructor methods inherited from class Godot::Object

new(pointer : Pointer(Void) = Pointer(Void).null) new

Class methods inherited from class Godot::Object

_godot_has_virtual_method(method_name : String) : Bool _godot_has_virtual_method, find_script_path_for_class(target_cls : String) : String find_script_path_for_class, is_instance_id_valid(id : Int | UInt64) : Bool is_instance_id_valid

Constructor Detail

def self.new(pointer : Pointer(Void) = Pointer(Void).null) #

Instance Method Detail

def add_object(key : Pointer(Void), size : Vector2, inline_align : Godot::InlineAlignment | Int = 5, length : Int64 = 1_i64, baseline : Float64 = 0.0) : Bool #

def add_object?(key : Pointer(Void), size : Vector2, inline_align : Godot::InlineAlignment | Int = 5, length : Int64 = 1_i64, baseline : Float64 = 0.0) : Bool #

Predicate alias for #add_object


def add_string(text : String, font : Font, font_size : Int64, language : String = "", meta : Pointer(Void) | Nil = nil) : Bool #

def add_string?(text : String, font : Font, font_size : Int64, language : String = "", meta : Pointer(Void) | Nil = nil) : Bool #

Predicate alias for #add_string


def alignment #

Property #alignment getter


def alignment=(val : Int) #

Property #alignment setter


def break_flags #

Property #break_flags getter


def break_flags=(val : Int) #

Property #break_flags setter


def clear : Void #

def clear_dropcap : Void #

def custom_punctuation #

Property #custom_punctuation getter


def custom_punctuation=(val) #

Property #custom_punctuation setter


def direction #

Property #direction getter


def direction=(val : Int) #

Property #direction setter


def draw(canvas : Int64, pos : Vector2, color : Color = Color.new(1.to_f32, 1.to_f32, 1.to_f32, 1.to_f32), dc_color : Color = Color.new(1.to_f32, 1.to_f32, 1.to_f32, 1.to_f32), oversampling : Float64 = 0.0) : Void #

def draw_dropcap(canvas : Int64, pos : Vector2, color : Color = Color.new(1.to_f32, 1.to_f32, 1.to_f32, 1.to_f32), oversampling : Float64 = 0.0) : Void #

def draw_dropcap_outline(canvas : Int64, pos : Vector2, outline_size : Int64 = 1_i64, color : Color = Color.new(1.to_f32, 1.to_f32, 1.to_f32, 1.to_f32), oversampling : Float64 = 0.0) : Void #

def draw_line(canvas : Int64, pos : Vector2, line : Int64, color : Color = Color.new(1.to_f32, 1.to_f32, 1.to_f32, 1.to_f32), oversampling : Float64 = 0.0) : Void #

def draw_line_outline(canvas : Int64, pos : Vector2, line : Int64, outline_size : Int64 = 1_i64, color : Color = Color.new(1.to_f32, 1.to_f32, 1.to_f32, 1.to_f32), oversampling : Float64 = 0.0) : Void #

def draw_outline(canvas : Int64, pos : Vector2, outline_size : Int64 = 1_i64, color : Color = Color.new(1.to_f32, 1.to_f32, 1.to_f32, 1.to_f32), dc_color : Color = Color.new(1.to_f32, 1.to_f32, 1.to_f32, 1.to_f32), oversampling : Float64 = 0.0) : Void #

def duplicate : TextParagraph #

def ellipsis_char #

Property #ellipsis_char getter


def ellipsis_char=(val) #

Property #ellipsis_char setter


def get_alignment : Godot::HorizontalAlignment #

def get_break_flags : Godot::TextServer::LineBreakFlag #

def get_custom_punctuation : String #

def get_direction : Godot::TextServer::Direction #

def get_dropcap_lines : Int64 #

def get_dropcap_rid : Int64 #

def get_dropcap_size : Vector2 #

def get_ellipsis_char : String #

def get_inferred_direction : Godot::TextServer::Direction #

def get_justification_flags : Godot::TextServer::JustificationFlag #

def get_line_ascent(line : Int64) : Float64 #

def get_line_count : Int64 #

def get_line_descent(line : Int64) : Float64 #

def get_line_object_rect(line : Int64, key : Pointer(Void)) : Rect2 #

def get_line_objects(line : Int64) : Pointer(Void) #

def get_line_range(line : Int64) : Vector2i #

def get_line_rid(line : Int64) : Int64 #

def get_line_size(line : Int64) : Vector2 #

def get_line_spacing : Float64 #

def get_line_underline_position(line : Int64) : Float64 #

def get_line_underline_thickness(line : Int64) : Float64 #

def get_line_width(line : Int64) : Float64 #

def get_max_lines_visible : Int64 #

def get_non_wrapped_size : Vector2 #

def get_orientation : Godot::TextServer::Orientation #

def get_preserve_control : Bool #

def get_preserve_control? : Bool #

Predicate alias for #get_preserve_control


def get_preserve_invalid : Bool #

def get_preserve_invalid? : Bool #

Predicate alias for #get_preserve_invalid


def get_range : Vector2i #

def get_rid : Int64 #

def get_size : Vector2 #

def get_text_overrun_behavior : Godot::TextServer::OverrunBehavior #

def get_width : Float64 #

def has_object(key : Pointer(Void)) : Bool #

def has_object?(key : Pointer(Void)) : Bool #

Predicate alias for #has_object


def hit_test(coords : Vector2) : Int64 #

def justification_flags #

Property #justification_flags getter


def justification_flags=(val : Int) #

Property #justification_flags setter


def line_spacing #

Property #line_spacing getter


def line_spacing=(val : Number) #

Property #line_spacing setter


def max_lines_visible #

Property #max_lines_visible getter


def max_lines_visible=(val : Int) #

Property #max_lines_visible setter


def orientation #

Property #orientation getter


def orientation=(val : Int) #

Property #orientation setter


def preserve_control #

Property #preserve_control getter


def preserve_control=(val) #

Property #preserve_control setter


def preserve_control? #

def preserve_invalid #

Property #preserve_invalid getter


def preserve_invalid=(val) #

Property #preserve_invalid setter


def preserve_invalid? #

def resize_object(key : Pointer(Void), size : Vector2, inline_align : Godot::InlineAlignment | Int = 5, baseline : Float64 = 0.0) : Bool #

def resize_object?(key : Pointer(Void), size : Vector2, inline_align : Godot::InlineAlignment | Int = 5, baseline : Float64 = 0.0) : Bool #

Predicate alias for #resize_object


def set_alignment(alignment : Godot::HorizontalAlignment | Int) : Void #

def set_bidi_override(override : Pointer(Void)) : Void #

def set_break_flags(flags : Godot::TextServer::LineBreakFlag | Int) : Void #

def set_custom_punctuation(custom_punctuation : String) : Void #

def set_direction(direction : Godot::TextServer::Direction | Int) : Void #

def set_dropcap(text : String, font : Font, font_size : Int64, dropcap_margins : Rect2 = Rect2.new(0.to_f32, 0.to_f32, 0.to_f32, 0.to_f32), language : String = "") : Bool #

def set_dropcap?(text : String, font : Font, font_size : Int64, dropcap_margins : Rect2 = Rect2.new(0.to_f32, 0.to_f32, 0.to_f32, 0.to_f32), language : String = "") : Bool #

Predicate alias for #set_dropcap


def set_ellipsis_char(char : String) : Void #

def set_justification_flags(flags : Godot::TextServer::JustificationFlag | Int) : Void #

def set_line_spacing(line_spacing : Float64) : Void #

def set_max_lines_visible(max_lines_visible : Int64) : Void #

def set_orientation(orientation : Godot::TextServer::Orientation | Int) : Void #

def set_preserve_control(enabled : Bool) : Void #

def set_preserve_invalid(enabled : Bool) : Void #

def set_text_overrun_behavior(overrun_behavior : Godot::TextServer::OverrunBehavior | Int) : Void #

def set_width(width : Float64) : Void #

def tab_align(tab_stops : Pointer(Void)) : Void #

def text_overrun_behavior #

Property #text_overrun_behavior getter


def text_overrun_behavior=(val : Int) #

Property #text_overrun_behavior setter


def width #

Property #width getter


def width=(val : Number) #

Property #width setter