QtBase  v6.3.1
Public Member Functions | Protected Attributes | List of all members
QHaikuWindow Class Reference

#include <qhaikuwindow.h>

Inheritance diagram for QHaikuWindow:
Inheritance graph
[legend]
Collaboration diagram for QHaikuWindow:
Collaboration graph
[legend]

Public Member Functions

 QHaikuWindow (QWindow *window)
 
virtual ~QHaikuWindow ()
 
void setGeometry (const QRect &rect) override
 
QMargins frameMargins () const override
 
void setVisible (bool visible) override
 
bool isExposed () const override
 
bool isActive () const override
 
WId winId () const override
 
BWindow * nativeHandle () const
 
void requestActivateWindow () override
 
void setWindowState (Qt::WindowStates state) override
 
void setWindowFlags (Qt::WindowFlags flags) override
 
void setWindowTitle (const QString &title) override
 
void propagateSizeHints () override
 
- Public Member Functions inherited from QObject
Q_INVOKABLE QObject (QObject *parent=nullptr)
 
virtual ~QObject ()
 
virtual bool event (QEvent *event)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
QString objectName () const
 
void setObjectName (const QString &name)
 
QBindable< QStringbindableObjectName ()
 
bool isWidgetType () const
 
bool isWindowType () const
 
bool signalsBlocked () const noexcept
 
bool blockSignals (bool b) noexcept
 
QThreadthread () const
 
void moveToThread (QThread *thread)
 
int startTimer (int interval, Qt::TimerType timerType=Qt::CoarseTimer)
 
void killTimer (int id)
 
template<typename T >
T findChild (const QString &aName=QString(), Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 
template<typename T >
QList< TfindChildren (const QString &aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 
template<typename T >
QList< TfindChildren (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 
const QObjectListchildren () const
 
void setParent (QObject *parent)
 
void installEventFilter (QObject *filterObj)
 
void removeEventFilter (QObject *obj)
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
 
bool disconnect (const char *signal=nullptr, const QObject *receiver=nullptr, const char *member=nullptr) const
 
bool disconnect (const QObject *receiver, const char *member=nullptr) const
 
void dumpObjectTree () const
 
void dumpObjectInfo () const
 
bool setProperty (const char *name, const QVariant &value)
 
QVariant property (const char *name) const
 
QList< QByteArraydynamicPropertyNames () const
 
QBindingStoragebindingStorage ()
 
const QBindingStoragebindingStorage () const
 
QObjectparent () const
 
bool inherits (const char *classname) const
 
- Public Member Functions inherited from QPlatformWindow
 QPlatformWindow (QWindow *window)
 
 ~QPlatformWindow () override
 
virtual void initialize ()
 
QWindowwindow () const
 
QPlatformWindowparent () const
 
QPlatformScreenscreen () const override
 
virtual QSurfaceFormat format () const override
 
virtual QRect geometry () const
 
virtual QRect normalGeometry () const
 
virtual QMargins safeAreaMargins () const
 
virtual void setParent (const QPlatformWindow *window)
 
virtual void setWindowFilePath (const QString &title)
 
virtual void setWindowIcon (const QIcon &icon)
 
virtual bool close ()
 
virtual void raise ()
 
virtual void lower ()
 
virtual bool isAncestorOf (const QPlatformWindow *child) const
 
virtual bool isEmbedded () const
 
virtual bool isForeignWindow () const
 
virtual QPoint mapToGlobal (const QPoint &pos) const
 
QPointF mapToGlobalF (const QPointF &pos) const
 
virtual QPoint mapFromGlobal (const QPoint &pos) const
 
QPointF mapFromGlobalF (const QPointF &pos) const
 
virtual void setOpacity (qreal level)
 
virtual void setMask (const QRegion &region)
 
virtual void handleContentOrientationChange (Qt::ScreenOrientation orientation)
 
virtual qreal devicePixelRatio () const
 
virtual bool setKeyboardGrabEnabled (bool grab)
 
virtual bool setMouseGrabEnabled (bool grab)
 
virtual bool setWindowModified (bool modified)
 
virtual bool windowEvent (QEvent *event)
 
virtual bool startSystemResize (Qt::Edges edges)
 
virtual bool startSystemMove ()
 
virtual void setFrameStrutEventsEnabled (bool enabled)
 
virtual bool frameStrutEventsEnabled () const
 
virtual void setAlertState (bool enabled)
 
virtual bool isAlertState () const
 
virtual void invalidateSurface ()
 
virtual void requestUpdate ()
 
bool hasPendingUpdateRequest () const
 
virtual void deliverUpdateRequest ()
 
QSize windowMinimumSize () const
 
QSize windowMaximumSize () const
 
QSize windowBaseSize () const
 
QSize windowSizeIncrement () const
 
QRect windowGeometry () const
 
QRect windowFrameGeometry () const
 
QRectF windowClosestAcceptableGeometry (const QRectF &nativeRect) const
 
- Public Member Functions inherited from QPlatformSurface
virtual ~QPlatformSurface ()
 
QSurfacesurface () const
 

Protected Attributes

HaikuWindowProxym_window
 
- Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr
 
- Protected Attributes inherited from QPlatformWindow
QScopedPointer< QPlatformWindowPrivated_ptr
 

Additional Inherited Members

- Public Slots inherited from QObject
void deleteLater ()
 
- Signals inherited from QObject
void destroyed (QObject *=nullptr)
 
void objectNameChanged (const QString &objectName, QPrivateSignal)
 
- Static Public Member Functions inherited from QObject
static QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 
static QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiver, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
 
static QMetaObject::Connection ::type connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, Func2 slot)
 
static QMetaObject::Connection ::type connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *context, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static std::enable_if< QtPrivate::FunctionPointer< Func2 >::ArgumentCount==-1 &&!std::is_convertible_v< Func2, const char * >, QMetaObject::Connection >::type connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, Func2 slot)
 
template<typename Func1 , typename Func2 >
static std::enable_if< QtPrivate::FunctionPointer< Func2 >::ArgumentCount==-1 &&!std::is_convertible_v< Func2, const char * >, QMetaObject::Connection >::type connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *context, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
 
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
 
static bool disconnect (const QMetaObject::Connection &)
 
template<typename Func1 , typename Func2 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiver, Func2 slot)
 
