2013-07-12 21:30:13 +02:00
|
|
|
/*****************************************************************************
|
|
|
|
* Size.h *
|
|
|
|
* *
|
|
|
|
* System::Windows::Size definition file *
|
|
|
|
* Copyright (c) XFX Team. All rights reserved *
|
|
|
|
*****************************************************************************/
|
2013-06-02 14:32:43 +02:00
|
|
|
#ifndef _SYSTEM_WINDOWS_SIZE_
|
|
|
|
#define _SYSTEM_WINDOWS_SIZE_
|
2013-05-05 18:18:41 +02:00
|
|
|
|
|
|
|
#include <System/Object.h>
|
|
|
|
#include <System/Interfaces.h>
|
|
|
|
|
|
|
|
namespace System
|
|
|
|
{
|
|
|
|
namespace Windows
|
|
|
|
{
|
2013-07-12 21:30:13 +02:00
|
|
|
/**
|
|
|
|
* Describes the width and height of an object.
|
|
|
|
*/
|
2013-05-05 18:18:41 +02:00
|
|
|
struct Size : IEquatable<Size>, Object
|
|
|
|
{
|
|
|
|
public:
|
2013-07-12 21:30:13 +02:00
|
|
|
/**
|
|
|
|
* Represents a static empty System::Windows::Size.
|
|
|
|
*/
|
2013-05-05 18:18:41 +02:00
|
|
|
static const Size Empty;
|
|
|
|
int Height;
|
|
|
|
bool IsEmpty() const;
|
|
|
|
int Width;
|
|
|
|
|
|
|
|
Size();
|
|
|
|
Size(const int Width, const int Height);
|
|
|
|
Size(const Size &obj);
|
|
|
|
|
2013-05-31 15:58:00 +02:00
|
|
|
bool Equals(Object const * const obj) const;
|
2013-05-05 18:18:41 +02:00
|
|
|
bool Equals(const Size other) const;
|
|
|
|
int GetHashCode() const;
|
2013-07-12 21:30:13 +02:00
|
|
|
static const Type& GetType();
|
2013-07-11 20:00:07 +02:00
|
|
|
const String ToString() const;
|
2013-05-05 18:18:41 +02:00
|
|
|
|
|
|
|
bool operator ==(const Size& right) const;
|
|
|
|
bool operator !=(const Size& right) const;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
2013-06-02 14:32:43 +02:00
|
|
|
|
|
|
|
#endif //_SYSTEM_WINDOWS_SIZE_
|