2013-07-12 21:30:13 +02:00
|
|
|
/*****************************************************************************
|
|
|
|
* Window.h *
|
|
|
|
* *
|
|
|
|
* System::Windows::Window definition file *
|
|
|
|
* Copyright (c) XFX Team. All rights reserved *
|
|
|
|
*****************************************************************************/
|
2013-06-02 14:32:43 +02:00
|
|
|
#ifndef _SYSTEM_WINDOWS_WINDOW_
|
|
|
|
#define _SYSTEM_WINDOWS_WINDOW_
|
2013-05-05 18:18:41 +02:00
|
|
|
|
|
|
|
#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
|
|
|
|
{
|
2013-07-11 17:25:49 +02:00
|
|
|
class Window : public DependencyObject
|
2013-05-05 18:18:41 +02:00
|
|
|
{
|
|
|
|
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;
|
|
|
|
|
2013-06-02 14:32:43 +02:00
|
|
|
Event<Object * const, ClosingEventArgs * const> Closing;
|
2013-05-05 18:18:41 +02:00
|
|
|
|
|
|
|
Window();
|
|
|
|
~Window();
|
|
|
|
|
|
|
|
void Close();
|
|
|
|
static Window* Create(const int left, const int top, const String& title);
|
2013-07-12 21:30:13 +02:00
|
|
|
static const Type& GetType();
|
2013-05-05 18:18:41 +02:00
|
|
|
void Hide();
|
|
|
|
void Render();
|
|
|
|
void Show();
|
2013-07-11 17:25:49 +02:00
|
|
|
const String ToString() const;
|
2013-05-05 18:18:41 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
2013-06-02 14:32:43 +02:00
|
|
|
|
|
|
|
#endif //_SYSTEM_WINDOWS_WINDOW_
|