Adobe Source Libraries
2.0.0
A collection of C++ libraries.
Loading...
Searching...
No Matches
widget_attributes.hpp
Go to the documentation of this file.
1
/*
2
Copyright 2013 Adobe
3
Distributed under the Boost Software License, Version 1.0.
4
(See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
*/
6
/**************************************************************************************************/
7
8
#ifndef ADOBE_WIDGET_ATTRIBUTES_HPP
9
#define ADOBE_WIDGET_ATTRIBUTES_HPP
10
11
#include <
adobe/config.hpp
>
12
13
#include <
adobe/enum_ops.hpp
>
14
15
#include <climits>
16
17
/**************************************************************************************************/
18
19
namespace
adobe
{
20
21
/**************************************************************************************************/
22
27
38
39
enum
theme_t
{
41
theme_none_s
= 0,
42
44
theme_large_s
= 1,
46
theme_normal_s
= 2,
48
theme_small_s
= 3,
50
theme_mini_s
= 4,
51
53
theme_adornment_label_s
= 1L << 29,
55
theme_adornment_number_s
= 1L << 30,
57
theme_adornment_mono_s
= 1L << 31,
58
60
theme_mask_s
=
theme_large_s
|
theme_normal_s
|
theme_small_s
|
theme_mini_s
,
61
63
theme_adornment_mask_s
=
64
theme_adornment_mono_s
|
theme_adornment_number_s
|
theme_adornment_label_s
,
65
67
theme_default_s
=
theme_normal_s
68
};
69
70
/**************************************************************************************************/
71
72
ADOBE_DEFINE_BITSET_OPS
(
theme_t
)
73
74
/**************************************************************************************************/
75
76
86
87
enum
modifiers_t
:
std
::uint32_t {
89
modifiers_none_s
= 0,
90
92
modifiers_left_shift_s
= 1 << 0,
93
95
modifiers_right_shift_s
= 1 << 1,
96
98
modifiers_left_option_s
= 1 << 2,
99
101
modifiers_right_option_s
= 1 << 3,
102
104
modifiers_left_control_s
= 1 << 4,
105
107
modifiers_right_control_s
= 1 << 5,
108
110
modifiers_caps_lock_s
= 1 << 6,
111
112
114
modifiers_any_command_s
= 1 << 7,
115
117
modifiers_any_shift_s
=
static_cast<
std::underlying_type_t<modifiers_t>
>
(
modifiers_left_shift_s
) |
static_cast<
std::underlying_type_t<modifiers_t>
>
(
modifiers_right_shift_s
),
118
120
modifiers_any_option_s
=
static_cast<
std::underlying_type_t<modifiers_t>
>
(
modifiers_left_option_s
) |
static_cast<
std::underlying_type_t<modifiers_t>
>
(
modifiers_right_option_s
),
121
123
modifiers_any_control_s
=
static_cast<
std::underlying_type_t<modifiers_t>
>
(
modifiers_left_control_s
) |
static_cast<
std::underlying_type_t<modifiers_t>
>
(
modifiers_right_control_s
),
124
modifiers_all_s
= UINT_MAX
125
};
126
127
/**************************************************************************************************/
128
129
ADOBE_DEFINE_BITSET_OPS
(
modifiers_t
)
130
131
/**************************************************************************************************/
132
133
}
// namespace adobe
134
135
/**************************************************************************************************/
136
137
#endif
138
139
/**************************************************************************************************/
config.hpp
enum_ops.hpp
ADOBE_DEFINE_BITSET_OPS
#define ADOBE_DEFINE_BITSET_OPS(EnumType)
Definition
enum_ops.hpp:90
adobe::modifiers_t
modifiers_t
Standard keyboard state modifiers.
Definition
widget_attributes.hpp:87
adobe::theme_t
theme_t
Semantic theme settings to apply to a widget.
Definition
widget_attributes.hpp:39
adobe::modifiers_all_s
@ modifiers_all_s
Definition
widget_attributes.hpp:124
adobe::modifiers_left_option_s
@ modifiers_left_option_s
Left-option (or alt) key (if applicable)
Definition
widget_attributes.hpp:98
adobe::modifiers_any_option_s
@ modifiers_any_option_s
Any option (or alt) key (if applicable)
Definition
widget_attributes.hpp:120
adobe::modifiers_any_shift_s
@ modifiers_any_shift_s
Any shift key.
Definition
widget_attributes.hpp:117
adobe::modifiers_left_shift_s
@ modifiers_left_shift_s
Left-shift key (if applicable)
Definition
widget_attributes.hpp:92
adobe::modifiers_right_option_s
@ modifiers_right_option_s
Right-option (or alt) key (if applicable)
Definition
widget_attributes.hpp:101
adobe::modifiers_any_control_s
@ modifiers_any_control_s
Any control key (if applicable)
Definition
widget_attributes.hpp:123
adobe::modifiers_any_command_s
@ modifiers_any_command_s
Any command key.
Definition
widget_attributes.hpp:114
adobe::modifiers_none_s
@ modifiers_none_s
No modifiers.
Definition
widget_attributes.hpp:89
adobe::modifiers_right_shift_s
@ modifiers_right_shift_s
Right-shift key (if applicable)
Definition
widget_attributes.hpp:95
adobe::modifiers_right_control_s
@ modifiers_right_control_s
Right-control key (if applicable)
Definition
widget_attributes.hpp:107
adobe::modifiers_caps_lock_s
@ modifiers_caps_lock_s
Caps lock key.
Definition
widget_attributes.hpp:110
adobe::modifiers_left_control_s
@ modifiers_left_control_s
Left-control key (if applicable)
Definition
widget_attributes.hpp:104
adobe::theme_adornment_number_s
@ theme_adornment_number_s
Adornment for displaying a number.
Definition
widget_attributes.hpp:55
adobe::theme_mini_s
@ theme_mini_s
For palettes (atypical)
Definition
widget_attributes.hpp:50
adobe::theme_normal_s
@ theme_normal_s
For dialogs & windows.
Definition
widget_attributes.hpp:46
adobe::theme_adornment_label_s
@ theme_adornment_label_s
Adornment for displaying a label.
Definition
widget_attributes.hpp:53
adobe::theme_mask_s
@ theme_mask_s
Theme mask to obtain widget size.
Definition
widget_attributes.hpp:60
adobe::theme_large_s
@ theme_large_s
For dialogs & windows (atypical)
Definition
widget_attributes.hpp:44
adobe::theme_adornment_mono_s
@ theme_adornment_mono_s
Adornment for monospacing widget text.
Definition
widget_attributes.hpp:57
adobe::theme_default_s
@ theme_default_s
Default theme.
Definition
widget_attributes.hpp:67
adobe::theme_small_s
@ theme_small_s
For palettes.
Definition
widget_attributes.hpp:48
adobe::theme_none_s
@ theme_none_s
No theme.
Definition
widget_attributes.hpp:41
adobe::theme_adornment_mask_s
@ theme_adornment_mask_s
Theme mask to obtain widget adornments.
Definition
widget_attributes.hpp:63
adobe
Definition
class_template.hpp:7
std
STL namespace.
adobe
widget_attributes.hpp
Generated by
1.14.0