MythTV  master
Static Public Member Functions | List of all members
MythDisplay Class Reference

#include <mythdisplay.h>

Static Public Member Functions

static DisplayInfo GetDisplayInfo (int video_rate=0)
 
static WId GetWindowID (void)
 
static int GetNumberOfScreens (void)
 Return the number of available screens. More...
 
static QScreen * GetScreen (void)
 Return a pointer to the screen to use. More...
 
static bool SpanAllScreens (void)
 Return true if the MythTV windows should span all screens. More...
 
static QString GetExtraScreenInfo (QScreen *qscreen)
 

Detailed Description

Definition at line 24 of file mythdisplay.h.

Member Function Documentation

◆ GetDisplayInfo()

DisplayInfo MythDisplay::GetDisplayInfo ( int  video_rate = 0)
static

◆ GetWindowID()

WId MythDisplay::GetWindowID ( void  )
static

◆ GetNumberOfScreens()

int MythDisplay::GetNumberOfScreens ( void  )
static

Return the number of available screens.

This is the number of screens configured to be part of the users desktop, at the time the call is made. If the user closes the laptop lid, or connects an external screen, this number may be different the next time this function is called.

Definition at line 159 of file mythdisplay.cpp.

Referenced by AppearanceSettings::AppearanceSettings(), and MythUIHelperPrivate::GetScreenBounds().

◆ GetScreen()

QScreen * MythDisplay::GetScreen ( void  )
static

Return a pointer to the screen to use.

This function looks at the users screen preference, and will return that screen if possible. If not, i.e. the screen isn't plugged in, then this function returns the system's primary screen.

Note: There is no special case here for the case of MythTV spanning all screens, as all screen have access to the virtual desktop attributes. The check for spanning screens must be made when the screen size/geometry accessed, and the proper physical/virtual size/geometry retrieved.

Definition at line 185 of file mythdisplay.cpp.

Referenced by MythUIHelperPrivate::GetScreenBounds(), MythMainWindow::GrabWindow(), MythMainWindow::Init(), VideoOutWindow::populateGeometry(), and MythUIHelperPrivate::WaitForScreenChange().

◆ SpanAllScreens()

bool MythDisplay::SpanAllScreens ( void  )
static

Return true if the MythTV windows should span all screens.

Definition at line 167 of file mythdisplay.cpp.

Referenced by MythUIHelperPrivate::GetScreenBounds(), and VideoOutWindow::populateGeometry().

◆ GetExtraScreenInfo()

QString MythDisplay::GetExtraScreenInfo ( QScreen *  qscreen)
static

Definition at line 217 of file mythdisplay.cpp.

Referenced by MythUIHelperPrivate::GetScreenBounds(), and XineramaScreen().


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