MythTV  master
Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Private Attributes | List of all members
MythUIScreenBounds Class Reference

#include <mythuiscreenbounds.h>

Inheritance diagram for MythUIScreenBounds:
Inheritance graph
[legend]
Collaboration diagram for MythUIScreenBounds:
Collaboration graph
[legend]

Signals

void UIScreenRectChanged (const QRect &Rect)
 

Public Member Functions

void UpdateScreenSettings (MythDisplay *mDisplay)
 
QRect GetUIScreenRect ()
 
void SetUIScreenRect (QRect Rect)
 
QRect GetScreenRect ()
 
QSize NormSize (QSize Size) const
 
int NormX (int X) const
 
int NormY (int Y) const
 
void GetScalingFactors (float &Horizontal, float &Vertical) const
 
void SetScalingFactors (float Horizontal, float Vertical)
 
QSize GetThemeSize ()
 
int GetFontStretch () const
 
void SetFontStretch (int Stretch)
 

Static Public Member Functions

static bool GeometryIsOverridden ()
 
static void ParseGeometryOverride (const QString &Geometry)
 Parse an X11 style command line geometry string. More...
 
static QRect GetGeometryOverride ()
 
static bool WindowIsAlwaysFullscreen ()
 Return true if the current platform only supports fullscreen windows. More...
 

Protected Member Functions

 MythUIScreenBounds ()
 
void InitScreenBounds ()
 

Protected Attributes

QSize m_themeSize { 1920, 1080 }
 
QRect m_uiScreenRect { 0, 0, 1920, 1080 }
 
QRect m_screenRect { 0, 0, 1920, 1080 }
 
float m_screenHorizScale { 1.0 }
 
float m_screenVertScale { 1.0 }
 
bool m_wantWindow { false }
 
bool m_wantFullScreen { true }
 
bool m_qtFullScreen { false }
 
bool m_alwaysOnTop { false }
 
int m_fontStretch { 100 }
 

Static Private Attributes

static int s_XOverride = -1
 
static int s_YOverride = -1
 
static int s_WOverride = -1
 
static int s_HOverride = -1
 

Detailed Description

Definition at line 12 of file mythuiscreenbounds.h.

Constructor & Destructor Documentation

◆ MythUIScreenBounds()

MythUIScreenBounds::MythUIScreenBounds ( )
protected

Definition at line 121 of file mythuiscreenbounds.cpp.

Member Function Documentation

◆ UIScreenRectChanged

void MythUIScreenBounds::UIScreenRectChanged ( const QRect &  Rect)
signal

◆ GeometryIsOverridden()

bool MythUIScreenBounds::GeometryIsOverridden ( )
static

Definition at line 18 of file mythuiscreenbounds.cpp.

Referenced by MythDisplay::GetDesiredScreen().

◆ ParseGeometryOverride()

void MythUIScreenBounds::ParseGeometryOverride ( const QString &  Geometry)
static

Parse an X11 style command line geometry string.

Accepts strings like -geometry 800x600 or -geometry 800x600+112+22 to override the fullscreen and user default screen dimensions

Definition at line 38 of file mythuiscreenbounds.cpp.

Referenced by main().

◆ GetGeometryOverride()

QRect MythUIScreenBounds::GetGeometryOverride ( )
static

Definition at line 23 of file mythuiscreenbounds.cpp.

Referenced by MythDisplay::GetDesiredScreen().

◆ WindowIsAlwaysFullscreen()

bool MythUIScreenBounds::WindowIsAlwaysFullscreen ( )
static

Return true if the current platform only supports fullscreen windows.

Definition at line 111 of file mythuiscreenbounds.cpp.

Referenced by AppearanceSettings::AppearanceSettings(), MythDisplay::GetDesiredScreen(), and InitScreenBounds().

◆ UpdateScreenSettings()

void MythUIScreenBounds::UpdateScreenSettings ( MythDisplay mDisplay)

Definition at line 138 of file mythuiscreenbounds.cpp.

◆ GetUIScreenRect()

QRect MythUIScreenBounds::GetUIScreenRect ( )

◆ SetUIScreenRect()

