xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.drawing
include
xtd
drawing
font_style.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include <xtd/enum>
6
8
namespace
xtd
{
10
namespace
drawing
{
17
enum class
font_style
{
19
regular
= 0,
21
bold
= 0b1,
23
italic
= 0b10,
25
underline
= 0b100,
27
strikeout
= 0b1000
28
};
29
}
30
}
31
33
flags_attribute_
(
xtd::drawing
, font_style);
34
35
template
<>
struct
xtd::enum_register
<
xtd
::
drawing::font_style
> {
36
static
auto
values
() noexcept {
return
xtd::enum_collection<xtd::drawing::font_style>
{{
xtd::drawing::font_style::regular
,
"regular"
}, {
xtd::drawing::font_style::bold
,
"bold"
}, {
xtd::drawing::font_style::italic
,
"italic"
}, {
xtd::drawing::font_style::underline
,
"underline"
}, {
xtd::drawing::font_style::strikeout
,
"strikeout"
}};}
37
};
xtd::drawing::font_style
font_style
Specifies style information applied to text. This enumeration has a flags attribute that allows a bit...
Definition
font_style.hpp:17
xtd::drawing::font_style::italic
@ italic
Italic text.
Definition
font_style.hpp:23
xtd::drawing::font_style::bold
@ bold
Bold text.
Definition
font_style.hpp:21
xtd::drawing::font_style::underline
@ underline
Underline text.
Definition
font_style.hpp:25
xtd::drawing::font_style::strikeout
@ strikeout
Text with a line through the middle.
Definition
font_style.hpp:27
xtd::drawing::font_style::regular
@ regular
Normal text.
Definition
font_style.hpp:19
flags_attribute_
#define flags_attribute_(namespace_name, enum_type)
Provides the set attribute struct for enumerations helper.
Definition
flags_attribute.hpp:34
xtd::enum_collection
std::vector< std::pair< enum_t, xtd::string > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition
enum_collection.hpp:24
xtd::drawing
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition
actions_system_images.hpp:10
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
xtd::enum_register
Provides the registration struct for enumerations.
Definition
enum_register.hpp:38
xtd::enum_register::values
static auto values() noexcept
Definition
enum_register.hpp:55
Generated on
for xtd by
Gammasoft
. All rights reserved.