1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-20 08:58:00 +02:00
Beef/BeefTools/BeefPerf/src/MainFrame.bf

39 lines
955 B
Beef
Raw Normal View History

2019-08-23 11:56:54 -07:00
using System;
using System.Collections.Generic;
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);
}
}
}