xtd 0.2.0
Loading...
Searching...
No Matches
paint_event_args.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "../forms_export.hpp"
6#include "message.hpp"
7#include <xtd/drawing/graphics>
8#include <xtd/drawing/rectangle>
9#include <xtd/event_args>
10
12namespace xtd {
14 namespace forms {
16 class control;
18
31 public:
33
44
46
50 const drawing::rectangle& clip_rectangle() const noexcept;
51
54 drawing::graphics& graphics();
56
57 private:
58 friend class xtd::forms::control;
59 xtd::forms::control* control_ = nullptr;
60 mutable xtd::uptr<xtd::drawing::graphics> graphics_;
61 xtd::drawing::rectangle clip_rectangle_;
62 xtd::forms::message message_; // need for xtd::forms::control::on_paint_ xtd::forms::control::on_paint_background to call def_wnd_proc method.
63 };
64 }
65}
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
Defines the base class for controls, which are components with visual representation.
Definition control.hpp:81
Implements a Windows message.
Definition message.hpp:28
Provides data for the xtd::forms::control::paint event.
Definition paint_event_args.hpp:30
const drawing::rectangle & clip_rectangle() const noexcept
Gets the rectangle in which to paint.
paint_event_args(xtd::drawing::graphics &graphics, const drawing::rectangle &clip_rectangle)
Initializes a new instance of the paint_event_args class with the specified control,...
paint_event_args(xtd::forms::control &control, const drawing::rectangle &clip_rectangle)
Initializes a new instance of the paint_event_args class with the specified control,...
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
std::unique_ptr< type_t > uptr
The xtd::uptr object is a unique pointer.
Definition uptr.hpp:25
@ control
The left or right CTRL modifier key.
Contains xtd::forms::message class.
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