DisplayOverlordDevice Class
The DisplayOverlordDevice class describes the current state of a specific video device and can be queried to return a list of supported video modes. Note that this class is a read-only container, all display manipulation is handled through the DisplayOverlord module.
Important: Always use the DisplayOverlord.Device method to create a DisplayOverlordDevice instance. This class can not be created manually with the New keyword.
Properties
Expand All | Collapse All
-
Depth As Integer
The display's current color bit-depth. -
Height As Integer
The display's current height in pixels. -
Left As Integer
The display's left coordinate relative to the main display. -
ModeCount As Integer
Returns the number of video modes available for this display. -
RefreshRate As Integer
The display's current refresh rate in Hz. -
Safe As Boolean
Returns True if the current video mode is considered safe for the hardware. -
Stretched As Boolean
Returns True if the current mode is stretched to fill a widescreen monitor on Mac OS X. Standard aspect (e.g. 4:3) modes that are not stretched on a widescreen display will show black bars on either side. -
Top As Integer
The display's top coordinate relative to the main display. -
Width As Integer
The display's current width in pixels.
Methods
Expand All | Collapse All
-
Handle ( type As Integer ) As Integer
Returns a system handle of the requested type or -1 if the requested handle is unavailable.
Handle type constants:- HandleTypeMacDisplayID : Mac OS X CGDirectDisplayID
- HandleTypeMacGDHandle : Mac OS X GDHandle
-
Mode ( index As Integer ) As DisplayOverlordMode
Returns the video mode at the requested index or Nil if index is out of range. Note that the DisplayOverlordMode instance returned is a mutable copy - the device's internal modes are read-only. Valid indexes range from 0 to ModeCount-1.