Interface IDisplay2
interface IDisplay2
Extends IDisplay
Version 2 of IDisplay
Methods
getPhysicalScreenWidthInMillimeters()
i32 getPhysicalScreenWidthInMillimeters()
Query the physical width of the display in Millimeters
Returns
i32
physical width of the display in Millimeters. ‘-1’ is returned if valid value
couldn’t be retrieved from display hardware.
getPhysicalScreenHeightInMillimeters()
i32 getPhysicalScreenHeightInMillimeters()
Query the physical height of the display in Millimeters
Returns
i32
physical height of the display in Millimeters. ‘-1’ is returned if valid value
couldn’t be retrieved from display hardware.
isBufferFormatSupportedWithMimeType()
Check whether format is supported based on buffer usage flags and MIME type. Please see [IGraphicsModule#createGraphicsBuffer].boolisBufferFormatSupportedWithMimeType(BufferPixelFormat*format,BufferMime*mimeType,BufferUsage*usage)
Parameters
format
BufferPixelFormat* — Required
Buffer format
mimeType
BufferMime* — Required
Buffer MIME type
usage
BufferUsage* — Required
Buffer usage
Returns
bool
True if buffer usage and format is supported
Throws
NullPointerError— if any input argument is null pointer while a non-null one is expectedInvalidArgumentError— if any input argument is invalidDeviceError— if the display device is not in active state

