Added utf8cpp as a auxiliary helper library.

Added UITooltip::getTooltipPosition.
Fixes in System::Process.
UICodeEditor: Performance improvements in minimap rendering.
ecode: AutoCompleteModule fixes. Added coloring to tooltips from the LSP Client. LSP Client Server parsing improvements.
This commit is contained in:
Martín Lucas Golini
2022-12-24 11:54:21 -03:00
parent 587d552940
commit c61abf37bf
23 changed files with 1379 additions and 61 deletions

View File

@@ -325,7 +325,10 @@ class EE_API String {
static String fromUtf8( const std::string& utf8String );
/** @return The number of codepoints of the utf8 string. */
static size_t utf8StringLength( const std::string& utf8String );
static size_t utf8Length( const std::string& utf8String );
/** @return The next character in a utf8 null terminated string */
static Uint32 utf8Next( char*& utf8String );
/** @brief Default constructor
** This constructor creates an empty string.

View File

@@ -25,6 +25,8 @@ class EE_API SyntaxDefinitionManager {
const SyntaxDefinition& getByLanguageName( const std::string& name ) const;
const SyntaxDefinition& getByLSPName( const std::string& name ) const;
const SyntaxDefinition& getByLanguageId( const String::HashType& id ) const;
SyntaxDefinition& getByLanguageNameRef( const std::string& name );

View File

@@ -16,6 +16,8 @@ class EE_API UITooltip : public UIWidget {
public:
static UITooltip* New();
static Vector2f getTooltipPosition( UITooltip* toolip, Vector2f requestedPosition );
UITooltip();
virtual ~UITooltip();
@@ -107,6 +109,12 @@ class EE_API UITooltip : public UIWidget {
void setTextTransform( const TextTransform::Value& textTransform );
Vector2f getTooltipPosition( Vector2f requestedPosition );
bool getUsingCustomStyling() const;
void setUsingCustomStyling( bool usingCustomStyling );
protected:
Text* mTextCache;
UIFontStyleConfig mStyleConfig;
@@ -116,6 +124,7 @@ class EE_API UITooltip : public UIWidget {
String mStringBuffer;
TextTransform::Value mTextTransform{ TextTransform::None };
bool mDontAutoHideOnMouseMove{ false };
bool mUsingCustomStyling{ false };
virtual void onAlphaChange();