QtCanpool 3.3.0
载入中...
搜索中...
未找到
QxWindow::WindowContext类 参考abstract

#include <qxwindow/windowcontext_p.h>

类 QxWindow::WindowContext 继承关系图:

Public 类型

enum  WindowContextHook {
  CentralizeHook = 1 , RaiseWindowHook , ShowSystemMenuHook , DefaultColorsHook ,
  DrawWindows10BorderHook , DrawWindows10BorderHook2 , SystemButtonAreaChangedHook
}
 

Public 成员函数

 WindowContext ()
 
 ~WindowContext () override
 
void setup (QObject *host, WindowItemDelegate *delegate)
 
QObject * host () const
 
QWindow * window () const
 
WindowItemDelegate * delegate () const
 
bool isHitTestVisible (const QObject *obj) const
 
bool setHitTestVisible (const QObject *obj, bool visible)
 
QObject * systemButton (WindowAgentBase::SystemButton button) const
 
bool setSystemButton (WindowAgentBase::SystemButton button, QObject *obj)
 
void removeSystemButton (WindowAgentBase::SystemButton button)
 
QObject * titleBar () const
 
bool setTitleBar (QObject *obj)
 
ScreenRectCallback systemButtonAreaCallback () const
 
void setSystemButtonAreaCallback (const ScreenRectCallback &callback)
 
bool isInSystemButtons (const QPoint &pos, WindowAgentBase::SystemButton *button) const
 
bool isInTitleBarDraggableArea (const QPoint &pos) const
 
bool isCaptionClassName (const char *name) const
 
void addCaptionClassName (const QString &name)
 
virtual QString key () const
 
virtual void virtual_hook (int id, void *data)
 
void showSystemMenu (const QPoint &pos)
 
void notifyWinIdChange ()
 
virtual QVariant windowAttribute (const QString &key) const
 
virtual bool setWindowAttribute (const QString &key, const QVariant &attribute)
 
- Public 成员函数 继承自 QxWindow::WindowNativeEventDispatcher
 WindowNativeEventDispatcher ()
 
virtual ~WindowNativeEventDispatcher ()
 
virtual bool nativeDispatch (const QByteArray &eventType, void *message, QT_NATIVE_EVENT_RESULT_TYPE *result)
 
void installNativeEventFilter (WindowNativeEventFilter *filter)
 
void removeNativeEventFilter (WindowNativeEventFilter *filter)
 
- Public 成员函数 继承自 QxWindow::WindowSharedEventDispatcher
 WindowSharedEventDispatcher ()
 
virtual ~WindowSharedEventDispatcher ()
 
virtual bool sharedDispatch (QObject *obj, QEvent *event)
 
void installSharedEventFilter (WindowSharedEventFilter *filter)
 
void removeSharedEventFilter (WindowSharedEventFilter *filter)
 

Protected 成员函数

virtual void winIdChanged ()=0
 
virtual bool windowAttributeChanged (const QString &key, const QVariant &attribute, const QVariant &oldAttribute)
 

Protected 属性

QObject * m_host {}
 
std::unique_ptr< WindowItemDelegate > m_delegate
 
QWindow * m_windowHandle {}
 
QSet< const QObject * > m_hitTestVisibleItems
 
QList< QString > m_captionClassNameList
 
ScreenRectCallback m_systemButtonAreaCallback
 
QObject * m_titleBar {}
 
std::array< QObject *, WindowAgentBase::Close+1 > m_systemButtons {}
 
QVariantHash m_windowAttributes
 
std::unique_ptr< QObject > m_windowEventFilter
 
std::unique_ptr< QObject > m_winIdChangeEventFilter
 
- Protected 属性 继承自 QxWindow::WindowNativeEventDispatcher
QVector< WindowNativeEventFilter * > m_nativeEventFilters
 
- Protected 属性 继承自 QxWindow::WindowSharedEventDispatcher
QVector< WindowSharedEventFilter * > m_sharedEventFilters
 

详细描述

在文件 windowcontext_p.h 第 30 行定义.

成员枚举类型说明

◆ WindowContextHook

枚举值
CentralizeHook 
RaiseWindowHook 
ShowSystemMenuHook 
DefaultColorsHook 
DrawWindows10BorderHook 
DrawWindows10BorderHook2 
SystemButtonAreaChangedHook 

在文件 windowcontext_p.h 第 66 行定义.

构造及析构函数说明

◆ WindowContext()

QxWindow::WindowContext::WindowContext ( )
default

◆ ~WindowContext()

QxWindow::WindowContext::~WindowContext ( )
overridedefault

成员函数说明

◆ addCaptionClassName()

void QxWindow::WindowContext::addCaptionClassName ( const QString &  name)

在文件 windowcontext.cpp 第 216 行定义.

◆ delegate()

WindowItemDelegate * QxWindow::WindowContext::delegate ( ) const
inline

在文件 windowcontext_p.h 第 115 行定义.

◆ host()

QObject * QxWindow::WindowContext::host ( ) const
inline

在文件 windowcontext_p.h 第 105 行定义.

◆ isCaptionClassName()

bool QxWindow::WindowContext::isCaptionClassName ( const char *  name) const

在文件 windowcontext.cpp 第 206 行定义.

◆ isHitTestVisible()

bool QxWindow::WindowContext::isHitTestVisible ( const QObject *  obj) const
inline

在文件 windowcontext_p.h 第 120 行定义.

◆ isInSystemButtons()

bool QxWindow::WindowContext::isInSystemButtons ( const QPoint &  pos,
WindowAgentBase::SystemButton *  button 
) const

在文件 windowcontext.cpp 第 142 行定义.

