2010-12-04 16:14:34 +00:00
|
|
|
|
/********************************************************
|
|
|
|
|
* DisplayMode.h *
|
|
|
|
|
* *
|
|
|
|
|
* XFX DisplayMode structure definition file *
|
|
|
|
|
* Copyright <EFBFBD> XFX Team. All Rights Reserved *
|
|
|
|
|
********************************************************/
|
2010-12-27 01:01:25 +00:00
|
|
|
|
#ifndef _XFX_GRAPHICS_DISPLAYMODE_
|
|
|
|
|
#define _XFX_GRAPHICS_DISPLAYMODE_
|
2010-12-04 16:14:34 +00:00
|
|
|
|
|
|
|
|
|
#include "Enums.h"
|
2012-09-28 20:36:02 +00:00
|
|
|
|
#include <System/Object.h>
|
|
|
|
|
|
|
|
|
|
using namespace System;
|
2010-12-04 16:14:34 +00:00
|
|
|
|
|
|
|
|
|
namespace XFX
|
|
|
|
|
{
|
|
|
|
|
struct Rectangle;
|
|
|
|
|
|
|
|
|
|
namespace Graphics
|
|
|
|
|
{
|
2012-03-29 22:02:43 +00:00
|
|
|
|
// Describes the display mode.
|
2012-09-28 20:36:02 +00:00
|
|
|
|
struct DisplayMode : Object
|
2010-12-04 16:14:34 +00:00
|
|
|
|
{
|
2012-09-28 20:36:02 +00:00
|
|
|
|
float getAspectRatio() const;
|
2010-12-04 16:14:34 +00:00
|
|
|
|
int Height;
|
|
|
|
|
SurfaceFormat_t Format;
|
|
|
|
|
int RefreshRate;
|
2012-09-28 20:36:02 +00:00
|
|
|
|
Rectangle getTitleSafeArea() const;
|
2010-12-04 16:14:34 +00:00
|
|
|
|
int Width;
|
|
|
|
|
|
|
|
|
|
DisplayMode();
|
2012-09-28 20:36:02 +00:00
|
|
|
|
bool Equals(const Object* obj) const;
|
2012-03-29 22:02:43 +00:00
|
|
|
|
int GetHashCode() const;
|
2012-09-28 20:36:02 +00:00
|
|
|
|
int GetType() const;
|
2010-12-04 16:14:34 +00:00
|
|
|
|
|
2012-09-28 20:36:02 +00:00
|
|
|
|
bool operator!=(const DisplayMode& other) const;
|
|
|
|
|
bool operator==(const DisplayMode& other) const;
|
2010-12-04 16:14:34 +00:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2010-12-27 01:01:25 +00:00
|
|
|
|
#endif //_XFX_GRAPHICS_DISPLAYMODE_
|