xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.drawing
include
xtd
drawing
graphics_unit.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
graphics_unit
{
19
world
= 0,
21
display
= 1,
23
pixel
= 2,
25
point
= 3,
27
inch
= 4,
29
document
= 5,
31
millimeter
= 6
32
};
33
}
34
}
35
37
template
<>
struct
xtd::enum_register
<
xtd
::
drawing::graphics_unit
> {
38
static
auto
values
()
noexcept
{
return
xtd::enum_collection<xtd::drawing::graphics_unit>
{{
xtd::drawing::graphics_unit::world
,
"world"
}, {
xtd::drawing::graphics_unit::display
,
"display"
}, {
xtd::drawing::graphics_unit::pixel
,
"pixel"
}, {
xtd::drawing::graphics_unit::point
,
"point"
}, {
xtd::drawing::graphics_unit::inch
,
"inch"
}, {
xtd::drawing::graphics_unit::document
,
"document"
}, {
xtd::drawing::graphics_unit::millimeter
,
"millimeter"
}};}
39
};
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::graphics_unit
graphics_unit
Specifies the unit of measure for the given data. This enumeration has a flags attribute that allows ...
Definition
graphics_unit.hpp:17
xtd::drawing::graphics_unit::millimeter
@ millimeter
Specifies the millimeter as the unit of measure.
Definition
graphics_unit.hpp:31
xtd::drawing::graphics_unit::point
@ point
Specifies a printer's point (1/72 inch) as the unit of measure.
Definition
graphics_unit.hpp:25
xtd::drawing::graphics_unit::inch
@ inch
Specifies the inch as the unit of measure.
Definition
graphics_unit.hpp:27
xtd::drawing::graphics_unit::world
@ world
Specifies the world coordinate system unit as the unit of measure.
Definition
graphics_unit.hpp:19
xtd::drawing::graphics_unit::pixel
@ pixel
Specifies a device pixel as the unit of measure.
Definition
graphics_unit.hpp:23
xtd::drawing::graphics_unit::display
@ display
Specifies 1/75 inch as the unit of measure.
Definition
graphics_unit.hpp:21
xtd::drawing::graphics_unit::document
@ document
Specifies the document unit (1/300 inch) as the unit of measure.
Definition
graphics_unit.hpp:29
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::drawing::point
Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional ...
Definition
point.hpp:54
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.