void MythUIScreenBounds::SetUIScreenRect ( QRect  Rect)

◆ GetScreenRect()

QRect MythUIScreenBounds::GetScreenRect ( )

Definition at line 208 of file mythuiscreenbounds.cpp.

Referenced by MythUIVirtualKeyboard::Create(), and TV::Init().

◆ NormSize()

QSize MythUIScreenBounds::NormSize ( QSize  Size) const

Definition at line 213 of file mythuiscreenbounds.cpp.

Referenced by XMLParseBase::parseSize().

◆ NormX()

int MythUIScreenBounds::NormX ( int  X) const

◆ NormY()

int MythUIScreenBounds::NormY ( int  Y) const

◆ GetScalingFactors()

void MythUIScreenBounds::GetScalingFactors ( float &  Horizontal,
float &  Vertical 
) const

◆ SetScalingFactors()

void MythUIScreenBounds::SetScalingFactors ( float  Horizontal,
float  Vertical 
)

◆ GetThemeSize()

QSize MythUIScreenBounds::GetThemeSize ( )

Definition at line 243 of file mythuiscreenbounds.cpp.

Referenced by MythMediaOverlay::OverrideUIScale().

◆ GetFontStretch()

int MythUIScreenBounds::GetFontStretch ( ) const

◆ SetFontStretch()

void MythUIScreenBounds::SetFontStretch ( int  Stretch)

◆ InitScreenBounds()

void MythUIScreenBounds::InitScreenBounds ( )
protected

Definition at line 126 of file mythuiscreenbounds.cpp.

Referenced by MythUIScreenBounds().

Member Data Documentation

◆ m_themeSize

QSize MythUIScreenBounds::m_themeSize { 1920, 1080 }
protected

Definition at line 42 of file mythuiscreenbounds.h.

Referenced by GetThemeSize(), InitScreenBounds(), and UpdateScreenSettings().

◆ m_uiScreenRect

QRect MythUIScreenBounds::m_uiScreenRect { 0, 0, 1920, 1080 }
protected

Definition at line 43 of file mythuiscreenbounds.h.

Referenced by GetUIScreenRect(), and SetUIScreenRect().

◆ m_screenRect

QRect MythUIScreenBounds::m_screenRect { 0, 0, 1920, 1080 }
protected

Definition at line 44 of file mythuiscreenbounds.h.

Referenced by GetScreenRect(), and UpdateScreenSettings().

◆ m_screenHorizScale

float MythUIScreenBounds::m_screenHorizScale { 1.0 }
protected

◆ m_screenVertScale

float MythUIScreenBounds::m_screenVertScale { 1.0 }
protected

◆ m_wantWindow

bool MythUIScreenBounds::m_wantWindow { false }
protected

Definition at line 47 of file mythuiscreenbounds.h.

Referenced by InitScreenBounds().

◆ m_wantFullScreen

bool MythUIScreenBounds::m_wantFullScreen { true }
protected

Definition at line 48 of file mythuiscreenbounds.h.

Referenced by InitScreenBounds().

◆ m_qtFullScreen

bool MythUIScreenBounds::m_qtFullScreen { false }
protected

Definition at line 49 of file mythuiscreenbounds.h.

Referenced by InitScreenBounds().

◆ m_alwaysOnTop

bool MythUIScreenBounds::m_alwaysOnTop { false }
protected

Definition at line 50 of file mythuiscreenbounds.h.

Referenced by InitScreenBounds().

◆ m_fontStretch

int MythUIScreenBounds::m_fontStretch { 100 }
protected

Definition at line 51 of file mythuiscreenbounds.h.

Referenced by GetFontStretch(), SetFontStretch(), and UpdateScreenSettings().

◆ s_XOverride

int MythUIScreenBounds::s_XOverride = -1
staticprivate

◆ s_YOverride

int MythUIScreenBounds::s_YOverride = -1
staticprivate

◆ s_WOverride

int MythUIScreenBounds::s_WOverride = -1
staticprivate

◆ s_HOverride

int MythUIScreenBounds::s_HOverride = -1
staticprivate

The documentation for this class was generated from the following files: