Qt 4.8
Public Functions | Properties | List of all members
QVFbWindow Class Reference

#include <qvfbwindowsurface.h>

Inheritance diagram for QVFbWindow:
QPlatformWindow

Public Functions

 QVFbWindow (QVFbScreen *screen, QWidget *window)
 
void setGeometry (const QRect &rect)
 This function is called by Qt whenever a window is moved or the window is resized. More...
 
- Public Functions inherited from QPlatformWindow
virtual QRect geometry () const
 Returnes the current geometry of a window. More...
 
virtual QPlatformGLContextglContext () const
 Reimplement to return the glContext associated with the window. More...
 
virtual void lower ()
 Reimplement to be able to let Qt lower windows to the bottom of the desktop. More...
 
 QPlatformWindow (QWidget *tlw)
 Constructs a platform window with the given top level widget. More...
 
virtual void raise ()
 Reimplement to be able to let Qt rais windows to the top of the desktop. More...
 
virtual void requestActivateWindow ()
 Reimplement to let Qt be able to request activation/focus for a window. More...
 
virtual void setOpacity (qreal level)
 Reimplement to be able to let Qt set the opacity level of a window. More...
 
virtual void setParent (const QPlatformWindow *window)
 This function is called to enable native child widgets in QPA. More...
 
virtual void setVisible (bool visible)
 Reimplemented in subclasses to show the surface if visible is true, and hide it if visible is false. More...
 
virtual Qt::WindowFlags setWindowFlags (Qt::WindowFlags flags)
 Requests setting the window flags of this surface to type. More...
 
virtual void setWindowTitle (const QString &title)
 Reimplement to set the window title to title. More...
 
QWidgetwidget () const
 Returnes the widget which belongs to the QPlatformWindow. More...
 
virtual Qt::WindowFlags windowFlags () const
 Returns the effective window flags for this surface. More...
 
virtual WId winId () const
 Reimplement in subclasses to return a handle to the native window. More...
 
virtual ~QPlatformWindow ()
 Virtual destructor does not delete its top level widget. More...
 

Properties

QVFbScreenmScreen
 

Additional Inherited Members

- Protected Variables inherited from QPlatformWindow
QScopedPointer< QPlatformWindowPrivated_ptr
 

Detailed Description

Definition at line 67 of file qvfbwindowsurface.h.

Constructors and Destructors

◆ QVFbWindow()

QVFbWindow::QVFbWindow ( QVFbScreen screen,
QWidget window 
)

Definition at line 88 of file qvfbwindowsurface.cpp.

89  : QPlatformWindow(window),
90  mScreen(screen)
91 {
92 }
QPlatformWindow(QWidget *tlw)
Constructs a platform window with the given top level widget.
QVFbScreen * mScreen

Functions

◆ setGeometry()

void QVFbWindow::setGeometry ( const QRect rect)
virtual

This function is called by Qt whenever a window is moved or the window is resized.

The resize can happen programatically(from ie. user application) or by the window manager. This means that there is no need to call this function specifically from the window manager callback, instead call QWindowSystemInterface::handleGeometryChange(QWidget *w, const QRect &newRect);

Reimplemented from QPlatformWindow.

Definition at line 95 of file qvfbwindowsurface.cpp.

96 {
97 
98 // any size you like as long as it's full-screen...
99 
102 
104 }
virtual void setGeometry(const QRect &rect)
This function is called by Qt whenever a window is moved or the window is resized.
QVFbScreen * mScreen
virtual QRect availableGeometry() const
Reimplement in subclass to return the pixel geometry of the available space This normally is the desk...
static void handleGeometryChange(QWidget *w, const QRect &newRect)
The QRect class defines a rectangle in the plane using integer precision.
Definition: qrect.h:58
QWidget * widget() const
Returnes the widget which belongs to the QPlatformWindow.

Properties

◆ mScreen

QVFbScreen* QVFbWindow::mScreen
private

Definition at line 74 of file qvfbwindowsurface.h.

Referenced by setGeometry().


The documentation for this class was generated from the following files: