VirtualBox

Changeset 61560 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 8, 2016 8:33:31 AM (9 years ago)
Author:
vboxsync
Message:

Main: IDisplay queryScreenLayout and setScreenLayout API stubs

Location:
trunk/src/VBox/Main
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r61137 r61560  
    1669916699  <enum
    1670016700    name="GuestMonitorStatus"
    16701     uuid="a0001cb1-97c9-496d-82bc-616c19a9e212"
     16701    uuid="6b8d3f71-39cb-459e-a916-48917ed43e19"
     16702    wsmap="managed"
    1670216703    >
    1670316704    <desc>
     
    1671616717      </desc>
    1671716718    </const>
     16719
     16720    <const name="Blank" value="2">
     16721      <desc>
     16722        The guest monitor is enabled in the guest but should display nothing.
     16723      </desc>
     16724    </const>
    1671816725  </enum>
     16726
     16727  <enum
     16728    name="ScreenLayoutMode"
     16729    uuid="9a982f4f-b815-4802-8539-d0b46435a7b7"
     16730    wsmap="managed"
     16731    >
     16732    <desc>
     16733      How IDisplay::setScreenLayout method should work.
     16734    </desc>
     16735
     16736    <const name="Apply" value="0">
     16737      <desc>
     16738        If the guest is already at desired mode then the API might avoid setting the mode.
     16739      </desc>
     16740    </const>
     16741
     16742    <const name="Reset" value="1">
     16743      <desc>
     16744        Always set the new mode even if the guest is already at desired mode.
     16745      </desc>
     16746    </const>
     16747  </enum>
     16748
     16749  <interface
     16750    name="IGuestScreenInfo" extends="$unknown"
     16751    uuid="5f99cd4d-bbd2-49ba-b24d-4b5b42fb4c3a"
     16752    wsmap="managed"
     16753    >
     16754    <attribute name="screenId" type="unsigned long" readonly="yes"/>
     16755    <attribute name="guestMonitorStatus" type="GuestMonitorStatus" readonly="yes"/>
     16756    <attribute name="primary" type="boolean" readonly="yes"/>
     16757    <attribute name="origin" type="boolean" readonly="yes"/>
     16758    <attribute name="originX" type="long" readonly="yes"/>
     16759    <attribute name="originY" type="long" readonly="yes"/>
     16760    <attribute name="width" type="unsigned long" readonly="yes"/>
     16761    <attribute name="height" type="unsigned long" readonly="yes"/>
     16762    <attribute name="bitsPerPixel" type="unsigned long" readonly="yes"/>
     16763  </interface>
    1671916764
    1672016765  <interface
    1672116766    name="IDisplay" extends="$unknown"
    16722     uuid="7303a66d-433b-25a4-f9a8-fcadf87e0c2a"
     16767    uuid="92d9349f-59fd-4eb1-b565-1ba51beb1c9c"
    1672316768    wsmap="managed"
    1672416769    wrap-hint-server-addinterfaces="IEventListener"
     
    1703917084      </desc>
    1704017085      <param name="fUnscaledHiDPI" type="boolean" dir="in"/>
     17086    </method>
     17087
     17088    <method name="queryScreenLayout">
     17089      <desc>
     17090        Queries layout of the guest screens.
     17091      </desc>
     17092      <param name="guestScreenInfo" type="IGuestScreenInfo" safearray="yes" dir="return"/>
     17093    </method>
     17094
     17095    <method name="setScreenLayout">
     17096      <desc>
     17097        Set video modes for the guest screens.
     17098      </desc>
     17099      <param name="screenLayoutMode" type="ScreenLayoutMode" dir="in"/>
     17100      <param name="guestScreenInfo" type="IGuestScreenInfo" safearray="yes" dir="in"/>
    1704117101    </method>
    1704217102
  • trunk/src/VBox/Main/include/DisplayImpl.h

    r60905 r61560  
    272272                                            ULONG aScaleFactorHMultiplied);
    273273    virtual HRESULT notifyHiDPIOutputPolicyChange(BOOL fUnscaledHiDPI);
     274    virtual HRESULT queryScreenLayout(std::vector<ComPtr<IGuestScreenInfo> > &aGuestScreenInfo);
     275    virtual HRESULT setScreenLayout(ScreenLayoutMode_T aScreenLayoutMode,
     276                                    const std::vector<ComPtr<IGuestScreenInfo> > &aGuestScreenInfo);
    274277
    275278    // Wrapped IEventListener properties
  • trunk/src/VBox/Main/src-client/DisplayImpl.cpp

    r60905 r61560  
    28022802    LogRelFlowFunc(("%Rhrc\n", hr));
    28032803    return hr;
     2804}
     2805
     2806HRESULT Display::queryScreenLayout(std::vector<ComPtr<IGuestScreenInfo> > &aGuestScreenInfo)
     2807{
     2808    NOREF(aGuestScreenInfo);
     2809    return E_NOTIMPL;
     2810}
     2811
     2812HRESULT Display::setScreenLayout(ScreenLayoutMode_T aScreenLayoutMode,
     2813                                    const std::vector<ComPtr<IGuestScreenInfo> > &aGuestScreenInfo)
     2814{
     2815    NOREF(aScreenLayoutMode);
     2816    NOREF(aGuestScreenInfo);
     2817    return E_NOTIMPL;
    28042818}
    28052819
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette