xtd 0.2.0
power_state.h
Go to the documentation of this file.
1 #pragma once
5 #include <xtd/enum>
6 
8 namespace xtd {
10  namespace forms {
20  enum class power_state {
22  suspend = 0,
24  hibernate = 1,
25  };
26  }
27 }
28 
30 template<> struct xtd::enum_register<xtd::forms::power_state> {
31  explicit operator auto() const noexcept {return xtd::enum_collection<xtd::forms::power_state> {{xtd::forms::power_state::suspend, "suspend"}, {xtd::forms::power_state::hibernate, "hibernate"}};}
32 };
Indicates a system suspended power mode. When a system is suspended, the computer switches to a low-p...
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
std::vector< std::pair< enum_t, xtd::ustring > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition: enum_collection.h:19
Indicates a system hibernation power mode. When a system enters hibernation, the contents of its memo...
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
power_state
Defines identifiers that indicate a suspended system power activity mode.
Definition: power_state.h:20
Provides the registration struct for enumerations.
Definition: enum_register.h:36