template<typename Func1 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *receiver, void **zero)
 
- Static Public Member Functions inherited from QPlatformWindow
static QRect initialGeometry (const QWindow *w, const QRect &initialGeometry, int defaultWidth, int defaultHeight, const QScreen **resultingScreenReturn=nullptr)
 
static QRectF closestAcceptableGeometry (const QWindow *w, const QRectF &nativeRect)
 
- Static Public Member Functions inherited from QPlatformSurface
static bool isRasterSurface (QSurface *surface)
 
- Protected Member Functions inherited from QObject
QObjectsender () const
 
int senderSignalIndex () const
 
int receivers (const char *signal) const
 
bool isSignalConnected (const QMetaMethod &signal) const
 
virtual void timerEvent (QTimerEvent *event)
 
virtual void childEvent (QChildEvent *event)
 
virtual void customEvent (QEvent *event)
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
 QObject (QObjectPrivate &dd, QObject *parent=nullptr)
 
- Protected Member Functions inherited from QPlatformWindow
QPlatformScreenscreenForGeometry (const QRect &newGeometry) const
 
- Static Protected Member Functions inherited from QPlatformWindow
static QString formatWindowTitle (const QString &title, const QString &separator)
 
static QSize constrainWindowSize (const QSize &size)
 
- Properties inherited from QObject
QString objectName
 the name of this object More...
 

Detailed Description

Definition at line 78 of file qhaikuwindow.h.

Constructor & Destructor Documentation

◆ QHaikuWindow()

QHaikuWindow::QHaikuWindow ( QWindow window)
explicit

Definition at line 119 of file qhaikuwindow.cpp.

Here is the call graph for this function:

◆ ~QHaikuWindow()

QHaikuWindow::~QHaikuWindow ( )
virtual

Definition at line 143 of file qhaikuwindow.cpp.

Member Function Documentation

◆ frameMargins()

QMargins QHaikuWindow::frameMargins ( ) const
overridevirtual

Reimplemented from QPlatformWindow.

Definition at line 159 of file qhaikuwindow.cpp.

◆ isActive()

bool QHaikuWindow::isActive ( ) const
overridevirtual

Returns true if the window should appear active from a style perspective.

This function can make platform-specific isActive checks, such as checking if the QWindow is embedded in an active native window.

