diff --git a/BeefLibs/Beefy2D/src/BFWindow.bf b/BeefLibs/Beefy2D/src/BFWindow.bf index b553a2ab..66793990 100644 --- a/BeefLibs/Beefy2D/src/BFWindow.bf +++ b/BeefLibs/Beefy2D/src/BFWindow.bf @@ -484,6 +484,11 @@ namespace Beefy BFWindow_Resize(mNativeWindow, (int32)x, (int32)y, (int32)width, (int32)height, (int32)showKind); } + public virtual void ResizeClient(int width, int height) + { + Resize(mX, mY, mWindowWidth + (width - mClientWidth), mWindowHeight + (height - mClientHeight)); + } + public void SetForeground() { BFWindow_SetForeground(mNativeWindow); diff --git a/BeefLibs/Beefy2D/src/geom/Rect.bf b/BeefLibs/Beefy2D/src/geom/Rect.bf index 8c9de8bf..61997792 100644 --- a/BeefLibs/Beefy2D/src/geom/Rect.bf +++ b/BeefLibs/Beefy2D/src/geom/Rect.bf @@ -244,6 +244,11 @@ namespace Beefy.geom mHeight *= scaleY; } + public void Scale(T scale) mut + { + Scale(scale, scale); + } + public void ScaleFrom(T scaleX, T scaleY, T centerX, T centerY) mut { Offset(-centerX, -centerY); diff --git a/BeefLibs/Beefy2D/src/gfx/Graphics.bf b/BeefLibs/Beefy2D/src/gfx/Graphics.bf index 45293fb9..7a9b01b8 100644 --- a/BeefLibs/Beefy2D/src/gfx/Graphics.bf +++ b/BeefLibs/Beefy2D/src/gfx/Graphics.bf @@ -924,6 +924,11 @@ namespace Beefy.gfx FillRect(x, y + height - thickness, width, thickness); } + public void OutlineRect(Rect rect) + { + OutlineRect(rect.mX, rect.mY, rect.mWidth, rect.mHeight); + } + public void FillRectGradient(float x, float y, float width, float height, Color colorTopLeft, Color colorTopRight, Color colorBotLeft, Color colorBotRight) {