mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-20 00:50:25 +02:00
38 lines
947 B
Beef
38 lines
947 B
Beef
using System;
|
|
using System.Collections;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Beefy;
|
|
using Beefy.gfx;
|
|
using Beefy.widgets;
|
|
using Beefy.theme;
|
|
using Beefy.theme.dark;
|
|
|
|
namespace BeefPerf
|
|
{
|
|
public class MainFrame : Widget
|
|
{
|
|
public StatusBar mStatusBar;
|
|
public DarkDockingFrame mDockingFrame;
|
|
|
|
public this()
|
|
{
|
|
mStatusBar = new StatusBar();
|
|
AddWidget(mStatusBar);
|
|
mDockingFrame = (DarkDockingFrame)ThemeFactory.mDefault.CreateDockingFrame();
|
|
AddWidget(mDockingFrame);
|
|
}
|
|
|
|
public ~this()
|
|
{
|
|
}
|
|
|
|
public override void Resize(float x, float y, float width, float height)
|
|
{
|
|
base.Resize(x, y, width, height);
|
|
int32 statusHeight = 20;
|
|
mDockingFrame.Resize(0, 0, width, height - statusHeight);
|
|
mStatusBar.Resize(0, mHeight - statusHeight, width, statusHeight);
|
|
}
|
|
}
|
|
}
|