feat: modules moved and engine moved to submodule
This commit is contained in:
parent
dfb5e645cd
commit
c33d2130cc
5136 changed files with 225275 additions and 64485 deletions
|
|
@ -28,8 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#ifndef TEXT_SERVER_H
|
||||
#define TEXT_SERVER_H
|
||||
#pragma once
|
||||
|
||||
#include "core/io/image.h"
|
||||
#include "core/object/ref_counted.h"
|
||||
|
|
@ -109,8 +108,16 @@ public:
|
|||
BREAK_WORD_BOUND = 1 << 1,
|
||||
BREAK_GRAPHEME_BOUND = 1 << 2,
|
||||
BREAK_ADAPTIVE = 1 << 3,
|
||||
#ifndef DISABLE_DEPRECATED
|
||||
BREAK_TRIM_EDGE_SPACES = 1 << 4,
|
||||
#else
|
||||
// RESERVED = 1 << 4,
|
||||
#endif
|
||||
BREAK_TRIM_INDENT = 1 << 5,
|
||||
BREAK_TRIM_START_EDGE_SPACES = 1 << 6,
|
||||
BREAK_TRIM_END_EDGE_SPACES = 1 << 7,
|
||||
|
||||
BREAK_TRIM_MASK = BREAK_TRIM_INDENT | BREAK_TRIM_START_EDGE_SPACES | BREAK_TRIM_END_EDGE_SPACES,
|
||||
};
|
||||
|
||||
enum OverrunBehavior {
|
||||
|
|
@ -119,6 +126,8 @@ public:
|
|||
OVERRUN_TRIM_WORD,
|
||||
OVERRUN_TRIM_ELLIPSIS,
|
||||
OVERRUN_TRIM_WORD_ELLIPSIS,
|
||||
OVERRUN_TRIM_ELLIPSIS_FORCE,
|
||||
OVERRUN_TRIM_WORD_ELLIPSIS_FORCE,
|
||||
};
|
||||
|
||||
enum TextOverrunFlag {
|
||||
|
|
@ -309,6 +318,9 @@ public:
|
|||
virtual void font_set_force_autohinter(const RID &p_font_rid, bool p_force_autohinter) = 0;
|
||||
virtual bool font_is_force_autohinter(const RID &p_font_rid) const = 0;
|
||||
|
||||
virtual void font_set_modulate_color_glyphs(const RID &p_font_rid, bool p_modulate) = 0;
|
||||
virtual bool font_is_modulate_color_glyphs(const RID &p_font_rid) const = 0;
|
||||
|
||||
virtual void font_set_hinting(const RID &p_font_rid, Hinting p_hinting) = 0;
|
||||
virtual Hinting font_get_hinting(const RID &p_font_rid) const = 0;
|
||||
|
||||
|
|
@ -465,12 +477,24 @@ public:
|
|||
virtual bool shaped_text_add_string(const RID &p_shaped, const String &p_text, const TypedArray<RID> &p_fonts, int64_t p_size, const Dictionary &p_opentype_features = Dictionary(), const String &p_language = "", const Variant &p_meta = Variant()) = 0;
|
||||
virtual bool shaped_text_add_object(const RID &p_shaped, const Variant &p_key, const Size2 &p_size, InlineAlignment p_inline_align = INLINE_ALIGNMENT_CENTER, int64_t p_length = 1, double p_baseline = 0.0) = 0;
|
||||
virtual bool shaped_text_resize_object(const RID &p_shaped, const Variant &p_key, const Size2 &p_size, InlineAlignment p_inline_align = INLINE_ALIGNMENT_CENTER, double p_baseline = 0.0) = 0;
|
||||
virtual String shaped_get_text(const RID &p_shaped) const = 0;
|
||||
|
||||
virtual int64_t shaped_get_span_count(const RID &p_shaped) const = 0;
|
||||
virtual Variant shaped_get_span_meta(const RID &p_shaped, int64_t p_index) const = 0;
|
||||
virtual Variant shaped_get_span_embedded_object(const RID &p_shaped, int64_t p_index) const = 0;
|
||||
virtual String shaped_get_span_text(const RID &p_shaped, int64_t p_index) const = 0;
|
||||
virtual Variant shaped_get_span_object(const RID &p_shaped, int64_t p_index) const = 0;
|
||||
virtual void shaped_set_span_update_font(const RID &p_shaped, int64_t p_index, const TypedArray<RID> &p_fonts, int64_t p_size, const Dictionary &p_opentype_features = Dictionary()) = 0;
|
||||
|
||||
virtual int64_t shaped_get_run_count(const RID &p_shaped) const = 0;
|
||||
virtual String shaped_get_run_text(const RID &p_shaped, int64_t p_index) const = 0;
|
||||
virtual Vector2i shaped_get_run_range(const RID &p_shaped, int64_t p_index) const = 0;
|
||||
virtual RID shaped_get_run_font_rid(const RID &p_shaped, int64_t p_index) const = 0;
|
||||
virtual int shaped_get_run_font_size(const RID &p_shaped, int64_t p_index) const = 0;
|
||||
virtual String shaped_get_run_language(const RID &p_shaped, int64_t p_index) const = 0;
|
||||
virtual Direction shaped_get_run_direction(const RID &p_shaped, int64_t p_index) const = 0;
|
||||
virtual Variant shaped_get_run_object(const RID &p_shaped, int64_t p_index) const = 0;
|
||||
|
||||
virtual RID shaped_text_substr(const RID &p_shaped, int64_t p_start, int64_t p_length) const = 0; // Copy shaped substring (e.g. line break) without reshaping, but correctly reordered, preservers range.
|
||||
virtual RID shaped_text_get_parent(const RID &p_shaped) const = 0;
|
||||
|
||||
|
|
@ -668,5 +692,3 @@ VARIANT_ENUM_CAST(TextServer::FixedSizeScaleMode);
|
|||
|
||||
GDVIRTUAL_NATIVE_PTR(Glyph);
|
||||
GDVIRTUAL_NATIVE_PTR(CaretInfo);
|
||||
|
||||
#endif // TEXT_SERVER_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue