xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.forms
include
xtd
forms
power_line_status.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include <xtd/enum>
6
8
namespace
xtd
{
10
namespace
forms
{
21
enum class
power_line_status
{
23
offline
= 0,
25
online
= 1,
27
unknown
= 0b11111111,
28
};
29
}
30
}
31
33
template
<>
struct
xtd::enum_register
<
xtd
::
forms::power_line_status
> {
34
static
auto
values
()
noexcept
{
return
xtd::enum_collection<xtd::forms::power_line_status>
{{
xtd::forms::power_line_status::offline
,
"offline"
}, {
xtd::forms::power_line_status::online
,
"online"
}, {
xtd::forms::power_line_status::unknown
,
"unknown"
}};}
35
};
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::forms::power_line_status
power_line_status
Specifies the system power status.
Definition
power_line_status.hpp:21
xtd::forms::power_line_status::offline
@ offline
The system is offline.
Definition
power_line_status.hpp:23
xtd::forms::power_line_status::online
@ online
The system is online.
Definition
power_line_status.hpp:25
xtd::forms::power_line_status::unknown
@ unknown
The power status of the system is unknown.
Definition
power_line_status.hpp:27
xtd::forms::battery_charge_status::unknown
@ unknown
Indicates an unknown battery condition.
Definition
battery_charge_status.hpp:35
xtd::forms
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition
texts.hpp:219
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.