#include <DisplayResScreen.h>
Definition at line 12 of file DisplayResScreen.h.
Public Member Functions | |
| DisplayResScreen () | |
| DisplayResScreen (int w, int h, int mw, int mh, double aspectRatio, short refreshRate) | |
| DisplayResScreen (int w, int h, int mw, int mh, const vector< short > &refreshRates) | |
| DisplayResScreen (int w, int h, int mw, int mh, const short *refreshRates, uint rr_length) | |
| DisplayResScreen (const QString &str) | |
| void | Init () |
| int | Width () const |
| int | Height () const |
| int | Width_mm () const |
| int | Height_mm () const |
| double | AspectRatio () const |
| short | RefreshRate () const |
| const vector< short > & | RefreshRates () const |
| void | SetAspectRatio (double a) |
| void | AddRefreshRate (short rr) |
| QString | toString () const |
| bool | operator< (const DisplayResScreen &b) const |
| bool | operator== (const DisplayResScreen &b) const |
Static Public Member Functions | |
| static QStringList | Convert (const vector< DisplayResScreen > &dsr) |
| static vector< DisplayResScreen > | Convert (const QStringList &slist) |
| static int | FindBestMatch (const vector< DisplayResScreen > &dsr, const DisplayResScreen &d, short &target_rate) |
| static int | CalcKey (int w, int h, int rate) |
Private Attributes | |
| int | width |
| int | height |
| int | width_mm |
| int | height_mm |
| double | aspect |
| vector< short > | refreshRates |
| DisplayResScreen::DisplayResScreen | ( | ) | [inline] |
Definition at line 16 of file DisplayResScreen.h.
| DisplayResScreen::DisplayResScreen | ( | int | w, | |
| int | h, | |||
| int | mw, | |||
| int | mh, | |||
| double | aspectRatio, | |||
| short | refreshRate | |||
| ) |
Definition at line 4 of file DisplayResScreen.cpp.
| DisplayResScreen::DisplayResScreen | ( | int | w, | |
| int | h, | |||
| int | mw, | |||
| int | mh, | |||
| const vector< short > & | refreshRates | |||
| ) |
Definition at line 13 of file DisplayResScreen.cpp.
| DisplayResScreen::DisplayResScreen | ( | int | w, | |
| int | h, | |||
| int | mw, | |||
| int | mh, | |||
| const short * | refreshRates, | |||
| uint | rr_length | |||
| ) |
Definition at line 20 of file DisplayResScreen.cpp.
| DisplayResScreen::DisplayResScreen | ( | const QString & | str | ) |
Definition at line 31 of file DisplayResScreen.cpp.
| void DisplayResScreen::Init | ( | ) | [inline] |
| int DisplayResScreen::Width | ( | ) | const [inline] |
Definition at line 28 of file DisplayResScreen.h.
Referenced by FindBestMatch(), DisplayRes::SwitchToGUI(), and DisplayRes::SwitchToVideo().
| int DisplayResScreen::Height | ( | ) | const [inline] |
Definition at line 29 of file DisplayResScreen.h.
Referenced by FindBestMatch(), DisplayRes::SwitchToGUI(), and DisplayRes::SwitchToVideo().
| int DisplayResScreen::Width_mm | ( | ) | const [inline] |
| int DisplayResScreen::Height_mm | ( | ) | const [inline] |
| double DisplayResScreen::AspectRatio | ( | ) | const [inline] |
Definition at line 77 of file DisplayResScreen.h.
| short DisplayResScreen::RefreshRate | ( | ) | const [inline] |
Definition at line 88 of file DisplayResScreen.h.
Referenced by FindBestMatch(), DisplayRes::SwitchToGUI(), and DisplayRes::SwitchToVideo().
| const vector<short>& DisplayResScreen::RefreshRates | ( | ) | const [inline] |
Definition at line 34 of file DisplayResScreen.h.
| void DisplayResScreen::SetAspectRatio | ( | double | a | ) |
| void DisplayResScreen::AddRefreshRate | ( | short | rr | ) | [inline] |
Definition at line 38 of file DisplayResScreen.h.
| QString DisplayResScreen::toString | ( | ) | const |
| bool DisplayResScreen::operator< | ( | const DisplayResScreen & | b | ) | const [inline] |
Definition at line 95 of file DisplayResScreen.h.
| bool DisplayResScreen::operator== | ( | const DisplayResScreen & | b | ) | const [inline] |
Definition at line 104 of file DisplayResScreen.h.
| QStringList DisplayResScreen::Convert | ( | const vector< DisplayResScreen > & | dsr | ) | [static] |
Definition at line 67 of file DisplayResScreen.cpp.
| DisplayResVector DisplayResScreen::Convert | ( | const QStringList & | slist | ) | [static] |
Definition at line 75 of file DisplayResScreen.cpp.
| int DisplayResScreen::FindBestMatch | ( | const vector< DisplayResScreen > & | dsr, | |
| const DisplayResScreen & | d, | |||
| short & | target_rate | |||
| ) | [static] |
Definition at line 83 of file DisplayResScreen.cpp.
Referenced by DisplayRes::GetRefreshRates(), GuiVidModeResolution(), DisplayRes::SwitchToGUI(), DisplayRes::SwitchToVideo(), and DisplayResX::SwitchToVideoMode().
| int DisplayResScreen::CalcKey | ( | int | w, | |
| int | h, | |||
| int | rate | |||
| ) | [inline, static] |
Definition at line 109 of file DisplayResScreen.h.
Referenced by DisplayResOSX::GetVideoModes(), DisplayRes::Initialize(), and DisplayRes::SwitchToVideo().
int DisplayResScreen::width [private] |
Definition at line 57 of file DisplayResScreen.h.
Referenced by DisplayResScreen(), Init(), operator<(), operator==(), and toString().
int DisplayResScreen::height [private] |
Definition at line 57 of file DisplayResScreen.h.
Referenced by DisplayResScreen(), Init(), operator<(), operator==(), and toString().
int DisplayResScreen::width_mm [private] |
Definition at line 58 of file DisplayResScreen.h.
Referenced by AspectRatio(), DisplayResScreen(), Init(), and toString().
int DisplayResScreen::height_mm [private] |
Definition at line 58 of file DisplayResScreen.h.
Referenced by AspectRatio(), DisplayResScreen(), Init(), and toString().
double DisplayResScreen::aspect [private] |
Definition at line 59 of file DisplayResScreen.h.
Referenced by AspectRatio(), DisplayResScreen(), Init(), SetAspectRatio(), and toString().
vector<short> DisplayResScreen::refreshRates [private] |
Definition at line 60 of file DisplayResScreen.h.
Referenced by DisplayResScreen(), RefreshRate(), and toString().
1.5.5