2013-06-02 14:32:43 +02:00
|
|
|
#ifndef _SYSTEM_WINDOWS_THICKNESS_
|
|
|
|
#define _SYSTEM_WINDOWS_THICKNESS_
|
2013-05-05 18:18:41 +02:00
|
|
|
|
|
|
|
#include <System/Interfaces.h>
|
|
|
|
|
|
|
|
namespace System
|
|
|
|
{
|
|
|
|
namespace Windows
|
|
|
|
{
|
|
|
|
// Describes the thickness of a frame around a rectangle.
|
|
|
|
// Four int values describe the System::Windows::Thickness::Left,
|
|
|
|
// System::Windows::Thickness.Top, System::Windows::Thickness.Right,
|
|
|
|
// and System::Windows::Thickness.Bottom sides of the rectangle, respectively.
|
|
|
|
struct Thickness : IEquatable<Thickness>, Object
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
int Bottom;
|
|
|
|
int Left;
|
|
|
|
int Right;
|
|
|
|
int Top;
|
|
|
|
|
|
|
|
Thickness();
|
|
|
|
// Initializes a System::Windows::Thickness structure that has the specified uniform length on each side.
|
|
|
|
Thickness(const int uniformLength);
|
|
|
|
// Initializes a System::Windows::Thickness structure that has specific lengths (supplied as an int) applied to each side of the rectangle.
|
|
|
|
Thickness(const int left, const int right, const int top, const int bottom);
|
|
|
|
Thickness(const Thickness &obj);
|
|
|
|
|
|
|
|
// Compares this System::Windows::Thickness structure to the specified System::Object for equality.
|
2013-05-31 15:58:00 +02:00
|
|
|
bool Equals(Object const * const obj) const;
|
2013-05-05 18:18:41 +02:00
|
|
|
// Compares this System::Windows::Thickness structure to another System::Windows::Thickness structure for equality.
|
|
|
|
bool Equals(const Thickness other) const;
|
|
|
|
// Returns the hash code of the structure.
|
|
|
|
int GetHashCode() const;
|
|
|
|
// Returns the TypeCode for this object as an integer.
|
2013-07-11 17:25:49 +02:00
|
|
|
static int GetType();
|
2013-05-05 18:18:41 +02:00
|
|
|
// Returns the string representation of the System::Windows::Thickness structure.
|
2013-06-02 14:32:43 +02:00
|
|
|
const String& ToString() const;
|
2013-05-05 18:18:41 +02:00
|
|
|
|
|
|
|
bool operator ==(const Thickness& right) const;
|
|
|
|
bool operator !=(const Thickness& right) const;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
2013-06-02 14:32:43 +02:00
|
|
|
|
|
|
|
#endif
|