xtd 0.2.0
draw_item_event_args.h
Go to the documentation of this file.
1 #pragma once
5 #include "../forms_export.h"
6 #include "control.h"
7 #include "draw_item_state.h"
8 #include <xtd/drawing/color>
9 #include <xtd/drawing/font>
10 #include <xtd/drawing/graphics>
11 #include <xtd/drawing/rectangle>
12 #include <xtd/drawing/system_fonts>
13 #include <xtd/event_args>
14 #include <cstdint>
15 
17 namespace xtd {
19  namespace forms {
29  class forms_export_ draw_item_event_args : public event_args {
30  struct data;
31 
32  public:
35  draw_item_event_args& operator =(const draw_item_event_args& other);
37 
39 
54  draw_item_event_args(xtd::drawing::graphics& graphics, const xtd::drawing::font& font, const xtd::drawing::rectangle& rect, size_t index, xtd::forms::draw_item_state state, const xtd::drawing::color& back_color, const xtd::drawing::color& fore_core);
56 
58 
63  const xtd::drawing::color& back_color() const noexcept;
64 
67  const xtd::drawing::rectangle& bounds() const noexcept;
68 
72  const xtd::drawing::font& font() const noexcept;
73 
77  const xtd::drawing::color& fore_color() const noexcept;
78 
81  xtd::drawing::graphics& graphics() noexcept;
82 
86  size_t index() const noexcept;
87 
91  xtd::forms::draw_item_state state() const noexcept;
93 
94  private:
95  std::shared_ptr<data> data_;
96  };
97  }
98 }
Defines a particular format for text, including font face, size, and style attributes. This class cannot be inherited.
Definition: font.h:45
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
Contains xtd::forms::draw_item_state enum class.
Represents an ARGB (alpha, red, green, blue) color.
Definition: color.h:45
Stores a set of four integers that represent the location and size of a rectangle.
Definition: rectangle.h:44
The operating system is other.
draw_item_state
Specifies the state of an item that is being drawn. This enumeration supports a bitwise combination o...
Definition: draw_item_state.h:18
Contains xtd::forms::control control.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
Defines an object used to draw lines and curves. This class cannot be inherited.
Definition: graphics.h:70
Provides data for the.
Definition: draw_item_event_args.h:29