Reimplemented from QPlatformWindow.

Definition at line 188 of file qhaikuwindow.cpp.

◆ isExposed()

bool QHaikuWindow::isExposed ( ) const
overridevirtual

Returns if this window is exposed in the windowing system.

An exposeEvent() is sent every time this value changes.

Reimplemented from QPlatformWindow.

Definition at line 183 of file qhaikuwindow.cpp.

◆ nativeHandle()

BWindow * QHaikuWindow::nativeHandle ( ) const

Definition at line 198 of file qhaikuwindow.cpp.

◆ propagateSizeHints()

void QHaikuWindow::propagateSizeHints ( )
overridevirtual

Reimplement to propagate the size hints of the QWindow.

The size hints include QWindow::minimumSize(), QWindow::maximumSize(), QWindow::sizeIncrement(), and QWindow::baseSize().

Reimplemented from QPlatformWindow.

Definition at line 297 of file qhaikuwindow.cpp.

Here is the call graph for this function:

◆ requestActivateWindow()

void QHaikuWindow::requestActivateWindow ( )
overridevirtual

Reimplement to let Qt be able to request activation/focus for a window

Some window systems will probably not have callbacks for this functionality, and then calling QWindowSystemInterface::handleWindowActivated(QWindow *w) would be sufficient.

If the window system has some event handling/callbacks then call QWindowSystemInterface::handleWindowActivated(QWindow *w) when the window system gives the notification.

Default implementation calls QWindowSystem::handleWindowActivated(QWindow *w)

Reimplemented from QPlatformWindow.

Definition at line 203 of file qhaikuwindow.cpp.

◆ setGeometry()

void QHaikuWindow::setGeometry ( const QRect rect)
overridevirtual

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

Unless you also override QPlatformWindow::geometry(), you need to call the baseclass implementation of this function in any override of QPlatformWindow::setGeometry(), as QWindow::geometry() is expected to report back the set geometry until a confirmation (or rejection) of the new geometry comes back from the window manager and is reported via QWindowSystemInterface::handleGeometryChange().

Window move/resizes can also be triggered spontaneously by the window manager, or as a response to an earlier requested move/resize via the Qt APIs. There is no need to call this function from the window manager callback, instead call QWindowSystemInterface::handleGeometryChange().

The position(x, y) part of the rect might be inclusive or exclusive of the window frame as returned by frameMargins(). You can detect this in the plugin by checking qt_window_private(window())->positionPolicy.

Reimplemented from QPlatformWindow.

Definition at line 151 of file qhaikuwindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setVisible()

void QHaikuWindow::setVisible ( bool  visible)
overridevirtual

Reimplemented in subclasses to show the surface if visible is true, and hide it if visible is false.

The default implementation sends a synchronous expose event.

Reimplemented from QPlatformWindow.

Definition at line 170 of file qhaikuwindow.cpp.

Here is the call graph for this function:

◆ setWindowFlags()

void QHaikuWindow::setWindowFlags ( Qt::WindowFlags  flags)
overridevirtual

Requests setting the window flags of this surface to flags.

Reimplemented from QPlatformWindow.

Definition at line 227 of file qhaikuwindow.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setWindowState()

void QHaikuWindow::setWindowState ( Qt::WindowStates  state)
overridevirtual

Requests setting the window state of this surface to type.

Qt::WindowActive can be ignored.

Reimplemented from QPlatformWindow.

Definition at line 208 of file qhaikuwindow.cpp.

Here is the call graph for this function:

◆ setWindowTitle()

void QHaikuWindow::setWindowTitle ( const QString title)
overridevirtual

Reimplement to set the window title to title.

The implementation might want to append the application display name to the window title, like Windows and Linux do.

See also
QGuiApplication::applicationDisplayName()

Reimplemented from QPlatformWindow.

Definition at line 292 of file qhaikuwindow.cpp.

Here is the call graph for this function:

◆ winId()

WId QHaikuWindow::winId ( ) const
overridevirtual

Reimplement in subclasses to return a handle to the native window

Reimplemented from QPlatformWindow.

Definition at line 193 of file qhaikuwindow.cpp.

Member Data Documentation

◆ m_window

HaikuWindowProxy* QHaikuWindow::m_window
protected

Definition at line 105 of file qhaikuwindow.h.


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