2013-05-05 18:18:41 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <System/Object.h>
|
|
|
|
#include <System/Interfaces.h>
|
|
|
|
|
|
|
|
namespace System
|
|
|
|
{
|
|
|
|
namespace Windows
|
|
|
|
{
|
|
|
|
// Describes the width and height of an object.
|
|
|
|
struct Size : IEquatable<Size>, Object
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
// Represents a static empty System::Windows::Size.
|
|
|
|
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;
|
|
|
|
int GetType() const;
|
|
|
|
const char* ToString() const;
|
|
|
|
|
|
|
|
bool operator ==(const Size& right) const;
|
|
|
|
bool operator !=(const Size& right) const;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|