18#include <qpa/qplatformcursor.h>
19#include <QtGui/private/qinputdevicemanager_p.h>
56 void setPos(
const QPoint &pos)
override;
58 void changeCursor(QCursor *widgetCursor, QWindow *window)
override;
62 virtual bool isDirty()
const {
return mDirty; }
69 void setCursor(
const uchar *data,
const uchar *mask,
int width,
int height,
int hotX,
int hotY);
70 void setCursor(Qt::CursorShape shape);
71 void setCursor(
const QImage &image,
int hotx,
int hoty);
72 QRect getCurrentRect()
const;
80 QScopedPointer<QPlatformCursorImage> mCursorImage;
void resize(const QSize &size, const QRegion ®ion) override
void flush(QWindow *window, const QRegion ®ion, const QPoint &offset) override
Flushes the given region from the specified window.
QImage toImage() const override
Implemented in subclasses to return the content of the backingstore as a QImage.
void endPaint() override
This function is called after painting onto the surface has ended.
void beginPaint(const QRegion &) override
This function is called before painting onto the surface begins, with the region in which the paintin...
QPaintDevice * paintDevice() override
Implement this function to return the appropriate paint device.
QFbBackingStore(QWindow *window)
void setPos(const QPoint &pos) override
virtual bool isOnScreen() const
QPoint pos() const override
void pointerEvent(const QMouseEvent &event) override
This method is called by Qt whenever a QMouseEvent is generated by the underlying pointer input.
virtual QRect lastPainted() const
virtual QRect drawCursor(QPainter &painter)
virtual bool isDirty() const
QSizeF physicalSize() const override
Reimplement this function in subclass to return the physical size of the screen, in millimeters.
QPlatformCursor * cursor() const override
Reimplement this function in subclass to return the cursor of the screen.
QFbWindow * windowForId(WId wid) const
virtual int windowCount() const
virtual Flags flags() const
QRect geometry() const override
Reimplement in subclass to return the pixel geometry of the screen.
QList< QFbWindow * > mWindowStack
virtual void topWindowChanged(QWindow *)
int depth() const override
Reimplement in subclass to return current depth of the screen.
QWindow * topLevelAt(const QPoint &p) const override
Return the given top level window for a given position.
QImage::Format format() const override
Reimplement in subclass to return the image format which corresponds to the screen format.
bool event(QEvent *event) override
This virtual function receives events to an object and should return true if the event e was recogniz...
virtual bool initialize()
virtual void lower(QFbWindow *window)
QWindow * topWindow() const
void initializeCompositor()
void setGeometry(const QRect &rect)
virtual void raise(QFbWindow *window)
virtual QRegion doRedraw()
void setPhysicalSize(const QSize &size)
void addPendingBackingStore(QFbBackingStore *bs)
virtual void removeWindow(QFbWindow *window)
virtual void addWindow(QFbWindow *window)
QFbWindow(QWindow *window)
QFbBackingStore * backingStore() const
Qt::WindowFlags windowFlags() const
QFbScreen * platformScreen() const
void setVisible(bool visible) override
Reimplemented in subclasses to show the surface if visible is true, and hide it if visible is false.
virtual void repaint(const QRegion &)
void setBackingStore(QFbBackingStore *store)
Qt::WindowFlags mWindowFlags
bool setKeyboardGrabEnabled(bool) override
WId winId() const override
Reimplement in subclasses to return a handle to the native window.
void setGeometry(const QRect &rect) override
This function is called by Qt whenever a window is moved or resized using the QWindow API.
void propagateSizeHints() override
Reimplement to propagate the size hints of the QWindow.
Qt::WindowStates mWindowState
bool setMouseGrabEnabled(bool) override
QFbBackingStore * mBackingStore
void lower() override
Reimplement to be able to let Qt lower windows to the bottom of the desktop.
void raise() override
Reimplement to be able to let Qt raise windows to the top of the desktop.
void setWindowFlags(Qt::WindowFlags type) override
Requests setting the window flags of this surface to flags.
void setWindowState(Qt::WindowStates state) override
Requests setting the window state of this surface to type.