◆ isInTitleBarDraggableArea()

bool QxWindow::WindowContext::isInTitleBarDraggableArea ( const QPoint &  pos) const

在文件 windowcontext.cpp 第 158 行定义.

◆ key()

QString QxWindow::WindowContext::key ( ) const
virtual

被 QxWindow::WindowContextQt 重载.

在文件 windowcontext.cpp 第 223 行定义.

◆ notifyWinIdChange()

void QxWindow::WindowContext::notifyWinIdChange ( )

在文件 windowcontext.cpp 第 284 行定义.

◆ removeSystemButton()

void QxWindow::WindowContext::removeSystemButton ( WindowAgentBase::SystemButton  button)

在文件 windowcontext.cpp 第 110 行定义.

◆ setHitTestVisible()

bool QxWindow::WindowContext::setHitTestVisible ( const QObject *  obj,
bool  visible 
)

在文件 windowcontext.cpp 第 81 行定义.

◆ setSystemButton()

bool QxWindow::WindowContext::setSystemButton ( WindowAgentBase::SystemButton  button,
QObject *  obj 
)

在文件 windowcontext.cpp 第 96 行定义.

◆ setSystemButtonAreaCallback()

void QxWindow::WindowContext::setSystemButtonAreaCallback ( const ScreenRectCallback &  callback)

在文件 windowcontext.cpp 第 135 行定义.

◆ setTitleBar()

bool QxWindow::WindowContext::setTitleBar ( QObject *  obj)

在文件 windowcontext.cpp 第 115 行定义.

◆ setup()

void QxWindow::WindowContext::setup ( QObject *  host,
WindowItemDelegate *  delegate 
)

在文件 windowcontext.cpp 第 65 行定义.

◆ setWindowAttribute()

bool QxWindow::WindowContext::setWindowAttribute ( const QString &  key,
const QVariant &  attribute 
)
virtual

在文件 windowcontext.cpp 第 312 行定义.

◆ showSystemMenu()

void QxWindow::WindowContext::showSystemMenu ( const QPoint &  pos)

在文件 windowcontext.cpp 第 279 行定义.

◆ systemButton()

QObject * QxWindow::WindowContext::systemButton ( WindowAgentBase::SystemButton  button) const
inline

在文件 windowcontext_p.h 第 125 行定义.

◆ systemButtonAreaCallback()

ScreenRectCallback QxWindow::WindowContext::systemButtonAreaCallback ( ) const
inline

在文件 windowcontext_p.h 第 136 行定义.

◆ titleBar()

QObject * QxWindow::WindowContext::titleBar ( ) const
inline

在文件 windowcontext_p.h 第 130 行定义.

◆ virtual_hook()

void QxWindow::WindowContext::virtual_hook ( int  id,
void *  data 
)
virtual

被 QxWindow::WindowContextQt 重载.

在文件 windowcontext.cpp 第 235 行定义.

◆ window()

QWindow * QxWindow::WindowContext::window ( ) const
inline

在文件 windowcontext_p.h 第 110 行定义.

◆ windowAttribute()

QVariant QxWindow::WindowContext::windowAttribute ( const QString &  key) const
virtual

在文件 windowcontext.cpp 第 307 行定义.

◆ windowAttributeChanged()

bool QxWindow::WindowContext::windowAttributeChanged ( const QString &  key,
const QVariant &  attribute,
const QVariant &  oldAttribute 
)
protectedvirtual

在文件 windowcontext.cpp 第 340 行定义.

◆ winIdChanged()

virtual void QxWindow::WindowContext::winIdChanged ( )
protectedpure virtual

在 QxWindow::WindowContextQt 内被实现.

类成员变量说明

◆ m_captionClassNameList

QList<QString> QxWindow::WindowContext::m_captionClassNameList
protected

在文件 windowcontext_p.h 第 91 行定义.

◆ m_delegate

std::unique_ptr<WindowItemDelegate> QxWindow::WindowContext::m_delegate
protected

在文件 windowcontext_p.h 第 87 行定义.

◆ m_hitTestVisibleItems

QSet<const QObject *> QxWindow::WindowContext::m_hitTestVisibleItems
protected

在文件 windowcontext_p.h 第 90 行定义.

◆ m_host

QObject* QxWindow::WindowContext::m_host {}
protected

在文件 windowcontext_p.h 第 86 行定义.

◆ m_systemButtonAreaCallback

ScreenRectCallback QxWindow::WindowContext::m_systemButtonAreaCallback
protected

在文件 windowcontext_p.h 第 93 行定义.

◆ m_systemButtons

std::array<QObject *, WindowAgentBase::Close + 1> QxWindow::WindowContext::m_systemButtons {}
protected

在文件 windowcontext_p.h 第 97 行定义.

◆ m_titleBar

QObject* QxWindow::WindowContext::m_titleBar {}
protected

在文件 windowcontext_p.h 第 96 行定义.

◆ m_windowAttributes

QVariantHash QxWindow::WindowContext::m_windowAttributes
protected

在文件 windowcontext_p.h 第 99 行定义.

◆ m_windowEventFilter

std::unique_ptr<QObject> QxWindow::WindowContext::m_windowEventFilter
protected

在文件 windowcontext_p.h 第 101 行定义.

◆ m_windowHandle

QWindow* QxWindow::WindowContext::m_windowHandle {}
protected

在文件 windowcontext_p.h 第 88 行定义.

◆ m_winIdChangeEventFilter

std::unique_ptr<QObject> QxWindow::WindowContext::m_winIdChangeEventFilter
protected

在文件 windowcontext_p.h 第 102 行定义.


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