VirtualBox

Ignore:
Timestamp:
May 16, 2013 10:07:23 AM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: 6749: Frame-buffer interface cleanup/rework (part 1).

Location:
trunk/src/VBox/Frontends/VirtualBox/src/runtime
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.cpp

    r46072 r46119  
    77
    88/*
    9  * Copyright (C) 2010-2012 Oracle Corporation
     9 * Copyright (C) 2010-2013 Oracle Corporation
    1010 *
    1111 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    292292}
    293293
     294void UIFrameBuffer::resizeEvent(UIResizeEvent *pEvent)
     295{
     296    m_width = pEvent->width();
     297    m_height = pEvent->height();
     298}
     299
    294300#ifdef VBOX_WITH_VIDEOHWACCEL
    295301void UIFrameBuffer::doProcessVHWACommand(QEvent *pEvent)
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.h

    r46064 r46119  
    66
    77/*
    8  * Copyright (C) 2010-2012 Oracle Corporation
     8 * Copyright (C) 2010-2013 Oracle Corporation
    99 *
    1010 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    212212    virtual ulong bytesPerLine() = 0;
    213213
    214     /**
    215      *  Called on the GUI thread (from VBoxConsoleView) when some part of the
    216      *  VM display viewport needs to be repainted on the host screen.
    217      */
     214    /* API: Event-delegate stuff: */
     215    virtual void moveEvent(QMoveEvent* /*pEvent*/) {}
     216    virtual void resizeEvent(UIResizeEvent *pEvent);
    218217    virtual void paintEvent(QPaintEvent *pEvent) = 0;
    219 
    220     /**
    221      *  Called on the GUI thread (from VBoxConsoleView) after it gets a
    222      *  UIResizeEvent posted from the RequestResize() method implementation.
    223      */
    224     virtual void resizeEvent(UIResizeEvent *pEvent)
    225     {
    226         m_width = pEvent->width();
    227         m_height = pEvent->height();
    228     }
    229 
    230     /**
    231      *  Called on the GUI thread (from VBoxConsoleView) when the VM console
    232      *  window is moved.
    233      */
    234     virtual void moveEvent(QMoveEvent * /* pEvent */) {}
    235218
    236219#ifdef VBOX_WITH_VIDEOHWACCEL
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