xtd 0.2.0
mouse_buttons.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 mouse_buttons {
22  none = 0,
24  left = 0x100000,
26  right = 0x200000,
28  middle = 0x400000,
30  x_button1 = 0x800000,
32  x_button2 = 0x1000000
33  };
34  }
35 }
36 
39 
40 template<> struct xtd::enum_register<xtd::forms::mouse_buttons> {
42 };
mouse_buttons
Specifies constants that define which mouse button was pressed. This enumeration has a flag attribute...
Definition: mouse_buttons.h:20
The second XButton (XBUTTON2) on Microsoft IntelliMouse Explorer was pressed.
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
No mouse button was pressed.
he middle mouse button was pressed.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
#define flags_attribute_(namespace_name, enum_type)
Provides the set attribute struct for enumerations helper.
Definition: flags_attribute.h:34
The left mouse button was pressed.
The right mouse button was pressed.
The first XButton (XBUTTON1) on Microsoft IntelliMouse Explorer was pressed.
Provides the registration struct for enumerations.
Definition: enum_register.h:36