DtkGui
DTK Gui module
载入中...
搜索中...
未找到
Dtk::Gui::DWindowManagerHelper_类 参考
类 Dtk::Gui::DWindowManagerHelper_ 继承关系图:
Dtk::Gui::DWindowManagerHelper_ 的协作图:

额外继承的成员函数

- Public 类型 继承自 Dtk::Gui::DWindowManagerHelper
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
}
 
- 信号 继承自 Dtk::Gui::DWindowManagerHelper
void windowManagerChanged ()
 信号会在当前环境窗口管理器变化时被发送.
 
void hasBlurWindowChanged ()
 信号会在 hasBlurWindow 属性的值改变时被发送.
 
void hasCompositeChanged ()
 信号会在 hasComposite 属性的值改变时被发送.
 
void hasNoTitlebarChanged ()
 信号会在 hasNoTitlebar 属性的值改变时被发送.
 
void hasWallpaperEffectChanged ()
 信号会在 hasWallpaperEffect 属性的值改变时被发送.
 
void windowListChanged ()
 信号会在当前环境本地窗口列表变化时被发送。包含打开新窗口、关闭窗口、改变窗口的 层叠顺序.
 
void windowMotifWMHintsChanged (quint32 winId)
 信号会在窗口功能或修饰标志改变时被发送.
 
- Public 成员函数 继承自 Dtk::Gui::DWindowManagerHelper
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
 
- 静态 Public 成员函数 继承自 Dtk::Gui::DWindowManagerHelper
static DWindowManagerHelperinstance ()
 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 的标题栏上点击鼠标右键会调用此函数打开系统菜单:
 
- Protected 成员函数 继承自 Dtk::Gui::DWindowManagerHelper
 DWindowManagerHelper (QObject *parent=0)
 DWindowManagerHelper::DWindowManagerHelper 不允许直接实例化此对象 parent
 
- 属性 继承自 Dtk::Gui::DWindowManagerHelper
bool hasBlurWindow
 窗口管理器是否支持窗口背景模糊特效
 
bool hasComposite
 窗口管理器是否支持混成效果。如果不支持混成,则表示所有窗口的背景都不能透明, 随之而来也不会有窗口阴影等效果,不规则窗口的边缘也会存在锯齿。
 
bool hasNoTitlebar
 窗口管理器是否支持隐藏窗口标题栏。如果支持,则 DPlatformWindowHandle::enableDXcbForWindow 会优先使用此方法支持自定义窗口标题栏。
 
bool hasWallpaperEffect
 窗口管理器是否支持窗口背景特效绘制。如果支持,则 绘制背景到透明窗口 会使用此方法开启特效窗口壁纸背景绘制。
 

该类的文档由以下文件生成: