[TextEdit] Expose all auto-wrap modes.
This commit is contained in:
@ -172,6 +172,7 @@ private:
|
||||
|
||||
String language;
|
||||
TextServer::Direction direction = TextServer::DIRECTION_AUTO;
|
||||
BitField<TextServer::LineBreakFlag> brk_flags = TextServer::BREAK_MANDATORY;
|
||||
bool draw_control_chars = false;
|
||||
|
||||
int line_height = -1;
|
||||
@ -198,6 +199,8 @@ private:
|
||||
|
||||
void set_width(float p_width);
|
||||
float get_width() const;
|
||||
void set_brk_flags(BitField<TextServer::LineBreakFlag> p_flags);
|
||||
BitField<TextServer::LineBreakFlag> get_brk_flags() const;
|
||||
int get_line_wrap_amount(int p_line) const;
|
||||
|
||||
Vector<Vector2i> get_line_wrap_ranges(int p_line) const;
|
||||
@ -460,6 +463,7 @@ private:
|
||||
|
||||
/* Line wrapping. */
|
||||
LineWrappingMode line_wrapping_mode = LineWrappingMode::LINE_WRAPPING_NONE;
|
||||
TextServer::AutowrapMode autowrap_mode = TextServer::AUTOWRAP_WORD_SMART;
|
||||
|
||||
int wrap_at_column = 0;
|
||||
int wrap_right_offset = 10;
|
||||
@ -894,6 +898,9 @@ public:
|
||||
void set_line_wrapping_mode(LineWrappingMode p_wrapping_mode);
|
||||
LineWrappingMode get_line_wrapping_mode() const;
|
||||
|
||||
void set_autowrap_mode(TextServer::AutowrapMode p_mode);
|
||||
TextServer::AutowrapMode get_autowrap_mode() const;
|
||||
|
||||
bool is_line_wrapped(int p_line) const;
|
||||
int get_line_wrap_count(int p_line) const;
|
||||
int get_line_wrap_index_at_column(int p_line, int p_column) const;
|
||||
|
||||
Reference in New Issue
Block a user