-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathflags.h
More file actions
34 lines (28 loc) · 773 Bytes
/
Copy pathflags.h
File metadata and controls
34 lines (28 loc) · 773 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#pragma once
namespace shelllet {
namespace frameless {
enum class WindowType
{
None = 1 << 0,
MinimizeButtonHint = 1 << 1,
MaximizeButtonHint = 1 << 2,
MinMaxButtonsHint = MinimizeButtonHint | MaximizeButtonHint,
CloseButtonHint = 1 << 3,
AllButton = CloseButtonHint | MinMaxButtonsHint,
MinCloseButton = MinimizeButtonHint | CloseButtonHint,
CustomButtonHint = 1 << 4
};
//Q_ENUM(WindowType);
Q_DECLARE_FLAGS(WindowTypeFlags, WindowType)
Q_DECLARE_OPERATORS_FOR_FLAGS(WindowTypeFlags)
enum class SizePolicy
{
None = 1 << 0,
FixedWidth = 1 << 1,
FixedHeigth = 1 << 2,
FixedAll = FixedWidth | FixedHeigth
};
Q_DECLARE_FLAGS(SizePolicyFlags, SizePolicy)
Q_DECLARE_OPERATORS_FOR_FLAGS(SizePolicyFlags)
}
}