mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-01 07:05:48 +00:00
29 lines
530 B
C++
29 lines
530 B
C++
#ifndef DOCKRECT_H
|
|
#define DOCKRECT_H
|
|
|
|
#include <QRect>
|
|
#include <QDBusMetaType>
|
|
|
|
struct DockRect
|
|
{
|
|
public:
|
|
DockRect();
|
|
operator QRect() const;
|
|
|
|
friend QDebug operator<<(QDebug debug, const DockRect &rect);
|
|
friend const QDBusArgument &operator>>(const QDBusArgument &arg, DockRect &rect);
|
|
friend QDBusArgument &operator<<(QDBusArgument &arg, const DockRect &rect);
|
|
|
|
private:
|
|
int x;
|
|
int y;
|
|
uint w;
|
|
uint h;
|
|
};
|
|
|
|
Q_DECLARE_METATYPE(DockRect)
|
|
|
|
void registerDockRectMetaType();
|
|
|
|
#endif // DOCKRECT_H
|