ecode: Added an option to show relative lines position.

This commit is contained in:
Martín Lucas Golini
2023-03-12 22:05:57 -03:00
parent a78cdadfc3
commit de59ee7423
6 changed files with 35 additions and 3 deletions

View File

@@ -592,7 +592,10 @@ class EE_API UICodeEditor : public UIWidget, public TextDocument::Client {
Vector2f getRelativeScreenPosition( const TextPosition& pos );
protected:
bool getShowLinesRelativePosition() const;
void showLinesRelativePosition(bool showLinesRelativePosition);
protected:
struct LastXOffset {
TextPosition position{ 0, 0 };
Float offset{ 0.f };
@@ -628,6 +631,7 @@ class EE_API UICodeEditor : public UIWidget, public TextDocument::Client {
bool mAutoCloseXMLTags{ false };
bool mFindReplaceEnabled{ true };
bool mShowIndentationGuides{ false };
bool mShowLinesRelativePosition;
std::atomic<bool> mHighlightWordProcessing{ false };
TextRange mLinkPosition;
String mLink;