7#include <qpa/qplatformwindow.h>
24 void Zoom(BPoint pos,
float width,
float height)
override;
31 void resized(
const QSize &size,
bool zoomInProgress);
39 bool m_zoomInProgress;
73 void haikuWindowResized(
const QSize &size,
bool zoomInProgress);
74 void haikuWindowActivated(
bool activated);
75 void haikuWindowMinimized(
bool minimize);
76 void haikuWindowZoomed();
77 void haikuWindowQuitRequested();
79 void haikuMouseEvent(
const QPoint &localPosition,
const QPoint &globalPosition, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, Qt::MouseEventSource source);
80 void haikuWheelEvent(
const QPoint &localPosition,
const QPoint &globalPosition,
int delta, Qt::Orientation orientation, Qt::KeyboardModifiers modifiers);
81 void haikuKeyEvent(QEvent::Type type,
int key, Qt::KeyboardModifiers modifiers,
const QString &text);
82 void haikuEnteredView();
83 void haikuExitedView();
84 void haikuDrawRequest(
const QRect &rect);
87 Qt::WindowStates m_windowState;
void MessageReceived(BMessage *message) override
void wheelEvent(const QPoint &localPosition, const QPoint &globalPosition, int delta, Qt::Orientation orientation, Qt::KeyboardModifiers modifiers)
void drawRequest(const QRect &rect)
void MouseUp(BPoint pos) override
void Draw(BRect updateRect) override
void MouseMoved(BPoint pos, uint32 code, const BMessage *dragMessage) override
void KeyDown(const char *bytes, int32 numBytes) override
void MouseDown(BPoint pos) override
void keyEvent(QEvent::Type type, int key, Qt::KeyboardModifiers modifiers, const QString &text)
void KeyUp(const char *bytes, int32 numBytes) override
void minimized(bool minimize)
void windowActivated(bool activated)
bool QuitRequested() override
void Zoom(BPoint pos, float width, float height) override
void Minimize(bool minimize) override
void resized(const QSize &size, bool zoomInProgress)
void FrameMoved(BPoint pos) override
void WindowActivated(bool activated) override
void FrameResized(float width, float height) override
BView * nativeViewHandle() const
void requestActivateWindow() override
Reimplement to let Qt be able to request activation/focus for a window.
bool isExposed() const override
Returns if this window is exposed in the windowing system.
void setVisible(bool visible) override
Reimplemented in subclasses to show the surface if visible is true, and hide it if visible is false.
BWindow * nativeHandle() const
void propagateSizeHints() override
Reimplement to propagate the size hints of the QWindow.
void setWindowTitle(const QString &title) override
Reimplement to set the window title to title.
void setGeometry(const QRect &rect) override
This function is called by Qt whenever a window is moved or resized using the QWindow API.
void setWindowState(Qt::WindowStates state) override
Requests setting the window state of this surface to type.
HaikuWindowProxy * m_window
bool isActive() const override
Returns true if the window should appear active from a style perspective.
WId winId() const override
Reimplement in subclasses to return a handle to the native window.
QMargins frameMargins() const override
void setWindowFlags(Qt::WindowFlags flags) override
Requests setting the window flags of this surface to flags.