mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-18 06:55:48 +03:00
Fixed emscripten build.
ecode: AutoCompletion: Improved signature help. LSPClientServer: Implementing codeActions in diagnostics.
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user