xtd 0.2.0
font_picker_event_args.h
Go to the documentation of this file.
1 #pragma once
5 #include <xtd/drawing/color>
6 #include <xtd/drawing/font>
7 #include <xtd/event_args>
8 #include <cstdint>
9 
11 namespace xtd {
13  namespace forms {
15  class control;
17 
27  public:
30  font_picker_event_args& operator =(const font_picker_event_args& font_picker_event_args) = default;
32 
34 
39  explicit font_picker_event_args(const xtd::drawing::font& font, const xtd::drawing::color& color) : color_(color), font_(font) {}
41 
43 
47  const xtd::drawing::color& color() const noexcept {return color_;}
48 
51  const xtd::drawing::font& font() const noexcept {return font_;}
53 
54  private:
55  xtd::drawing::color color_;
56  xtd::drawing::font font_;
57  };
58  }
59 }
Defines a particular format for text, including font face, size, and style attributes. This class cannot be inherited.
Definition: font.h:45
font_picker_event_args(const xtd::drawing::font &font, const xtd::drawing::color &color)
Initializes a new instance of the font_picker_event_args class for the specified control.
Definition: font_picker_event_args.h:39
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition: event_args.h:18
const xtd::drawing::font & font() const noexcept
Gets the xtd::drawing::font that represent the xtd::forms::font_picker::font.
Definition: font_picker_event_args.h:51
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Represents an ARGB (alpha, red, green, blue) color.
Definition: color.h:45
const xtd::drawing::color & color() const noexcept
Gets the xtd::drawing::color that represent the xtd::forms::font_picker::color.
Definition: font_picker_event_args.h:47
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
Provides data for the xtd::forms::font_picker::font_picker_changed events.
Definition: font_picker_event_args.h:26
The left or right CTRL modifier key.