The GDQuartzDisplay represents a display and wraps Core Graphics quartz display functions. More...
#import <GDQuartzDisplay.h>
Public Member Functions | |
| (id) | - initWithPoint: |
| Initializes a GDQuartzDisplay from a point. | |
| (id) | - initWithRect: |
| Initializes a GDQuartzDisplay from a rect. | |
| (id) | - initWithDirectDisplayID: |
| Initialize a GDQuartzDisplay from a CGDirectDisplayID. | |
| (Boolean) | - isMainDisplay |
| Check if this display is the main display. | |
| (Boolean) | - isActive |
| Check whether or not an NSSize is considered fullscreen in this display's size. | |
| (Boolean) | - isAlwaysInMirrorSet |
| Whether or not this display is always in a mirrored set. | |
| (Boolean) | - isSleeping |
| Whether or not this display is sleeping. | |
| (Boolean) | - isInMirrorSet |
| Whether or not this display is in a mirrored set. | |
| (Boolean) | - isOnline |
| Whether or not this display is online (active, mirrored, or sleeping). | |
| (Boolean) | - isStereo |
| Whether or not this display is running stereo graphics mode. | |
| (Boolean) | - isPrimaryDisplayInMirrorSet |
| Whether or not this display is the primary display in a mirror set. | |
| (GDQuartzDisplay *) | - mirrorsDisplay |
| The display that this display is mirroring (check against isInMirrorSet). | |
| (GDQuartzDisplay *) | - primaryDisplay |
| Get the primary display from a mirror set. | |
| (double) | - rotation |
| Get the display rotation. | |
| (NSSize) | - millimeterSize |
| Get's the display size in millimeters. | |
| (NSSize) | - pixelSize |
| Get's the display size in pixels. | |
| (NSRect) | - bounds |
| The displays' bounds. | |
| (NSScreen *) | - screen |
| Returns an NSScreen instance for the screen that this GDQuartzDisplay represents. | |
| (Boolean) | - usesOpenGLAcceleration |
| Whether or not this display uses OpenGL acceleration. | |
Static Public Member Functions | |
| (NSMutableArray *) | + activeDisplays |
| Returns an array of CGQuartzDisplay instances which are all of the active displays attached. | |
| (NSMutableArray *) | + onlineDisplays |
| Returns an array of CGQuartzDisplay instances which are all of the online displays. | |
| (GDQuartzDisplay *) | + mainDisplay |
| Returns the display that is considered the "Main Display", this is the display id associated with CGMainDisplayID. | |
Protected Attributes | |
| CGDirectDisplayID | displayId |
| The hardware display id. | |
The GDQuartzDisplay represents a display and wraps Core Graphics quartz display functions.
| + (NSMutableArray *) activeDisplays |
Returns an array of CGQuartzDisplay instances which are all of the active displays attached.
These are displays that can be drawn to.
| - (id) initWithDirectDisplayID: | (CGDirectDisplayID) | ddid |
Initialize a GDQuartzDisplay from a CGDirectDisplayID.
| ddid | A CGDirectDisplayID. |
| - (id) initWithPoint: | (NSPoint) | point |
Initializes a GDQuartzDisplay from a point.
It uses this point to find the display that contains that point.
| - (id) initWithRect: | (NSRect) | rect |
Initializes a GDQuartzDisplay from a rect.
It uses this rect to find the display that contains that rect.
| - (Boolean) isActive |
Check whether or not an NSSize is considered fullscreen in this display's size.
| + (NSMutableArray *) onlineDisplays |
Returns an array of CGQuartzDisplay instances which are all of the online displays.
These are active, mirrored, or sleeping displays.