|
enum | MotifFunction {
FUNC_RESIZE = (1L << 1)
, FUNC_MOVE = (1L << 2)
, FUNC_MINIMIZE = (1L << 3)
, FUNC_MAXIMIZE = (1L << 4)
,
FUNC_CLOSE = (1L << 5)
, FUNC_ALL = FUNC_RESIZE | FUNC_MOVE | FUNC_MINIMIZE | FUNC_MAXIMIZE | FUNC_CLOSE
} |
|
enum | MotifDecoration {
DECOR_BORDER = (1L << 1)
, DECOR_RESIZEH = (1L << 2)
, DECOR_TITLE = (1L << 3)
, DECOR_MENU = (1L << 4)
,
DECOR_MINIMIZE = (1L << 5)
, DECOR_MAXIMIZE = (1L << 6)
, DECOR_ALL = DECOR_BORDER | DECOR_RESIZEH | DECOR_TITLE | DECOR_MENU | DECOR_MINIMIZE | DECOR_MAXIMIZE
} |
|
enum | WMName { OtherWM
, DeepinWM
, KWinWM
} |
|
enum | WmWindowType {
UnknowWindowType = 0x000000
, NormalType = 0x000001
, DesktopType = 0x000002
, DockType = 0x000004
,
ToolbarType = 0x000008
, MenuType = 0x000010
, UtilityType = 0x000020
, SplashType = 0x000040
,
DialogType = 0x000080
, DropDownMenuType = 0x000100
, PopupMenuType = 0x000200
, TooltipType = 0x000400
,
NotificationType = 0x000800
, ComboType = 0x001000
, DndType = 0x002000
, KdeOverrideType = 0x004000
} |
|
|
bool | hasBlurWindow () const |
| DWindowManagerHelper::hasBlurWindow 更多...
|
|
bool | hasComposite () const |
| DWindowManagerHelper::hasComposite 更多...
|
|
bool | hasNoTitlebar () const |
| DWindowManagerHelper::hasNoTitlebar 更多...
|
|
bool | hasWallpaperEffect () const |
| DWindowManagerHelper::hasWallpaperEffect 更多...
|
|
QString | windowManagerNameString () const |
| DWindowManagerHelper::windowManagerNameString 更多...
|
|
WMName | windowManagerName () const |
| DWindowManagerHelper::windowManagerName 更多...
|
|
QVector< quint32 > | allWindowIdList () const |
| DWindowManagerHelper::allWindowIdList 更多...
|
|
QVector< quint32 > | currentWorkspaceWindowIdList () const |
| DWindowManagerHelper::currentWorkspaceWindowIdList 更多...
|
|
QList< DForeignWindow * > | currentWorkspaceWindows () const |
| DWindowManagerHelper::currentWorkspaceWindowIdList 更多...
|
|
quint32 | windowFromPoint (const QPoint &p) |
| DWindowManagerHelper::windowFromPoint 更多...
|
|
virtual const QMetaObject * | metaObject () const const |
|
| QObject (QObject *parent) |
|
virtual bool | event (QEvent *e) |
|
virtual bool | eventFilter (QObject *watched, QEvent *event) |
|
QString | objectName () const const |
|
void | setObjectName (const QString &name) |
|
bool | isWidgetType () const const |
|
bool | isWindowType () const const |
|
bool | signalsBlocked () const const |
|
bool | blockSignals (bool block) |
|
QThread * | thread () const const |
|
void | moveToThread (QThread *targetThread) |
|
int | startTimer (int interval, Qt::TimerType timerType) |
|
int | startTimer (std::chrono::milliseconds time, Qt::TimerType timerType) |
|
void | killTimer (int id) |
|
T | findChild (const QString &name, Qt::FindChildOptions options) const const |
|
QList< T > | findChildren (const QString &name, Qt::FindChildOptions options) const const |
|
QList< T > | findChildren (const QRegExp ®Exp, Qt::FindChildOptions options) const const |
|
QList< T > | findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const |
|
const QObjectList & | children () const const |
|
void | setParent (QObject *parent) |
|
void | installEventFilter (QObject *filterObj) |
|
void | removeEventFilter (QObject *obj) |
|
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const |
|
bool | disconnect (const char *signal, const QObject *receiver, const char *method) const const |
|
bool | disconnect (const QObject *receiver, const char *method) const const |
|
void | dumpObjectTree () |
|
void | dumpObjectInfo () |
|
void | dumpObjectTree () const const |
|
void | dumpObjectInfo () const const |
|
bool | setProperty (const char *name, const QVariant &value) |
|
QVariant | property (const char *name) const const |
|
QList< QByteArray > | dynamicPropertyNames () const const |
|
void | destroyed (QObject *obj) |
|
void | objectNameChanged (const QString &objectName) |
|
QObject * | parent () const const |
|
bool | inherits (const char *className) const const |
|
void | deleteLater () |
|
| Q_DISABLE_COPY (Class) |
|
| Q_DISABLE_MOVE (Class) |
|
| Q_DISABLE_COPY_MOVE (Class) |
|
T | qobject_cast (QObject *object) |
|
T | qobject_cast (const QObject *object) |
|
T | qFindChild (const QObject *obj, const QString &name) |
|
QList< T > | qFindChildren (const QObject *obj, const QString &name) |
|
QList< T > | qFindChildren (const QObject *obj, const QRegExp ®Exp) |
|
| Q_CLASSINFO (Name, Value) |
|
| Q_INTERFACES (...) |
|
| Q_PROPERTY (...) |
|
| Q_ENUMS (...) |
|
| Q_FLAGS (...) |
|
| Q_ENUM (...) |
|
| Q_FLAG (...) |
|
| Q_ENUM_NS (...) |
|
| Q_FLAG_NS (...) |
|
| Q_OBJECT Q_OBJECT |
|
| Q_GADGET Q_GADGET |
|
| Q_NAMESPACE Q_NAMESPACE |
|
| Q_NAMESPACE_EXPORT (EXPORT_MACRO) |
|
| Q_SIGNALS Q_SIGNALS |
|
| Q_SIGNAL Q_SIGNAL |
|
| Q_SLOTS Q_SLOTS |
|
| Q_SLOT Q_SLOT |
|
| Q_EMIT Q_EMIT |
|
| Q_INVOKABLE Q_INVOKABLE |
|
| Q_REVISION Q_REVISION |
|
| Q_SET_OBJECT_NAME (Object) |
|
| QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT |
|
|
static DWindowManagerHelper * | instance () |
| DWindowManagerHelper::instance DWindowManagerHelper 的单例对象,使用 Q_GLOBAL_STATIC 定义,在第一次调用时实例化。 更多...
|
|
static void | setMotifFunctions (const QWindow *window, MotifFunctions hints) |
| DWindowManagerHelper::setMotifFunctions 设置窗口的功能性标志,会覆盖之前的设置 window hints
|
|
static MotifFunctions | setMotifFunctions (const QWindow *window, MotifFunctions hints, bool on) |
| DWindowManagerHelper::setMotifFunctions 设置窗口某些标志位的开启状态,不影响其它标志位 window hints 要设置的标志位 on 如果值为 true 则开启标志,否则关闭 更多...
|
|
static MotifFunctions | getMotifFunctions (const QWindow *window) |
| DWindowManagerHelper::getMotifFunctions window 更多...
|
|
static void | setMotifDecorations (const QWindow *window, MotifDecorations hints) |
| DWindowManagerHelper::setMotifDecorations 设置窗口的修饰性标志,会覆盖之前的设置 window hints
|
|
static MotifDecorations | setMotifDecorations (const QWindow *window, MotifDecorations hints, bool on) |
| DWindowManagerHelper::setMotifFunctions 设置窗口某些标志位的开启状态,不影响其它标志位 window hints 要设置的标志位 on 如果值为 true 则开启标志,否则关闭 更多...
|
|
static MotifDecorations | getMotifDecorations (const QWindow *window) |
| DWindowManagerHelper::getMotifFunctions window 更多...
|
|
static void | setWmWindowTypes (QWindow *window, WmWindowTypes types) |
| DWindowManagerHelper::setWmWindowTypes 直接设置窗口管理器层级提供的窗口类型,如DesktopType和DockType类型也被 桌面环境需要,但是Qt自身并没有提供对应的设置接口 window types
|
|
static void | setWmClassName (const QByteArray &name) |
| DWindowManagerHelper::setWmClassName 设置x11环境上默认使用的wm class name,主要是在窗口创建时用于设置WM_CLASS窗口属性 name 更多...
|
|
static void | popupSystemWindowMenu (const QWindow *window) |
| DWindowManagerHelper::popupSystemWindowMenu 显示窗口管理器对窗口的菜单,和有边框的窗口在标题栏上点击鼠标右键弹出的菜单内容一致。 在 DMainWindow 的标题栏上点击鼠标右键会调用此函数打开系统菜单: 更多...
|
|
QString | tr (const char *sourceText, const char *disambiguation, int n) |
|
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
|
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
|
QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
|
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type) |
|
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, Functor functor) |
|
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type) |
|
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
|
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
|
bool | disconnect (const QMetaObject::Connection &connection) |
|
bool | disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method) |
|
提供与窗口管理器交互的接口,同 DPlatformWindowHandle 依赖 dxcb 插件.
\inmodule dtkgui
dxcb 插件抽象出所有需要和X11平台交互的接口以供上层调用,DTK 使用插件中提供的接口再 次封装提供给应用程序使用,从设计角度讲,DTK库中不应该直接使用任何跟平台相关的接口 (如:X11、Wayland、Windows),在这样的结构支撑下,在一个新的平台上,只需要提供和 dxcb 同样的接口,DTK应用即可无缝迁移。
- 参见
- {https://github.com/linuxdeepin/qt5dxcb-plugin/}{dxcb插件}
-
Dtk::Widget::DApplication::loadDXcbPlugin
-
Dtk::Widget::DApplication::isDXcbPlatform
-
Dtk::Widget::DPlatformWindowHandle