mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-04 23:36:00 +02:00
Beefy2d updates
This commit is contained in:
parent
35779edc14
commit
96c0a44a7e
3 changed files with 15 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue