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
29 public:
31
42
44
48 const drawing::rectangle& clip_rectangle() const noexcept;
49
52 drawing::graphics& graphics();
54
55 private:
56 friend class xtd::forms::control;
57 xtd::forms::control* control_ = nullptr;
58 mutable std::unique_ptr<xtd::drawing::graphics> graphics_;
59 xtd::drawing::rectangle clip_rectangle_;
60 xtd::forms::message message_; // need for xtd::forms::control::on_paint_ xtd::forms::control::on_paint_background to call def_wnd_proc method.
61 };
62 }
63}
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:79
Implements a Windows message.
Definition message.h:26
Provides data for the xtd::forms::control::paint event.
Definition paint_event_args.h:28
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
@ 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