QSkinny
0.8.0
C++/Qt UI toolkit
Loading...
Searching...
No Matches
QskSubWindowSkinlet.h
1
/******************************************************************************
2
* QSkinny - Copyright (C) The authors
3
* SPDX-License-Identifier: BSD-3-Clause
4
*****************************************************************************/
5
6
#ifndef QSK_SUB_WINDOW_SKINLET_H
7
#define QSK_SUB_WINDOW_SKINLET_H
8
9
#include "QskPopupSkinlet.h"
10
11
class
QskSubWindow
;
12
13
class
QSK_EXPORT
QskSubWindowSkinlet
:
public
QskPopupSkinlet
14
{
15
Q_GADGET
16
17
using
Inherited
=
QskPopupSkinlet
;
18
19
public
:
20
enum
NodeRole
21
{
22
PanelRole = QskPopupSkinlet::RoleCount,
23
TitleBarRole,
24
SymbolRole,
25
TitleRole,
26
27
RoleCount
28
};
29
30
Q_INVOKABLE
QskSubWindowSkinlet
(
QskSkin
* =
nullptr
);
31
~QskSubWindowSkinlet
()
override
;
32
33
virtual
QSizeF sizeHint(
const
QskSkinnable
*,
34
Qt::SizeHint,
const
QSizeF& )
const override
;
35
36
QRectF subControlRect(
const
QskSkinnable
*,
37
const
QRectF&,
QskAspect::Subcontrol
)
const override
;
38
39
protected
:
40
QSGNode* updateSubNode(
const
QskSkinnable
*,
41
quint8 nodeRole, QSGNode* )
const override
;
42
43
private
:
44
qreal titleBarHeight(
const
QskSubWindow
* )
const
;
45
46
QRectF titleBarRect(
const
QskSubWindow
*,
const
QRectF& )
const
;
47
QRectF symbolRect(
const
QskSubWindow
*,
const
QRectF& )
const
;
48
QRectF titleRect(
const
QskSubWindow
*,
const
QRectF& )
const
;
49
};
50
51
#endif
QskAspect::Subcontrol
Subcontrol
For use within the rendering or lay-outing of a specific QskSkinnable.
Definition
QskAspect.h:104
QskPopupSkinlet
Definition
QskPopupSkinlet.h:14
QskSkin
Definition
QskSkin.h:31
QskSkinnable
Definition
QskSkinnable.h:80
QskSubWindowSkinlet
Definition
QskSubWindowSkinlet.h:14
QskSubWindow
Definition
QskSubWindow.h:16
src
controls
QskSubWindowSkinlet.h
Generated by
1.9.8