1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00

59 lines
1.4 KiB
C
Raw Permalink Normal View History

/*****************************************************************************
* Window.h *
* *
* System::Windows::Window definition file *
* Copyright (c) XFX Team. All rights reserved *
*****************************************************************************/
#ifndef _SYSTEM_WINDOWS_WINDOW_
#define _SYSTEM_WINDOWS_WINDOW_
#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 DependencyObject
{
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 * const, ClosingEventArgs * const> Closing;
Window();
~Window();
void Close();
static Window* Create(const int left, const int top, const String& title);
static const Type& GetType();
void Hide();
void Render();
void Show();
const String ToString() const;
};
}
}
#endif //_SYSTEM_WINDOWS_WINDOW_