JUCE  v5.1.1-3-g1a0b28c73
JUCE API
Desktop::Displays Class Reference

#include <juce_Desktop.h>

Collaboration diagram for Desktop::Displays:

Classes

struct  Display
 Contains details about a display device. More...
 

Public Member Functions

const DisplaygetDisplayContaining (Point< int > position) const noexcept
 Returns the display which contains a particular point. More...
 
const DisplaygetMainDisplay () const noexcept
 Returns the display which acts as user's main screen. More...
 
RectangleList< intgetRectangleList (bool userAreasOnly) const
 Returns a RectangleList made up of all the displays. More...
 
Rectangle< intgetTotalBounds (bool userAreasOnly) const
 Returns the smallest bounding box which contains all the displays. More...
 

Public Attributes

Array< Displaydisplays
 The list of displays. More...
 

Private Member Functions

 Displays (Desktop &)
 
 ~Displays ()
 
void findDisplays (float masterScale)
 
void init (Desktop &)
 

Friends

struct ContainerDeletePolicy< Displays >
 
class Desktop
 

Constructor & Destructor Documentation

◆ Displays()

Desktop::Displays::Displays ( Desktop )
private

◆ ~Displays()

Desktop::Displays::~Displays ( )
private

Member Function Documentation

◆ findDisplays()

void Desktop::Displays::findDisplays ( float  masterScale)
private

◆ getDisplayContaining()

const Display& Desktop::Displays::getDisplayContaining ( Point< int position) const
noexcept

Returns the display which contains a particular point.

If the point lies outside all the displays, the nearest one will be returned.

◆ getMainDisplay()

const Display& Desktop::Displays::getMainDisplay ( ) const
noexcept

Returns the display which acts as user's main screen.

Referenced by JuceGLView::layerClass, and OpenGLContext::NativeContext::updateWindowPosition().

◆ getRectangleList()

RectangleList<int> Desktop::Displays::getRectangleList ( bool  userAreasOnly) const

Returns a RectangleList made up of all the displays.

◆ getTotalBounds()

Rectangle<int> Desktop::Displays::getTotalBounds ( bool  userAreasOnly) const

Returns the smallest bounding box which contains all the displays.

◆ init()

void Desktop::Displays::init ( Desktop )
private

Friends And Related Function Documentation

◆ ContainerDeletePolicy< Displays >

friend struct ContainerDeletePolicy< Displays >
friend

◆ Desktop

friend class Desktop
friend

Member Data Documentation

◆ displays

Array<Display> Desktop::Displays::displays

The list of displays.


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