VirtualBox

Changeset 3532 in vbox


Ignore:
Timestamp:
Jul 10, 2007 2:57:15 PM (17 years ago)
Author:
vboxsync
Message:

Add QueryVisibleRegion & SetVisibleRegion to the IFrameBuffer class.

Location:
trunk/src/VBox
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxBFE/Framebuffer.h

    r2981 r3532  
    5252                                   ULONG width, ULONG height, BOOL *handled) = 0;
    5353
     54    virtual HRESULT QueryVisibleRegion(ULONG * aPcRect, BYTE * aPRect) = 0;
     55    virtual HRESULT SetVisibleRegion(ULONG aCRect, BYTE * aPRect) = 0;
     56
    5457    virtual void    repaint() = 0;
    5558    virtual void    resize() = 0;
  • trunk/src/VBox/Frontends/VBoxBFE/SDLFramebuffer.cpp

    r2981 r3532  
    324324}
    325325
     326HRESULT SDLFramebuffer::QueryVisibleRegion(ULONG * aPcRect, BYTE * aPRect)
     327{
     328    PRTRECT paRect = (PRTRECT)aPRect;
     329
     330    if (!aPcRect)
     331        return E_POINTER;
     332
     333    /* @todo */
     334    return S_OK;
     335}
     336
     337HRESULT SDLFramebuffer::SetVisibleRegion(ULONG aCRect, BYTE * aPRect)
     338{
     339    PRTRECT paRect = (PRTRECT)aPRect;
     340
     341    if (!paRect)
     342        return E_POINTER;
     343
     344    /* @todo */
     345    return S_OK;
     346}
     347
    326348//
    327349// Internal public methods
  • trunk/src/VBox/Frontends/VBoxBFE/SDLFramebuffer.h

    r2981 r3532  
    5757    virtual HRESULT CopyScreenBits(ULONG xDst, ULONG yDst, ULONG xSrc, ULONG ySrc,
    5858                                   ULONG width, ULONG height, BOOL *handled);
     59    virtual HRESULT QueryVisibleRegion(ULONG * aPcRect, BYTE * aPRect);
     60    virtual HRESULT SetVisibleRegion(ULONG aCRect, BYTE * aPRect);
    5961
    6062    virtual void    repaint();
  • trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.cpp

    r3402 r3532  
    570570}
    571571
     572STDMETHODIMP VBoxSDLFB::QueryVisibleRegion(ULONG * aPcRect, BYTE * aPRect)
     573{
     574    PRTRECT paRect = (PRTRECT)aPRect;
     575
     576    if (!aPcRect)
     577        return E_POINTER;
     578
     579    /* @todo */
     580    return S_OK;
     581}
     582
     583STDMETHODIMP VBoxSDLFB::SetVisibleRegion(ULONG aCRect, BYTE * aPRect)
     584{
     585    PRTRECT paRect = (PRTRECT)aPRect;
     586
     587    if (!paRect)
     588        return E_POINTER;
     589
     590    /* @todo */
     591    return S_OK;
     592}
    572593
    573594//
     
    14511472    return S_OK;
    14521473}
     1474
  • trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.h

    r3153 r3532  
    106106    STDMETHOD(CopyScreenBits)(ULONG xDst, ULONG yDst, ULONG xSrc, ULONG ySrc,
    107107                              ULONG width, ULONG height, BOOL *handled);
     108
     109    STDMETHOD(QueryVisibleRegion)(ULONG * aPcRect, BYTE * aPRect);
     110    STDMETHOD(SetVisibleRegion)(ULONG aCRect, BYTE * aPRect);
    108111
    109112    // internal public methods
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxFrameBuffer.h

    r3153 r3532  
    229229    STDMETHOD(CopyScreenBits) (ULONG aXDst, ULONG aYDst, ULONG aXSrc, ULONG aYSrc,
    230230                               ULONG aWidth, ULONG aHeight, BOOL *aHandled);
     231    STDMETHOD(QueryVisibleRegion)(ULONG * aPcRect, BYTE * aPRect);
     232    STDMETHOD(SetVisibleRegion)(ULONG aCRect, BYTE * aPRect);
    231233
    232234    // Helper functions
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxFrameBuffer.cpp

    r3153 r3532  
    225225        return E_POINTER;
    226226    *aHandled = FALSE;
     227    return S_OK;
     228}
     229
     230STDMETHODIMP VBoxFrameBuffer::QueryVisibleRegion(ULONG * aPcRect, BYTE * aPRect)
     231{
     232    PRTRECT paRect = (PRTRECT)aPRect;
     233
     234    if (!aPcRect)
     235        return E_POINTER;
     236
     237    /* @todo */
     238    return S_OK;
     239}
     240
     241STDMETHODIMP VBoxFrameBuffer::SetVisibleRegion(ULONG aCRect, BYTE * aPRect)
     242{
     243    PRTRECT paRect = (PRTRECT)aPRect;
     244
     245    if (!paRect)
     246        return E_POINTER;
     247
     248    /* @todo */
    227249    return S_OK;
    228250}
  • trunk/src/VBox/Main/FramebufferImpl.cpp

    r3153 r3532  
    208208    return S_OK;
    209209}
     210
     211STDMETHODIMP InternalFramebuffer::QueryVisibleRegion(ULONG * aPcRect, BYTE * aPRect)
     212{
     213    PRTRECT paRect = (PRTRECT)aPRect;
     214
     215    if (!aPcRect)
     216        return E_POINTER;
     217
     218    return S_OK;
     219}
     220
     221STDMETHODIMP InternalFramebuffer::SetVisibleRegion(ULONG aCRect, BYTE * aPRect)
     222{
     223    PRTRECT paRect = (PRTRECT)aPRect;
     224
     225    if (!paRect)
     226        return E_POINTER;
     227
     228    return S_OK;
     229}
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r3494 r3532  
    60966096  </interface>
    60976097
    6098 
    60996098  <!--
    61006099  // IDisplay
     
    61126111  <enum
    61136112     name="FramebufferPixelFormat"
    6114      uuid="d15f9c8b-bd7e-4003-981c-4ca14f49f2c3"
     6113     uuid="0389bf8d-3b41-476c-94be-53f5c84be9b5"
    61156114     >
    61166115    <const name="PixelFormatDefault"      value="0"/>
     
    63246323      <param name="height" type="unsigned long" dir="in"/>
    63256324      <param name="handled" type="boolean" dir="return"/>
     6325    </method>
     6326
     6327    <method name="queryVisibleRegion">
     6328      <desc>
     6329        Query the visible region
     6330      </desc>
     6331      <param name="pcRect" type="unsigned long" dir="out"/>
     6332      <param name="pRect" type="octet" mod="ptr" dir="in"/>
     6333    </method>
     6334
     6335    <method name="setVisibleRegion">
     6336      <desc>
     6337        Set the visible region
     6338      </desc>
     6339      <param name="cRect" type="unsigned long" dir="in"/>
     6340      <param name="pRect" type="octet" mod="ptr" dir="in"/>
    63266341    </method>
    63276342
  • trunk/src/VBox/Main/include/FramebufferImpl.h

    r3153 r3532  
    7474                              ULONG width, ULONG height, BOOL *handled);
    7575
     76    STDMETHOD(QueryVisibleRegion)(ULONG * aPcRect, BYTE * aPRect);
     77    STDMETHOD(SetVisibleRegion)(ULONG aCRect, BYTE * aPRect);
     78
    7679private:
    7780    int mWidth;
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