mirror of
https://github.com/Halofreak1990/XFXFramework
synced 2024-12-26 13:49:34 +01:00
50 lines
944 B
C
50 lines
944 B
C
|
#pragma once
|
||
|
|
||
|
#include <System/Event.h>
|
||
|
#include <System/String.h>
|
||
|
#include <System/ComponentModel/ClosingEventArgs.h>
|
||
|
#include <System/Windows/Size.h>
|
||
|
#include <System/Windows/Enums.h>
|
||
|
#include <System/Windows/FrameworkElement.h>
|
||
|
|
||
|
using namespace System::ComponentModel;
|
||
|
|
||
|
namespace System
|
||
|
{
|
||
|
namespace Windows
|
||
|
{
|
||
|
class Window : public Object
|
||
|
{
|
||
|
private:
|
||
|
static const Size MaxSize;
|
||
|
uint* renderBuffer;
|
||
|
|
||
|
public:
|
||
|
FrameworkElement* Content;
|
||
|
int Height;
|
||
|
bool IsActive() const;
|
||
|
int Left;
|
||
|
String Title;
|
||
|
int Top;
|
||
|
bool TopMost;
|
||
|
Visibility_t Visibility;
|
||
|
int Width;
|
||
|
WindowState_t WindowState;
|
||
|
WindowStyle_t WindowStyle;
|
||
|
|
||
|
Event<Object*, ClosingEventArgs*> Closing;
|
||
|
|
||
|
Window();
|
||
|
~Window();
|
||
|
|
||
|
void Close();
|
||
|
static Window* Create(const int left, const int top, const String& title);
|
||
|
int GetType() const;
|
||
|
void Hide();
|
||
|
void Render();
|
||
|
void Show();
|
||
|
const char* ToString() const;
|
||
|
};
|
||
|
}
|
||
|
}
|