xtd 0.2.0
color_picker_event_args.h
Go to the documentation of this file.
1 #pragma once
5 #include <xtd/drawing/color>
6 #include <xtd/event_args>
7 #include <cstdint>
8 
10 namespace xtd {
12  namespace forms {
14  class control;
16 
26  public:
29  color_picker_event_args& operator =(const color_picker_event_args& color_picker_event_args) = default;
31 
33 
37  explicit color_picker_event_args(const xtd::drawing::color& color) : color_(color) {}
39 
41 
45  const xtd::drawing::color& color() const noexcept {return color_;}
47 
48  private:
49  xtd::drawing::color color_;
50  };
51  }
52 }
color_picker_event_args(const xtd::drawing::color &color)
Initializes a new instance of the color_picker_event_args class for the specified control...
Definition: color_picker_event_args.h:37
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition: event_args.h:18
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Provides data for the xtd::forms::color_picker::color_picker_changed event.
Definition: color_picker_event_args.h:25
Represents an ARGB (alpha, red, green, blue) color.
Definition: color.h:45
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
The left or right CTRL modifier key.
const xtd::drawing::color & color() const noexcept
Gets the xtd::drawing::color that represent the xtd::forms::color_picker::color.
Definition: color_picker_event_args.h:45