2013-06-02 14:32:43 +02:00
|
|
|
#ifndef _SYSTEM_WINDOWS_GRIDLENGTH_
|
|
|
|
#define _SYSTEM_WINDOWS_GRIDLENGTH_
|
2013-05-05 18:18:41 +02:00
|
|
|
|
|
|
|
#include <System/Interfaces.h>
|
|
|
|
|
|
|
|
#include <System/Windows/Enums.h>
|
|
|
|
|
|
|
|
namespace System
|
|
|
|
{
|
|
|
|
namespace Windows
|
|
|
|
{
|
|
|
|
// Represents the length of elements that explicitly support Star unit types.
|
|
|
|
struct GridLength : IEquatable<GridLength>, Object
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
int value;
|
|
|
|
GridUnitType_t gridUnitType;
|
|
|
|
|
|
|
|
public:
|
|
|
|
static const GridLength Auto;
|
|
|
|
bool IsAbsolute() const;
|
|
|
|
bool IsAuto() const;
|
|
|
|
GridUnitType_t getGridUnitType() const;
|
|
|
|
int getValue() const;
|
|
|
|
bool IsStar() const;
|
|
|
|
|
|
|
|
GridLength();
|
|
|
|
GridLength(const int pixels);
|
|
|
|
GridLength(const int value, const GridUnitType_t unitType);
|
|
|
|
GridLength(const GridLength &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 GridLength other) const;
|
|
|
|
int GetHashCode() const;
|
2013-07-11 17:25:49 +02:00
|
|
|
static int GetType();
|
2013-06-02 14:32:43 +02:00
|
|
|
const String& ToString() const;
|
2013-05-05 18:18:41 +02:00
|
|
|
|
|
|
|
bool operator==(const GridLength& right) const;
|
|
|
|
bool operator!=(const GridLength& right) const;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
2013-06-02 14:32:43 +02:00
|
|
|
|
|
|
|
#endif //_SYSTEM_WINDOWS_GRIDLENGTH_
|