Crate objc2_paravirtualized_graphics

Crate objc2_paravirtualized_graphics 

Source
Expand description

§Bindings to the ParavirtualizedGraphics framework

See Apple’s docs and the general docs on framework crates for more information.

Structs§

PGDeviceDescriptorPGDevice
Apple’s documentation
PGDisplayCoord_tPGDisplay
A struct for describing size of or offsets into a 2D array of pixels (used for size of display mode, size of cursor, and cursor hotSpot). Field: x Represents horizontal pixel offset/size Field: y Represents vertical pixel offset/size
PGDisplayDescriptorPGDisplay
Descriptor to facilitate creation of PGDisplay.
PGDisplayModePGDisplay
Description of supported display mode.
PGPhysicalMemoryRange_sPGDevice
A struct for a guest physical memory range Field: physicalAddress The starting physical address of the range Field: physicalLength The length of the range
PGResumeErrorCodePGDevice
Resume error codes

Statics§

PGResumeErrorDomainPGDevice
Apple’s documentation
ParavirtualizedGraphicsVersionNumber
Project version number for ParavirtualizedGraphics.
ParavirtualizedGraphicsVersionString
Project version string for ParavirtualizedGraphics.

Traits§

PGDevicePGDevice
The PGDevice protocol represents a paravirtualized GPU device.
PGDisplayPGDisplay
Object providing display functionality to guest in a way that host-side VM app can intercept (and process as it chooses).

Functions§

PGCopyOptionROMURLPGDevice
Copy the URL of the option ROM to be used by the device. The URL will be a local file path to a flat ROM image. The client code should pad the ROM image out to a power of 2 size with a zero-filled trailer and present the resulting bytes as read only memory to the PCI option ROM BAR for the device.
PGCreateDeviceWithDescriptorPGDevice
Create a new PGDevice implementation object based on the provided descriptor.
PGMaxDisplayPortCountPGDevice
Returns the maximum number of PGDisplay ports that a PGDevice can be configured with.
PGNewDeviceWithDescriptorPGDevice
Create a new PGDevice implementation object based on the provided descriptor.

Type Aliases§

PGDisplayCursorGlyphHandlerPGDisplay and block2 and objc2-app-kit
A block that will be invoked to handle cursor glyph updates.
PGDisplayCursorMoveHandlerPGDisplay and block2
A block that will be invoked to handle cursor movement.
PGDisplayCursorShowHandlerPGDisplay and block2
A block that will be invoked to handle cursor show/hide updates.
PGDisplayModeChangeHandlerPGDisplay and block2
A block that will be invoked at display mode change boundaries.
PGDisplayNewFrameEventHandlerPGDisplay and block2
A block that will be invoked to notify client of availability of new Guest compositor frame to be further processed.
PGPhysicalMemoryRange_tPGDevice
A struct for a guest physical memory range Field: physicalAddress The starting physical address of the range Field: physicalLength The length of the range
PGRaiseInterruptPGDevice and block2
A block that is invoked to raise an interrupt to the guest.
PGTraceRangeHandlerPGDevice and block2
A block that will be invoked by the device client code when a trace handler fires. The device client code should watch the memory identified by each installed trace range and notify the device when the memory has been changed. The client is encouraged to coalesce the handling of these notifications over the course of several milliseconds. This functionality is used to provide a low overhead framebuffer implementation that is used by the device before the guest OS has fully booted and entered accelerated rendering and display.