Platforms to show: All Mac Windows Linux Cross-Platform

Back to CGDisplayModeMBS class.

CGDisplayModeMBS.Handle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreGraphics MBS MacCG Plugin 11.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The internal object reference.

(Read only property)

CGDisplayModeMBS.Height as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreGraphics MBS MacCG Plugin 11.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Return the height in pixels of the specified display mode.
Example
dim display as CGDisplayMBS = CGDisplayMBS.MainDisplay
dim mode as CGDisplayModeMBS = Display.DisplayMode

MsgBox str(mode.Height)+" Pixel"

Call CGDisplayModeGetHeight function.
(Read only property)

CGDisplayModeMBS.IODisplayModeID as Int32

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreGraphics MBS MacCG Plugin 11.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Return the IOKit display mode ID of the specified display mode.

Call CGDisplayModeGetIODisplayModeID function.
(Read only property)

CGDisplayModeMBS.IOFlags as UInt32

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreGraphics MBS MacCG Plugin 11.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Return the IOKit flags of the specified display mode.
Example
dim display as CGDisplayMBS = CGDisplayMBS.MainDisplay
dim mode as CGDisplayModeMBS = Display.DisplayMode

MsgBox str(mode.IOFlags)

Call CGDisplayModeGetIOFlags function.
(Read only property)

CGDisplayModeMBS.IsUsableForDesktopGUI as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreGraphics MBS MacCG Plugin 11.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Return true if the specified mode is usable for displaying the desktop GUI; false otherwise.

Call CGDisplayModeIsUsableForDesktopGUI function.
(Read only property)

CGDisplayModeMBS.PixelEncoding as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreGraphics MBS MacCG Plugin 11.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Return a string representing the pixel encoding of the specified display mode, expressed as a CFString containing an IOKit graphics mode.
Example
dim display as CGDisplayMBS = CGDisplayMBS.MainDisplay
dim mode as CGDisplayModeMBS = Display.DisplayMode

MsgBox mode.PixelEncoding // shows e.g. --------RRRRRRRRGGGGGGGGBBBBBBBB

Call CGDisplayModeCopyPixelEncoding function.
(Read only property)

CGDisplayModeMBS.PixelHeight as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreGraphics MBS MacCG Plugin 12.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Return the height in pixels of the specified display mode.

Call CGDisplayModeGetPixelHeight function.
(Read only property)

CGDisplayModeMBS.PixelWidth as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreGraphics MBS MacCG Plugin 12.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Return the width in pixels of the specified display mode.

Call CGDisplayModeGetPixelWidth function.
(Read only property)

CGDisplayModeMBS.RefreshRate as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreGraphics MBS MacCG Plugin 11.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Return the refresh rate of the specified display mode.
Example
dim display as CGDisplayMBS = CGDisplayMBS.MainDisplay
dim mode as CGDisplayModeMBS = Display.DisplayMode

MsgBox str(mode.RefreshRate)

Call CGDisplayModeGetRefreshRate function.
(Read only property)

CGDisplayModeMBS.Width as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreGraphics MBS MacCG Plugin 11.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Return the width in pixels of the specified display mode.
Example
dim display as CGDisplayMBS = CGDisplayMBS.MainDisplay
dim mode as CGDisplayModeMBS = Display.DisplayMode

MsgBox str(mode.Width)+" Pixel"

Call CGDisplayModeGetWidth function.
(Read only property)

The items on this page are in the following plugins: MBS MacCG Plugin.


The biggest plugin in space...