xtd 0.2.0
Loading...
Searching...
No Matches
draw_item_event_args.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "../forms_export.hpp"
6#include "control.hpp"
7#include "draw_item_state.hpp"
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
17namespace xtd {
19 namespace forms {
32 struct data;
33
34 public:
39
41
56 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);
58
60
65 const xtd::drawing::color& back_color() const noexcept;
66
69 const xtd::drawing::rectangle& bounds() const noexcept;
70
74 const xtd::drawing::font& font() const noexcept;
75
79 const xtd::drawing::color& fore_color() const noexcept;
80
83 xtd::drawing::graphics& graphics() noexcept;
84
88 size_t index() const noexcept;
89
93 xtd::forms::draw_item_state state() const noexcept;
95
96 private:
97 xtd::sptr<data> data_;
98 };
99 }
100}
Represents an ARGB (alpha, red, green, blue) color.
Definition color.hpp:49
Defines a particular format for text, including font face, size, and style attributes....
Definition font.hpp:45
Defines an object used to draw lines and curves. This class cannot be inherited.
Definition graphics.hpp:70
Stores a set of four integers that represent the location and size of a rectangle.
Definition rectangle.hpp:44
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.hpp:18
Provides data for the.
Definition draw_item_event_args.hpp:31
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)
Initializes a new instance of the xtd::forms::draw_item_event_args class for the specified control wi...
const xtd::drawing::color & back_color() const noexcept
Gets the background color of the item that is being drawn.
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)
Initializes a new instance of the xtd::forms::draw_item_event_args class for the specified control wi...
Contains xtd::forms::draw_item_state enum class.
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
std::shared_ptr< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
@ other
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.hpp:18
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.hpp:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Contains xtd::forms::style_sheets::control class.