cinder::Display Class Reference

#include <Display.h>

List of all members.

Public Member Functions

 ~Display ()
int getWidth () const
int getHeight () const
Area getArea () const
int getBitsPerPixel () const
bool contains (const Vec2i &pt) const
 Returns whether the Display's coordinates contain pt.
NSScreen * getNsScreen () const
CGDirectDisplayID getCgDirectDisplayId () const

Static Public Member Functions

static DisplayRef getMainDisplay ()
static const std::vector
< DisplayRef > & 
getDisplays ()
static DisplayRef getDisplayForPoint (const Vec2i &pt)
 Returns the Display which contains a given point. Returns a NULL DisplayRef on failure.
static DisplayRef findFromCgDirectDisplayId (CGDirectDisplayID displayID)
static DisplayRef findFromHmonitor (HMONITOR hMonitor)
 Finds a Display based on its HMONITOR. Returns the primary display if it's not found.
static BOOL CALLBACK enumMonitorProc (HMONITOR hMonitor, HDC hdc, LPRECT rect, LPARAM lParam)

Constructor & Destructor Documentation

cinder::Display::~Display (  ) 

Member Function Documentation

int cinder::Display::getWidth (  )  const
int cinder::Display::getHeight (  )  const
Area cinder::Display::getArea (  )  const
int cinder::Display::getBitsPerPixel (  )  const
bool cinder::Display::contains ( const Vec2i pt  )  const

Returns whether the Display's coordinates contain pt.

NSScreen* cinder::Display::getNsScreen (  )  const
CGDirectDisplayID cinder::Display::getCgDirectDisplayId (  )  const
DisplayRef cinder::Display::getMainDisplay (  )  [static]
const vector< DisplayRef > & cinder::Display::getDisplays (  )  [static]
DisplayRef cinder::Display::getDisplayForPoint ( const Vec2i pt  )  [static]

Returns the Display which contains a given point. Returns a NULL DisplayRef on failure.

DisplayRef cinder::Display::findFromCgDirectDisplayId ( CGDirectDisplayID  displayID  )  [static]
DisplayRef cinder::Display::findFromHmonitor ( HMONITOR  hMonitor  )  [static]

Finds a Display based on its HMONITOR. Returns the primary display if it's not found.

BOOL CALLBACK cinder::Display::enumMonitorProc ( HMONITOR  hMonitor,
HDC  hdc,
LPRECT  rect,
LPARAM  lParam 
) [static]

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