2013-05-18 17:44:15 +02:00
|
|
|
/*****************************************************************************
|
|
|
|
* DisplayMode.h *
|
|
|
|
* *
|
2013-07-12 21:30:13 +02:00
|
|
|
* XFX::Graphics::DisplayMode structure definition file *
|
2013-05-18 17:44:15 +02:00
|
|
|
* Copyright (c) XFX Team. All Rights Reserved *
|
|
|
|
*****************************************************************************/
|
2013-05-05 18:18:41 +02:00
|
|
|
#ifndef _XFX_GRAPHICS_DISPLAYMODE_
|
|
|
|
#define _XFX_GRAPHICS_DISPLAYMODE_
|
|
|
|
|
|
|
|
#include "Enums.h"
|
|
|
|
#include <System/Object.h>
|
|
|
|
|
|
|
|
using namespace System;
|
|
|
|
|
|
|
|
namespace XFX
|
|
|
|
{
|
|
|
|
struct Rectangle;
|
|
|
|
|
|
|
|
namespace Graphics
|
|
|
|
{
|
2013-07-12 21:30:13 +02:00
|
|
|
/**
|
|
|
|
* Describes the display mode.
|
|
|
|
*/
|
2013-05-05 18:18:41 +02:00
|
|
|
struct DisplayMode : Object
|
|
|
|
{
|
|
|
|
float getAspectRatio() const;
|
|
|
|
int Height;
|
|
|
|
SurfaceFormat_t Format;
|
|
|
|
int RefreshRate;
|
|
|
|
Rectangle getTitleSafeArea() const;
|
|
|
|
int Width;
|
|
|
|
|
|
|
|
DisplayMode();
|
2013-07-12 21:30:13 +02:00
|
|
|
|
2013-05-18 17:44:15 +02:00
|
|
|
bool Equals(Object const * const obj) const;
|
2013-05-05 18:18:41 +02:00
|
|
|
int GetHashCode() const;
|
2013-07-12 21:30:13 +02:00
|
|
|
static const Type& GetType();
|
2013-05-05 18:18:41 +02:00
|
|
|
|
|
|
|
bool operator!=(const DisplayMode& other) const;
|
|
|
|
bool operator==(const DisplayMode& other) const;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //_XFX_GRAPHICS_DISPLAYMODE_
|