xtd 0.2.0
Loading...
Searching...
No Matches
paint_event_args.h
Go to the documentation of this file.
1
4#pragma once
5#include "../forms_export.h"
6#include "message.h"
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.h:70
Stores a set of four integers that represent the location and size of a rectangle.
Definition rectangle.h:44
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.h:18
Defines the base class for controls, which are components with visual representation.
Definition control.h:81
Implements a Windows message.
Definition message.h:28
Provides data for the xtd::forms::control::paint event.
Definition paint_event_args.h: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.h:13
std::unique_ptr< type_t > uptr
The xtd::uptr object is a unique pointer.
Definition uptr.h: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.h:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10