Fixed emscripten build.

ecode: AutoCompletion: Improved signature help. LSPClientServer: Implementing codeActions in diagnostics.
This commit is contained in:
Martín Lucas Golini
2022-11-15 19:40:18 -03:00
parent 66752326d8
commit dd9ff2ca77
10 changed files with 206 additions and 97 deletions

View File

@@ -18,6 +18,8 @@ template <typename T> class tRECT {
tRECT<T> copy() const;
void setPosition( const Vector2<T>& pos );
bool intersect( const tRECT<T>& rect ) const;
bool contains( const tRECT<T>& rect ) const;
@@ -255,6 +257,14 @@ template <typename T> T tRECT<T>::getHeight() const {
return eeabs( Bottom - Top );
}
template <typename T> void tRECT<T>::setPosition( const Vector2<T>& pos ) {
auto size = getSize();
Left = pos.x;
Bottom = pos.y + size.y;
Right = pos.x + size.x;
Top = pos.y;
}
template <typename T> void tRECT<T>::expand( const tRECT<T>& rect ) {
Left = eemin( Left, rect.Left );
Bottom = eemax( Bottom, rect.Bottom );