2013-07-12 21:30:13 +02:00
|
|
|
/*****************************************************************************
|
|
|
|
* GridLength.h *
|
|
|
|
* *
|
|
|
|
* System::Windows::GridLength definition file *
|
|
|
|
* Copyright (c) XFX Team. All rights reserved *
|
|
|
|
*****************************************************************************/
|
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
|
|
|
|
{
|
2013-07-12 21:30:13 +02:00
|
|
|
/**
|
|
|
|
* Represents the length of elements that explicitly support Star unit types.
|
|
|
|
*/
|
2013-05-05 18:18:41 +02:00
|
|
|
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-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 GridLength& right) const;
|
|
|
|
bool operator!=(const GridLength& right) const;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
2013-06-02 14:32:43 +02:00
|
|
|
|
|
|
|
#endif //_SYSTEM_WINDOWS_GRIDLENGTH_
|