Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qwasmwindowtreenode.h
Go to the documentation of this file.
1// Copyright (C) 2023 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QWASMWINDOWTREENODE_H
5#define QWASMWINDOWTREENODE_H
6
7#include "qwasmwindowstack.h"
8
9namespace emscripten {
10class val;
11}
12
13class QWasmWindow;
14
19
21{
22public:
25
26 virtual emscripten::val containerElement() = 0;
28
29protected:
30 virtual void onParentChanged(QWasmWindowTreeNode *previous, QWasmWindowTreeNode *current,
31 QWasmWindowStack::PositionPreference positionPreference);
32 virtual QWasmWindow *asWasmWindow();
33 virtual void onSubtreeChanged(QWasmWindowTreeNodeChangeType changeType,
35 virtual void setWindowZOrder(QWasmWindow *window, int z);
36
38 void setAsActiveNode();
39 void bringToTop();
40 void sendToBottom();
41
42 const QWasmWindowStack &childStack() const { return m_childStack; }
43 QWasmWindow *activeChild() const { return m_activeChild; }
44
45private:
46 void onTopWindowChanged();
47 void setActiveChildNode(QWasmWindow *activeChild);
48
49 QWasmWindowStack m_childStack;
50 QWasmWindow *m_activeChild = nullptr;
51};
52
53#endif // QWASMWINDOWTREENODE_H
QWasmWindow * activeChild() const
virtual ~QWasmWindowTreeNode()
virtual void onParentChanged(QWasmWindowTreeNode *previous, QWasmWindowTreeNode *current, QWasmWindowStack::PositionPreference positionPreference)
virtual QWasmWindowTreeNode * parentNode()=0
virtual void onSubtreeChanged(QWasmWindowTreeNodeChangeType changeType, QWasmWindowTreeNode *parent, QWasmWindow *child)
virtual QWasmWindow * asWasmWindow()
const QWasmWindowStack & childStack() const
virtual void setWindowZOrder(QWasmWindow *window, int z)
virtual emscripten::val containerElement()=0
void onPositionPreferenceChanged(QWasmWindowStack::PositionPreference positionPreference)
GLuint GLfloat GLfloat GLfloat GLfloat GLfloat z
GLuint GLfloat * val
QWasmWindowTreeNodeChangeType
QLayoutItem * child
[0]
aWidget window() -> setWindowTitle("New Window Title")
[2]