public class IDisplay extends IUnknown
IConsole.getDisplay()attribute and represents the visual
output of the virtual machine.
The virtual display supports pluggable output targets represented by the
IFramebuffer interface. Examples of the output target are a window on
the host computer or an RDP session's display on a remote computer.
Interface ID: {480B372C-C0B5-4C23-9BD7-DCBB85B1594C}| Constructor and Description |
|---|
IDisplay(java.lang.String wrapped,
org.virtualbox_4_3.jaxws.VboxPortType port) |
| Modifier and Type | Method and Description |
|---|---|
void |
getFramebuffer(java.lang.Long screenId,
Holder<IFramebuffer> framebuffer,
Holder<java.lang.Integer> xOrigin,
Holder<java.lang.Integer> yOrigin)
Queries the framebuffer for given screen.
|
void |
getScreenResolution(java.lang.Long screenId,
Holder<java.lang.Long> width,
Holder<java.lang.Long> height,
Holder<java.lang.Long> bitsPerPixel,
Holder<java.lang.Integer> xOrigin,
Holder<java.lang.Integer> yOrigin)
Queries display width, height and color depth for given screen.
|
void |
invalidateAndUpdate()
Does a full invalidation of the VM display and instructs the VM
to update it.
|
static IDisplay |
queryInterface(IUnknown obj) |
void |
resizeCompleted(java.lang.Long screenId)
Signals that a framebuffer has completed the resize operation.
|
void |
setFramebuffer(java.lang.Long screenId,
IFramebuffer framebuffer)
Sets the framebuffer for given screen.
|
void |
setSeamlessMode(java.lang.Boolean enabled)
Enables or disables seamless guest display rendering (seamless desktop
integration) mode.
|
void |
setVideoModeHint(java.lang.Long display,
java.lang.Boolean enabled,
java.lang.Boolean changeOrigin,
java.lang.Integer originX,
java.lang.Integer originY,
java.lang.Long width,
java.lang.Long height,
java.lang.Long bitsPerPixel)
Asks VirtualBox to request the given video mode from
the guest.
|
byte[] |
takeScreenShotPNGToArray(java.lang.Long screenId,
java.lang.Long width,
java.lang.Long height)
Takes a guest screen shot of the requested size and returns it as
PNG image in array.
|
byte[] |
takeScreenShotToArray(java.lang.Long screenId,
java.lang.Long width,
java.lang.Long height)
Takes a guest screen shot of the requested size and returns it as
an array of bytes in uncompressed 32-bpp RGBA format.
|
void |
viewportChanged(java.lang.Long screenId,
java.lang.Long x,
java.lang.Long y,
java.lang.Long width,
java.lang.Long height)
Signals that framebuffer window viewport has changed.
|
getRemoteWSPort, getWrapped, releaseRemotepublic IDisplay(java.lang.String wrapped,
org.virtualbox_4_3.jaxws.VboxPortType port)
public void getScreenResolution(java.lang.Long screenId,
Holder<java.lang.Long> width,
Holder<java.lang.Long> height,
Holder<java.lang.Long> bitsPerPixel,
Holder<java.lang.Integer> xOrigin,
Holder<java.lang.Integer> yOrigin)
public void setFramebuffer(java.lang.Long screenId,
IFramebuffer framebuffer)
public void getFramebuffer(java.lang.Long screenId,
Holder<IFramebuffer> framebuffer,
Holder<java.lang.Integer> xOrigin,
Holder<java.lang.Integer> yOrigin)
public void setVideoModeHint(java.lang.Long display,
java.lang.Boolean enabled,
java.lang.Boolean changeOrigin,
java.lang.Integer originX,
java.lang.Integer originY,
java.lang.Long width,
java.lang.Long height,
java.lang.Long bitsPerPixel)
display - The number of the guest display to send the hint to.enabled - True, if this guest screen is enabled,
False otherwise.changeOrigin - True, if the origin of the guest screen should be changed,
False otherwise.originX - The X origin of the guest screen.originY - The Y origin of the guest screen.
Expected result codes:
| E_INVALIDARG | The display is not associated with any monitor. |
public void setSeamlessMode(java.lang.Boolean enabled)
IGuest.getFacilityStatus(org.virtualbox_4_3.AdditionsFacilityType,Holder)with facility Seamless
does not return Active.public byte[] takeScreenShotToArray(java.lang.Long screenId,
java.lang.Long width,
java.lang.Long height)
screenId - Monitor to take screenshot from.width - Desired image width.height - Desired image height.| E_NOTIMPL | Feature not implemented. |
| @link ::VBOX_E_IPRT_ERROR VBOX_E_IPRT_ERROR | Could not take a screenshot. |
public byte[] takeScreenShotPNGToArray(java.lang.Long screenId,
java.lang.Long width,
java.lang.Long height)
screenId - Monitor to take the screenshot from.width - Desired image width.height - Desired image height.| E_NOTIMPL | Feature not implemented. |
| @link ::VBOX_E_IPRT_ERROR VBOX_E_IPRT_ERROR | Could not take a screenshot. |
public void invalidateAndUpdate()
| @link ::VBOX_E_IPRT_ERROR VBOX_E_IPRT_ERROR | Could not invalidate and update screen. |
public void resizeCompleted(java.lang.Long screenId)
| @link ::VBOX_E_NOT_SUPPORTED VBOX_E_NOT_SUPPORTED | Operation only valid for external frame buffers. |
public void viewportChanged(java.lang.Long screenId,
java.lang.Long x,
java.lang.Long y,
java.lang.Long width,
java.lang.Long height)
screenId - Monitor to take the screenshot from.x - Framebuffer x offset.y - Framebuffer y offset.width - Viewport width.height - Viewport height.
Expected result codes:
| E_INVALIDARG | The specified viewport data is invalid. |